/* ===========================================
   ANGELES TOURS — THEME.CSS
   Brand colors: Deep Ocean Blue + Electric Azure
   Design: Premium editorial, Fraunces + Manrope
   =========================================== */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  --ink:        #0F2B38;   /* deep ocean blue */
  --ink-soft:   #1B3F50;
  --sand:       #F1ECDC;   /* warm cream background */
  --sand-deep:  #E1D6B8;
  --seafoam:    #4FC7C2;   /* electric azure accent */
  --marine:     #2D6FA3;   /* secondary blue */
  --teal:       #1F6B63;
  --cream-text: #F1ECDC;
  --ink-text:   #181E22;
  --line:       rgba(24,30,34,0.14);
  --line-cream: rgba(241,236,220,0.22);

  --font-display: 'Fraunces', serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --max-w: 1180px;
  --radius: 18px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--sand);
  color: var(--ink-text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
button, input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- LAYOUT UTILITIES ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--marine);
  display: inline-block;
}

/* Section heading block */
.head { max-width: 640px; margin-bottom: 48px; }
.head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 14px; line-height: 1.12; }
.head p { margin-top: 16px; color: rgba(24,30,34,0.68); font-size: 1.05rem; }
.head.on-dark p { color: rgba(241,236,220,0.72); }
.head.on-dark .eyebrow { color: var(--seafoam); }
.head.on-dark h2 { color: var(--cream-text); }

/* Focus ring */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- SCROLL PROGRESS BAR ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--marine), var(--seafoam));
  z-index: 9999; transition: width 0.08s linear;
}

/* ---------- NAVBAR ---------- */
.at-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(241,236,220,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.at-nav.scrolled { box-shadow: 0 8px 24px -16px rgba(15,43,56,0.28); }
.at-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  transition: padding 0.25s ease;
}
.at-nav.scrolled .wrap { padding-top: 12px; padding-bottom: 12px; }

/* Logo */
.at-logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; gap: 9px;
  color: var(--ink-text);
}
.at-logo .halo {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--seafoam);
  box-shadow: 0 0 0 3px rgba(79,199,194,0.25);
  flex-shrink: 0;
}

/* Nav links */
.at-nav-links { display: flex; gap: 32px; align-items: center; }
.at-nav-links a { font-size: 0.91rem; font-weight: 600; position: relative; }
.at-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; background: var(--marine); transform: scaleX(0);
  transition: transform 0.25s ease;
}
.at-nav-links a:hover::after { transform: scaleX(1); }
.at-nav-links a.active { color: var(--marine); }
.at-nav-links a.active::after { transform: scaleX(1); background: var(--seafoam); }

/* Nav CTA */
.at-btn-book {
  font-family: var(--font-body); font-weight: 700; font-size: 0.86rem;
  padding: 10px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--marine); color: var(--cream-text);
  display: inline-flex; align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.at-btn-book:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(45,111,163,0.55); color: var(--cream-text); }

/* Burger */
.at-burger {
  display: none; align-items: center; gap: 10px;
  background: rgba(45,111,163,0.08); border: 1px solid rgba(45,111,163,0.25);
  border-radius: 10px; cursor: pointer; padding: 8px 12px;
  transition: background 0.2s ease;
}
.at-burger:hover, .at-burger:focus-visible { background: rgba(45,111,163,0.16); }
.at-burger-bars { display: flex; flex-direction: column; gap: 5px; }
.at-burger-bars span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--marine); }
.at-burger-label { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--marine); letter-spacing: 0.03em; }

@media (max-width: 860px) {
  .at-nav-links {
    position: fixed; inset: 64px 0 0 0; background: var(--sand);
    flex-direction: column; justify-content: flex-start; padding: 32px 28px;
    transform: translateX(100%); transition: transform 0.3s ease; gap: 0;
  }
  .at-nav-links.open { transform: translateX(0); }
  .at-nav-links a { font-size: 1.3rem; padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .at-burger { display: flex; }
}

/* ---------- HERO ---------- */
.at-hero {
  position: relative; overflow: hidden;
  color: var(--cream-text);
  padding: 64px 0 0;
  background: var(--ink); /* Fallback color just in case */
}
/* Hero background image overlay when images are present */
.at-hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,43,56,0.88) 0%, rgba(31,107,99,0.55) 100%);
  z-index: 0;
}
.at-hero-bg-overlay img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
}
.at-hero-glow {
  position: absolute; left: 50%; bottom: -120px; width: 680px; height: 680px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79,199,194,0.50), rgba(79,199,194,0) 70%);
  pointer-events: none; z-index: 0;
}
.at-hero-inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 56px; }
.at-hero-time {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: rgba(241,236,220,0.75); margin-bottom: 28px; letter-spacing: 0.04em;
}
.at-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02; max-width: 13ch; letter-spacing: -0.01em;
}
.at-hero h1 .word {
  display: inline-block; opacity: 0; transform: translateY(28px);
  animation: at-word-in 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes at-word-in { to { opacity: 1; transform: translateY(0); } }
.at-hero h1 em { font-style: italic; font-weight: 500; color: var(--seafoam); }
.at-hero-sub {
  margin-top: 24px; max-width: 480px;
  font-size: 1.1rem; color: rgba(241,236,220,0.86);
  opacity: 0; animation: at-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes at-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.at-hero-ctas {
  margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: at-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
/* Hero animated road SVG */
.at-hero-road { position: relative; z-index: 2; margin-top: 48px; }
.at-hero-road svg { width: 100%; height: auto; display: block; }
.at-hero-car {
  offset-path: path("M -40,118 C 280,30 560,170 860,70 S 1340,130 1500,40");
  offset-rotate: 0deg;
  animation: at-drive 9s ease-in-out infinite alternate;
}
@keyframes at-drive { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }

/* Carousel for hero slides */
.at-hero-carousel { position: absolute; inset: 0; z-index: 0; }
.at-hero-carousel .at-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease;
}
.at-hero-carousel .at-slide.active { opacity: 1; }
.at-hero-carousel .at-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08) translateX(2%);
  transition: transform 8s ease-out;
}
.at-hero-carousel .at-slide.active img {
  transform: scale(1) translateX(0);
}
.at-hero-carousel .at-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,43,56,0.88) 0%, rgba(31,107,99,0.50) 100%);
}

/* ---------- BUTTONS ---------- */
.at-btn {
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.at-btn:hover { transform: translateY(-2px); }
.at-btn-primary { background: var(--marine); color: var(--cream-text); }
.at-btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(45,111,163,0.55); color: var(--cream-text); }
.at-btn-ghost { background: transparent; color: var(--cream-text); border: 1.5px solid rgba(241,236,220,0.55); }
.at-btn-ghost:hover { background: rgba(241,236,220,0.12); }
.at-btn-dark { background: var(--ink); color: var(--cream-text); }
.at-btn-dark:hover { box-shadow: 0 10px 24px -8px rgba(15,43,56,0.55); color: var(--cream-text); }

/* Magnetic button micro-interaction (JS-driven) */
.magnetic { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }

/* ---------- MARQUEE ---------- */
.at-marquee {
  background: var(--ink); overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--line-cream); border-bottom: 1px solid var(--line-cream);
}
.at-marquee-track {
  display: flex; gap: 48px; white-space: nowrap; width: max-content;
  animation: at-scroll-left 28s linear infinite;
}
.at-marquee-track span {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(241,236,220,0.65);
  display: flex; align-items: center; gap: 48px;
}
.at-marquee-track span b { color: var(--seafoam); font-weight: 400; }
@keyframes at-scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- STATS STRIP ---------- */
.at-stats { padding: 64px 0 56px; background: var(--sand); }
.at-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .at-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
.at-stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink-text); }
.at-stat-label { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(24,30,34,0.55); }

/* ---------- ROUTES / "WAYS TO SEE LA" ---------- */
.at-routes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .at-routes-grid { grid-template-columns: 1fr; } }
.at-route-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.at-route-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(15,43,56,0.22); }
.at-route-card .at-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--teal); text-transform: uppercase; }
.at-route-card h3 { font-size: 1.5rem; margin-top: 10px; }
.at-route-card .at-stops { margin-top: 12px; color: rgba(24,30,34,0.66); font-size: 0.96rem; }
.at-route-card .at-meta {
  margin-top: 20px; display: flex; gap: 18px; font-family: var(--font-mono); font-size: 0.78rem;
  color: rgba(24,30,34,0.55); border-top: 1px dashed var(--line); padding-top: 16px;
}
.at-route-card .at-meta b { color: var(--ink-text); font-weight: 700; }
/* Dark featured card */
.at-route-card.at-custom { background: var(--ink); color: var(--cream-text); border-color: transparent; }
.at-route-card.at-custom .at-tag { color: var(--seafoam); }
.at-route-card.at-custom .at-stops { color: rgba(241,236,220,0.75); }
.at-route-card.at-custom .at-meta { border-top: 1px dashed var(--line-cream); color: rgba(241,236,220,0.6); }
.at-route-card.at-custom .at-meta b { color: var(--cream-text); }

/* ---------- FLEET ---------- */
.at-fleet-bg { background: var(--sand-deep); }
.at-fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .at-fleet-grid { grid-template-columns: 1fr; } }
.at-fleet-card { background: var(--sand); border-radius: var(--radius); padding: 28px; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.at-fleet-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(15,43,56,0.18); }
.at-fleet-card .at-glyph {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.at-fleet-card .at-glyph svg { width: 22px; height: 22px; }
.at-fleet-card h3 { font-size: 1.3rem; }
.at-fleet-card .at-cap { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); margin-top: 6px; display: block; }
.at-fleet-card p { margin-top: 14px; color: rgba(24,30,34,0.66); font-size: 0.95rem; }
.at-fleet-card .at-price { margin-top: 20px; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-text); }
.at-fleet-card .at-price span { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(24,30,34,0.55); }
.at-fleet-card a { margin-top: 18px; width: 100%; text-align: center; }

/* ---------- HOW IT WORKS ---------- */
.at-how-bg { background: var(--ink); }
.at-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
@media (max-width: 760px) { .at-how-grid { grid-template-columns: 1fr; gap: 40px; } }
.at-how-step .at-num {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--seafoam);
  border: 1px solid rgba(79,199,194,0.5); border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
}
.at-how-step h3 { margin-top: 18px; font-size: 1.25rem; color: var(--cream-text); }
.at-how-step p { margin-top: 10px; color: rgba(241,236,220,0.7); font-size: 0.95rem; }

/* ---------- COMPARISON ---------- */
.at-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 760px) { .at-compare-grid { grid-template-columns: 1fr; } }
.at-ticket { border-radius: var(--radius); padding: 32px 28px; }
.at-ticket-bus { background: var(--sand-deep); color: rgba(24,30,34,0.85); }
.at-ticket-ours { background: var(--ink); color: var(--cream-text); }
.at-ticket .at-stub-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px dashed rgba(24,30,34,0.25); }
.at-ticket-ours .at-stub-head { border-bottom-color: rgba(241,236,220,0.25); }
.at-ticket .at-stub-head h4 { font-size: 1.15rem; }
.at-ticket .at-stub-head span { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.65; }
.at-ticket-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.at-ticket-row { display: flex; gap: 12px; font-size: 0.95rem; }
.at-ticket-row .at-ico { flex: 0 0 auto; opacity: 0.55; font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- REVIEWS ---------- */
.at-reviews-bg { background: var(--sand-deep); }
.at-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .at-reviews-grid { grid-template-columns: 1fr; } }
.at-review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.at-review-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(15,43,56,0.15); }
.at-review-card p.at-quote { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.4; color: var(--ink-text); }
.at-review-card .at-by { margin-top: 18px; font-family: var(--font-mono); font-size: 0.76rem; color: rgba(24,30,34,0.55); text-transform: uppercase; letter-spacing: 0.04em; }
.at-review-stars { color: var(--seafoam); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }

/* ---------- CONTACT / QUOTE ---------- */
.at-contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .at-contact-grid { grid-template-columns: 1fr; } }
.at-field { margin-bottom: 18px; }
.at-field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; color: rgba(24,30,34,0.6); }
.at-field input, .at-field select, .at-field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-text); outline: none;
  transition: border-color 0.2s ease;
}
.at-field input:focus, .at-field select:focus, .at-field textarea:focus { border-color: var(--teal); }
.at-field-row { display: flex; gap: 16px; }
.at-field-row .at-field { flex: 1; }
@media (max-width: 520px) { .at-field-row { flex-direction: column; gap: 0; } }
/* ---------- CONTACT SECTION STYLING ---------- */
.at-contact-section {
  background: var(--sand-deep);
  border-radius: var(--radius);
  padding: 48px 28px;
  box-shadow: 0 12px 24px -8px rgba(15,43,56,0.2);
  backdrop-filter: blur(12px);
}
.at-contact-section .head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink-text);
}
.at-contact-section .head p {
  color: rgba(24,30,34,0.7);
}
.at-contact-section .at-contact-grid {
  gap: 64px;
}
.at-contact-section .trip-card {
  background: var(--ink);
  color: var(--cream-text);
}
/* Trip info card */

/* Enhanced contact form styling */
.at-contact-section .at-field input,
.at-contact-section .at-field select,
.at-contact-section .at-field textarea {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.at-contact-section .at-field input:focus,
.at-contact-section .at-field select:focus,
.at-contact-section .at-field textarea:focus {
  border-color: var(--seafoam);
  box-shadow: 0 0 0 3px rgba(79,199,194,0.12);
}
.at-contact-section .at-field label {
  color: var(--ink-text);
  font-weight: 600;
}
.at-trip-card { background: var(--ink); color: var(--cream-text); border-radius: var(--radius); padding: 32px; }
.at-trip-card .eyebrow { color: var(--seafoam); }
.at-trip-card h3 { margin-top: 14px; font-size: 1.4rem; color: var(--cream-text); }
.at-trip-card .at-info-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-cream); font-size: 0.95rem; }
.at-trip-card .at-info-row:last-of-type { border-bottom: none; }
.at-trip-card .at-info-row span:first-child { color: rgba(241,236,220,0.6); }
.at-trip-note { margin-top: 20px; font-size: 0.82rem; color: rgba(241,236,220,0.55); line-height: 1.5; }

/* ---------- FOOTER ---------- */
.at-footer { background: var(--ink); color: rgba(241,236,220,0.7); padding: 56px 0 32px; }
.at-footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-cream); }
.at-footer-top .at-logo { color: var(--cream-text); }
.at-footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.at-footer-links h5 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(241,236,220,0.45); margin-bottom: 14px; }
.at-footer-links li { margin-bottom: 9px; font-size: 0.92rem; }
.at-footer-links a:hover { color: var(--seafoam); }
.at-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.8rem; font-family: var(--font-mono); color: rgba(241,236,220,0.4); }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; bottom: 40px; right: 40px;
  background: #25d366; color: #fff; border-radius: 50px;
  font-size: 28px; box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 500; width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.3s ease;
}
.whatsapp-float:hover { background: #128c7e; transform: scale(1.1); color: #fff; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
/* staggered delays for grid children */
.at-routes-grid > .reveal:nth-child(2),
.at-fleet-grid > .reveal:nth-child(2),
.at-reviews-grid > .reveal:nth-child(2),
.at-how-grid > .reveal:nth-child(2),
.at-stats-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.at-routes-grid > .reveal:nth-child(3),
.at-fleet-grid > .reveal:nth-child(3),
.at-reviews-grid > .reveal:nth-child(3),
.at-how-grid > .reveal:nth-child(3),
.at-stats-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.at-routes-grid > .reveal:nth-child(4),
.at-stats-grid > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- TILT CARDS ---------- */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ---------- CONFIRM MSG ---------- */
#at-confirm-msg {
  display: none; margin-top: 18px; padding: 16px 18px; border-radius: 10px;
  background: rgba(31,107,99,0.12); border: 1px solid var(--teal); font-size: 0.92rem;
}

/* ── Form widget override (Django-rendered inputs get theme styling) ── */
.at-field input,
.at-field select,
.at-field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-text);
  outline: none;
  transition: border-color 0.2s ease;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.at-field input:focus,
.at-field select:focus,
.at-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,107,99,0.12);
}
.at-field textarea { resize: vertical; min-height: 110px; }

/* Django form: remove extra Bootstrap classes that clash */
.at-field .form-control,
.at-field .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  padding: 13px 14px;
  color: var(--ink-text);
}
.at-field .form-control:focus,
.at-field .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,107,99,0.12);
}

.field-error {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #c0392b;
  margin-top: 6px;
}

/* Remove Bootstrap padding-top from body since we use sticky nav now */
body { padding-top: 0 !important; }

/* Ensure main has no extra top padding */
main { padding-top: 0 !important; }
