/* ==========================================================================
   rhythm.css — bright / dark section rhythm
   Loaded after style.css, animations.css and responsive.css on every page.
   Only colours, contrast and spacing are refined here; layout, content,
   images and animations stay exactly as they are.

   Section themes (set on <section class="section ...">):
     .section--dark      deep charcoal  #111313
     .section--graphite  cinematic      #151515
     .section--light     warm off-white #F7F5F0
     .section--light-alt subtle light   #F1EFE9  (use with .section--light)
   ========================================================================== */

:root {
  /* Subam orange — accent only */
  --coral: #f15a3a;
  --coral-hi: #f47a5f;
  --coral-deep: #d9442a;
  --grad-coral: linear-gradient(120deg, var(--coral-deep), var(--coral) 45%, var(--coral-hi));
  --shadow-coral: 0 18px 40px -16px rgba(241, 90, 58, 0.5);

  /* dark surfaces: deep charcoal instead of near-black */
  --bg: #111313;
  --bg-2: #151515;
  --surface: #1b1d1d;
  --graphite: #1b1d1d;
  --graphite-2: #242626;

  /* slightly stronger secondary text on dark for readability */
  --text-d: rgba(243, 241, 236, 0.76);
  --text-l: rgba(243, 241, 236, 0.76);
  --line-d: rgba(243, 241, 236, 0.11);
  --line-l: rgba(243, 241, 236, 0.11);
  --line-d2: rgba(243, 241, 236, 0.22);
  --steel: #8b9096;

  /* light palette */
  --light-bg: #f7f5f0;
  --light-bg-2: #f1efe9;
  --light-surface: #ffffff;
  --light-ink: #171717;
  --light-text: #666666;
  --light-accent-text: #d9442a; /* orange for small labels on light (better contrast) */
}

body { background: var(--bg); }

/* ---------- Dark themes ---------- */
.section--dark { background: #111313; color: var(--white); }
.section--graphite { background: #151515; color: var(--white); }

/* ---------- Light theme (token remap keeps every component working) ---------- */
.section--light {
  --bg: var(--light-bg);
  --bg-2: var(--light-bg-2);
  --surface: var(--light-surface);
  --graphite: #e9e6df;
  --graphite-2: #dedad2;
  --mist: #e4e1da;
  --white: var(--light-ink);
  --paper: var(--light-ink);
  --silver: #4d4d4d;
  --steel: #767676;
  --muted: var(--light-text);
  --text-d: var(--light-text);
  --text-l: var(--light-text);
  --line-d: rgba(23, 23, 23, 0.12);
  --line-l: rgba(23, 23, 23, 0.12);
  --line-d2: rgba(23, 23, 23, 0.22);
  --shadow-deep: 0 34px 60px -34px rgba(17, 19, 19, 0.42);
  background: var(--light-bg);
  color: var(--light-ink);
}
.section--light.section--light-alt { --bg: var(--light-bg-2); --bg-2: var(--light-bg); background: var(--light-bg-2); }
.section--light::selection, .section--light ::selection { color: var(--light-surface); }

/* text hierarchy on light */
.section--light .h2, .section--light .h3, .section--light h3 { color: var(--light-ink); }
.section--light .lead, .section--light .prose p { color: #5a5a5a; }
.section--light .eyebrow,
.section--light .stop__code,
.section--light .spec-row .mono,
.section--light .exp__item .num,
.section--light .contact-info h3,
.section--light .field label span { color: var(--light-accent-text); }

/* buttons: the hover fill becomes charcoal, so flip the label to light */
.section--light .btn:hover, .section--light .btn:focus-visible { color: var(--light-bg); }
.section--light .btn--ghost { box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.28); }
.section--light .link-arrow:hover { color: var(--light-accent-text); }

/* Step inside the journey (tour) */
.section--light .tour__tab { color: #4d4d4d; }
.section--light .tour__tab small { color: #8a8a8a; }
.section--light .tour__tab[aria-selected="true"] { color: var(--light-ink); }
.section--light .tour__tab[aria-selected="true"] small { color: var(--light-accent-text); }
.section--light .tour__caption .mono { color: #e4e2dd; } /* sits on the photo */
.section--light .tour__panel li { color: var(--light-ink); }
@media (max-width: 1023px) {
  .section--light .tour__tab { background: var(--light-surface); }
  .section--light .tour__tab[aria-selected="true"] { color: var(--ink); background: var(--coral); border-color: var(--coral); }
  .section--light .tour__tab[aria-selected="true"] small { color: var(--ink); }
}

/* Why travel with Subam Urbania — outline numerals become dark, orange on hover */
.section--light .why__num { -webkit-text-stroke: 1px rgba(23, 23, 23, 0.38); }
.section--light .why__item:hover .why__num { color: var(--coral); -webkit-text-stroke-color: var(--coral); }
.section--light .why__item h3::after { content: ""; display: block; width: 22px; height: 2px; margin-top: 10px; background: var(--coral); opacity: 0.85; }

/* Journeys made for Urbania (trip ideas slider) */
.section--light .story__text { color: var(--light-ink); }
.section--light .story footer strong { color: var(--light-ink); }
.section--light .story footer .mono { color: #6f6f6f; }
.section--light .stories__arrows button { color: var(--light-ink); background: var(--light-surface); }
.section--light .stories__arrows button:hover { color: var(--ink); }

/* inner pages on light */
.section--light .split__media img { box-shadow: 0 30px 60px -36px rgba(17, 19, 19, 0.45); }
.section--light .dest { background: var(--light-surface); }
.section--light .dest:hover { background: var(--light-bg); }
.section--light .dest .mono { color: #6f6f6f; }
.section--light .step::before { background: var(--bg); }
.section--light .step p, .section--light .spec-row p, .section--light .faq details p { color: var(--light-text); }

/* contact form on light */
.section--light .form { box-shadow: 0 30px 70px -40px rgba(17, 19, 19, 0.35); }
.section--light .field input, .section--light .field select, .section--light .field textarea { background: var(--light-bg); color: var(--light-ink); border-color: rgba(23, 23, 23, 0.18); }
.section--light .field input:focus, .section--light .field select:focus, .section--light .field textarea:focus { background: var(--light-surface); border-color: var(--coral); }
.section--light .field input::placeholder, .section--light .field textarea::placeholder { color: #8f8f8f; }
.section--light .field input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
.section--light .field .err { color: #c23a1f; }
.section--light .gallery-filters button[aria-pressed="true"],
.section--light .gallery-filters button:hover { background: var(--light-ink); color: var(--light-bg); border-color: var(--light-ink); }

/* ---------- Dark sections: readability ---------- */
.section--dark .exp__item p, .section--graphite .stop p { color: var(--text-d); }
.section--dark .hotspot__card { background: #1b1d1d; }

/* ---------- Final CTA — cinematic but warm, Urbania stays visible ---------- */
.cta { background: #151515; }
.cta::before {
  background:
    linear-gradient(90deg, rgba(17, 19, 19, 0.8) 0%, rgba(17, 19, 19, 0.55) 38%, rgba(17, 19, 19, 0.12) 68%, rgba(17, 19, 19, 0) 100%),
    linear-gradient(0deg, rgba(17, 19, 19, 0.42) 0%, transparent 38%),
    linear-gradient(120deg, rgba(241, 90, 58, 0.1) 0%, rgba(255, 196, 150, 0.08) 60%, transparent 100%);
}
.cta .lead { color: rgba(243, 241, 236, 0.86); }
.cta .h2, .cta .lead { text-shadow: 0 2px 24px rgba(17, 19, 19, 0.45); }
.cta .btn--ghost { background: rgba(17, 19, 19, 0.28); }
@media (max-width: 767px) {
  .cta::before {
    background:
      linear-gradient(180deg, rgba(17, 19, 19, 0.4) 0%, rgba(17, 19, 19, 0.66) 55%, rgba(17, 19, 19, 0.78) 100%),
      linear-gradient(120deg, rgba(241, 90, 58, 0.1), transparent 70%);
  }
}

/* inner page heroes: end on charcoal (not black) before the next section */
.page-hero { background: #111313; }

/* ---------- Footer — strong dark ending ---------- */
.site-footer { background: #111313; border-top-color: rgba(243, 241, 236, 0.08); }
.footer-brand p, .footer-col a, .footer-col address { color: rgba(243, 241, 236, 0.76); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { color: #9a9ea3; }
@media (max-width: 767px) {
  .site-footer { padding-top: 48px; }
  .footer-grid { gap: 30px; }
  .footer-col, .footer-brand p { font-size: 15.5px; }
  .footer-col li + li { margin-top: 10px; }
}

/* ---------- Floating buttons: visible on bright and dark sections ---------- */
.fab a { box-shadow: 0 0 0 1px rgba(17, 19, 19, 0.14), 0 0 0 4px rgba(255, 255, 255, 0.18), 0 12px 26px -10px rgba(17, 19, 19, 0.6); }

/* ---------- Spacing: compact but spacious ---------- */
.section-head { margin-bottom: clamp(24px, 3.4vw, 40px); }
@media (max-width: 599px) {
  :root { --sec: 46px; }
  .section--compact { --sec: 40px; }
  .exp__list { margin-top: 22px; }
  .why { gap: 24px; }
  .why__item { padding: 18px 0 20px; }
  .cta { padding: 56px 0; }
}
