/* Punta Cana Party Boat · header.css (El Patrón Tour template) */
/* ---------- top bar (all widths): logo, chapter counter, language, menu ---------- */
.top{position:fixed;inset:0 0 auto;z-index:30;display:flex;align-items:center;gap:10px;padding:max(10px,env(safe-area-inset-top)) var(--gutter) 10px;color:var(--paper);background:linear-gradient(180deg,rgba(6,35,42,.55),rgba(6,35,42,0));transition:transform var(--t-mid) var(--glide)}
.top.hide{transform:translateY(-110%)}
.logo{display:inline-flex;align-items:center;gap:.35em;min-height:44px;text-decoration:none;font-size:1.375rem;white-space:nowrap}
.logo>span:not(.lock){font-stretch:100%;font-weight:400;letter-spacing:.42em;font-size:.55em;margin-left:.2em}
/* brand: their own logo graphic (white version over the dark bar) in place of the template's type logo */
.logo picture{display:block}.logo-img{display:block;height:38px;width:auto}
@media (max-width:419px){.logo-img{height:32px}}
/* the top-bar lockup: their logo in four layers, laid out on the 800x218 artwork (tools/logo-layers.py) */
.lock{position:relative;display:block;height:38px;aspect-ratio:800/218}
.lock img{position:absolute;display:block;height:auto}
.lk-sea,.lk-boat{position:absolute;left:0;top:0;width:47.5%;height:100%}
.lk-boat{width:100%;transform-origin:30% 92%}
.lk-sea{transform-origin:30% 92%}
.lk-hull{left:0;top:0;width:100%}
.lk-parasol{left:24.211%;top:2.752%;width:16.316%;transform-origin:50% 100%}
.lk-m{position:absolute;left:50%;width:50%;overflow:hidden}
.lk-m img{position:static;width:100%}
.lk-1{top:21.101%}.lk-2{top:55.505%}
.lk-wake{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:var(--mist);stroke-width:6;stroke-linecap:round;opacity:0;pointer-events:none}
.lk-wake path{stroke-dasharray:420;stroke-dashoffset:420}
@media (max-width:419px){.lock{height:32px}}
/* A · the opening (first visit, with the template's intro; any input ends it): the boat sails in, overshoots and
   settles, a wake draws behind it, the parasol pops open, the two lines rise like the hero name */
html.intro:not(.intro-done) .top .lk-boat{animation:lk-sail 1000ms var(--glide) both}
html.intro:not(.intro-done) .top .lk-parasol{animation:lk-pop 560ms var(--glide) 720ms both}
html.intro:not(.intro-done) .top .lk-wake{animation:lk-wake 1300ms var(--tide) 120ms both}
html.intro:not(.intro-done) .top .lk-wake path{animation:lk-draw 900ms var(--glide) 120ms both}
html.intro:not(.intro-done) .top .lk-m img{animation:up 900ms var(--glide) both}
html.intro:not(.intro-done) .top .lk-1 img{animation-delay:520ms}
html.intro:not(.intro-done) .top .lk-2 img{animation-delay:610ms}
@keyframes lk-sail{0%{transform:translateX(-135%) rotate(-5deg)}55%{transform:translateX(5%) rotate(2.5deg)}78%{transform:translateX(-1.2%) rotate(-1.2deg)}100%{transform:none}}
@keyframes lk-pop{0%{transform:scale(0,.25) rotate(-35deg);opacity:0}60%{transform:scale(1.12,1.05) rotate(8deg);opacity:1}100%{transform:none}}
@keyframes lk-wake{0%{opacity:0}20%{opacity:.75}70%{opacity:.5}100%{opacity:0}}
@keyframes lk-draw{to{stroke-dashoffset:0}}
/* B · alive: on hover the boat rocks on the swell and the parasol twirls (the scroll lean is in core.js) */
@media (hover:hover){
  .top .logo:hover .lk-boat,.top .logo:focus-visible .lk-boat{animation:lk-rock 1.8s ease-in-out infinite alternate}
  .top .logo:hover .lk-parasol,.top .logo:focus-visible .lk-parasol{animation:lk-twirl 1.2s var(--glide) infinite}
}
@keyframes lk-rock{0%{transform:rotate(-2.5deg) translateY(1%)}100%{transform:rotate(1.8deg) translateY(-1.5%)}}
@keyframes lk-twirl{0%,60%,100%{transform:none}20%{transform:rotate(-14deg) scaleX(.85)}40%{transform:rotate(10deg) scaleX(.92)}}
@media (prefers-reduced-motion:reduce){.lock *{animation:none!important}.lk-sea{transform:none!important}}
.count{font:400 1.0625rem/1 var(--serif);font-style:italic;margin-left:auto;margin-right:4px;opacity:.9;font-variant-numeric:lining-nums;white-space:nowrap}
.menu-btn{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 14px;border:1px solid currentColor;border-radius:2px;color:inherit;text-decoration:none;font:700 .75rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;background:none;cursor:pointer;flex:none}
.burger{display:grid;gap:5px;width:20px}
.burger i{display:block;height:1.5px;background:currentColor;transition:transform var(--t-fast) var(--glide)}
.menu-btn:hover .burger i:last-child{transform:scaleX(.6);transform-origin:100% 50%}
.lang{position:relative;display:inline-grid;grid-template-columns:46px 46px;height:48px;border:1px solid currentColor;border-radius:2px;flex:none;isolation:isolate}
.lang button{position:relative;z-index:1;border:0;background:none;font:700 .75rem/1 var(--sans);letter-spacing:.12em;cursor:pointer;transition:color var(--t-fast) var(--glide)}
.lang .ind{position:absolute;top:4px;left:4px;width:38px;height:38px;background:currentColor;transition:transform var(--t-mid) var(--glide);z-index:0}
.lang[data-on="es"] .ind{transform:translateX(46px)}
.top .lang button[aria-pressed="true"],.foot .lang button[aria-pressed="true"],.menu .lang button[aria-pressed="true"]{color:var(--ink)}
html:not(.js) .lang{visibility:hidden}
@media (max-width:479px){
  .mb-t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .menu-btn{width:48px;padding:0;justify-content:center}
}
@media (max-width:419px){
  .mb-t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .top .logo>span:not(.lock){display:none}
  .top{gap:8px}
  .menu-btn{width:48px;padding:0;justify-content:center}
}
@media (max-width:359px){
  .count{display:none}
  .top{gap:8px}
  .top .logo{font-size:1.125rem}
  .top .logo>span:not(.lock){display:none}
  .logo{margin-right:auto}
}
