/* Palmetto Prestige Services - Phase 1 styles (mobile first) */
:root {
  --teal: #0D4A4A;
  --teal-dark: #083232;
  --teal-light: #E7F0EE;
  --gold: #C29B3C;
  --gold-dark: #9A7A2C;
  --gold-light: #F4EAD0;
  --bg: #FBF8F1;
  --ink: #23302F;
  --muted: #6B7574;
  --card: #FFFFFF;
  --line: #E8E0D0;
  --red: #C0392B;
  --orange: #D97A1F;
  --green: #1E7E46;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 74, 74, 0.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--teal); }

/* Header */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FBF8F1;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-img { height: 52px; width: auto; display: block; border-radius: 6px; }
.footer-brand .logo-img { height: auto; width: 230px; max-width: 80%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; letter-spacing: 0.06em; font-size: 15px; color: var(--gold-dark); }
.brand-name b { color: var(--teal); font-weight: 800; }
.brand-sub { font-size: 11px; color: var(--muted); font-style: italic; }
.nav-toggle {
  margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; font-size: 22px; padding: 4px 12px; cursor: pointer; color: var(--teal);
}
.main-nav { display: none; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; }
.main-nav.open { display: flex; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 8px 4px; font-weight: 600; }
.main-nav a.active { color: var(--teal); border-bottom: 2px solid var(--gold); }
.lang-select { margin-top: 6px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

/* Buttons */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--teal); color: #fff; font-weight: 700;
  padding: 14px 22px; border-radius: var(--radius); font-size: 16px; text-align: center;
}
.btn:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold); color: #2A2113; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section.block { padding: 28px 0; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
h1 { font-size: 30px; line-height: 1.2; color: var(--teal); margin: 0 0 12px; }
h2 { font-size: 24px; color: var(--teal); margin: 0 0 10px; }
h3 { font-size: 18px; color: var(--teal); margin: 18px 0 8px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px;
}
.lede { color: var(--muted); font-size: 17px; }
.gold-rule { width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin: 12px 0 20px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; padding: 36px 0 30px; }
.hero h1 { color: #fff; font-size: 32px; }
.hero .lede { color: #D8E4E2; }
.hero .kicker { color: var(--gold-light); }
.next-trip { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; margin-top: 22px; box-shadow: var(--shadow); }
.next-trip .trip-route { font-size: 20px; font-weight: 800; color: var(--teal); }
.trip-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 10px 0 16px; font-size: 15px; }
.trip-meta b { color: var(--teal); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.open { background: #E2F2E8; color: var(--green); }
.pill.almost { background: #FDEFD9; color: var(--orange); }
.pill.closed { background: #F7DEDC; color: var(--red); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row .btn { flex: 1 1 160px; }

/* Estimator */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 18px 0 4px; padding-bottom: 6px; }
.tab {
  flex: 1 0 auto; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 12px 14px; border-radius: 12px; cursor: pointer; white-space: nowrap;
}
.tab.active { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--teal); }
.field input[type="text"], .field input[type="number"], .field input[type="tel"],
.field input[type="email"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: 12px; font-size: 16px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.checkrow { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: 15px; }
.checkrow input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); }
.size-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
.size-card {
  border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer;
  background: #fff; text-align: left; font-size: 14px;
}
.size-card.selected { border-color: var(--teal); background: var(--teal-light); }
.size-card .size-name { font-weight: 800; color: var(--teal); display: block; }
.size-card .size-guide { color: var(--muted); font-size: 12.5px; }
.size-card .size-price { font-weight: 700; color: var(--gold-dark); display: block; margin-top: 4px; }
.line-items { margin: 14px 0; }
.line-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px;
}
.line-item button { background: none; border: none; color: var(--red); font-size: 18px; cursor: pointer; }
.result-box {
  background: var(--teal); color: #fff; border-radius: var(--radius);
  padding: 18px; margin-top: 16px; text-align: center;
}
.result-box .result-total { font-size: 34px; font-weight: 800; color: var(--gold-light); }
.result-box .result-label { font-size: 13px; opacity: 0.9; margin-top: 6px; }
.result-box .result-sub { font-size: 14px; margin-top: 8px; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Service cards */
.svc-grid { display: grid; gap: 14px; margin-top: 16px; }
.svc-card .svc-price { font-size: 22px; font-weight: 800; color: var(--teal); }
.svc-card .svc-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.svc-card ul { padding-left: 18px; margin: 8px 0; font-size: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--gold-light); color: var(--gold-dark); border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }

/* Schedule */
.trip-row { display: flex; flex-direction: column; gap: 6px; }
.trip-row + .trip-row { margin-top: 14px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { font-weight: 700; color: var(--teal); cursor: pointer; font-size: 16px; }
.faq-item p { margin: 8px 0 0; color: var(--ink); }

/* Footer */
#site-footer { background: var(--teal-dark); color: #D8E4E2; margin-top: 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 28px 16px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--gold-light); font-size: 14px; }
.footer-brand .brand-sub { color: #9DB8B5; }
.footer-contact { font-size: 14px; margin-bottom: 12px; overflow-wrap: anywhere; line-height: 1.7; }
.footer-contact a { color: #fff; }
.footer-fine { font-size: 12px; color: #9DB8B5; }

/* WhatsApp float */
#wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Admin */
.admin-field { margin: 12px 0; }
.admin-field label { display: block; font-weight: 700; font-size: 13px; color: var(--teal); margin-bottom: 4px; }
.admin-field input { width: 100%; padding: 10px; font-size: 15px; border: 1.5px solid var(--line); border-radius: 8px; }
.admin-field select { width: 100%; padding: 10px; font-size: 15px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.admin-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; background: #fff; }
.admin-section h3 { margin-top: 0; }
.private-note { background: #FDF3E3; border: 1px solid var(--gold); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }

/* Lang notice */
#lang-notice {
  display: none; background: var(--gold-light); color: var(--gold-dark);
  text-align: center; font-size: 13px; padding: 8px 12px; font-weight: 600;
}

/* Confirmation */
.confirm-card { text-align: center; }
.confirm-ref { font-size: 26px; font-weight: 800; color: var(--teal); letter-spacing: 0.04em; margin: 12px 0; }

@media (min-width: 720px) {
  h1 { font-size: 40px; }
  .hero h1 { font-size: 44px; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    border: none; padding: 0; gap: 18px; margin-left: auto; background: transparent;
  }
  .nav-toggle { display: none; }
  .lang-select { margin-top: 0; }
  .header-inner { gap: 20px; }
}

.level-row { display: flex; gap: 10px; }
.level-btn {
  flex: 1; text-align: left; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px;
  background: #fff; padding: 10px 12px;
}
.level-btn.selected { border-color: var(--teal); background: var(--teal-light); }
.level-btn .level-name { font-weight: 800; color: var(--teal); display: block; font-size: 15px; }
.level-btn .level-detail { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }

/* Travel mode toggle + one-way/round-trip toggle */
.mode-row { display: flex; gap: 10px; }
.mode-btn {
  flex: 1; text-align: left; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px;
  background: #fff; padding: 10px 12px;
}
.mode-btn.selected { border-color: var(--teal); background: var(--teal-light); }
.mode-btn .mode-name { font-weight: 800; color: var(--teal); display: block; font-size: 15px; }
.mode-btn .mode-detail { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.mode-btn .mode-price { font-weight: 800; color: var(--gold-dark); display: block; margin-top: 4px; font-size: 16px; }
.level-btn .level-date { font-weight: 700; color: var(--teal); display: block; margin-top: 4px; font-size: 13px; }

/* Next-trip hero meta: allow several spans to wrap */
.next-trip .trip-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Local homepage + transport prep additions (2026-09-26) */
.mode-toggle { display: flex; gap: 10px; margin: 10px 0; }
.level-grid { display: flex; gap: 10px; margin: 10px 0; }
.result-line { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 4px; font-weight: 700; }
.result-line .total { font-size: 28px; color: var(--teal); }
.prep-banner { background: var(--gold-light); border-bottom: 3px solid var(--gold); padding: 22px 0; }
.prep-banner h2 { margin: 0 0 8px; }
.transport-teaser { margin-top: 18px; font-size: 14px; }
.transport-teaser a { color: var(--gold-light); text-decoration: underline; }
.pay-box { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; margin: 16px 0; }
.stripe-pending { color: var(--gold-dark); margin: 8px 0 4px; }
.price-compare { display: flex; gap: 18px; margin: 12px 0; }
.price-compare b { color: var(--teal); }

/* Legal strip above injected footer + floating WhatsApp button (2026-09-26) */
.legal-strip { border-top: 1px solid var(--line); padding: 10px 0; }
.legal-strip p { margin: 0; }
#wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 50; }

/* Hero outline buttons sit on the dark hero: keep text readable (2026-09-26) */
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Next-trip hero meta: keep spans from running together (2026-09-26) */
.next-trip .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
