/* High Skies Media — shared styles.
   Page sections keep Mike's original inline styles; this file holds the base rules plus
   everything that needs a state (hover, scrolled header, menu, modal, chips, FAQ, carousel). */

*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:#fbfaf8;color:#1c1b19;font-family:'Jost',sans-serif;font-weight:300;-webkit-font-smoothing:antialiased}
a{color:#1c1b19}a:hover{color:#6b665f}
input,select,textarea,button{font-family:'Jost',sans-serif}
::selection{background:#e8e1d6}
:focus-visible{outline:1px solid #1c1b19;outline-offset:3px}
img{display:block}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;background:#1c1b19;color:#fff;padding:12px 18px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;text-decoration:none}
.skip-link:focus{top:12px;color:#fff}

/* Buttons/links that used to be <span>/<div> in the original: strip browser defaults. */
.btn-reset{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;text-align:inherit;cursor:pointer}
.link-reset{color:inherit;text-decoration:none}
.link-reset:hover{color:inherit}

/* Hover states (original `style-hover` attributes). !important because the base styles are inline. */
.h-tint:hover{background:rgba(127,127,127,0.12)!important}
.h-dark:hover{background:#3a3733!important}
.h-dark-inv:hover{background:#3a3733!important;color:#fff!important}
.h-invert:hover{background:#1c1b19!important;color:#fff!important}
.h-sand:hover{background:#f2eee8!important}
.f-line:focus{border-bottom-color:#1c1b19!important}
.img-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.on-dark :focus-visible,.on-dark:focus-visible{outline-color:#fff}

/* ---------- Header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:30;background:transparent;color:#fff;border-bottom:1px solid transparent;transition:background .35s,color .35s,border-color .35s}
.site-header.is-scrolled,.solid-header .site-header,.site-header.menu-open{background:rgba(251,250,248,0.96);color:#1c1b19;border-bottom-color:#e4e0da}
.site-header a{color:inherit;text-decoration:none}
.site-header a:hover{color:inherit}
.site-header :focus-visible{outline-color:currentColor}
.hdr-inner{max-width:1440px;margin:0 auto;padding:28px clamp(20px,4vw,64px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;transition:padding .35s}
.site-header.is-scrolled .hdr-inner{padding-top:14px;padding-bottom:14px}
.hdr-nav{display:flex;gap:clamp(14px,1.5vw,24px);font-size:12px;letter-spacing:0.14em;text-transform:uppercase;font-weight:400;flex-wrap:wrap}
.hdr-nav a{padding:4px 0;border-bottom:1px solid transparent}
.hdr-nav a[aria-current="page"]{border-bottom-color:currentColor}
.hdr-logo{font-weight:300;font-size:clamp(15px,1.6vw,22px);letter-spacing:0.42em;white-space:nowrap;padding-left:0.42em}
.hdr-cta-wrap{display:flex;justify-content:flex-end}
.hdr-cta{display:inline-block;cursor:pointer;background:transparent;color:inherit;border:1px solid currentColor;padding:12px 22px;font-size:12px;letter-spacing:0.2em;text-transform:uppercase;font-weight:400}
.menu-btn{display:none}
.mnav{display:none}
html.menu-lock,html.menu-lock body{overflow:hidden}

/* Five nav links (Home … Contact) must stay on one line beside the centered logo between 1201–1400px:
   a touch less air between links, and a slightly tighter logo. Checked at 1201, 1280, 1366, 1400. */
@media (max-width:1400px){.hdr-nav{gap:clamp(14px,1.3vw,24px);letter-spacing:0.12em}.hdr-logo{letter-spacing:0.34em;padding-left:0.34em}}
@media (max-width:1200px){
  .hdr-inner{grid-template-columns:1fr auto;padding-top:18px;padding-bottom:18px;gap:16px}
  .site-header.is-scrolled .hdr-inner{padding-top:10px;padding-bottom:10px}
  .hdr-nav,.hdr-cta-wrap{display:none}
  .hdr-logo{font-size:15px;letter-spacing:0.34em;padding-left:0;justify-self:start;display:inline-flex;align-items:center;min-height:44px}
  .menu-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;padding:0 4px 0 12px;background:transparent;border:0;color:inherit;cursor:pointer;font-size:12px;letter-spacing:0.2em;text-transform:uppercase;font-weight:400}
  .menu-icon{position:relative;width:22px;height:14px;display:inline-block}
  .menu-icon::before,.menu-icon::after,.menu-icon span{content:"";position:absolute;left:0;right:0;height:1px;background:currentColor;transition:transform .25s,opacity .25s,top .25s}
  .menu-icon::before{top:0}.menu-icon span{top:6.5px}.menu-icon::after{top:13px}
  .menu-open .menu-icon::before{top:6.5px;transform:rotate(45deg)}
  .menu-open .menu-icon::after{top:6.5px;transform:rotate(-45deg)}
  .menu-open .menu-icon span{opacity:0}
  .mnav{display:block;position:absolute;left:0;right:0;top:100%;background:#fbfaf8;color:#1c1b19;border-bottom:1px solid #e4e0da;padding:8px clamp(20px,4vw,64px) 24px;box-shadow:0 20px 40px rgba(20,18,16,0.12)}
  .mnav[hidden]{display:none!important}
  .mnav a{display:flex;align-items:center;min-height:52px;border-bottom:1px solid #e4e0da;font-size:14px;letter-spacing:0.16em;text-transform:uppercase;font-weight:400}
  .mnav a[aria-current="page"]{color:#7a6446}
  .mnav .mnav-cta{margin-top:20px;justify-content:space-between;border:0;background:#1c1b19;color:#fff;padding:0 22px;font-size:12px;letter-spacing:0.22em}
  .mnav .mnav-cta:hover{color:#fff;background:#3a3733}
  .mnav-contact{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:16px;font-size:14px;color:#6b665f}
  .mnav-contact a{min-height:44px;border:0;text-transform:none;letter-spacing:0;font-weight:300;font-size:14px}
}

/* ---------- Floating "check your date" ---------- */
.float-cta{position:fixed;right:clamp(16px,3vw,32px);bottom:clamp(16px,3vw,32px);z-index:40;cursor:pointer;border:0;background:#1c1b19;color:#fff;padding:18px 26px;border-radius:999px;font-size:12px;letter-spacing:0.22em;text-transform:uppercase;font-weight:400;display:flex;align-items:center;gap:12px;box-shadow:0 14px 40px rgba(20,18,16,0.3);text-decoration:none}
.float-cta:hover{background:#3a3733;color:#fff}

/* ---------- Film modal ---------- */
dialog.film-modal{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:24px;background:transparent;color:#fff;overflow:auto}
dialog.film-modal[open]{display:grid;place-items:center}
dialog.film-modal::backdrop{background:rgba(20,18,16,0.88)}
dialog.film-modal :focus-visible{outline-color:#fff}

/* ---------- FAQ ---------- */
/* The original "span 2" created a phantom second column on phones (sideways scroll). */
@media (max-width:780px){.faq-list{grid-column:auto!important}}
.faq-q{display:flex;width:100%;justify-content:space-between;align-items:center;gap:24px;padding:26px 0;background:none;border:0;color:inherit;text-align:left;cursor:pointer;font:inherit}

/* ---------- Reviews carousel ---------- */
/* Inactive tabs are dimmed to 0.65, which keeps their labels above 4.5:1 contrast on the sand background. */
.rv-tab{display:flex;flex-direction:column;gap:10px;opacity:0.65;transition:opacity .25s;background:none;border:0;padding:0;color:inherit;text-align:left;cursor:pointer;font:inherit}
.rv-tab[aria-pressed="true"]{opacity:1}
.rv-tab .rv-bar{height:1px;background:#cfc9c0}
.rv-tab[aria-pressed="true"] .rv-bar{background:#1c1b19}
/* Any number of reviews: the tab strip scrolls sideways inside itself instead of widening the page. */
.rv-tabs{position:relative;display:flex;gap:12px;margin-top:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#cfc9c0 transparent;padding-bottom:10px;-webkit-overflow-scrolling:touch}
.rv-tabs .rv-tab{flex:0 0 clamp(108px,22%,150px);scroll-snap-align:start;white-space:nowrap}
.rv-more{align-self:flex-start;font:inherit;font-size:12px;letter-spacing:0.22em;text-transform:uppercase;font-weight:400;color:#1c1b19;background:none;border:0;border-bottom:1px solid #1c1b19;padding:10px 0 4px;cursor:pointer}
.rv-more:hover{color:#6b665f;border-bottom-color:#6b665f}
.rv-trust{align-self:flex-start;margin:0;font-size:14px;color:#4a4641;line-height:1.5}

/* ---------- Inquiry form ---------- */
/* Field underlines and chip borders use #8f887e (3.4:1 on the paper background) so the fields are easy to see. */
.chip{cursor:pointer;padding:12px 18px;font-size:14px;font-weight:300;border:1px solid #8f887e;background:transparent;color:#1c1b19;transition:all .2s}
.chip[aria-pressed="true"]{border-color:#1c1b19;background:#1c1b19;color:#fff}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.field-input{border:0;border-bottom:1px solid #8f887e;background:transparent;padding:10px 0;font-size:16px;font-weight:300;color:#1c1b19;outline:none;border-radius:0;width:100%}
.field-input:focus{border-bottom-color:#1c1b19}
.field-input:focus-visible{outline:none;border-bottom-color:#1c1b19;box-shadow:0 1px 0 #1c1b19}
.mini-input:focus-visible{outline:none}
.mini-form label:focus-within{box-shadow:inset 0 -2px 0 #1c1b19}

/* ---------- Layout helpers (pages keep inline styles; these classes fix the responsive edge cases) ---------- */
/* Headings and short lines break evenly instead of leaving one word alone on the last line. */
h1,h2,h3,blockquote{text-wrap:balance}
p{text-wrap:pretty}

/* Photo panel beside the inquiry form: the text sits in the normal flow, so the panel grows with it on
   phones instead of cutting off the email/phone/Instagram links at the bottom. */
.inq-photo{display:flex;flex-direction:column}
.inq-photo .inq-body{position:relative;flex:1}
@media (max-width:600px){
  .inq-photo{min-height:0!important}
  .inq-photo .inq-body{min-height:520px}
  .inq-photo .inq-shade{background:linear-gradient(180deg,rgba(20,18,16,0.62) 0%,rgba(20,18,16,0.5) 45%,rgba(20,18,16,0.8) 100%)!important}
}

/* Big "Latest film" card: 2.39:1 on wide screens, 16:9 on phones so the title and play button fit. */
@media (max-width:600px){
  .film-wide{aspect-ratio:16/9!important}
  .film-wide .fw-play{width:48px!important;height:48px!important}
  .film-wide .fw-meta{gap:16px!important}
}

/* Stats row under the intro. 5 (or 4) across on wide screens, balanced rows on tablets, stacked on phones.
   Only the items that end a row keep their divider line. */
.stats{grid-template-columns:repeat(var(--cols),1fr)!important}
.stats>div{border-right:1px solid #e4e0da!important}
.stats>div:last-child{border-right-color:transparent!important}
@media (max-width:959px){
  .stats{grid-template-columns:repeat(6,1fr)!important;row-gap:32px}
  .stats-5>div:nth-child(-n+3){grid-column:span 2}
  .stats-5>div:nth-child(n+4){grid-column:span 3}
  .stats-5>div:nth-child(3),.stats-4>div:nth-child(2){border-right-color:transparent!important}
  .stats-4>div{grid-column:span 3}
}
@media (max-width:559px){
  .stats{grid-template-columns:1fr!important;row-gap:0}
  .stats>div{grid-column:auto!important;border-right:0!important;padding:22px 8px!important;border-bottom:1px solid #e4e0da}
  .stats>div:last-child{border-bottom:0}
}

/* Three cards in a row (films, packages, reviews): 3 across on wide screens; on tablets 2 across with the
   third card centered underneath instead of hanging on the left; 1 across on phones. */
@media (min-width:1100px){.trio{grid-template-columns:repeat(3,1fr)!important}}
@media (min-width:700px) and (max-width:1099px){
  .trio{grid-template-columns:repeat(2,1fr)!important}
  .trio>:nth-child(3):last-child{grid-column:1/-1;justify-self:center;width:calc(50% - clamp(8px,1vw,14px))}
}
@media (max-width:699px){.trio{grid-template-columns:1fr!important}}

/* Package comparison table: on small screens the first column stays put and a hint says it scrolls. */
.cmp-wrap{position:relative}
.cmp-table th:first-child{position:sticky;left:0;z-index:1;background:#fbfaf8}
.cmp-hint{display:none;margin:0 0 12px;font-size:12px;letter-spacing:0.18em;text-transform:uppercase;color:#6b665f}
@media (max-width:820px){
  .cmp-hint{display:block}
  .cmp-wrap::after{content:"";position:absolute;top:0;right:0;bottom:0;width:48px;pointer-events:none;background:linear-gradient(90deg,rgba(251,250,248,0),#fbfaf8);transition:opacity .2s}
  .cmp-wrap.is-end::after{opacity:0}
}

/* A " · " separator that becomes a line break on narrow screens (no dot left dangling at a line end). */
@media (max-width:640px){.dot-break{display:block;height:0;overflow:hidden}}

/* Keep small groups (the two social icons in the footer, the "Now booking" badge text) on one line. */
.nowrap{white-space:nowrap}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
