/* ============================================================
   Nile Cruise Trips — SHARED design system (site-wide)
   Header, footer, WhatsApp float, mobile bar, buttons, tokens,
   reveal. Values ported VERBATIM from prototype 01-home.html.

   IMPORTANT: page-specific CSS (hero, cards, sections, etc.)
   lives in per-template stylesheets (e.g. home.css) loaded ONLY
   on that template, so un-migrated Elementor pages are never
   touched by a global reset. Generic helper classes here are
   scoped to theme-owned regions (.hdr/.foot/.mobar/.nct-main).
   ============================================================ */

:root {
	/* Prototype design tokens */
	--deep:#1840e0; --light:#28a0f8; --ink:#0f1d3d; --navy:#13234a;
	--orange:#f47b20; --muted:#5d6b86; --line:#e3ebf6;
	--sky-1:#ffffff; --sky-2:#eaf3fe; --sky-3:#dcecfd;
	--ta:#34e0a1;
	--maxw:1270px; --g:clamp(18px,4vw,48px);

	/* Legacy aliases (kept for safety) */
	--brand-blue:#1840e0; --brand-blue-2:#28a0f8; --brand-orange:#f47b20;

	/* Comparison-table markers — REQUIRED in :root or the green
	   checkmarks / red crosses render silently blank. */
	--ok:#16a34a; --no:#dc2626;

	--font-main:'Jost', system-ui, -apple-system, sans-serif;
}

/* ---- generic helpers, scoped so they never leak onto
        un-migrated Elementor page content ---- */
:is(.hdr,.foot,.nct-main) .wrap{max-width:var(--maxw);margin:0 auto;padding-inline:var(--g)}
:is(.hdr,.foot,.nct-main) .kicker{font-size:.74rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--light)}
:is(.hdr,.foot,.mobar,.nct-main) .btn{display:inline-flex;align-items:center;gap:.5em;font-family:inherit;font-weight:500;font-size:.95rem;padding:.9em 1.7em;border-radius:999px;border:0;cursor:pointer;transition:.28s;text-decoration:none}
:is(.hdr,.foot,.mobar,.nct-main) .btn-primary{background:var(--deep);color:#fff;box-shadow:0 14px 34px rgba(24,64,224,.24)}
:is(.hdr,.foot,.mobar,.nct-main) .btn-primary:hover{transform:translateY(-2px);background:#1233bb}
:is(.hdr,.foot,.mobar,.nct-main) .btn-light{background:#fff;color:var(--deep);box-shadow:0 10px 26px rgba(15,29,61,.12)}
:is(.hdr,.foot,.mobar,.nct-main) .btn-light:hover{transform:translateY(-2px)}
:is(.hdr,.foot,.mobar,.nct-main) .btn-orange{background:var(--orange);color:#fff}
:is(.hdr,.foot,.mobar,.nct-main) .btn-orange:hover{transform:translateY(-2px);background:#e06c12}
:is(.hdr,.foot,.mobar,.nct-main) .btn-outline{background:transparent;border:1.5px solid rgba(255,255,255,.5);color:#fff}
:is(.hdr,.foot,.mobar,.nct-main) .btn-outline:hover{background:#fff;color:var(--deep);border-color:#fff}
:is(.hdr,.foot,.mobar,.nct-main) .btn-ghost{background:#fff;color:var(--deep);border:1.5px solid var(--line)}
:is(.hdr,.foot,.mobar,.nct-main) .btn-ghost:hover{border-color:var(--deep);transform:translateY(-2px)}

/* ---- shared resets, scoped to header/footer/floats only ---- */
.hdr,.foot,.wa,.mobar{box-sizing:border-box;font-family:var(--font-main)}
.hdr *,.foot *,.mobar *{box-sizing:border-box}
.hdr :where(ul,li,p,h1,h2,h3,h4){margin:0;padding:0}
.foot :where(ul,li,p,h1,h2,h3,h4){margin:0;padding:0}
.hdr ul,.foot ul{list-style:none}
.hdr img,.foot img{display:block;max-width:100%}
.hdr a,.foot a,.mobar a,.wa{text-decoration:none}

/* ===== HEADER ===== */
.hdr{position:fixed;top:0;left:0;right:0;z-index:100;transition:.35s}
.hdr-in{display:flex;align-items:center;justify-content:space-between;height:78px}
.hdr .logo img{height:58px;filter:brightness(0) invert(1);transition:.35s;width:100%}
.hdr.scrolled{background:rgba(255,255,255,.92);backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line)}
.hdr.scrolled .logo img{filter:none}
.hdr.scrolled .menu>li>a{color:var(--ink)}
.menu{display:flex;gap:.2rem;list-style:none}
.menu>li>a{display:block;padding:.55em .9em;font-weight:500;font-size:.92rem;color:rgba(255,255,255,.94);border-radius:8px;transition:.2s}
.menu>li>a:hover{background:rgba(255,255,255,.16)}
.hdr.scrolled .menu>li>a:hover{background:var(--sky-2);color:var(--deep)}
.hdr-cta{display:flex;align-items:center;gap:1rem}
.hdr-search{width:42px;height:42px;border-radius:11px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);display:grid;place-items:center;transition:.25s;flex:0 0 auto}
.hdr-search svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round}
.hdr-search:hover{background:rgba(255,255,255,.24)}
.hdr.scrolled .hdr-search{background:var(--sky-2);border-color:var(--line)}
.hdr.scrolled .hdr-search svg{stroke:var(--deep)}
.hdr.scrolled .hdr-search:hover{background:var(--deep)}
.hdr.scrolled .hdr-search:hover svg{stroke:#fff}
@media(max-width:1040px){.hdr-search{width:38px;height:38px}.hdr-search svg{width:17px;height:17px}}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:8px}
.burger span{width:24px;height:2px;background:#fff;border-radius:2px;transition:.35s}
.hdr.scrolled .burger span{background:var(--ink)}
@media(max-width:1040px){.menu{display:none}.burger{display:flex}}

/* ===== FOOTER ===== */
.foot{background:var(--ink);color:#aebfe2;position:relative;overflow:hidden}
.foot::before{content:"";position:absolute;top:-30%;right:-5%;width:40%;height:140%;background:radial-gradient(circle,rgba(40,160,248,.12),transparent 60%);pointer-events:none}
.foot-cta{border-bottom:1px solid rgba(255,255,255,.1);padding:2.4rem 0}
.foot-cta-in{display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.foot-cta h3{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:600;color:#fff;letter-spacing:-.02em;line-height:1.1;max-width:20ch}
.foot-cta .fc-actions{display:flex;gap:.8rem;flex-wrap:wrap}
.foot-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:2rem;padding:2.8rem 0 2.2rem;position:relative;z-index:2}
@media(max-width:880px){.foot-top{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.foot-top{grid-template-columns:1fr}}
.foot-brand img{height:58px;filter:brightness(0) invert(1);margin-bottom:1rem;width:100%}
/* .foot-prefix on the paragraph rules raises specificity above the Zourney parent's
   injected `.single-to_book p{color:#000}` inline style, which otherwise leaks black
   text into the footer on CPT-single pages. */
.foot .foot-brand p{font-size:.9rem;font-weight:300;max-width:34ch;color:#9fb2d8;margin-bottom:1.1rem}
.foot-owner{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:1rem 1.1rem}
.foot-owner .fo-label{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:#7e92ba;font-weight:600;margin-bottom:.3rem}
.foot-owner b{color:#fff;font-size:.98rem;font-weight:600}
.foot-owner .fo-lic{display:inline-flex;align-items:center;gap:.4em;margin-top:.5rem;font-size:.82rem;color:#bfe0ff;font-weight:500;border-bottom:1px solid rgba(191,224,255,.4);padding-bottom:1px}
.foot-owner .fo-lic:hover{color:#fff}
.foot h4{color:#fff;font-size:.8rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;margin-bottom:1.1rem}
.foot ul{list-style:none;display:grid;gap:.6rem}
.foot a{color:#9fb2d8;font-size:.9rem;font-weight:300;transition:.2s;display:inline-flex;align-items:center;gap:.5em}
.foot a:hover{color:#fff}
.foot ul a::before{content:"›";color:var(--light);font-weight:600}
.foot-contact li{display:flex;gap:.6rem;align-items:flex-start;color:#9fb2d8;font-size:.9rem;font-weight:300}
.foot-contact li svg{width:16px;height:16px;stroke:var(--light);fill:none;stroke-width:2;flex:0 0 auto;margin-top:3px}
.foot-contact li a{display:inline}
.foot-contact li a::before{content:none}
/* payment strip */
.foot-pay{border-top:1px solid rgba(255,255,255,.1);padding:1.6rem 0;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;position:relative;z-index:2}
.foot-pay .fp-label{font-size:.82rem;color:#9fb2d8;font-weight:400}
.foot-pay .fp-cards{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.paycard{height:34px;background:#fff;border-radius:7px;padding:0 .7rem;display:flex;align-items:center;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.paycard svg{height:20px;display:block}
.foot-bot{border-top:1px solid rgba(255,255,255,.1);padding:1.3rem 0;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;position:relative;z-index:2}
.foot .foot-bot p{font-size:.82rem;color:#7e92ba;font-weight:300}
.foot .foot-bot p a{color:#bfe0ff}
.foot address{font-style:normal}
.foot-credit{text-align:center;padding:1rem 0 .2rem;font-size:.8rem;color:#7e92ba;font-weight:300;border-top:1px solid rgba(255,255,255,.08)}
.foot-credit a{color:#bfe0ff;font-weight:500}
.foot-credit a:hover{color:#fff}
.foot-credit .heart{color:#ff5d5d}
.fsoc{display:flex;gap:.5rem}
.fsoc a{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.08);display:grid;place-items:center;color:#fff;transition:.2s}
.fsoc a:hover{background:var(--deep);transform:translateY(-2px)}
.fsoc a::before{content:none}
.foot .ic{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ===== WHATSAPP FLOAT ===== */
.wa{position:fixed;left:18px;bottom:20px;z-index:95;width:58px;height:58px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 10px 30px rgba(37,211,102,.45);transition:.3s;animation:wapulse 2.6s ease-in-out infinite}
.wa:hover{transform:scale(1.08)}
.wa svg{width:32px;height:32px;fill:#fff}
@keyframes wapulse{0%,100%{box-shadow:0 10px 30px rgba(37,211,102,.45)}50%{box-shadow:0 10px 30px rgba(37,211,102,.45),0 0 0 12px rgba(37,211,102,.12)}}
@media(max-width:760px){.wa{display:none}}

/* ===== STICKY MOBILE BAR ===== */
.mobar{position:fixed;left:0;right:0;bottom:0;z-index:90;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid var(--line);box-shadow:0 -8px 30px rgba(15,29,61,.1);padding:.7rem 1rem;display:none;gap:.7rem;align-items:center}
.mobar .mb-wa{flex:0 0 auto;width:48px;height:48px;border-radius:13px;background:#25d366;display:grid;place-items:center;box-shadow:0 4px 14px rgba(37,211,102,.4);transition:transform .2s}
.mobar .mb-wa:hover{transform:scale(1.05)}
.mobar .mb-wa svg{width:26px;height:26px;fill:#fff}
.mobar .btn{flex:1;justify-content:center}
/* :has() scopes the offset to pages that actually render the mobile bar,
   so un-migrated Elementor pages never get a phantom bottom gap. */
@media(max-width:760px){.mobar{display:flex}body:has(.mobar){padding-bottom:74px}}

/* ===== REVEAL-ON-SCROLL (scoped to coded templates; paired with main.js .in) ===== */
.nct-main .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.nct-main .reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.nct-main .reveal{opacity:1;transform:none}}

/* ============ SEARCH OVERLAY + on-page search box ============ */
body.nct-noscroll{overflow:hidden}
.search-ov{position:fixed;inset:0;z-index:2000;display:none}
.search-ov.open{display:block}
.search-ov-bd{position:absolute;inset:0;background:rgba(10,30,40,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.search-ov-panel{position:relative;max-width:720px;margin:12vh auto 0;background:#fff;border-radius:20px;padding:2.4rem 2rem 2rem;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:soIn .25s ease}
@keyframes soIn{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
.search-ov-x{position:absolute;top:1rem;right:1rem;width:38px;height:38px;border:0;border-radius:10px;background:var(--sky-2);display:grid;place-items:center;cursor:pointer;transition:.2s}
.search-ov-x:hover{background:var(--deep)}
.search-ov-x svg{width:18px;height:18px;stroke:var(--deep);fill:none;stroke-width:2;stroke-linecap:round}
.search-ov-x:hover svg{stroke:#fff}
.search-ov-eyebrow{display:inline-block;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--deep);font-weight:700;margin-bottom:.7rem}
.search-ov-form{display:flex;align-items:center;gap:.6rem;border:2px solid var(--line);border-radius:14px;padding:.5rem .5rem .5rem 1rem;transition:border-color .2s}
.search-ov-form:focus-within{border-color:var(--deep)}
.search-ov-form>svg{width:22px;height:22px;stroke:var(--deep);fill:none;stroke-width:2;stroke-linecap:round;flex:0 0 auto}
.search-ov-form input{flex:1;border:0;outline:0;font:inherit;font-size:1.05rem;background:transparent;padding:.5rem 0;min-width:0}
.search-ov-hint{margin:.9rem 0 0;font-size:.85rem;color:var(--muted)}
.nct-searchbox{display:flex;align-items:center;gap:.6rem;max-width:640px;margin:0 auto;background:#fff;border:2px solid var(--line);border-radius:14px;padding:.5rem .5rem .5rem 1rem;transition:border-color .2s}
.nct-searchbox:focus-within{border-color:var(--deep)}
.nct-searchbox>svg{width:20px;height:20px;stroke:var(--deep);fill:none;stroke-width:2;stroke-linecap:round;flex:0 0 auto}
.nct-searchbox input{flex:1;border:0;outline:0;font:inherit;background:transparent;padding:.5rem 0;min-width:0}
.nct-noresults{text-align:center;padding:2rem 0}
.nct-noresults .center,.nct-search .center{text-align:center}
@media(max-width:560px){.search-ov-panel{margin:8vh 1rem 0;padding:2rem 1.2rem 1.4rem}.search-ov-form{flex-wrap:wrap}.search-ov-form .btn{width:100%}.nct-searchbox{flex-wrap:wrap}.nct-searchbox .btn{width:100%}}

/* E-E-A-T byline (author + last-updated) */
.nct-byline{display:flex;align-items:flex-start;gap:.6rem;margin:0 0 1.4rem;padding:.7rem 1rem;background:var(--sky-2);border:1px solid var(--line);border-radius:12px;font-size:.85rem;color:var(--muted);line-height:1.5}
.nct-byline svg{width:18px;height:18px;flex:0 0 auto;margin-top:.1rem;stroke:var(--deep);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nct-byline a{color:var(--deep);font-weight:600}
.nct-byline b{color:var(--ink);font-weight:600}

/* CLS prevention — reserve space for images so layout doesn't jump as they load.
   Skip icons/logos (SVG) and any img with explicit width/height already set. */
.nct-main img:not([width]):not([height]){aspect-ratio:16 / 10;object-fit:cover;background:var(--sky-2)}
.nct-main .phero-bg img:not([width]):not([height]){aspect-ratio:auto;height:100%;width:100%}
.nct-main .sh-bg img:not([width]):not([height]){aspect-ratio:16 / 11}
.nct-main .gt img:not([width]):not([height]){aspect-ratio:4 / 3}
.nct-main .rc-av,.nct-main .rev-av{aspect-ratio:1/1}
.nct-main .tt-media img:not([width]):not([height]){aspect-ratio:16 / 10}
.nct-main .seo-media img:not([width]):not([height]){aspect-ratio:4 / 3}

/* Newsletter form ok/err messages (travel-blog) */
.news-ok{background:#e5f3ec;border:1px solid #1c8a5c;color:#0f5f3d;border-radius:12px;padding:.8em 1.1em;margin:0 auto 1rem;font-weight:500;max-width:520px;font-size:.92rem}
.news-err{background:#fdecef;border:1px solid #f5c2cc;color:#b02a37;border-radius:12px;padding:.8em 1.1em;margin:0 auto 1rem;font-weight:500;max-width:520px;font-size:.92rem}

/* Accessibility — visible skip link on keyboard focus */
.nct-skip{position:absolute;left:-999px;top:0;background:#000;color:#fff;padding:.6em 1em;border-radius:0 0 8px 0;font-weight:600;z-index:9999;text-decoration:none}
.nct-skip:focus{left:0}

/* ===== Mobile header cleanup + hero height =====
   The sticky bottom mobar already carries "Call" + "Request a Quote", so we hide
   the header CTA button on mobile — it duplicates that action and eats space
   next to the burger and search icon. Keep search + burger visible. */
@media(max-width:1040px){
	.hdr-cta{gap:.5rem}
	.hdr-cta > a.btn{display:none}          /* hide the header CTA */
	.hdr-in{height:64px}
}
@media(max-width:600px){
	.hdr .logo img{height:44px}
}

/* Hero — shorter on mobile so it's not full-viewport. */
@media(max-width:900px){
	.nct-main .phero{min-height:52vh}
	.nct-main .phero-in{padding-top:84px}
}
@media(max-width:600px){
	.nct-main .phero{min-height:440px}
	.nct-main .phero-in{padding-top:72px;padding-bottom:1.8rem}
}

/* Home hero (.hero) — also shorter on mobile. */
@media(max-width:900px){
	.nct-main .hero{height:auto;min-height:520px}
}
@media(max-width:600px){
	.nct-main .hero{min-height:440px}
}

/* ===== Mobile menu drawer (burger → fullscreen menu) ===== */
@media(max-width:1040px){
	.hdr .menu{
		position:fixed; top:64px; left:0; right:0; bottom:0;
		background:#fff; padding:1.4rem clamp(1rem,4vw,2rem);
		flex-direction:column; align-items:stretch; gap:.4rem;
		overflow-y:auto;
		transform:translateX(100%); transition:transform .3s ease;
		z-index:99; box-shadow:-8px 0 24px rgba(15,29,61,.08);
	}
	.hdr.nav-open .menu{display:flex; transform:none}
	.hdr .menu > li > a{
		color:var(--ink); font-size:1.05rem; font-weight:500;
		padding:.9em 1em; border-bottom:1px solid var(--sky-2); border-radius:0;
	}
	.hdr .menu > li > a:hover{background:var(--sky-2)}
	/* Burger → X animation when nav-open */
	.hdr .burger span{transition:.28s}
	.hdr.nav-open .burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
	.hdr.nav-open .burger span:nth-child(2){opacity:0}
	.hdr.nav-open .burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
	.hdr.nav-open .burger span{background:var(--ink)}
	/* When drawer is open, force burger + logo to inked state (so they're visible on white bg) */
	.hdr.nav-open{background:#fff}
	.hdr.nav-open .logo img{filter:none}
	.hdr.nav-open .hdr-search svg{stroke:var(--deep)}
	.hdr.nav-open .hdr-search{background:var(--sky-2);border-color:var(--line)}
}
