/*
 * TruckMeet — Rugged Coastal Florida Design System
 * Shared across all pages. Driftwood · Beach tones · Tiki-inspired details.
 */

/* ── FONTS ──────────────────────────────────────────────── */
/* Oswald: bold condensed headers (food-truck signage feel)  */
/* Fraunces: italic accent serif (handcrafted feel)           */
/* Source Sans 3: clean readable body                        */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Fraunces:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── ROOT TOKENS ─────────────────────────────────────────── */
:root {
  /* Primary palette */
  --ocean:         #0A3D62;    /* deep ocean blue — nav, hero overlays, headers */
  --ocean-dark:    #072E4A;    /* darker ocean for hover states */
  --seafoam:       #1A6B5A;    /* seafoam teal — secondary headers, card highlights */
  --turquoise:     #0AAFA0;    /* links, interactive, active states */
  --turquoise-lt:  #E0F5F3;    /* turquoise tint background */
  --sand:          #F5EDD8;    /* sandy beige — content backgrounds, cards */
  --sand-dark:     #EBE0C8;    /* slightly darker sand for borders */
  --driftwood:     #0A3D62;    /* ocean blue — footer bg, dark section accents (replaces brown) */
  --driftwood-lt:  #1A5276;    /* lighter ocean for borders */
  --charcoal:      #1C1412;    /* near-black body text */
  --off-white:     #FAF6F0;    /* page backgrounds, breathing room */
  --warm-white:    #FFFDF9;    /* card backgrounds */

  /* Accent */
  --sunset:        #E8601A;    /* sunset orange — primary CTAs */
  --sunset-warm:   #F07C40;    /* lighter sunset hover */
  --gold:          #D4A017;    /* warm gold — star ratings, premium */
  --gold-lt:       #FDF3D0;    /* gold tint background */
  --coral:         #C0392B;    /* coral red — alerts, error, urgent */
  --coral-lt:      #FDECEA;    /* coral tint */

  /* Text */
  --text-main:     #1C1412;
  --text-mid:      #5C4A3A;
  --text-soft:     #9C8878;
  --text-on-dark:  rgba(255,255,255,0.92);
  --text-on-dark-muted: rgba(255,255,255,0.55);

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Transitions */
  --ease: 0.22s ease;

  /* Ocean wave texture (replaces brown driftwood texture) */
  --driftwood-texture: repeating-linear-gradient(
    90deg,
    rgba(10,63,98,0.04) 0px,
    rgba(10,63,98,0.04) 1px,
    transparent 1px,
    transparent 8px
  ), repeating-linear-gradient(
    0deg,
    rgba(10,63,98,0.025) 0px,
    rgba(10,63,98,0.025) 1px,
    transparent 1px,
    transparent 12px
  );

  /* Sandy grain texture */
  --sand-texture: repeating-linear-gradient(
    45deg,
    rgba(180,150,100,0.035) 0px,
    rgba(180,150,100,0.035) 1px,
    transparent 1px,
    transparent 6px
  );
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Source Sans 3', Georgia, serif;
  color: var(--text-main);
  background: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
a { color: var(--turquoise); transition: color var(--ease); }
a:hover { color: var(--seafoam); }
img { max-width: 100%; height: auto; }

/* ── TIKI WAVE DIVIDER ───────────────────────────────────── */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ── NAV ─────────────────────────────────────────────────── */
.coastal-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  background: var(--ocean);
  border-bottom: 2px solid rgba(10,175,160,0.3);
  box-shadow: 0 2px 20px rgba(7,46,74,0.4);
  transition: box-shadow var(--ease);
}
.coastal-nav.scrolled {
  box-shadow: 0 4px 30px rgba(7,46,74,0.55);
}

/* Brand logo block — image + wordmark */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-brand-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(10,175,160,0.45);
  flex-shrink: 0;
}
.nav-brand-wordmark {
  font-family: 'Oswald', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-on-dark);
  text-transform: uppercase;
}
.nav-brand-wordmark em {
  font-style: normal;
  color: var(--turquoise);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link {
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: white; background: rgba(10,175,160,0.15); }
.nav-link.active { color: var(--turquoise); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sunset);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--ease), transform 0.15s, box-shadow var(--ease);
  box-shadow: 0 2px 12px rgba(232,96,26,0.35);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--sunset-warm);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232,96,26,0.45);
  color: white !important;
}

/* ── PAGE HEADER (inner pages) ───────────────────────────── */
.coastal-header {
  padding: 6.5rem 2rem 3.5rem;
  background: var(--ocean);
  background-image: var(--driftwood-texture),
    radial-gradient(ellipse at 80% 20%, rgba(10,175,160,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232,96,26,0.08) 0%, transparent 50%);
  color: white;
  position: relative;
  overflow: hidden;
}
.coastal-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--off-white);
  clip-path: ellipse(52% 100% at 50% 100%);
}
.coastal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.coastal-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.6rem;
}
.coastal-header h1 em {
  font-style: normal;
  color: var(--turquoise);
}
.coastal-header p {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  line-height: 1.65;
}
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10,175,160,0.15);
  border: 1px solid rgba(10,175,160,0.35);
  color: var(--turquoise);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

/* ── SECTION LABELS ──────────────────────────────────────── */
.section-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--turquoise);
  margin-bottom: 0.5rem;
  display: block;
}
.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0.75rem;
  display: block;
}
.section-h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

/* ── BAMBOO DIVIDER ──────────────────────────────────────── */
.bamboo-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 2rem;
  color: var(--turquoise);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.bamboo-divider::before,
.bamboo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--turquoise), transparent);
  opacity: 0.35;
}

/* ── CARDS — Sandy beige cards with driftwood borders ──── */
.coastal-card {
  background: var(--sand);
  background-image: var(--sand-texture);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--sand-dark);
  box-shadow: 0 2px 16px rgba(10,63,98,0.07), 0 1px 3px rgba(10,63,98,0.04);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.coastal-card:hover {
  box-shadow: 0 8px 32px rgba(10,63,98,0.13);
  transform: translateY(-2px);
  border-color: var(--driftwood-lt);
}
.coastal-card-white {
  background: var(--warm-white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--sand-dark);
  box-shadow: 0 2px 16px rgba(10,63,98,0.06);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-sunset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sunset);
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform 0.15s, box-shadow var(--ease);
  box-shadow: 0 4px 16px rgba(232,96,26,0.3);
}
.btn-sunset:hover {
  background: var(--sunset-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,96,26,0.4);
  color: white;
}

.btn-ocean {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ocean);
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform 0.15s;
}
.btn-ocean:hover {
  background: var(--ocean-dark);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--ocean);
  padding: 0.8rem 1.6rem;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ocean);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.btn-outline:hover {
  background: var(--ocean);
  color: white;
}

.btn-turquoise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--turquoise);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform 0.15s;
}
.btn-turquoise:hover {
  background: var(--seafoam);
  transform: translateY(-1px);
  color: white;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform 0.15s, box-shadow var(--ease);
  box-shadow: 0 4px 16px rgba(212,160,23,0.3);
}
.btn-gold:hover {
  background: #B8920F;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,160,23,0.4);
  color: white;
}

/* ── FILTER CHIPS (turquoise style) ──────────────────────── */
.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--turquoise-lt);
  background: var(--warm-white);
  color: var(--text-mid);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.chip-filter:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
  background: var(--turquoise-lt);
}
.chip-filter.active {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: white;
}

/* ── CUISINE BADGE ───────────────────────────────────────── */
.cuisine-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sunset);
  background: rgba(232,96,26,0.1);
  border: 1px solid rgba(232,96,26,0.18);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
}

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  letter-spacing: 0.03em;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--r-md);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--warm-white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  min-height: 44px;
}
.form-control:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(10,175,160,0.12);
}
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.coastal-footer {
  background: var(--driftwood);
  background-image: var(--driftwood-texture);
  color: var(--text-on-dark);
  padding: 3.5rem 2rem 2rem;
  position: relative;
}
.coastal-footer::before {
  /* tiki-inspired top border: a warm wave accent */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--turquoise), var(--gold), var(--sunset), var(--gold), var(--turquoise));
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}
.footer-brand-img-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-brand-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(10,175,160,0.4);
}
.footer-brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
}
.footer-brand-name em { font-style: normal; color: var(--turquoise); }
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}
.footer-llc {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: color var(--ease);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color var(--ease);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
.footer-badge {
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.07em;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── FOOTER ORIGIN BLOCK ─────────────────────────────────── */
.footer-origin {
  width: 100%;
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.5rem;
}
.footer-origin-headline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
}
.footer-origin-body {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 0.45rem;
}
.footer-origin-free {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  margin: 0.85rem auto 0.3rem;
}
.footer-origin-free strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-origin-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  margin: 0 auto;
}

/* ── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 0.8rem 1.1rem; border-radius: var(--r-md); font-size: 0.88rem; margin-bottom: 1rem; }
.alert-error { background: var(--coral-lt); border: 1px solid rgba(192,57,43,0.22); color: var(--coral); display: none; }
.alert-success { background: rgba(26,107,90,0.08); border: 1px solid rgba(26,107,90,0.22); color: var(--seafoam); display: none; }

/* ── HAMBURGER MENU TOGGLE (mobile only) ────────────────── */
.nav-hamburger {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  margin-left: 0.5rem;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 8px;
  transition: background var(--ease);
}
.nav-hamburger:hover { background: rgba(10,175,160,0.15); }
/* Mobile dropdown menu — hidden by default, shown via JS */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 48px; /* below .coastal-nav */
  left: 0; right: 0;
  background: var(--ocean);
  border-bottom: 2px solid rgba(10,175,160,0.3);
  box-shadow: 0 6px 24px rgba(7,46,74,0.5);
  z-index: 199;
  padding: 0.5rem 1rem 0.75rem;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { background: rgba(10,175,160,0.12); color: var(--turquoise); }

/* ── RESPONSIVE NAV ──────────────────────────────────────── */
@media (max-width: 768px) {
  .coastal-nav {
    padding: 0.5rem 1rem;
  }
  .nav-brand-wordmark { font-size: 1.2rem; }
  .nav-brand-img { height: 34px; width: 34px; }
  .nav-link { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .coastal-header { padding: 5.5rem 1.25rem 2.5rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 414px) {
  .coastal-nav { padding: 0.45rem 0.75rem; }
  .nav-brand-wordmark { font-size: 1.05rem; }
  .nav-brand-img { height: 30px; width: 30px; }
  .nav-mobile-menu { top: 44px; }
  .coastal-header { padding: 5rem 1rem 2rem; }
  .coastal-header h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
}
