/* ============================================================
   Mexico Beach RV Resort — Design Tokens
   Palette grounded in the Forgotten Coast: deep gulf water,
   sun-bleached sand, driftwood, and a burnt-coral sunset ember.
   ============================================================ */

:root {
  --gulf-deep: #0A2F3E;      /* deep navy — primary dark surface, from logo ribbon text */
  --gulf-deep-2: #082530;    /* darker shade for depth/gradients */
  --sand: #F8F2DE;           /* warm cream — primary light surface, from logo backdrop */
  --sand-line: #E9DFC1;      /* hairline / borders on sand */
  --driftwood: #8A6F52;      /* warm neutral brown — secondary text accents */
  --driftwood-dark: #5B4A38;
  --ember: #CF3119;          /* logo red — CTAs, signature accent */
  --ember-dark: #A82613;
  --teal: #149C94;           /* logo turquoise — icons, links, brand accent */
  --teal-dark: #0C6E68;
  --seafoam: #7DC0B8;        /* pale turquoise — quiet accent, from logo scrollwork */
  --gold: #EC9625;           /* logo sunset gold — secondary highlight */
  --ink: #16241F;            /* near-black text on sand */
  --ink-soft: #3B4A47;
  --paper: #FFFCF5;          /* lightest surface, cards on sand */

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gulf-deep);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.02; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}

p { max-width: 62ch; }
p.lede { font-size: 1.15rem; color: var(--ink-soft); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--gulf-deep);
  color: var(--sand);
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { opacity: 0.9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Header / nav ---------- */
header.site {
  background: var(--sand);
  border-bottom: 1px solid var(--sand-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1px;
  padding-bottom: 1px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gulf-deep);
}
.brand img.logo-mark {
  height: 135px;
  width: 135px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--driftwood);
  font-weight: 600;
  margin-top: 3px;
}

.fb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--paper);
  padding: 7px 16px 7px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.fb-pill svg { width: 19px; height: 19px; flex-shrink: 0; }
.fb-pill:hover { background: var(--teal-dark); transform: translateY(-1px); }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: inherit;
  transition: background 0.2s, transform 0.2s;
}
.social-icon:hover { background: var(--ember); transform: translateY(-1px); }
.social-icon svg { width: 16px; height: 16px; }

@media (max-width: 880px) {
  .brand img.logo-mark { height: 64px; width: 64px; }
}

nav.primary { display: flex; align-items: center; gap: 30px; }
nav.primary ul { list-style: none; display: flex; gap: 26px; }
nav.primary a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  color: var(--gulf-deep);
  border-bottom-color: var(--ember);
}
nav.primary a.btn,
nav.primary a.btn:hover {
  color: var(--paper);
  border-bottom: none;
  padding: 11px 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 3px;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--ember-dark); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--gulf-deep);
  color: var(--gulf-deep);
}
.btn.ghost:hover { background: var(--gulf-deep); color: var(--sand); }

.navtoggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 20% -10%, rgba(169,196,184,0.18), transparent 60%),
    linear-gradient(160deg, var(--gulf-deep) 0%, var(--gulf-deep-2) 100%);
  color: var(--sand);
  overflow: hidden;
}
.hero-video,
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 20% -10%, rgba(169,196,184,0.12), transparent 60%),
    linear-gradient(160deg, rgba(10,47,62,0.78) 0%, rgba(8,37,48,0.86) 100%);
}
.tideline { position: relative; z-index: 2; }
.hero .wrap {
  padding-top: 108px;
  padding-bottom: 132px;
  position: relative;
  z-index: 2;
}
.hero .eyebrow { color: var(--seafoam); }
.hero h1 { color: var(--sand); margin-top: 14px; max-width: 15ch; }
.hero p.lede { color: #D9E4DE; margin-top: 22px; max-width: 46ch; }
.hero .actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero .tide {
  margin-top: 64px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(243,234,216,0.18);
  padding-top: 26px;
}
.hero .tide div { font-size: 0.82rem; color: #B9CCC4; }
.hero .tide strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sand);
  font-weight: 500;
}
.hero .btn.ghost,
.band .btn.ghost {
  border-color: var(--sand);
  color: var(--sand);
}
.hero .btn.ghost:hover,
.band .btn.ghost:hover {
  background: var(--sand);
  color: var(--gulf-deep);
}

/* Wave divider — the signature shoreline motif used between sections */
.tideline { display: block; width: 100%; height: 46px; }
.tideline path { fill: var(--sand); }
.tideline.flip path { fill: var(--gulf-deep); }

/* ---------- Photo placeholder blocks ---------- */
.photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--seafoam) 0%, var(--gulf-deep) 100%);
}
.photo.sunset { background: linear-gradient(135deg, #E8C79A 0%, var(--ember) 55%, var(--gulf-deep-2) 100%); }
.photo.sand   { background: linear-gradient(135deg, #EDE0C4 0%, var(--driftwood) 100%); }
.photo.wide   { aspect-ratio: 16 / 9; }
.photo.square { aspect-ratio: 1 / 1; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo .caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(22,36,31,0.72);
  color: var(--sand);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 6px 11px;
  border-radius: 2px;
}
.photo .tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(27,38,36,0.55);
  color: var(--sand);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 5px 9px;
  border-radius: 2px;
  border: 1px dashed rgba(243,234,216,0.5);
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head p { margin-top: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

.card {
  background: var(--paper);
  border: 1px solid var(--sand-line);
  border-radius: 4px;
  padding: 30px 26px;
}
.card .icon { width: 34px; height: 34px; color: var(--teal-dark); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

.band {
  background: var(--gulf-deep);
  color: var(--sand);
}
.band h2, .band .eyebrow { color: var(--sand); }
.band .eyebrow { color: var(--seafoam); }
.band p { color: #C9D8D2; }

/* quote / testimonial */
.quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--gulf-deep);
  max-width: 46ch;
}
.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--driftwood);
  margin-top: 16px;
}

/* ---------- Footer CTA ---------- */
.cta-band {
  background: var(--ember);
  color: var(--paper);
  text-align: center;
}
.cta-band .eyebrow { margin-left: auto; margin-right: auto; }
.cta-band h2 { color: var(--paper); }
.cta-band .btn.ghost { border-color: var(--paper); color: var(--paper); }
.cta-band .btn.ghost:hover { background: var(--paper); color: var(--ember-dark); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--gulf-deep-2);
  color: #B9CCC4;
  padding: 56px 0 26px;
  font-size: 0.9rem;
}
footer.site .grid-3 { gap: 40px; margin-bottom: 40px; }
footer.site h4 { color: var(--sand); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a:hover { color: var(--sand); }
footer.site .bottom {
  border-top: 1px solid rgba(185,204,196,0.15);
  margin-top: 10px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ---------- Utility ---------- */
.list-check { list-style: none; }
.list-check li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--seafoam);
}

table.rates {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--sand-line);
}
table.rates th, table.rates td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sand-line);
}
table.rates th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--driftwood);
  background: rgba(138,111,82,0.06);
}
table.rates tr:last-child td { border-bottom: none; }
table.rates td.price { font-family: var(--font-display); font-size: 1.15rem; color: var(--gulf-deep); }

.badge {
  display: inline-block;
  background: rgba(193,80,46,0.1);
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid .photo:nth-child(3n+1) { grid-row: span 2; aspect-ratio: auto; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--sand-line); }
.info-row .icon { width: 22px; height: 22px; color: var(--ember); flex-shrink: 0; margin-top: 2px; }
.info-row h4 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--driftwood); margin-bottom: 4px; }

form.contact-form { display: grid; gap: 16px; }
form.contact-form label { font-size: 0.85rem; font-weight: 700; color: var(--gulf-deep); margin-bottom: 6px; display: block; }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sand-line);
  border-radius: 3px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
form.contact-form input:focus, form.contact-form select:focus, form.contact-form textarea:focus {
  border-color: var(--ember);
  outline: none;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-block {
  aspect-ratio: 4/3;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--gulf-deep), var(--gulf-deep) 12px, var(--gulf-deep-2) 12px, var(--gulf-deep-2) 24px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  text-align: center;
}
.map-block .pin { font-family: var(--font-display); font-size: 1.1rem; background: rgba(15,44,46,0.75); padding: 14px 22px; border-radius: 4px; border: 1px dashed var(--seafoam); }

/* ---------- Amenity page icons grid ---------- */
.amenity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; }
.amenity-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--sand-line); }
.amenity-item .icon { width: 28px; height: 28px; color: var(--teal-dark); flex-shrink: 0; }
.amenity-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.amenity-item p { color: var(--ink-soft); font-size: 0.92rem; }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--sand-line);
  border-left: 1px solid var(--sand-line);
}
.amenity-grid .a-item {
  border-right: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: background 0.2s;
}
.amenity-grid .a-item:hover { background: var(--paper); }
.amenity-grid .a-item .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20,156,148,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenity-grid .a-item .icon-badge svg {
  width: 24px;
  height: 24px;
  color: var(--teal-dark);
}
.amenity-grid .a-item span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gulf-deep);
  line-height: 1.3;
}
@media (max-width: 880px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .amenity-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .photo:nth-child(3n+1) { grid-row: auto; aspect-ratio: 4/3; }
  .row2 { grid-template-columns: 1fr; }
  nav.primary ul { display: none; }
  header.site .btn { display: none; }
  .topbar .wrap > span { display: none; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .brand { gap: 12px; }
  .brand span:not(.sub) {
    white-space: normal;
    max-width: 38vw;
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .brand .sub { display: none; }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10,37,49,0.55);
    z-index: 40;
  }
  body.nav-open nav.primary ul {
    box-shadow: 0 16px 30px rgba(0,0,0,0.28);
  }
  .navtoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1.5px solid var(--gulf-deep);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
  }
  body.nav-open nav.primary ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--sand-line);
    padding: 8px 32px 20px;
    gap: 0;
  }
  body.nav-open nav.primary ul li {
    border-top: 1px solid var(--sand-line);
  }
  body.nav-open nav.primary ul li a {
    display: block;
    padding: 15px 2px;
    font-size: 1.02rem;
  }

  /* Compact hero so headline, copy, buttons, and stats all fit
     on screen without scrolling on first load. */
  .hero .wrap {
    padding-top: 18px;
    padding-bottom: 28px;
  }
  .hero .eyebrow { font-size: 0.7rem; }
  .hero h1 {
    font-size: 1.95rem;
    margin-top: 6px;
    max-width: 100%;
  }
  .hero p.lede {
    font-size: 0.9rem;
    margin-top: 10px;
  }
  .hero .actions {
    margin-top: 14px;
    gap: 10px;
  }
  .hero .actions .btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
  .hero .tide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 16px;
    padding-top: 12px;
  }
  .hero .tide div { font-size: 0.7rem; }
  .hero .tide strong { font-size: 1.05rem; }
  .hero .tideline { height: 22px; }
}

/* ---------- Brand & social showcase (homepage) ---------- */
.brand-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center;
}
.brand-showcase .logo-big {
  width: 260px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25));
}
.brand-showcase h2 { color: var(--sand); }
.brand-showcase p { color: #C9D8D2; margin-top: 14px; }
.fb-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  color: var(--gulf-deep);
  padding: 16px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 26px;
  transition: background 0.2s, transform 0.2s;
}
.fb-cta-btn svg { width: 28px; height: 28px; color: var(--ember); flex-shrink: 0; }
.fb-cta-btn:hover { background: var(--sand); transform: translateY(-1px); }
.fb-cta-btn .fb-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.fb-cta-btn .fb-text small { font-weight: 500; font-size: 0.78rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
@media (max-width: 880px) {
  .brand-showcase { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
  .brand-showcase .logo-big { width: 280px; }
}

/* ---------- Transparent header over hero (desktop only) ---------- */
@media (min-width: 881px) {
  .site-chrome {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
  }
  header.site {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: static;
    transition: background 0.3s, border-color 0.3s;
  }
  .brand span:not(.sub) { color: var(--sand); transition: color 0.3s; }
  .brand .sub { color: rgba(248,242,222,0.75); transition: color 0.3s; }
  nav.primary a { color: rgba(248,242,222,0.92); transition: color 0.3s; }
  nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--sand); }

  /* extra clearance so hero headline/copy sits below the floating chrome, not under it */
  .hero .wrap { padding-top: 200px; }

  /* solid state once the hero has scrolled out from under the fixed chrome */
  .site-chrome.chrome-scrolled header.site {
    background: var(--sand);
    border-bottom-color: var(--sand-line);
  }
  .site-chrome.chrome-scrolled .brand span:not(.sub) { color: var(--gulf-deep); }
  .site-chrome.chrome-scrolled .brand .sub { color: var(--driftwood); }
  .site-chrome.chrome-scrolled nav.primary a { color: var(--ink-soft); }
  .site-chrome.chrome-scrolled nav.primary a:hover,
  .site-chrome.chrome-scrolled nav.primary a[aria-current="page"] { color: var(--gulf-deep); }
  .site-chrome.chrome-scrolled nav.primary a.btn,
  .site-chrome.chrome-scrolled nav.primary a.btn:hover { color: var(--paper); }
}
