/* ============================================
   Saddleback Ridge Estates — site stylesheet
   Palette: pine, limestone, saddle leather
   ============================================ */

:root {
  --pine: #1f2c24;        /* deep pine green — headers, footer */
  --pine-soft: #33443a;
  --cream: #f7f4ec;       /* limestone cream — page background */
  --stone: #d8d0bd;       /* stone entrance — borders, dividers */
  --saddle: #8a5a33;      /* saddle leather — accent */
  --ink: #262a26;         /* body text */
  --white: #ffffff;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Figtree", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--saddle); }

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

/* ---------- Header ---------- */

.site-header {
  background: var(--pine);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .logo img { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { color: var(--stone); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--saddle); }

.site-nav .phone {
  color: var(--stone);
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,28,22,0.78) 0%, rgba(20,28,22,0.15) 55%, rgba(20,28,22,0.25) 100%);
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 64px 24px 72px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: 18ch;
  text-wrap: balance;
}

.hero .eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
}

/* ---------- Ridge divider (signature) ---------- */

.ridge {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--stone);
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.tint { background: #efeadd; }
.section.dark { background: var(--pine); color: #e9e6da; }

.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  color: var(--pine);
  margin-bottom: 22px;
  max-width: 28ch;
  text-wrap: balance;
}

.section.dark h2 { color: var(--white); }

.section h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--pine);
  margin: 34px 0 10px;
}

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

.lede {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  color: var(--pine);
  max-width: 32em;
}

.section p + p { margin-top: 1em; }
.measure { max-width: 68ch; }

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 34px;
  background: var(--saddle);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: #6f4626; }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--white);
}

.btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.gallery a { display: block; overflow: hidden; border-radius: 2px; }

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery a:hover img { transform: scale(1.04); }

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img { border-radius: 2px; }

/* ---------- Contact / tour block ---------- */

.tour-names {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.6;
}

.tour-names strong { color: var(--white); }
.tour-names a { color: var(--stone); text-decoration: none; }
.tour-names a:hover { color: var(--white); }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 30px; border-top: 1px solid var(--stone); }

.faq-list details { border-bottom: 1px solid var(--stone); }

.faq-list summary {
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 700;
  color: var(--pine);
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--saddle);
}

.faq-list details[open] summary::after { content: "\2013"; }

.faq-list .answer { padding: 0 0 22px; max-width: 68ch; }
.faq-list .answer ul { padding-left: 1.2em; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--pine); }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: var(--white);
}

input:focus, textarea:focus { outline: 2px solid var(--saddle); outline-offset: 1px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine);
  color: #cfc9b8;
  padding: 56px 0 40px;
  text-align: center;
}

.site-footer .dream {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.site-footer address { font-style: normal; font-size: 0.95rem; }
.site-footer .fine { margin-top: 22px; font-size: 0.8rem; opacity: 0.7; }

/* ---------- Utility ---------- */

.figure-caption { font-size: 0.85rem; color: #6b6f68; margin-top: 8px; }
.map-figure { margin-top: 30px; }
.doc-embed { margin-top: 26px; border: 1px solid var(--stone); border-radius: 2px; width: 100%; height: 900px; background: var(--white); }
.logo-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: 24px; }
.logo-row img { max-height: 90px; width: auto; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pine);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .nav-toggle { display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .doc-embed { height: 700px; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
}
