/* ==========================================================================
   The White House Facility — Paso Robles
   Ivory, forest, gold. A home, not an institution.
   ========================================================================== */

:root {
  --ivory: #f6f0e6;
  --ivory-deep: #ebe2d2;
  --cream: #fffaf2;
  --paper: #fbf6ee;
  --ink: #1b1814;
  --ink-soft: #3a342c;
  --muted: #6d655b;
  --line: rgba(36, 32, 26, 0.12);
  --forest: #24382c;
  --forest-deep: #15231b;
  --forest-mid: #2f4a3a;
  --gold: #b8955a;
  --gold-soft: #d4bc8a;
  --gold-deep: #8a6a34;
  --rose: #9a4a3c;
  --shadow: 0 18px 50px rgba(21, 35, 27, 0.12);
  --shadow-lg: 0 30px 80px rgba(21, 35, 27, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 84px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(184, 149, 90, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(36, 56, 44, 0.06), transparent 46%),
    var(--ivory);
}

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

a { color: var(--forest-mid); }

a:hover { color: var(--gold-deep); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--forest);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); margin: 0.2rem 0 0.8rem; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0.25rem 0 0.85rem; }
h3 { font-size: 1.55rem; margin: 0 0 0.5rem; }

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.muted { color: var(--muted); }

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 240, 230, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  max-width: min(280px, 62vw);
  padding: 0;
  background: transparent;
  border: 0;
}

.brand-mark {
  flex: 0 0 auto;
  height: 34px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--forest);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(180deg, #d4bc8a, var(--gold));
  color: var(--forest-deep);
}

.btn-gold:hover { color: var(--forest-deep); }

.btn-forest {
  background: var(--forest);
  color: var(--ivory);
}

.btn-forest:hover { color: var(--ivory); background: var(--forest-mid); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(246, 240, 230, 0.4);
}

.btn-ghost:hover { color: var(--ivory); background: rgba(246, 240, 230, 0.08); }

.btn-call {
  background: var(--forest);
  color: var(--ivory) !important;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.btn-call:hover { background: var(--forest-mid); color: var(--ivory) !important; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  justify-items: center;
  align-items: end;
  color: var(--ink);
  overflow: hidden;
  background-color: #8a6a48;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(42.1rem, calc(100% - 2.5rem));
  margin: 1.7rem auto 1.8rem;
  padding: 0.8rem 1.12rem 0.76rem;
  background: rgba(255, 252, 247, 0.78);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(21, 35, 27, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero .eyebrow {
  color: var(--gold-deep);
  font-size: 0.62rem;
}

.hero h1 {
  color: var(--ink);
  max-width: none;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  margin: 0.1rem 0 0.4rem;
}

.hero .lead {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 48rem;
}

.hero .btn-ghost {
  color: var(--forest);
  border-color: rgba(36, 56, 44, 0.28);
}

.hero .btn-ghost:hover {
  color: var(--forest-deep);
  background: rgba(36, 56, 44, 0.06);
}

.hero .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.hero-meta b {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--forest);
}

.hero-meta span {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Sections ─────────────────────────────────────────────── */

.section { padding: 5.5rem 0; }

.section-tight { padding: 4rem 0; }

.section-forest {
  background: var(--forest-deep);
  color: var(--ivory);
}

.section-forest h2,
.section-forest h3 { color: var(--ivory); }

.section-forest .eyebrow { color: var(--gold-soft); }

.section-forest .lead,
.section-forest p { color: rgba(246, 240, 230, 0.82); }

.section-cream { background: var(--cream); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split.reverse { grid-template-columns: 0.95fr 1.05fr; }

.split-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 1.1rem 0 1.25rem;
}

/* ── Cards ────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: 0 8px 24px rgba(21, 35, 27, 0.04);
}

.card .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.card p { margin: 0; color: var(--muted); }

/* ── Photo grid ───────────────────────────────────────────── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.15rem 1rem;
  background: linear-gradient(transparent, rgba(15, 22, 18, 0.78));
  color: var(--ivory);
  font-size: 0.92rem;
}

/* ── Band ─────────────────────────────────────────────────── */

.band {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 22, 18, 0.78) 0%, rgba(15, 22, 18, 0.45) 55%, rgba(15, 22, 18, 0.2) 100%);
}

.band-copy {
  position: relative;
  z-index: 1;
  color: var(--ivory);
  max-width: 36rem;
  padding: 4.5rem 0;
}

.band-copy h2 { color: var(--ivory); }
.band-copy p { color: rgba(246, 240, 230, 0.86); }

/* ── Values / list ────────────────────────────────────────── */

.value-list {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.value-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
}

/* ── Tour gallery ─────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.gallery article {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery .cap { padding: 1.15rem 1.25rem 1.35rem; }

/* ── Contact ──────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--forest-deep);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
}

.contact-card h2 { color: var(--ivory); }
.contact-card a { color: var(--gold-soft); text-decoration: none; }
.contact-card p { color: rgba(246, 240, 230, 0.82); }

.contact-card .phone {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ivory);
  display: inline-block;
  margin: 0.4rem 0 1rem;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
}

textarea { min-height: 140px; resize: vertical; }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-success {
  display: none;
  background: var(--forest);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.form-success.is-on { display: block; }
form.is-off { display: none; }

.map {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
}

.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* ── Page hero (inner) ────────────────────────────────────── */

.page-hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
  color: var(--ivory);
}

.page-hero .bg {
  position: absolute;
  inset: 0;
}

.page-hero .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 22, 18, 0.45), rgba(15, 22, 18, 0.72));
}

.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ivory); max-width: 16ch; }
.page-hero .lead { color: rgba(246, 240, 230, 0.86); }

.page-hero.is-plain {
  background: var(--forest-deep);
  color: var(--ivory);
  padding: 3.4rem 0 2.2rem;
}

.page-hero.is-plain .eyebrow { color: var(--gold-soft); }
.page-hero.is-plain h1 { color: var(--ivory); }
.page-hero.is-plain .lead { color: rgba(246, 240, 230, 0.82); }

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: var(--forest-deep);
  color: rgba(246, 240, 230, 0.78);
  padding: 3.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
}

.site-footer h3 {
  color: var(--ivory);
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { color: rgba(246, 240, 230, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }

.footer-brand .brand-wrap {
  display: inline-flex;
  max-width: 260px;
  margin-bottom: 0.95rem;
  background: transparent;
  border: 0;
}

.footer-brand .brand-mark {
  filter: invert(1) sepia(0.15) saturate(0.35);
}

.footer-brand .brand-name { color: var(--ivory); }
.footer-brand .brand-sub { color: var(--gold-soft); }

.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(246, 240, 230, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(246, 240, 230, 0.55);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .split,
  .split.reverse,
  .card-grid,
  .photo-grid,
  .gallery,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.25rem 1.1rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.65rem; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 2.45rem; }
  .hero { min-height: 78vh; }
  .section { padding: 3.6rem 0; }

  .brand-wrap {
    max-width: calc(100vw - 6.5rem);
    padding: 0;
  }

  .brand-name { font-size: 0.9rem; }
  .brand-sub { letter-spacing: 0.12em; }
}

/* ── Motion ───────────────────────────────────────────────── */

.site-header {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(246, 240, 230, 0.96);
  box-shadow: 0 10px 28px rgba(21, 35, 27, 0.08);
}

.hero-copy {
  animation: rise-in 0.9s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.card-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.gallery .reveal:nth-child(2),
.gallery .reveal:nth-child(4) { transition-delay: 0.1s; }
.value-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.value-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.value-list .reveal:nth-child(4) { transition-delay: 0.24s; }

.zoomable {
  cursor: zoom-in;
}

.frame img,
.split-photo img,
.gallery img {
  transition: transform 0.55s ease;
}

.frame:hover img,
.split-photo:hover img,
.gallery article:hover img {
  transform: scale(1.045);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15, 22, 18, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1080px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  transform: scale(0.94);
  transition: transform 0.32s ease;
}

.lightbox.is-open img { transform: scale(1); }

.lightbox-cap {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--ivory);
  font-size: 0.92rem;
  text-align: center;
  max-width: min(70ch, 90vw);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-copy,
  .reveal,
  .frame img,
  .split-photo img,
  .gallery img,
  .lightbox img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
