@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --stone: #F7F3E9;
  --stone-deep: #EDE6D3;
  --ink: #221C15;
  --terracotta: #B5652F;
  --clay: #8A7259;
  --cypress: #3E4A3D;
  --line: rgba(34,28,21,0.12);
  --line-soft: rgba(34,28,21,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease;
}
.nav.scrolled {
  background: rgba(247,243,233,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.logo {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity .25s;
}
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: var(--ink); color: var(--stone); }
.btn-solid { background: var(--ink); color: var(--stone); }
.btn-solid:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* HERO */
.hero-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5px;
  padding: 0 5px;
}
.hero-gallery-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #E3D5B4, #C9B98D);
  display: flex;
  align-items: flex-end;
}
.photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34,28,21,0.28), transparent 40%);
}
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 26%; opacity: 0.28; z-index: 0;
}
.photo-label {
  position: relative; z-index: 1;
  font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--stone); opacity: 0.85; padding: 12px;
}

.hero-copy { padding: 56px 0 70px; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6;
  margin-bottom: 18px;
}
h1.display {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.06;
  max-width: 780px;
}
.hero-sub {
  font-size: 17px; line-height: 1.75; max-width: 500px; margin-top: 22px; opacity: 0.85;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* PEDIGREE STRIP */
.pedigree {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pedigree-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
  padding: 24px 0;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65;
}

/* SECTION HEADERS */
.section { padding: 88px 0 20px; }
.section-tight { padding-top: 40px; }
.section-label { font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.65; margin-bottom: 14px; }
h2.display { font-size: clamp(26px, 4vw, 42px); font-weight: 600; max-width: 660px; margin-bottom: 12px; }
.section-intro { font-size: 15.5px; max-width: 560px; opacity: 0.75; margin-bottom: 44px; }

/* HOUSE SELECTOR */
.house-pills { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.house-pill {
  font-size: 13px; letter-spacing: 0.03em;
  padding: 11px 22px; border-radius: 999px;
  border: 1px solid rgba(34,28,21,0.22);
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
  background: transparent;
}
.house-pill.active { background: var(--ink); color: var(--stone); border-color: var(--ink); }

.house-panel { display: none; padding-bottom: 100px; }
.house-panel.active { display: block; }

.house-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 44px; align-items: start;
}

.house-badge {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; margin-bottom: 18px; border: 1px solid var(--accent, var(--terracotta));
  color: var(--accent, var(--terracotta));
}
h3.house-title { font-size: 34px; font-weight: 600; margin-bottom: 6px; }
.house-tagline { font-size: 14.5px; opacity: 0.6; margin-bottom: 26px; }
.house-stats { display: flex; gap: 26px; margin-bottom: 26px; font-size: 14px; flex-wrap: wrap; }
.house-stats strong { font-weight: 500; }
.house-desc { font-size: 15.5px; line-height: 1.8; opacity: 0.88; margin-bottom: 30px; }
.house-meta { font-size: 13.5px; opacity: 0.65; margin-bottom: 6px; }

.amenities-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; margin-bottom: 10px; }
.amenity {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; font-size: 14.5px;
  border-bottom: 1px solid var(--line-soft);
}
.amenity svg { flex-shrink: 0; }

/* BARICHARA / DARK SECTION */
.dark-section { background: var(--ink); color: var(--stone); padding: 96px 0; }
.dark-section .section-label { opacity: 0.55; }
.dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.dark-grid p { font-size: 15px; line-height: 1.85; opacity: 0.82; margin-bottom: 18px; }
.wayfind-card { border: 1px solid rgba(247,243,233,0.22); padding: 32px; }
.wayfind-label { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-bottom: 22px; }
.wayfind-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid rgba(247,243,233,0.14);
}
.wayfind-row:last-child { border-bottom: none; }
.wayfind-name { font-size: 19px; font-weight: 600; }
.wayfind-addr { font-size: 12.5px; opacity: 0.6; margin-top: 2px; }
.wayfind-dist { font-size: 13px; opacity: 0.75; text-align: right; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); margin-top: 12px; }
.service-card { background: var(--stone); padding: 36px 30px; }
.service-card svg { margin-bottom: 18px; color: var(--terracotta); }
.service-card h4 { font-size: 19px; font-weight: 600; margin-bottom: 10px; font-family: 'Cormorant Garamond', serif; }
.service-card p { font-size: 14px; line-height: 1.7; opacity: 0.78; }

/* CONTACT */
.contact-section { padding: 96px 0; }
.contact-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-form { text-align: left; margin-top: 44px; display: grid; gap: 16px; }
.contact-form label { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font-family: 'Jost', sans-serif; font-size: 15px;
  padding: 13px 14px; border: 1px solid rgba(34,28,21,0.25); background: #fff;
  color: var(--ink);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ink);
}
.contact-direct { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.form-note { font-size: 13px; opacity: 0.55; margin-top: 14px; }
.form-status { font-size: 14px; margin-top: 16px; display: none; }
.form-status.show { display: block; }

/* FOOTER */
footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 12.5px; opacity: 0.65; }
.footer-inner .logo { font-size: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { opacity: 0.7; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--ink); color: var(--stone);
  padding: 20px 24px;
  display: none;
  align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(247,243,233,0.15);
}
.cookie-banner.show { display: flex; }
.cookie-text { font-size: 13.5px; line-height: 1.6; max-width: 640px; opacity: 0.9; }
.cookie-text a { text-decoration: underline; opacity: 0.85; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 20px; cursor: pointer; border: 1px solid rgba(247,243,233,0.4); background: transparent; color: var(--stone);
}
.cookie-btn.primary { background: var(--stone); color: var(--ink); border-color: var(--stone); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .house-detail-grid, .dark-grid, .services-grid { grid-template-columns: 1fr; }
  .services-grid { gap: 1px; }
  .nav-links { display: none; }
  .hero-gallery { grid-template-columns: 1fr; }
}
