/* Tidewater at Atlantic Beach — design tokens (from Haven template) */
:root {
  --brand: #0060A0;        /* Tidewater logo ocean blue — primary */
  --brand-deep: #044E7C;
  --ink: #2B3138;          /* deep slate ink */
  --ink-soft: #5A636D;
  --linen: #FAF7F0;        /* warm sand background */
  --sage: #E6F0F4;         /* pale sea band */
  --brass: #C09442;        /* monument-sign gold — banner */
  --line: #E2DFD5;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-deep); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 10px;
}

section { padding: 72px 0; }

/* ---------- announcement bar ---------- */
.announce { background: var(--brass); color: #fff; font-size: 1.08rem; }
.announce .wrap {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  padding: 19px 56px 19px 24px; position: relative; text-align: center;
}
.announce span { font-weight: 600; }
.announce a { color: #fff; font-weight: 700; }
.announce .dismiss {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: rgba(255,255,255,0.9);
  font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 6px;
}
.announce .dismiss:hover { color: #fff; }
.announce.concession { background: var(--brand-deep); font-size: 1rem; }
.announce.concession .wrap { padding: 13px 56px 13px 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-link img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-weight: 600; font-size: 0.92rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-deep); }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: 0.97rem;
  padding: 12px 22px; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-outline { border: 1.5px solid var(--brand); color: var(--brand-deep); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.site-nav .btn { padding: 9px 18px; font-size: 0.86rem; }
@media (max-width: 900px) {
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .site-header .wrap {
    height: auto; min-height: 60px; flex-wrap: wrap;
    justify-content: center; padding-top: 10px; padding-bottom: 10px; gap: 10px;
  }
  .brand-link img { height: 42px; }
  .site-nav { gap: 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 0; color: #fff;
  min-height: 74vh; display: flex; align-items: flex-end;
}
.hero picture, .hero img.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35, 42, 38, 0.82) 0%, rgba(35, 42, 38, 0.28) 55%, rgba(35, 42, 38, 0.10) 100%);
}
.hero .wrap {
  position: relative; z-index: 2; padding-bottom: 64px; padding-top: 140px;
  text-shadow: 0 1px 12px rgba(20, 24, 21, 0.5);
}
.hero .eyebrow { color: #F0DFAE; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero p { margin-top: 18px; max-width: 56ch; font-size: 1.08rem; color: rgba(255,255,255,0.93); }
.hero-ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* page hero (inner pages) */
.page-hero { background: var(--sage); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero p.lede { margin-top: 12px; max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- facts band ---------- */
.facts { background: var(--brand-deep); color: #fff; padding: 34px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact strong { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: #fff; }
.fact span { font-size: 0.88rem; color: rgba(255,255,255,0.8); }
@media (max-width: 720px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- arched figures (signature) ---------- */
.arch img { border-radius: 260px 260px 14px 14px; }
.arch figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---------- two-column feature ---------- */
.feature .cols {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.feature .cols.flip { grid-template-columns: 0.95fr 1.05fr; }
.feature p { margin-top: 14px; color: var(--ink-soft); max-width: 56ch; }
.feature .cta-row { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .feature .cols, .feature .cols.flip { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- tiles ---------- */
.tile-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
}
.tile h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--brand-deep); }
.tile p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 800px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- lists ---------- */
.leaf-list { list-style: none; }
.leaf-list li {
  padding: 9px 0 9px 30px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 0.99rem;
}
.leaf-list li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 14px; height: 14px; background: var(--brand);
  border-radius: 50% 50% 50% 4px;
}
.list-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; margin-top: 20px; }
@media (max-width: 720px) { .list-cols { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.25s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- availability ---------- */
.listings-embed { margin-top: 34px; min-height: 320px; }
.listings-embed iframe { border: 0; width: 100%; }
.fallback {
  margin-top: 26px; font-size: 0.96rem; color: var(--ink-soft);
  padding: 16px 20px; background: var(--sage); border-radius: 10px;
}

/* ---------- info card / terms ---------- */
.info-card {
  margin-top: 26px; padding: 20px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 0.96rem; color: var(--ink-soft);
}
.info-card strong { color: var(--ink); }

/* ---------- band sections ---------- */
.band { background: var(--sage); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
}
.contact-card h3 { font-size: 1.05rem; color: var(--brand-deep); margin-bottom: 8px; }
.contact-card a.big {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.contact-card p { font-size: 0.92rem; color: var(--ink-soft); }
.mapframe { border: 0; width: 100%; height: 380px; border-radius: 12px; margin-top: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; max-width: 800px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq-list summary {
  font-family: var(--display); font-weight: 600; font-size: 1.08rem;
  cursor: pointer; color: var(--ink);
}
.faq-list details p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--brand); color: #fff; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { margin: 12px auto 26px; max-width: 54ch; color: rgba(255,255,255,0.9); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,0.8); padding: 44px 0 30px; font-size: 0.9rem; }
.site-footer .cols {
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center;
}
.site-footer img { height: 84px; width: auto; }
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .legal { margin-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; gap: 20px; } }
