@layer theme, base, components, utilities;

@layer components {
/* ---- shared base (from niches/_shared/base.css) ---- */
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; stroke-width: 1.75; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; will-change: transform; }
.js .film [data-in]:not([data-in^="-"]) { opacity: 0; visibility: hidden; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--toast-bg, #111); color: var(--toast-fg, #fff); padding: .85rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .95rem; z-index: 80; transition: transform .5s cubic-bezier(.16,1,.3,1); max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { transform: none !important; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
/* ---- end shared base ---- */

/* =========================================================
   SAFARNAMA TRAVEL & TOURS — Lahore · Karachi · Islamabad
   Layout concept: a dotted night globe that turns from Pakistan to each
   destination (Umrah, the north, Istanbul & Baku, Dubai & Kuala Lumpur)
   while flight arcs draw from LHE / KHI / ISB. Packages are printed as
   boarding passes; the search bar filters them live.
   ========================================================= */
:root {
  --sky: #f1f4fa;          /* page ground */
  --paper: #ffffff;
  --navy: #0b1b3a;         /* ink, globe night */
  --navy-2: #13284f;
  --navy-3: #1d3766;
  --muted: #56627d;
  --sun: #ff6d2e;          /* accent: boarding-pass orange */
  --sun-ink: #d24f14;
  --teal: #0fa596;         /* included / success */
  --line: rgba(11, 27, 58, 0.12);
  --toast-bg: #0b1b3a; --toast-fg: #fff;

  --font-display: "Epilogue", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, Menlo, monospace;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.12rem, 1.04rem + 0.45vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.4rem + 3vw, 3.8rem);
  --step-4: clamp(2.7rem, 1.4rem + 5.4vw, 6.6rem);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: .98; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: #fff; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.code { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-ink); }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.35rem; border-radius: 14px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s; will-change: transform; font-family: var(--font-body); }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: var(--sun-ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { border-color: var(--line); color: var(--navy); background: var(--paper); }
.btn-line:hover { border-color: var(--navy); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); color: #fff; transition: background-color .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(11,27,58,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }
.nav.nav-light { color: var(--navy); }
.nav.nav-light.is-scrolled { background: rgba(241,244,250,.9); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; }
.logo svg { width: 36px; height: 36px; }
.logo small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .56rem; letter-spacing: .18em; opacity: .7; margin-top: 2px; }
.nav-links { display: flex; gap: 1.8rem; font-size: .92rem; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: .82; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: .7rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 16px; height: 1.5px; background: currentColor; transition: transform .3s; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--navy); color: #fff; padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) 40px; display: flex; flex-direction: column; gap: .3rem; transform: translateY(-100%); transition: transform .7s var(--ease); }
.menu-open .mobile-menu { transform: none; }
.menu-open .nav { color: #fff; background: transparent; border-color: transparent; }
.mobile-menu a { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; text-decoration: none; }
@media (max-width: 1000px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 520px) { .nav-right .btn { display: none; } }

/* ---------- Globe film ---------- */
.film { position: relative; height: 600vh; background: var(--navy); color: #fff; }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-bg { position: absolute; inset: 0; background: radial-gradient(45% 60% at 66% 52%, #1d3a73, transparent 70%), radial-gradient(120% 100% at 50% 0%, #0f2350, var(--navy)); }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ch { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(560px, 42vw); z-index: 3; }
.ch[data-ch="0"] { width: min(700px, 52vw); }
.ch h1 { font-size: var(--step-4); }
.ch h2 { font-size: var(--step-3); }
.ch p { margin-top: 1.2rem; font-size: var(--step-1); line-height: 1.55; color: #c3cde2; max-width: 40ch; }
.ch .code { color: #ffb08a; display: block; margin-bottom: 1rem; }
.ch .ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.ch .hl { color: var(--sun); }
.ch .from { margin-top: 1.1rem; font-family: var(--font-mono); font-size: .82rem; color: #fff; display: inline-flex; gap: .6rem; align-items: center; padding: .5rem .8rem; border: 1px dashed rgba(255,255,255,.3); border-radius: 10px; }
.city-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.city { position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: #fff; padding: .2rem .45rem; border-radius: 6px; background: rgba(11,27,58,.7); border: 1px solid rgba(255,255,255,.2); transform: translate(-50%, -150%); white-space: nowrap; opacity: 0; transition: opacity .3s; will-change: transform; }
.city.hub { border-color: var(--sun); }
.board { position: absolute; right: var(--gutter); bottom: 30px; z-index: 3; font-family: var(--font-mono); font-size: .74rem; background: rgba(11,27,58,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .8rem 1rem; min-width: 240px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.board .row { display: grid; grid-template-columns: 1fr auto; gap: .8rem; padding-block: .25rem; }
.board .row span:last-child { color: #ffb08a; text-align: right; }
.board .title { color: #8ea0c4; letter-spacing: .14em; text-transform: uppercase; font-size: .64rem; margin-bottom: .3rem; }
.no-webgl .film canvas { display: none; }
@media (max-width: 860px) {
  .film { height: 520vh; }
  .ch, .ch[data-ch="0"] { width: auto; right: var(--gutter); top: auto; bottom: 150px; transform: none; }
  .ch h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .ch h2 { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .ch p { font-size: 1rem; margin-top: .8rem; }
  .ch .ctas { margin-top: 1.3rem; }
  .film-bg { background: radial-gradient(70% 40% at 50% 28%, #1d3a73, transparent 70%), var(--navy); }
  .board { left: var(--gutter); right: var(--gutter); min-width: 0; bottom: 20px; padding: .6rem .8rem; }
  .board .row:nth-child(n+4) { display: none; }
}

/* Search */
.search { position: relative; z-index: 5; margin-top: -44px; }
.search form { background: var(--paper); border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(11,27,58,.45); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; border: 1px solid var(--line); overflow: hidden; }
.sfield { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-right: 1px solid var(--line); min-width: 0; }
.sfield label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sfield select, .sfield input { border: 0; background: transparent; font: inherit; font-size: 1rem; font-weight: 600; color: var(--navy); padding: .15rem 0; width: 100%; min-width: 0; }
.sfield select:focus, .sfield input:focus { outline: none; }
.sfield:focus-within { background: #f6f8fc; }
.search .btn { border-radius: 0; padding-inline: 1.8rem; }
@media (max-width: 960px) { .search { margin-top: 0; padding-top: 16px; } .search form { grid-template-columns: repeat(2, minmax(0,1fr)); } .sfield:nth-child(2n) { border-right: 0; } .sfield:nth-child(n+3) { border-top: 1px solid var(--line); } .search .btn { grid-column: 1 / -1; padding-block: 1.1rem; } }

/* Sections */
.section { padding-block: clamp(80px, 10vw, 140px); }
.section.flush-top { padding-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem 4rem; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.head h2 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.8rem); margin-top: .9rem; }
.head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 44ch; }
.dark { background: var(--navy); color: #fff; }
.dark .head p { color: #b9c4dc; }
.dark .code { color: #ffb08a; }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0,1fr); } }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.tab { border: 1.5px solid var(--line); background: var(--paper); color: var(--navy); padding: .65rem 1rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; transition: all .25s; }
.tab .n { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--muted); }
.tab[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab[aria-pressed="true"] .n { color: #ffb08a; }

/* Boarding passes */
.passes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pass { --notch: 14px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; background: var(--paper); border-radius: 20px; min-width: 0; filter: drop-shadow(0 18px 30px rgba(11,27,58,.08)); -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 150px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 150px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle var(--notch) at calc(100% - 150px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 150px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.pass[hidden] { display: none !important; }
.pass .main { padding: 1.3rem 1.4rem; display: grid; gap: .9rem; min-width: 0; }
.pass .top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.pass .type { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 6px; background: #fff1ea; color: var(--sun-ink); }
.pass .dur { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.route { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem; }
.route b { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; }
.route small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: .2rem; }
.route .arc { position: relative; height: 24px; }
.route .arc svg { width: 100%; height: 24px; overflow: visible; color: var(--sun); }
.pass h3 { font-size: 1.35rem; letter-spacing: -0.03em; }
.incl { display: flex; flex-wrap: wrap; gap: .35rem; }
.incl span { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 600; padding: .3rem .55rem; border-radius: 8px; background: var(--sky); color: var(--navy); }
.incl .ic { width: 1em; height: 1em; color: var(--teal); }
.pass .stub { border-left: 2px dashed var(--line); padding: 1.3rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; }
.pass .price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
.pass .price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: 0; margin-top: .3rem; }
.pass .barcode { height: 34px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 12px); opacity: .85; }
.pass .stub .btn { padding: .65rem .8rem; font-size: .82rem; border-radius: 10px; }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); grid-column: 1 / -1; }
@media (max-width: 1000px) { .passes { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 520px) { .pass { grid-template-columns: minmax(0,1fr); -webkit-mask: none; mask: none; } .pass .stub { border-left: 0; border-top: 2px dashed var(--line); flex-direction: row; align-items: center; } .pass .barcode { display: none; } }

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.w { border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 1.3rem; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.w .ic-w { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,109,46,.15); color: #ffb08a; }
.w .ic-w .ic { width: 22px; height: 22px; }
.w h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-top: .3rem; }
.w p { color: #b9c4dc; font-size: .92rem; }
.license { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; color: #8ea0c4; }
.license span { border: 1px dashed rgba(255,255,255,.25); border-radius: 8px; padding: .4rem .6rem; }
@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0,1fr); } }

/* Visa */
.visa { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.v { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; min-width: 0; }
.v .flag { width: 44px; height: 32px; border-radius: 6px; flex: none; overflow: hidden; border: 1px solid var(--line); }
.v .flag svg { width: 100%; height: 100%; display: block; }
.v b { display: block; font-size: 1rem; }
.v span { font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .visa { grid-template-columns: minmax(0,1fr); } }

/* Reviews */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.rev { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; display: grid; gap: .9rem; min-width: 0; }
.rev .stars { display: flex; gap: 2px; color: var(--sun); }
.rev .stars .ic { width: 16px; height: 16px; fill: currentColor; }
.rev p { font-size: 1.02rem; line-height: 1.55; }
.rev .who { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }
.rev .who b { color: var(--navy); }
@media (max-width: 960px) { .revs { grid-template-columns: minmax(0,1fr); } }

/* Enquiry */
.enq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
.enq h2 { font-size: var(--step-4); }
.contact { margin-top: 2rem; display: grid; gap: 1rem; }
.contact div { display: flex; gap: .8rem; color: #c3cde2; }
.contact .ic { color: var(--sun); width: 1.3em; height: 1.3em; margin-top: .15em; }
.contact b { color: #fff; display: block; }
.form { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; align-self: start; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #8ea0c4; }
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .8rem .9rem; font: inherit; font-size: 1rem; color-scheme: dark; }
.field select option { background: var(--navy-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); }
.field textarea { min-height: 90px; resize: vertical; }
.form .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: .85rem; color: #8ea0c4; }
.ok { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(15,165,150,.14); border: 1px solid rgba(15,165,150,.45); }
@media (max-width: 960px) { .enq-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 520px) { .form { grid-template-columns: minmax(0,1fr); } }

/* Footer */
.footer { background: var(--navy); color: #b9c4dc; padding-block: 60px 28px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; font-size: .95rem; }
.footer-top h4 { margin: 0 0 .6rem; font-family: var(--font-mono); font-weight: 400; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #ffb08a; }
.footer-top a { display: block; text-decoration: none; padding-block: .15rem; }
.footer-top a:hover { color: #fff; }
.footer-word { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.06em; font-size: clamp(4rem, 19vw, 18rem); line-height: .85; color: #fff; margin-top: 2.5rem; white-space: nowrap; }
.footer-word span { color: var(--sun); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; font-family: var(--font-mono); font-size: .66rem; color: #7c8bab; }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); } }
} /* end @layer components */

/* Unlayered base: wins over any host or reset stylesheet (e.g. preview frames) */
:root { color-scheme: light; }
body { margin: 0; background: var(--sky); color: var(--navy); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
