/* ==========================================================================
   Sisara Coach — Design System
   Palette: petrol teal (livery), marigold (pilgrimage flags), warm cream
   Signature motif: the "route line" — a dotted line with stop-markers,
   echoing the literal service (pickup -> destination) and reused as a
   wayfinding device across hero, booking form and admin calendar.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #16211d;
  --cream: #faf6ef;
  --cream-2: #f1ead9;
  --teal: #0f3d3e;
  --teal-2: #17564f;
  --teal-3: #0a2b2c;
  --gold: #e8a33d;
  --gold-deep: #c97f1f;
  --leaf: #3f7a5d;
  --signal: #c1443b;
  --line: rgba(22, 33, 29, 0.14);
  --line-strong: rgba(22, 33, 29, 0.28);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 4px;
  --shadow-soft: 0 10px 30px rgba(15, 61, 62, 0.10);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--teal-3);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary { background: var(--gold); color: var(--teal-3); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }

.btn-ghost { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: rgba(250, 246, 239, 0.12); }

.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--cream); }

.btn-whatsapp { background: #1f8a5c; color: #fff; }
.btn-whatsapp:hover { background: #176e48; }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.active,
.nav-links a:hover { color: var(--teal); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-right { gap: 10px; }
}

/* ---------- Route line (signature motif) ---------- */
.route-line {
  --stop-color: var(--gold);
  display: flex;
  align-items: center;
  width: 100%;
}
.route-line .stop {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--stop-color);
  flex: none;
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.18);
}
.route-line .track {
  flex: 1;
  height: 2px;
  background-image: linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  margin: 0 8px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--teal);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(232,163,61,0.18), transparent 45%),
    linear-gradient(180deg, transparent, var(--teal-3));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: var(--cream); }
.hero .lede { font-size: 1.15rem; max-width: 46ch; color: rgba(250,246,239,0.86); }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-route {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(250,246,239,0.8);
}
.hero-route .route-line { margin: 10px 0; }
.hero-route .labels { display: flex; justify-content: space-between; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-teal { background: var(--teal); color: var(--cream); border-color: transparent; }
.card-teal h3 { color: var(--cream); }

.feature {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: none; }
.feature .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-top: 8px; flex: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--teal-3); }
.field .hint { font-size: 0.78rem; color: rgba(22,33,29,0.6); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 90px; }
.radio-row { display: flex; gap: 18px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.92rem; }

.error-text { color: var(--signal); font-size: 0.8rem; min-height: 1.1em; }
.field.has-error input, .field.has-error select { border-color: var(--signal); }

.form-status {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: rgba(63,122,93,0.12); border: 1px solid var(--leaf); }
.form-status.error { background: rgba(193,68,59,0.1); border: 1px solid var(--signal); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-3);
  color: rgba(250,246,239,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250,246,239,0.14);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--cream); font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 20px;
  font-size: 0.82rem; flex-wrap: wrap; gap: 10px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
[data-i18n], [data-i18n-placeholder] { }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 4px 10px; border-radius: 999px;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-pending { background: rgba(232,163,61,0.15); color: var(--gold-deep); }
.status-pending::before { background: var(--gold); }
.status-confirmed { background: rgba(63,122,93,0.15); color: var(--leaf); }
.status-confirmed::before { background: var(--leaf); }
.status-cancelled { background: rgba(193,68,59,0.12); color: var(--signal); }
.status-cancelled::before { background: var(--signal); }
.status-completed { background: rgba(15,61,62,0.1); color: var(--teal); }
.status-completed::before { background: var(--teal); }
