/* =========================================================
   Sodha Tours & Travels – styles
   Mobile-first. Colours live in :root below.
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F2340;
  --navy-deep: #0A1930;
  --navy-soft: #1A3358;
  --ivory: #F5EFE3;
  --ivory-tint: #EDE4D2;
  --white: #FFFDF8;
  --gold: #C9A24B;
  --gold-light: #DDBE77;
  --ink: #1B2333;
  --muted: #4A5468;
  --on-navy: #F5EFE3;
  --on-navy-muted: #C9CFDA;

  --font-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 35, 64, .06), 0 8px 24px rgba(15, 35, 64, .08);
  --header-h: 64px;
  --bar-h: 64px;
  --gutter: 1rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 7.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: .2em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On light backgrounds use navy focus ring for contrast */
.section:not(.section-navy) :focus-visible { outline-color: var(--navy); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.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: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ivory { background: var(--ivory); color: var(--navy); }
.btn-ivory:hover { background: var(--white); }
.btn-outline-light { border-color: rgba(245, 239, 227, .7); color: var(--ivory); background: transparent; }
.btn-outline-light:hover { border-color: var(--ivory); background: rgba(245, 239, 227, .08); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.btn-row .btn { flex: 1 1 260px; }
@media (min-width: 640px) { .btn-row .btn { flex: 0 0 auto; } }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font-weight: 600;
}
.text-link-light { color: var(--on-navy); }
.text-link-light:hover { color: var(--gold-light); }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ivory);
  font-family: var(--font-head);
  line-height: 1;
  padding: .25rem 0;
}
.wordmark-main { font-size: 1.5rem; font-weight: 800; letter-spacing: .14em; }
.wordmark-sub { font-size: .62rem; font-weight: 700; letter-spacing: .3em; color: var(--gold); margin-top: .3rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--ivory);
  border-bottom: 1px solid rgba(201, 162, 75, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  min-height: var(--header-h);
}
.site-nav { margin-left: auto; }
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .75rem;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.nav-menu a:hover { color: var(--gold-light); }
.header-cta { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 .75rem;
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245, 239, 227, .35);
  border-radius: 10px;
  font: 600 .95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile, no JavaScript: show links as a wrapping row under the wordmark */
@media (max-width: 1023.98px) {
  .no-js .site-nav { flex-basis: 100%; margin: 0 0 .25rem; order: 2; }
  .no-js .header-cta { margin-left: auto; }
  .no-js .nav-menu { display: flex; flex-wrap: wrap; margin-left: -.75rem; }
  .no-js .site-header { position: static; }

  .js .nav-toggle { display: inline-flex; }
  .js .nav-menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy);
    border-bottom: 1px solid rgba(201, 162, 75, .35);
    padding: .5rem var(--gutter) 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  }
  .js .nav-menu.is-open { display: block; }
  .js .nav-menu a { min-height: 48px; font-size: 1.1rem; border-bottom: 1px solid rgba(245, 239, 227, .1); border-radius: 0; padding: 0 .25rem; }
}

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav-menu { display: flex; gap: .25rem; }
}

/* ---------- Hero ----------
   Under 768px the photo sits at the bottom of the hero: the navy overlay is solid
   behind the text and clears over a photo band (--band) below the buttons, so the van stays visible.
   From 768px the photo fills the right half and fades into navy behind the text. */
.hero {
  --band: clamp(17rem, 84vw, 24rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  padding: 3.5rem 0 var(--band);
}
.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--band) + 8rem);
  object-fit: cover;
  object-position: 70% 100%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    var(--navy) 0%,
    var(--navy) calc(100% - var(--band) - 1rem),
    rgba(15, 35, 64, .45) calc(100% - var(--band) + 3rem),
    rgba(15, 35, 64, 0) calc(100% - var(--band) + 7rem));
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero-content { max-width: 1160px; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
  margin-bottom: 1rem;
}
.hero-text { font-size: 1.125rem; max-width: 58ch; color: var(--on-navy); }

@media (min-width: 768px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-bg { top: 0; left: auto; width: 50%; height: 100%; object-position: 50% 62%; }
  .hero::after {
    background: linear-gradient(90deg,
      var(--navy) 0%,
      var(--navy) 52%,
      rgba(15, 35, 64, .55) 62%,
      rgba(15, 35, 64, 0) 78%);
  }
  .hero-content > * { max-width: min(560px, 48vw); }
  .hero h1 { max-width: min(600px, 48vw); font-size: clamp(2rem, 4.6vw, 3.6rem); }
  .hero-text { font-size: 1.2rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 6rem 0 7rem; }
  .hero-bg { width: 55%; }
  .hero::after {
    background: linear-gradient(90deg,
      var(--navy) 0%,
      var(--navy) 48%,
      rgba(15, 35, 64, .55) 60%,
      rgba(15, 35, 64, 0) 75%);
  }
  .hero-content > * { max-width: min(560px, 44vw); }
  .hero h1 { max-width: min(600px, 45vw); }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; scroll-margin-top: var(--header-h); }
.section-tint { background: var(--ivory-tint); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2 { color: var(--white); }
.lead { font-size: 1.125rem; max-width: 60ch; }
.note { color: var(--muted); max-width: 60ch; margin-top: 1.75rem; }
.section-cta { margin-top: 2rem; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card p:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.dest-mark {
  display: block;
  width: 56px;
  height: 28px;
  margin-bottom: 1rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28'%3E%3Cpath d='M2 26 L17 8 L26 18 L35 4 L54 26' fill='none' stroke='%23C9A24B' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

.strip {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  border-left: 5px solid var(--gold);
}
.strip p { margin: 0; }
.strip strong { color: var(--white); }
.strip-icon { color: var(--gold); width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.strip-alt { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.strip-alt strong { color: var(--navy); }
.strip-alt .strip-icon { color: var(--navy); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.step { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.step p { margin: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font: 800 1.1rem var(--font-head);
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- Vehicles ---------- */
.cards-vehicles { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards-vehicles { grid-template-columns: repeat(auto-fill, minmax(300px, 400px)); } }
.vehicle-card { padding: 0; overflow: hidden; }
.vehicle-media { aspect-ratio: 3 / 2; background: var(--navy); }
.vehicle-media img, .vehicle-card picture img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-body { padding: 1.25rem 1.5rem 1.5rem; }
.vehicle-body h3 { margin-bottom: .35rem; }
.vehicle-seats { font-weight: 700; color: var(--navy); }

/* ---------- Fleet photo ---------- */
.fleet-photo { display: block; margin: 1.5rem 0 2rem; }
.fleet-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- About ---------- */
.about { display: grid; gap: 1.5rem; align-items: center; }
.about-photo { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 320px; }
@media (min-width: 768px) { .about:has(.about-photo) { grid-template-columns: 320px 1fr; gap: 3rem; } }

/* ---------- Gallery ---------- */
.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }
/* Mobile: two portrait photos side by side, the third full width */
.gallery li:nth-child(3n):last-child { grid-column: 1 / -1; }
.gallery li:nth-child(3n):last-child img { aspect-ratio: 3 / 2; object-position: 50% 52%; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .gallery li:nth-child(3n):last-child { grid-column: auto; }
  .gallery li:nth-child(3n):last-child img { aspect-ratio: 3 / 4; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.faq-list details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 1rem 3.25rem 1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: .65rem;
  height: .65rem;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { margin: 0; padding: 0 1.25rem 1.25rem; }

/* ---------- Contact ---------- */
.contact { max-width: 760px; text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact-actions { display: grid; gap: .85rem; margin: 2rem 0 1.25rem; }
.contact-insta { margin: 0; }
.contact-base { color: var(--on-navy-muted); margin: 1rem 0 0; }
@media (min-width: 640px) { .contact-actions { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 3rem 0 2rem; font-size: .95rem; }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand p { margin: .75rem 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-links .icon { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(245, 239, 227, .12); padding-top: 1.5rem; }
.footer-legal p { margin: 0 0 .75rem; }
.privacy { max-width: 70ch; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- Mobile contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  /* Footer gets extra bottom space so the fixed bar never covers content or the footer */
  .site-footer { padding-bottom: calc(2rem + var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    min-height: var(--bar-h);
    padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--navy);
    border-top: 1px solid rgba(201, 162, 75, .4);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .18);
    transition: transform .25s ease;
  }
  .mobile-bar .btn { min-height: 48px; padding: .5rem; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
}

/* ---------- Reveal on scroll (only when script.js is running, and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
