:root {
  --ink: #17251f;
  --forest: #203a31;
  --forest-deep: #122820;
  --cream: #f3efe6;
  --paper: #fbf9f4;
  --terracotta: #9f4438;
  --gold: #c6a366;
  --line: rgba(23, 37, 31, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; }
img { display: block; width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .75rem 1rem; background: white; color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.masthead {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.25rem, 4vw, 4rem); color: white;
}
.brand { text-decoration: none; font: 600 1.35rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.nav a:not(.book-link)::after { content: ""; display: block; width: 0; height: 1px; background: currentColor; transition: width .2s; }
.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }
.book-link { border: 1px solid rgba(255,255,255,.7); padding: .68rem 1rem; }
.lang { opacity: .78; }
.menu-toggle { display: none; border: 0; color: white; background: transparent; font: 500 .85rem var(--sans); text-transform: uppercase; letter-spacing: .08em; }

.hero {
  position: relative; min-height: 92vh; display: grid; align-items: end;
  color: white; isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/images/exterior-courtyard.jpg') 56% center / cover no-repeat;
  animation: reveal 1.2s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,19,15,.18) 15%, rgba(9,19,15,.06) 42%, rgba(9,19,15,.82) 100%);
}
.hero-content { width: min(1050px, calc(100% - 2.5rem)); margin: 0 auto; padding: 8rem 0 5rem; }
.eyebrow { margin: 0 0 1rem; font-size: .78rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 900px; font: 400 clamp(3.5rem, 9vw, 8.2rem)/.92 var(--serif); letter-spacing: -.045em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: 2.2rem; }
.hero-bottom p { max-width: 590px; margin: 0; font: 400 clamp(1.1rem, 2vw, 1.45rem)/1.5 var(--serif); }
.scroll-cue { flex: none; text-decoration: none; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.scroll-cue span { display: inline-block; margin-left: .45rem; transition: transform .2s; }
.scroll-cue:hover span { transform: translateY(.25rem); }

.fact-strip { background: var(--forest-deep); color: white; }
.facts { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.fact { min-height: 130px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.16); }
.fact:first-child { border-left: 1px solid rgba(255,255,255,.16); }
.fact strong { display: block; font: 400 1.8rem var(--serif); }
.fact span { margin-top: .2rem; opacity: .72; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 4rem); }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.5fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.section-label { margin: .45rem 0 0; font-size: .75rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; color: var(--terracotta); }
.display { margin: 0; font: 400 clamp(2.3rem, 5.6vw, 5.2rem)/1.04 var(--serif); letter-spacing: -.035em; }
.intro-copy { columns: 2; column-gap: 3rem; margin-top: 2.5rem; max-width: 880px; }
.intro-copy p { margin: 0; }

.image-story { background: var(--cream); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.story-photo { position: relative; }
.story-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.story-photo::after { content: ""; position: absolute; width: 43%; height: 34%; right: -9%; bottom: -11%; border: 1px solid var(--terracotta); z-index: 0; }
.story-copy { position: relative; z-index: 1; }
.story-copy h2 { margin: .8rem 0 1.5rem; font: 400 clamp(2.5rem, 5vw, 4.8rem)/1.02 var(--serif); letter-spacing: -.03em; }
.story-copy p { max-width: 560px; }
.text-link { display: inline-block; margin-top: 1rem; padding-bottom: .18rem; border-bottom: 1px solid currentColor; text-decoration: none; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }

.rooms-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.rooms-head .display { max-width: 720px; }
.room-collage { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 280px 300px; gap: 1rem; }
.room-collage button { position: relative; border: 0; padding: 0; background: none; cursor: zoom-in; overflow: hidden; }
.room-collage button:first-child { grid-row: 1 / 3; }
.room-collage img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-collage button:hover img { transform: scale(1.025); }
.caption { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .75rem; background: rgba(18,40,32,.87); color: white; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.kitchen-section { background: var(--forest); color: white; }
.kitchen-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.kitchen-copy .section-label { color: #dfb89a; }
.kitchen-copy h2 { margin: .8rem 0 1.5rem; font: 400 clamp(2.7rem, 5.5vw, 5.1rem)/1 var(--serif); letter-spacing: -.035em; }
.kitchen-copy p { max-width: 480px; color: rgba(255,255,255,.76); }
.kitchen-image { aspect-ratio: 5 / 4; object-fit: cover; }

.gallery-section { padding-bottom: 1rem; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.gallery-head p:last-child { max-width: 420px; margin: 0; }
.gallery { display: grid; grid-template-columns: 1.35fr .65fr 1fr; grid-auto-rows: 250px; gap: .75rem; }
.gallery button { border: 0; padding: 0; background: none; overflow: hidden; cursor: zoom-in; }
.gallery button:first-child { grid-row: span 2; }
.gallery button:nth-child(4) { grid-column: span 2; }
.gallery img { height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.gallery button:hover img { transform: scale(1.025); filter: brightness(.92); }

.location { background: var(--cream); }
.location-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 7vw, 7rem); }
.location-copy h2 { margin: .8rem 0 1.5rem; font: 400 clamp(2.7rem, 5.5vw, 5rem)/1.02 var(--serif); letter-spacing: -.035em; }
.drive-list { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line); }
.drive-list li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.drive-list strong { font-weight: 500; }
.drive-list span { color: var(--terracotta); font-size: .85rem; }
.location-card { align-self: stretch; position: relative; min-height: 520px; background: url('/assets/images/manor.jpg') center / cover; }
.location-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13,28,22,.75)); }
.location-note { position: absolute; z-index: 1; left: 2rem; right: 2rem; bottom: 2rem; color: white; }
.location-note strong { display: block; font: 400 2rem var(--serif); }

.cta { background: var(--terracotta); color: white; text-align: center; }
.cta .section-inner { max-width: 900px; }
.cta h2 { margin: 0; font: 400 clamp(3rem, 7vw, 6.5rem)/.98 var(--serif); letter-spacing: -.04em; }
.cta p { max-width: 600px; margin: 1.5rem auto 2.2rem; color: rgba(255,255,255,.82); }
.primary-button { display: inline-block; padding: .95rem 1.35rem; border: 1px solid white; color: white; text-decoration: none; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s; }
.primary-button:hover { background: white; color: var(--terracotta); }

.footer { padding: 3rem clamp(1.25rem, 4vw, 4rem); background: var(--forest-deep); color: rgba(255,255,255,.72); }
.footer-inner { width: min(1180px, 100%); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-brand { color: white; font: 400 1.8rem var(--serif); }
.footer a { text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 4.5rem; background: rgba(8,16,13,.96); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 9rem); width: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; border: 0; background: transparent; color: white; font: 400 2rem/1 var(--sans); cursor: pointer; }
.lightbox-caption { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.76); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.location-page { min-height: 64vh; padding-top: 10rem; background: var(--forest-deep); color: white; }
.location-page .display { max-width: 850px; }
.location-page .lead { max-width: 700px; margin: 1.7rem 0 0; color: rgba(255,255,255,.76); font-size: 1.15rem; }
.location-details { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

@keyframes reveal { from { opacity: .6; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.bedroom-intro { max-width: 720px; margin: -1rem 0 2.5rem; }
.bedroom-gallery, .bedroom-details-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 1rem; }
.bedroom-gallery button, .bedroom-details-grid button { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--cream); cursor: zoom-in; grid-column: span 2; }
.bedroom-gallery button:nth-child(-n+2) { grid-column: span 3; }
.bedroom-gallery img { aspect-ratio: 4/3; object-fit: cover; }
.bedroom-more { margin-top: 2rem; border-top: 1px solid var(--line); }
.bedroom-more summary { padding: 1.2rem 0; font-size: 1rem; cursor: pointer; }
.bedroom-details-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bedroom-details-grid button { grid-column: span 1; }
.bedroom-details-grid .bedroom-mobile-only { display: none; }
.bedroom-details-grid img { aspect-ratio: 3/4; object-fit: cover; }
.gallery-expanded { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 260px; }
.gallery-expanded button:first-child, .gallery-expanded button:nth-child(4) { grid-row: auto; grid-column: auto; }
.gallery-expanded button:nth-child(7), .gallery-expanded button:nth-child(8) { grid-column: auto; }
.outdoor-section .story-photo::after { display: none; }
@media (max-width: 820px) {
  .bedroom-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bedroom-gallery button, .bedroom-gallery button:nth-child(-n+2) { grid-column: auto; }
  .bedroom-gallery button:last-child { grid-column: span 2; }
  .bedroom-details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-expanded { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .bedroom-gallery { grid-template-columns: 1fr; }
  .bedroom-gallery .bedroom-secondary { display: none; }
  .bedroom-details-grid .bedroom-mobile-only { display: block; }
  .bedroom-gallery button:last-child { grid-column: auto; }
  .bedroom-gallery .caption { position: static; display: block; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 2rem; background: var(--forest-deep); }
  .nav.open { display: flex; }
  .nav a { font-size: 1rem; }
  .menu-toggle { z-index: 2; }
  .hero { min-height: 88vh; }
  .hero-content { padding-bottom: 3rem; }
  .hero-bottom { display: block; }
  .scroll-cue { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.16); }
  .fact { min-height: 110px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .intro-grid, .story-grid, .kitchen-grid, .location-grid, .location-details { grid-template-columns: 1fr; }
  .intro-copy { columns: 1; }
  .story-photo::after { display: none; }
  .story-copy { padding-top: 1rem; }
  .rooms-head, .gallery-head { display: block; }
  .rooms-head .text-link { margin-top: 1.5rem; }
  .room-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 430px 210px; }
  .room-collage button:first-child { grid-column: 1 / 3; grid-row: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .gallery button:first-child { grid-row: span 1; grid-column: span 2; }
  .gallery button:nth-child(4) { grid-column: span 1; }
  .gallery button:last-child { grid-column: span 2; }
  .location-card { min-height: 430px; }
}

@media (max-width: 520px) {
  .masthead { padding: 1.25rem; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero::before { background-position: 61% center; }
  .facts { grid-template-columns: 1fr 1fr; width: 100%; }
  .fact { padding: 1.3rem 1.15rem; }
  .fact strong { font-size: 1.45rem; }
  .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .room-collage { display: block; }
  .room-collage button { width: 100%; height: 300px; margin-bottom: .75rem; }
  .gallery { display: block; }
  .gallery button { width: 100%; height: 280px; margin-bottom: .65rem; }
  .lightbox { padding: 3rem 1rem; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 1.2rem; gap: 1rem; }
}
