/* ============================================================
   1231 Spinnaker — Sailview at Lake Oconee
   Style: quiet lakeside luxury — deep water blues, warm ivory,
   brushed brass. Editorial pacing, generous whitespace.
   ============================================================ */

:root {
  --ink: #14232c;          /* deep lake ink */
  --ink-soft: #3d5361;
  --ivory: #faf7f1;        /* page ground */
  --sand: #ece5d8;         /* section alt ground */
  --brass: #a8874f;        /* accent */
  --brass-deep: #8d6f3c;
  --white: #ffffff;
  --line: rgba(20, 35, 44, 0.14);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --header-h: 72px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(4rem, 9vw, 8rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 1.1rem;
}

.section-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 1.2rem; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

em.accent { font-style: italic; color: var(--brass-deep); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  z-index: 60;
  background: rgba(250, 247, 241, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.header-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}

.header-logos {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  text-decoration: none;
}
.header-logos img { height: 42px; width: auto; display: block; }

.header-nav { display: flex; gap: 1.6rem; }
.header-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.header-nav a:hover { color: var(--brass); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.85em 1.9em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-solid { background: var(--brass); color: var(--white); }
.btn-solid:hover { background: var(--brass-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 24, 31, 0.78) 0%,
    rgba(13, 24, 31, 0.25) 45%,
    rgba(13, 24, 31, 0.18) 100%
  );
  z-index: -1;
}
.hero-content {
  width: 100%;
  padding: 0 var(--pad) clamp(2.5rem, 6vh, 4.5rem);
  color: var(--white);
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.8rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 1.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}
.hero-stats strong { font-weight: 500; }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section-alt { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark .lede { color: rgba(250, 247, 241, 0.78); }
.section-dark .eyebrow { color: var(--brass); }

/* ---------- intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }

.facts-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.fact {
  background: var(--ivory);
  padding: 1.6rem 1rem;
  text-align: center;
}
.fact .num { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.fact .label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ---------- area sections ---------- */
.area-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.feature-split.flip .feature-copy { order: -1; }
.feature-split h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.8rem; }
.feature-split p { color: var(--ink-soft); max-width: 52ch; }
.section-dark .feature-split p { color: rgba(250, 247, 241, 0.78); }
.feature-split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.25s ease;
}
.gallery img:hover { opacity: 0.88; }
.gallery .tall { grid-row: span 2; height: 100%; aspect-ratio: auto; }

/* ---------- interactive map embed ---------- */
.map-embed {
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(0.4rem, 1.2vw, 0.8rem);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  border: 0;
}

/* ---------- map ---------- */
.map-frame {
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(0.6rem, 1.6vw, 1.2rem);
}
.map-frame img { width: 100%; cursor: zoom-in; }
.map-caption {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* ---------- contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.contact-logos { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); flex-wrap: wrap; }
.contact-logos img { max-height: 74px; width: auto; }
.contact-name { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-cta { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.contact-lines { margin-top: 0.4rem; color: var(--ink-soft); }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--brass-deep); }
.section-dark .contact-lines { color: rgba(250, 247, 241, 0.8); }
.section-dark .contact-lines a:hover { color: var(--brass); }

/* ---------- footer ---------- */
.site-footer {
  background: #0d181f;
  color: rgba(250, 247, 241, 0.65);
  text-align: center;
  padding: 2.2rem var(--pad);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.footer-logos img { max-height: 54px; width: auto; opacity: 0.92; }

/* ---------- showing form modal ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(13, 24, 31, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
}
.overlay.open { display: flex; }

.form-card {
  background: var(--ivory);
  width: min(460px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  position: relative;
}
.form-card h3 { font-size: 1.7rem; margin-bottom: 0.35rem; }
.form-card .form-note { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.form-card label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1rem 0 0.3rem;
}
.form-card input, .form-card textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.75em 0.9em;
  outline: none;
}
.form-card input:focus, .form-card textarea:focus { border-color: var(--brass); }
.form-card .btn { width: 100%; margin-top: 1.5rem; }
.form-card .form-agent {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.7rem; right: 0.8rem;
  background: none; border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.3rem;
}
.modal-close:hover { color: var(--ink); }
.form-success { text-align: center; padding: 2rem 0; display: none; }
.form-success h3 { margin-bottom: 0.6rem; }

/* ---------- text-tour popup ---------- */
.tour-pop {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: min(340px, calc(100vw - 2.2rem));
  background: var(--ink);
  color: var(--ivory);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 18px 45px rgba(13, 24, 31, 0.4);
  z-index: 90;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.tour-pop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tour-pop h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.tour-pop p { font-size: 0.88rem; color: rgba(250, 247, 241, 0.8); margin-bottom: 1.1rem; }
.tour-pop .btn { width: 100%; text-align: center; }
.tour-pop .modal-close { color: rgba(250, 247, 241, 0.6); }
.tour-pop .modal-close:hover { color: var(--ivory); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(13, 24, 31, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 110;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }

/* ---------- feedback page ---------- */
.fb-main {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: var(--section-gap);
}
.fb-card {
  max-width: 680px;
  margin: 0 auto;
}
.fb-card h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.fb-intro { color: var(--ink-soft); margin-bottom: 2.6rem; max-width: 56ch; }

.fb-howto {
  background: var(--sand);
  border-left: 3px solid var(--brass);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: -1.2rem 0 2.4rem;
}

.fb-q { margin-bottom: 2.4rem; }
.fb-label {
  display: block;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
.req-star { color: var(--brass-deep); }

.slider-wrap {
  padding: 1rem 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.slider-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brass-deep);
  text-align: center;
  margin-bottom: 0.2rem;
}
.slider-hint {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--brass) 50%, rgba(20,35,44,0.18) 50%);
  outline: none;
  margin: 1rem 0 0.6rem;
  cursor: grab;
}
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--brass-deep), 0 3px 8px rgba(20,35,44,0.35);
  cursor: grab;
}
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--brass-deep), 0 3px 8px rgba(20,35,44,0.35);
  cursor: grab;
}
input[type="range"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(168, 135, 79, 0.35);
}
.slider-dots {
  display: flex;
  justify-content: space-between;
  padding: 0 9px;
  margin-top: -0.2rem;
}
.slider-dots button {
  width: 14px; height: 14px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--brass-deep);
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.slider-dots button:hover { transform: scale(1.25); }
.slider-dots button.active { background: var(--brass); }
.slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.55rem;
}

.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.7em 1.5em;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-pill:hover { border-color: var(--brass); }
.radio-pill input { accent-color: var(--brass-deep); width: 1rem; height: 1rem; margin: 0; }
.radio-pill:has(input:checked) { border-color: var(--brass-deep); background: var(--sand); }

.fb-form input[type="text"],
.fb-form input[type="tel"],
.fb-form input[type="email"],
.fb-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.8em 0.95em;
  outline: none;
}
.fb-form input:focus, .fb-form textarea:focus { border-color: var(--brass); }
.fb-form textarea { min-height: 130px; resize: vertical; }

.fb-contact-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -1.2rem 0 1.6rem;
}
.fb-error {
  display: none;
  color: #a33c2e;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.fb-q.invalid .fb-error { display: block; }
.fb-q.invalid .radio-pill { border-color: #a33c2e; }

.fb-submit { width: 100%; margin-top: 0.5rem; }
.fb-success { display: none; text-align: center; padding: 3rem 0; }
.fb-success h2 { font-size: 2rem; margin-bottom: 0.7rem; }
.fb-success p { color: var(--ink-soft); }

.fb-header {
  background: rgba(250, 247, 241, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
.fb-header .header-brand { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hero-img { object-position: 30% 50%; }   /* keep the front porch in frame */
  .intro-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.flip .feature-copy { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; text-align: center; }
  .contact-card > img { justify-self: center; }
  .contact-cta { justify-content: center; }
  .cl-sep { display: none; }
  .cl-role, .cl-brok { display: block; }
  .contact-logos { display: none; }
}
@media (max-width: 700px) {
  :root { --header-h: 108px; }
  .site-header {
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .header-logos { gap: 1rem; }
  .header-logos img { height: 32px; }
  .site-header .btn {
    white-space: nowrap;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    padding: 0.75em 1.6em;
  }
}

@media (max-width: 560px) {
  .header-brand { font-size: 1.05rem; }
  .map-embed iframe { height: 70vh; }
  .btn { padding: 0.8em 1.3em; font-size: 0.72rem; }
  .gallery { grid-template-columns: 1fr; }
  .hero-stats { gap: 0.4rem 1.4rem; font-size: 0.84rem; }
}
