/**
 * ==========================================================================
 *    Diganta Travels & Typing — Design tokens
 *    Concept: government stamp meets boarding pass — a ticket/passport
 *    visual language shared by the hero's "boarding pass" card, the
 *    service ticket cards, and the About section's stamp illustration.
 *    Palette is sourced directly from the company logo (indigo plane,
 *    magenta/crimson ribbon, orange sweep) — see the :root block just
 *    below for the exact hex values and what each one is used for.
 *    Fraunces is the display serif (headings), IBM Plex Sans is body
 *    text, and IBM Plex Mono is reserved for reference codes, dates and
 *    anything meant to look "stamped" or machine-printed.
 *    ==========================================================================
 *
 * @format
 */

:root {
  /* ---- Palette sourced from the Diganta logo: indigo plane → magenta
     ribbon → orange sweep, with the crimson typing-hands red as a
     sparing third accent. ---- */
  --navy: #2a2170; /* deep indigo — logo plane / dark sections */
  --navy-2: #1b1550; /* darker indigo — footer / deepest bg */
  --plum: #7b3583; /* mid-ribbon plum, gradient stop */
  --paper: #f6f2ea; /* warm paper background */
  --paper-2: #ffffff; /* card / panel surfaces */
  --gold: #e48b34; /* logo orange — primary accent / buttons */
  --gold-dark: #c36f22; /* orange hover state */
  --stamp-red: #c13a63; /* logo magenta/crimson — secondary accent */
  --teal: #1f6f63; /* functional "confirmed" status colour */
  --ink: #1e1b33;
  --ink-soft: #4e4a63;
  --line: #e1d6dd;

  --brand-gradient: linear-gradient(
    120deg,
    var(--navy) 0%,
    var(--stamp-red) 55%,
    var(--gold) 100%
  );

  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 3px;
  --shadow-card: 0 18px 40px -20px rgba(27, 21, 80, 0.35);
  --shadow-soft: 0 10px 24px -14px rgba(27, 21, 80, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}
p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--stamp-red);
  font-weight: 600;
  margin-bottom: 0.9em;
}
.eyebrow-light {
  color: var(--gold);
}

/* ---------- Buttons ----------
   Two visual variants shared across the whole site: ".btn-gold" (the
   red→orange brand-gradient fill, used for every primary CTA — "Book
   Now", "Send Request", etc.) and ".btn-outline" (a quieter bordered
   variant used for secondary actions like "Start a Typing Service" in
   the hero). ".btn-sm"/".btn-full" only adjust sizing and can combine
   with either variant. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(100deg, var(--stamp-red), var(--gold));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn-outline {
  background: linear-gradient(100deg, var(--stamp-red), var(--gold));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-outline:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.6em 1.2em;
  font-size: 0.85rem;
}
.btn-full {
  width: 100%;
}

/* ==========================================================================
   Header
   Sticky nav bar. ".scrolled" (added by script.js past 30px of scroll)
   shrinks the header height and adds a shadow — see ".site-header.scrolled"
   and ".header-inner" height overrides below. ".brand-logo" is the actual
   logo <img>; ".main-nav"/".nav-toggle" are restyled into an off-canvas
   mobile menu inside the responsive section further down this file.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(237, 231, 217, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition:
    box-shadow 0.25s ease,
    padding 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -18px rgba(11, 28, 46, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
  transition: height 0.25s ease;
}
.site-header.scrolled .header-inner {
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-word em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp-red);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.3em 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--stamp-red);
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--stamp-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   First-view section. ".boarding-pass" is the signature ticket/passport
   card visual (its "Service"/"Status" text is cycled by script.js);
   ".stats-strip" is the counter row directly beneath the hero, whose
   numbers animate up from 0 via script.js's IntersectionObserver.
   ========================================================================== */
.hero {
  background: linear-gradient(
    155deg,
    var(--navy) 0%,
    var(--navy) 55%,
    var(--plum) 100%
  );
  color: var(--paper-2);
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(228, 139, 52, 0.14),
      transparent 40%
    ),
    radial-gradient(circle at 85% 75%, rgba(193, 58, 99, 0.2), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4.5rem;
}
.hero-copy h1 {
  color: var(--paper-2);
}
.hero .eyebrow {
  color: var(--gold);
}
.hero-sub {
  color: #c7cfd9;
  max-width: 46ch;
  font-size: 1.05rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.6rem;
}
.hero-trust {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9faab8;
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
}
.hero-trust strong {
  color: var(--gold);
}
.hero-trust .dot {
  opacity: 0.5;
}

/* boarding pass card */
.hero-visual {
  display: flex;
  justify-content: center;
}
.boarding-pass {
  background: var(--paper-2);
  color: var(--ink);
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transform: rotate(2.5deg);
  overflow: hidden;
}
.bp-top {
  padding: 1.6rem 1.5rem 1.2rem;
}
.bp-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}
.bp-city {
  display: flex;
  flex-direction: column;
}
.bp-city-end {
  align-items: flex-end;
  text-align: right;
}
.bp-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.bp-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.bp-plane {
  flex: 1;
  color: var(--stamp-red);
  padding: 0 0.8rem;
}
.bp-plane svg {
  width: 100%;
  height: 20px;
}
.bp-line {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.bp-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}
.bp-fields div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.f-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.f-value {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.f-value.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}
.bp-status {
  color: var(--teal);
}

.bp-perforation {
  height: 0;
  border-top: 2px dashed var(--line);
  position: relative;
}
.bp-perforation::before,
.bp-perforation::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  background: var(--navy);
  border-radius: 50%;
}
.bp-perforation::before {
  left: -9px;
}
.bp-perforation::after {
  right: -9px;
}

.bp-stub {
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.bp-stub div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.bp-barcode {
  height: 26px;
  width: 110px;
  color: var(--navy);
}

/* stats strip */
.stats-strip {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.9rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  display: inline;
}
.stat-plus {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
}
.stat-label {
  font-size: 0.78rem;
  color: #9faab8;
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Sections generic
   Shared section wrappers used across every content block below: plain
   ".section" (paper background), ".section-alt" (white panel with top/
   bottom hairlines, used for alternating stripes down the page), and
   ".section-dark" (indigo gradient, used for Contact). ".section-head"
   is the reusable eyebrow+heading+intro block at the top of each one.
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}
.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--paper-2);
}
.section-dark h2 {
  color: var(--paper-2);
}
.section-dark p {
  color: #c7cfd9;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-sub {
  font-size: 1.05rem;
}

/* ---------- About ----------
   Two-column layout: ".stamp-illustration" is the curved-text SVG stamp
   graphic (its text rides the #sealCirclePath defined at the top of
   index.html); ".about-points" is the small checklist under the copy. */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.stamp-illustration {
  width: 100%;
  max-width: 280px;
  color: var(--stamp-red);
}
.stamp-ring-outer {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.stamp-ring-inner {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.stamp-arc-text {
  font-family: var(--font-mono);
  font-size: 8.4px;
  letter-spacing: 1.5px;
  fill: currentColor;
}
.stamp-center-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  fill: currentColor;
}
.stamp-center-2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  fill: currentColor;
}

.about-points {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.about-points li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--teal);
  font-weight: 700;
}
.about-points strong {
  color: var(--navy);
}

/* ---------- Services (tabs + ticket cards) ----------
   ".tab-btn"/".tab-panel" are toggled by script.js's "Service tabs"
   block — only one ".tab-panel.active" is ever displayed at a time.
   ".ticket-card" is the reusable ticket-stub card used for every single
   service (both Travel and Government tabs share this same component). */
.tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--navy);
  color: var(--paper-2);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.ticket-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.section .ticket-card {
  background: #fff;
}
.ticket-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.ticket-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--stamp-red);
  border: 1px dashed var(--stamp-red);
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.ticket-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Process ----------
   Static 4-step "How It Works" cards; purely presentational, no JS. */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-step {
  position: relative;
  padding-top: 1rem;
  border-top: 3px solid var(--gold);
}
.process-num {
  font-family: var(--font-mono);
  color: var(--gold-dark);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Destinations ----------
   Static route cards ("Popular Routes"); purely presentational, no JS. */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.dest-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.dest-route {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--stamp-red);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.dest-city {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  margin-top: 0.3rem;
}

/* ---------- Testimonials ----------
   ".testi-track" is the sliding strip script.js moves via a CSS
   transform (translateX); ".testi-dots" is populated dynamically in JS
   to match however many ".testi-card" slides exist in the markup. */
.testi-carousel {
  max-width: 760px;
  margin: 0 auto;
}
.testi-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.testi-card {
  flex: 0 0 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.4rem 2.2rem;
  text-align: center;
}
.testi-card p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}
.testi-who {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
}
.testi-who strong {
  color: var(--stamp-red);
  font-size: 0.95rem;
}
.testi-who span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.testi-controls button {
  background: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.testi-controls button:hover {
  background: var(--navy);
  color: var(--paper-2);
}
.testi-dots {
  display: flex;
  gap: 0.5rem;
}
.testi-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.testi-dots span.active {
  background: var(--stamp-red);
  transform: scale(1.3);
}

/* ---------- Blog ----------
   ".blog-filters"/".blog-grid"/".blog-card" style the article grid,
   which script.js renders entirely from its `posts` data array — see
   "BLOG: data, render, filter, modal" in script.js. ".modal-overlay"/
   ".modal-card" further below style the full-article popup. */
.blog-filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.55em 1.2em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--stamp-red);
  border-color: var(--stamp-red);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.blog-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.blog-thumb span {
  font-family: var(--font-mono);
  color: rgba(199, 154, 60, 0.5);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stamp-red);
}
.blog-body h3 {
  margin: 0;
  font-size: 1.1rem;
}
.blog-excerpt {
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}
.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
}
.blog-read {
  color: var(--stamp-red);
  font-weight: 600;
}

/* Blog modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 28, 46, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--paper-2);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  padding: 3rem 2.6rem 2.6rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-card {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
}
.modal-close:hover {
  color: var(--stamp-red);
}
.modal-body .blog-tag {
  margin-bottom: 0.6rem;
  display: inline-block;
}
.modal-body h3 {
  font-size: 1.6rem;
}
.modal-body .blog-meta {
  margin-bottom: 1.4rem;
  justify-content: flex-start;
  gap: 1.2rem;
}
.modal-body p {
  color: var(--ink-soft);
}

/* ---------- FAQ ----------
   Single-open accordion — ".acc-item.active" reveals its ".acc-panel"
   via a max-height transition; only one item is ever open (enforced in
   script.js's "FAQ accordion" block, not by CSS). */
.faq-wrap {
  max-width: 800px;
}
.acc-item {
  border-bottom: 1px solid var(--line);
}
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.acc-icon {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--stamp-red);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.acc-item.active .acc-icon {
  transform: rotate(45deg);
}
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-item.active .acc-panel {
  max-height: 220px;
}
.acc-panel p {
  padding-bottom: 1.3rem;
  margin: 0;
}

/* ---------- Contact ----------
   ".contact-list" is the static business-info column; ".contact-form"
   is validated client-side in script.js — see the comment on
   "Contact form validation" there for the Netlify-submission caveat. */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}
.contact-sub {
  max-width: 40ch;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.c-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.c-value {
  font-size: 0.98rem;
  color: var(--paper-2);
}

.contact-form {
  background: var(--paper-2);
  border-radius: 8px;
  padding: 2.4rem;
  color: var(--ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8em 0.9em;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-dark);
  outline: none;
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: var(--stamp-red);
}
.field-error {
  font-size: 0.76rem;
  color: var(--stamp-red);
  min-height: 1em;
  font-family: var(--font-mono);
}
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9em 1.1em;
  background: rgba(31, 111, 99, 0.12);
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-success.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   Footer
   Four-column layout (brand+social, quick links, services, newsletter).
   See "Footer social" below for the redesigned icon badges, and
   script.js's "Newsletter form" comment for its client-side-only caveat.
   ========================================================================== */
.site-footer {
  background: linear-gradient(
    160deg,
    var(--navy-2) 0%,
    var(--navy-2) 70%,
    #2b1e4f 100%
  );
  color: #b9c2ce;
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-word {
  color: var(--paper-2);
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 32ch;
}
/* ---------- Footer social — redesigned as brand-gradient icon badges ----------
   Previously this relied on Font Awesome <i> classes, but no Font Awesome
   stylesheet was ever linked in the page, so the icons silently rendered
   as empty boxes. Replaced with self-contained inline SVGs (same approach
   as the floating WhatsApp button) so the icons always render with zero
   external dependencies or extra network requests. */
.footer-social-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 1.4rem 0 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.footer-social-icons {
  display: flex;
  gap: 0.7rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9c2ce;
  background: transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.social-icon svg {
  width: 18px;
  height: 18px;
}
.social-icon:hover,
.social-icon:focus-visible {
  color: #fff;
  border-color: transparent;
  background: var(--brand-gradient);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.footer-col h4 {
  color: var(--paper-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  color: #b9c2ce;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-newsletter p {
  font-size: 0.85rem;
}
#newsletterForm {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
#newsletterForm input {
  flex: 1;
  padding: 0.7em 0.8em;
  border-radius: var(--radius);
  border: 1px solid #2c4358;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
}
#newsletterForm button {
  background: var(--gold);
  border: none;
  padding: 0 1.1em;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy-2);
}
.news-success {
  display: none;
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.6rem;
}
.news-success.show {
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid #1e3348;
  padding: 1.4rem 0;
  font-size: 0.8rem;
}
.footer-bottom p {
  margin: 0;
  color: #7c8aa0;
}

/* ==========================================================================
   Floating buttons
   Both fixed-position, outside normal document flow. #waFloat's href is
   rewritten on load by script.js with the real WhatsApp number (edit it
   there, not here); #back-top fades in past 500px of scroll — see
   script.js's "onScroll"/"Back to top" blocks for both behaviours.
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}

.back-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper-2);
  border: none;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ==========================================================================
   Reveal-on-scroll
   Any element with class ".reveal" starts hidden/offset and gets ".in"
   added by script.js's IntersectionObserver the first time it scrolls
   into view, which triggers this fade+slide transition exactly once.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   Breakpoints are chosen to land inside the gaps between real device
   widths (small laptops → tablets → phablets → standard phones → compact
   phones → the smallest phones still in common use) rather than one or
   two arbitrary round numbers, plus a landscape-phone and safe-area pass.
   ========================================================================== */

/* Small laptops / tablet landscape — iPad landscape, Surface, 13" laptops */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    order: -1;
  }
  .ticket-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem 1.6rem;
  }
  .dest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet portrait — iPad 768–834, Android tablets, small laptops in a split view */
@media (max-width: 900px) {
  .wrap {
    padding: 0 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .about-grid {
    gap: 3rem;
  }
}

/* Mobile nav breakpoint — hamburger takes over. Covers iPad Mini portrait
   down through large phones in landscape */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--paper-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 28px 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 400;
    max-height: 85vh;
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-sm {
    display: none;
  }
  .ticket-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .back-top {
    right: 24px;
    bottom: 90px;
  }
  .section {
    padding: 3.6rem 0;
  }
}

/* Large phones / phablets portrait — iPhone Pro Max, Galaxy S/Note Ultra,
   most phones held in one hand at their widest common size */
@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .boarding-pass {
    max-width: 100%;
    transform: rotate(1.2deg);
  }
  .dest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .testi-card {
    padding: 2rem 1.6rem;
  }
  .contact-form {
    padding: 1.8rem;
  }
}

/* Standard phones — iPhone 12–16 (390), Pixel (393–412), Galaxy S (360–384) */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
  h2 {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  }
  .section {
    padding: 3.2rem 0;
  }
  .bp-fields {
    grid-template-columns: 1fr 1fr;
  }
  .bp-fields div:nth-child(3) {
    grid-column: 1 / -1;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 1.5rem 0.8rem;
  }
  .dest-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testi-card p {
    font-size: 1.08rem;
  }
  .modal-card {
    padding: 2.2rem 1.4rem 2rem;
  }
  .modal-card {
    max-height: 90vh;
  }
}

/* Compact phones — iPhone SE / mini (375), small Android (360–375) */
@media (max-width: 400px) {
  .wrap {
    padding: 0 16px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-word {
    font-size: 1.08rem;
  }
  .brand-word em {
    font-size: 0.52rem;
  }
  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35em;
  }
  .hero-trust .dot {
    display: none;
  }
  .bp-route {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }
  .bp-plane {
    order: 3;
    flex-basis: 100%;
    padding: 0;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  .back-top {
    width: 40px;
    height: 40px;
    right: 76px;
    bottom: 18px;
    font-size: 1rem;
  }
  .footer-grid {
    padding-bottom: 2.4rem;
  }
}

/* Small / older phones — iPhone 5/SE 1st-gen (320), budget Android (320–360) */
@media (max-width: 340px) {
  h1 {
    font-size: 1.65rem;
  }
  .eyebrow {
    font-size: 0.68rem;
  }
  .btn {
    padding: 0.8em 1.1em;
    font-size: 0.86rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .dest-grid {
    grid-template-columns: 1fr;
  }
  .bp-fields {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .bp-fields div:nth-child(3) {
    grid-column: auto;
  }
  .ticket-card {
    padding: 1.4rem 1.2rem;
  }
}

/* Phones in landscape — short viewport height regardless of width, so the
   fixed mobile nav and sticky header don't eat the whole screen */
@media (max-height: 430px) and (orientation: landscape) {
  .site-header .header-inner {
    height: 58px;
  }
  .hero {
    padding-top: 3.2rem;
  }
  .hero-grid {
    padding-bottom: 1.8rem;
    gap: 1.2rem;
  }
  .main-nav {
    top: 58px;
    max-height: 78vh;
    padding-top: 1rem;
  }
  .stats-grid {
    padding: 0;
  }
  .stat {
    padding: 1.2rem 1rem;
  }
}

/* Foldables / very narrow widths (Galaxy Fold cover screen ≈280–320) */
@media (max-width: 300px) {
  .wrap {
    padding: 0 12px;
  }
  h1 {
    font-size: 1.45rem;
  }
  .hero-sub {
    font-size: 0.92rem;
  }
  .btn {
    font-size: 0.8rem;
    padding: 0.75em 1em;
  }
}

/* Notched phones and gesture-bar Android — keep floating controls and the
   footer clear of the safe area instead of sitting under the system UI */
@supports (padding: max(0px)) {
  .whatsapp-float {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .back-top {
    right: max(92px, calc(92px + env(safe-area-inset-right)));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .footer-bottom {
    padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
  }
}

/* High-DPI phone screens — keep hairline borders crisp rather than blurry */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .ticket-card,
  .dest-card,
  .blog-card,
  .acc-item {
    border-width: 1px;
  }
}
