/* ============================================================
   The Waverly at Gulfport — design system v2
   Palette: charcoal ground + brushed silver, both drawn from the
   property's own monument sign. Clean contemporary system-font
   type stack (no dated serif/geometric-gothic combo).
   ============================================================ */

:root {
  --ink: #17171a;
  --ink-soft: #2a2a2e;
  --silver: #9a9a9c;         /* sign's wave graphic */
  --silver-dark: #6d6d6f;
  --paper: #ffffff;
  --paper-dim: #f5f5f5;
  --line: #e4e4e4;
  --text: #1c1c1e;
  --text-soft: #5a5a5c;
  --white: #ffffff;

  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gap: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.4em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(38px, 5.5vw, 62px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 22px; }

p { max-width: 62ch; }
p.wide { max-width: 74ch; }

a { color: var(--silver-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.site-title small {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--silver-dark);
  margin-left: 10px;
  vertical-align: middle;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  border-bottom-color: var(--silver);
  color: var(--ink);
}
.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 2px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--silver-dark); }

/* Mobile nav toggle (checkbox hack, no JS) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label span { width: 26px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 1100px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 28px 24px;
  }
  .site-nav a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- Buttons ---------- */
.btn, .btn-ghost {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 2px;
  border: 1px solid transparent;
}
.btn {
  background: var(--ink);
  color: var(--white);
}
.btn:hover { background: var(--silver-dark); color: var(--white); }
.btn-ghost {
  border-color: currentColor;
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(23,23,26,0.18), rgba(23,23,26,0.4)), url('images/exterior-sign.jpg');
  background-size: cover;
  background-position: center 60%;
  color: var(--white);
  padding: 150px 0 190px;
  text-align: center;
}
.hero .eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero h1 {
  color: var(--white);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.hero p.tagline {
  font-size: 20px;
  max-width: 46ch;
  margin: 20px auto 34px;
  color: #f2f2f2;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -6px;
}
.wave-divider svg { display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.dim { background: var(--paper-dim); }
section.ink { background: var(--ink); color: #d8d8d8; }
section.ink h2 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-soft); font-size: 19px; }

/* Editorial split row */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media img { border-radius: 2px; }
.split-copy .kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--silver-dark);
  margin-bottom: 12px;
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .split-media,
  .split.reverse .split-copy { order: unset; }
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.feature-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 50%;
}
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Floor plans ---------- */
.plan-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.plan-row img { height: 100%; object-fit: cover; min-height: 280px; }
.plan-row .plan-copy { padding: 44px; }
.plan-row .plan-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  color: var(--ink);
  margin: 6px 0 20px;
}
.plan-row .plan-price span {
  font-size: 16px;
  color: var(--text-soft);
  font-family: var(--body);
  font-weight: 400;
}
.plan-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 16px;
}
.plan-facts li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.photo-note { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }

@media (max-width: 780px) {
  .plan-row { grid-template-columns: 1fr; }
  .plan-row img { min-height: 220px; }
}

/* ---------- Amenities list ---------- */
.amenity-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 40px;
}
.amenity-columns ul { list-style: none; padding: 0; margin: 0; }
.amenity-columns li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
  position: relative;
}
.amenity-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
}
@media (max-width: 780px) { .amenity-columns { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-tier {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--silver-dark);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: 230px; object-fit: cover; border-radius: 2px; }
.gallery-grid figcaption { font-size: 14px; color: var(--text-soft); margin-top: 8px; }

/* ---------- Availability / listing cards ---------- */
.listing-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 30px;
  margin-bottom: 18px;
}
.listing-card h3 { margin-bottom: 4px; }
.listing-card .meta { color: var(--text-soft); font-size: 16px; }
.listing-card .price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  color: var(--ink);
}
@media (max-width: 640px) {
  .listing-card { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { color: var(--text-soft); margin: 0; }

/* ---------- Map ---------- */
.map-frame {
  border: 1px solid var(--line);
  height: 440px;
  width: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 50ch; margin: 0 auto 28px; color: #d8d8d8; font-size: 19px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #a7a7a8;
  padding: 54px 0 32px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid #333;
  margin-bottom: 24px;
}
.footer-grid h4 {
  color: var(--silver);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.site-footer a { color: #a7a7a8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero {
    padding: 50px 0 100px;
    background-image: linear-gradient(180deg, rgba(23,23,26,0.18), rgba(23,23,26,0.45)), url('images/exterior-sign-mobile.jpg');
    background-position: 10% 30%;
  }
  .hero .actions { margin-top: 190px; }
  section { padding: 60px 0; }
  .site-title { font-size: 27px; }
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  margin-top: 14px;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--silver-dark);
}
.contact-form button {
  margin-top: 24px;
  align-self: flex-start;
  cursor: pointer;
}

/* ---------- Blog ---------- */
.blog-post-body { margin-top: 32px; }
.blog-post-body p { max-width: none; margin-bottom: 20px; font-size: 18px; }
.blog-post-body h2 { margin-top: 40px; font-size: 24px; }
.blog-post-body ul { max-width: none; }

/* ---------- Location tiles (Neighborhood section) ---------- */
.location-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.location-tile {
  position: relative;
  height: 340px;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
.location-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.location-tile:hover img { transform: scale(1.04); }
.location-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,23,26,0) 40%, rgba(23,23,26,0.75) 100%);
  z-index: 1;
}
.location-tile .tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 24px 26px;
  color: var(--white);
}
.location-tile .tile-label .eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--silver);
  display: block;
  margin-bottom: 4px;
}
.location-tile .tile-label h3 {
  color: var(--white);
  font-size: 24px;
  margin: 0;
}
@media (max-width: 780px) {
  .location-tiles { grid-template-columns: 1fr; }
  .location-tile { height: 260px; }
}
