/* ==========================================================================
   Front page — landing page design system
   --------------------------------------------------------------------------
   Builds on the theme's existing tokens (--swtt-primary green, --swtt-gold,
   --swtt-cream) rather than replacing them — this is a working business's
   brand, not a blank canvas. Adds:
     - a "rust" tertiary accent (elevated from the existing button hover
       brown, #72380f, into a proper named token used with restraint)
     - a Helderberg ridge-line motif: Somerset West sits at the foot of
       that mountain, and the routes on offer (Winelands, Peninsula) run
       through it — the one signature element, reused sparingly
     - IBM Plex Mono (already loaded, previously unused) for eyebrows and
       stat numerals, so the "data" face actually gets used
     - restrained scroll-reveal + a single orchestrated hero entrance
   ========================================================================== */

:root {
  --swtt-rust: #8A4426;
  --swtt-ink: #10140F;
  --swtt-ink-soft: rgba(16, 20, 15, 0.72);
}

/* ---- Section rhythm -------------------------------------------------- */

.swtt-lp-section {
  padding: 64px 20px;
}

.swtt-lp-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.swtt-lp-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.swtt-lp-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.swtt-lp-heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--swtt-gold);
}

.swtt-lp-header {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

/* ---- Ridge-line divider (signature motif) ----------------------------
   One hand-drawn mountain silhouette, reused at three intensities:
   the hero base (full strength), a mid-page divider (faint watermark),
   and behind the closing CTA (faint watermark, flipped). */

.swtt-ridge {
  display: block;
  width: 100%;
  height: auto;
}

.swtt-ridge path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swtt-ridge.swtt-ridge-draw path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: swtt-ridge-draw 1.8s 0.3s cubic-bezier(.25,.1,.25,1) forwards;
}

@keyframes swtt-ridge-draw {
  to { stroke-dashoffset: 0; }
}

.swtt-ridge-divider {
  color: var(--swtt-border);
  opacity: 0.9;
  margin: 0 auto;
  max-width: 1100px;
}

/* The hero's own ridge line — drawn against the dark hero, not the page's
   default near-black body text color, or it's invisible. */
.swtt-lp-hero .swtt-ridge {
  color: rgba(232, 201, 158, 0.4);
  position: relative;
  z-index: 2;
  margin-top: 32px;
}

.swtt-ridge-watermark {
  position: absolute;
  inset: auto 0 0 0;
  color: rgba(247, 244, 236, 0.06);
  pointer-events: none;
  z-index: 0;
}

/* ---- Hero -------------------------------------------------------------- */

.swtt-lp-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 56px;
  overflow: hidden;
  background-color: var(--swtt-ink);
  background-image:
    linear-gradient(180deg, rgba(16,20,15,0.60) 0%, rgba(16,20,15,0.42) 42%, rgba(16,20,15,0.88) 86%, var(--swtt-ink) 100%),
    var(--swtt-hero-image);
  background-size: cover;
  background-position: center;
}

.swtt-lp-hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.swtt-lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 154, 62, 0.14);
  border: 1px solid rgba(201, 154, 62, 0.4);
  color: #E8C99E;
  padding: 6px 16px 6px 14px;
  border-radius: 20px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  opacity: 0;
}

.swtt-lp-hero-eyebrow::before { content: none; }

.swtt-lp-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(34px, 6.4vw, 60px);
  font-weight: 600;
  color: #F7F4EC;
  margin: 0 0 18px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.swtt-lp-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #E8C99E;
}

.swtt-lp-hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
}

.swtt-lp-hero p.swtt-lp-hero-sub {
  color: rgba(250, 249, 246, 0.86);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.55;
  opacity: 0;
}

.swtt-lp-hero p.swtt-lp-hero-context {
  color: rgba(250, 249, 246, 0.68);
  font-size: clamp(13px, 1.6vw, 15px);
  max-width: 480px;
  margin: -14px auto 24px;
  line-height: 1.5;
  opacity: 0;
}

.swtt-lp-hero-trust {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(250, 249, 246, 0.68);
  margin-bottom: 30px;
  opacity: 0;
}

.swtt-lp-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
  opacity: 0;
}

.swtt-lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--swtt-radius-md);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.swtt-lp-btn-solid {
  background: var(--swtt-gold);
  color: #1A1A1A;
}
.swtt-lp-btn-solid:hover { background: #dcae55; transform: translateY(-2px); }

.swtt-lp-btn-outline {
  background: rgba(247, 244, 236, 0.06);
  border: 1px solid rgba(247, 244, 236, 0.32);
  color: #F7F4EC;
}
.swtt-lp-btn-outline:hover { border-color: rgba(247, 244, 236, 0.6); transform: translateY(-2px); }

.swtt-lp-hero-track {
  display: block;
  font-size: 12px;
  color: rgba(250, 249, 246, 0.6);
  text-decoration: underline;
  text-decoration-color: rgba(250, 249, 246, 0.3);
  text-underline-offset: 3px;
  opacity: 0;
}
.swtt-lp-hero-track:hover { color: #F7F4EC; }

/* Hero entrance — one orchestrated sequence, then done */
.swtt-lp-hero.swtt-lp-animate .swtt-lp-hero-eyebrow { animation: swtt-rise 0.7s 0.15s ease forwards; }
.swtt-lp-hero.swtt-lp-animate .swtt-lp-hero-word { animation: swtt-rise 0.7s ease forwards; }
.swtt-lp-hero.swtt-lp-animate p.swtt-lp-hero-sub { animation: swtt-rise 0.7s 0.65s ease forwards; }
.swtt-lp-hero.swtt-lp-animate p.swtt-lp-hero-context { animation: swtt-rise 0.7s 0.74s ease forwards; }
.swtt-lp-hero.swtt-lp-animate .swtt-lp-hero-trust { animation: swtt-rise 0.7s 0.86s ease forwards; }
.swtt-lp-hero.swtt-lp-animate .swtt-lp-hero-cta { animation: swtt-rise 0.7s 0.98s ease forwards; }
.swtt-lp-hero.swtt-lp-animate .swtt-lp-hero-track { animation: swtt-rise 0.7s 1.1s ease forwards; }

@keyframes swtt-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Three-way fork — frosted glass, overlapping the hero base -------- */

.swtt-lp-fork-wrap {
  background: var(--swtt-ink);
  padding: 8px 20px 52px;
  position: relative;
}

.swtt-lp-fork-eyebrow {
  text-align: center;
  color: rgba(232, 201, 158, 0.85);
  margin-bottom: 20px;
}

.swtt-lp-fork-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.swtt-lp-fork {
  /* Five choices (Rent, Tours, Luxury, Home Drive, Track): three across then
     a centred pair, instead of an orphaned fifth card. Four choices (Home
     Drive switched off) fall into a clean two-by-two. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.swtt-lp-fork > .swtt-lp-fork-card {
  flex: 1 1 280px;
  max-width: calc(33.333% - 11px);
}
.swtt-lp-fork:has(> :nth-child(4):last-child) > .swtt-lp-fork-card {
  max-width: calc(50% - 8px);
}
@media (max-width: 860px) {
  .swtt-lp-fork > .swtt-lp-fork-card,
  .swtt-lp-fork:has(> :nth-child(4):last-child) > .swtt-lp-fork-card {
    max-width: calc(50% - 8px);
    flex-basis: 240px;
  }
}
@media (max-width: 600px) {
  .swtt-lp-fork > .swtt-lp-fork-card,
  .swtt-lp-fork:has(> :nth-child(4):last-child) > .swtt-lp-fork-card {
    max-width: 100%;
    flex-basis: 100%;
  }
}

.swtt-lp-fork-card {
  background: rgba(247, 244, 236, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(247, 244, 236, 0.18);
  border-radius: var(--swtt-radius-lg);
  padding: 26px 22px;
  text-decoration: none;
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.swtt-lp-fork-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 154, 62, 0.55);
  background: rgba(247, 244, 236, 0.12);
}

.swtt-lp-fork-icon {
  width: 34px;
  height: 34px;
  color: #E8C99E;
  margin-bottom: 14px;
}

.swtt-lp-fork-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: #F7F4EC;
  font-size: 19px;
  margin: 0 0 6px;
}

.swtt-lp-fork-card p {
  color: rgba(247, 244, 236, 0.72);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.swtt-lp-fork-card span {
  color: #E8C99E;
  font-weight: 700;
  font-size: 13px;
}

/* ---- Trust strip --------------------------------------------------- */

.swtt-lp-trust {
  position: relative;
  background: var(--swtt-ink);
  padding: 52px 20px 40px;
  overflow: hidden;
}

.swtt-lp-trust-grid {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.swtt-lp-trust-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: #F7F4EC;
}

.swtt-lp-trust-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.55);
  margin-top: 4px;
}

/* ---- Closing section ------------------------------------------------ */

.swtt-lp-close {
  position: relative;
  background: var(--swtt-cream-surface);
  padding: 64px 20px;
  text-align: center;
  overflow: hidden;
}

.swtt-lp-close-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.swtt-lp-close .swtt-ridge-watermark {
  color: rgba(26, 26, 26, 0.05);
}

/* ---- Scroll reveal --------------------------------------------------- */

.swtt-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.swtt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .swtt-lp-hero-eyebrow, .swtt-lp-hero-word, .swtt-lp-hero p.swtt-lp-hero-sub, .swtt-lp-hero p.swtt-lp-hero-context,
  .swtt-lp-hero-trust, .swtt-lp-hero-cta, .swtt-lp-hero-track,
  .swtt-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .swtt-ridge.swtt-ridge-draw path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
}

@media (max-width: 600px) {
  .swtt-lp-section { padding: 48px 16px; }
  .swtt-lp-fork-wrap { padding: 4px 16px 40px; }
}

/* ---- Fact chips (Fleet / Tours section intros) ------------------------- */

.lp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--swtt-cream-surface);
  border: 1px solid var(--swtt-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.lp-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--swtt-primary);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* ---- Testimonials ------------------------------------------------------ */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--swtt-border);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.testi-stars {
  color: var(--swtt-gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testi-quote {
  font-size: 13.5px;
  line-height: 1.65;
  color: #333;
  margin: 0 0 16px;
  flex-grow: 1;
}

.testi-name {
  font-weight: 700;
  font-size: 13px;
  color: #1A1A1A;
}

.testi-context {
  font-size: 11.5px;
  color: #888;
  margin-top: 2px;
}

/* ---- Sticky mobile booking bar ------------------------------------------
   Fixed to the viewport bottom, mobile-only (matches the 960px breakpoint
   the header nav already switches at). Starts translated fully off-screen;
   front-page-motion.js adds .is-visible once the hero has scrolled out of
   view, so it never fights with the hero's own CTAs for attention. */

.swtt-lp-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 24, 26, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.swtt-lp-sticky-cta.is-visible {
  transform: translateY(0);
}

.swtt-lp-sticky-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: var(--swtt-radius-md);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.swtt-lp-sticky-btn-solid {
  background: var(--swtt-gold);
  color: #1A1A1A;
}

.swtt-lp-sticky-btn-wa {
  background: #25D366;
  color: #fff;
}

.swtt-lp-sticky-btn-wa svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

@media (min-width: 960px) {
  .swtt-lp-sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .swtt-lp-sticky-cta { transition: none; }
}

@media (max-width: 959px) {
  body.front-page footer {
    padding-bottom: calc(20px + 64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- Tools & Features grid (elevated pass) ---- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.feat-card {
  background: #fff;
  border: 1px solid var(--swtt-border);
  border-radius: 16px;
  padding: 22px;
}
.feat-card svg {
  width: 26px;
  height: 26px;
  stroke: var(--swtt-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  margin: 12px 0 6px;
}
.feat-card p {
  font-size: 12.5px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
.feat-card a.more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--swtt-primary);
  text-decoration: none;
}

/* ---- Executive Transfers teaser (homepage) ----------------------------- */

.swtt-lp-exec-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.swtt-lp-exec-teaser-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--swtt-radius-lg, 16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: block;
}
.swtt-lp-exec-teaser-btn {
  box-sizing: border-box;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--swtt-dark, #1a1a1a);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.swtt-lp-exec-teaser-btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .swtt-lp-exec-teaser-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
  }
  .swtt-lp-exec-teaser-img {
    height: 200px;
  }
  .swtt-lp-exec-teaser-copy p {
    max-width: none !important;
  }
  .swtt-lp-exec-teaser-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Home Drive teaser (homepage, directly under Executive Transfers) ---- */

.swtt-lp-hd-teaser-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.swtt-lp-hd-teaser-art {
  background: var(--swtt-ink, #14181A);
  border-radius: var(--swtt-radius-lg, 16px);
  height: 260px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.swtt-lp-hd-teaser-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 600px) {
  .swtt-lp-hd-teaser-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
  }
  .swtt-lp-hd-teaser-art {
    height: 200px;
  }
  .swtt-lp-hd-teaser-copy p {
    max-width: none !important;
  }
}

/* No-JS safety: never leave revealed content hidden if scripting is off. */
@media (scripting: none) {
  .swtt-reveal { opacity: 1; transform: none; }
}


/* ---- Landing page: the complete fleet and tours in place (Book hub, stack mode) ---- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.swtt-lp-book .swtt-bh-stack {
  --swtt-bh-top: 68px; /* clears the sticky site header */
  padding-left: 0;
  padding-right: 0;
}
#luxury, #home-drive {
  scroll-margin-top: 84px;
}

/* ---- Mobile breathing room (4.32.1) ---- */
@media (max-width: 959px) {
  /* The fixed Book Now / WhatsApp bar no longer hides the end of the page. */
  body:has(.swtt-lp-sticky-cta) { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .swtt-lp-fork-card { padding-top: 18px; padding-bottom: 18px; }
}
