/* Bella Terra concept. Tokens first, then layout by section. */
:root {
  --ink: #22262A;
  --ink-soft: #4B5259;
  --barn: #6E808F;
  --barn-ink: #56656F; /* barn, darkened for text on light grounds (5.6:1) */
  --mist: #E8ECEE;
  --paper: #F6F7F7;
  --brass: #AF9453;
  --brass-deep: #8A713A;
  --dusk: #1A2430;
  --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ribbon-h: 28px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --gap: clamp(1.5rem, 3vw, 3rem);
  --sky: #EEF1F3;
  --day-ink: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ribbon-h) + 72px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: calc(var(--ribbon-h) + .5rem); }
main:focus { outline: none; }

/* concept ribbon: always on top, always visible */
.concept-ribbon {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--ribbon-h); margin: 0;
  display: flex; align-items: center; justify-content: center; padding: 0 1rem;
  background: var(--brass); color: #1b1a16; font-size: .78rem; font-weight: 500; letter-spacing: .01em; text-align: center;
}

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border: 1px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: var(--paper); font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #000; }
.btn-small { min-height: 40px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.link-quiet { color: inherit; opacity: .9; }
.link-arrow { font-weight: 500; text-decoration: underline; text-decoration-color: var(--brass); }

/* header */
.site-head {
  position: fixed; top: var(--ribbon-h); left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--pad); color: var(--paper);
  background: linear-gradient(to bottom, rgba(20, 24, 28, .55), rgba(20, 24, 28, 0));
  transition: background-color .3s ease, padding .3s ease, color .3s ease;
}
.site-head.is-solid { background: var(--ink); padding-block: .6rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark-name { font-family: var(--display); font-size: 1.55rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.wordmark-place { font-size: .72rem; letter-spacing: .06em; margin-top: .35rem; opacity: .85; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .98rem; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--brass); }
.site-nav .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav-phone { font-weight: 500; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 48px; height: 48px; padding: 10px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* hero */
.hero { position: relative; min-height: max(600px, 100svh); display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 18, 22, .78) 0%, rgba(14, 18, 22, .35) 45%, rgba(14, 18, 22, .1) 75%); }
.hero-copy { position: relative; z-index: 1; padding: 0 var(--pad) clamp(2.5rem, 7vh, 5rem); max-width: 84rem; }
/* wide and short, so the headline sits on the pond and leaves the barn in view */
.hero-title { font-size: clamp(2.1rem, 3.45vw, 3.45rem); line-height: 1.08; }
.hero-line { display: block; }
.hero-line + .hero-line { margin-top: .12em; }
.hero-sub { max-width: 36rem; margin: 1.4rem 0 1.8rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* the one orchestrated moment: the headline settles in as the photo eases back */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
html:not(.reduce) .hero-img { animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
html:not(.reduce) .hero-line, html:not(.reduce) .hero-sub, html:not(.reduce) .hero-actions { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
html:not(.reduce) .hero-line + .hero-line { animation-delay: .14s; }
html:not(.reduce) .hero-sub { animation-delay: .3s; }
html:not(.reduce) .hero-actions { animation-delay: .42s; }

/* shared section frame */
section { position: relative; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: .6em; }

/* the property */
.property { display: grid; grid-template-columns: 1fr; gap: var(--gap); padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.property-intro p { max-width: 34rem; font-size: 1.15rem; color: var(--ink-soft); }
.deed { margin: 0; border-top: 1px solid rgba(34, 38, 42, .22); }
.deed div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(34, 38, 42, .22); }
.deed dt { font-weight: 600; font-size: .9rem; color: var(--barn-ink); padding-top: .3rem; }
.deed dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.3; }
.property-photo { margin: 0; }
.property-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.property-photo figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }
@media (min-width: 960px) {
  .property { grid-template-columns: 1.05fr .95fr; grid-template-areas: "intro photo" "deed photo"; align-items: start; column-gap: clamp(3rem, 6vw, 6rem); }
  .property-intro { grid-area: intro; }
  .deed { grid-area: deed; }
  .property-photo { grid-area: photo; position: sticky; top: calc(var(--ribbon-h) + 96px); }
  .property-photo img { aspect-ratio: 4 / 5; }
}

/* a day at bella terra: the sky changes as the day passes */
.day { background: var(--sky); color: var(--day-ink); padding: clamp(4rem, 9vw, 8rem) var(--pad); transition: background-color .9s ease, color .9s ease; }
.reduce .day { transition: none; }
.day-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.day-head p { font-size: 1.15rem; opacity: .85; }
.day-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 8vw, 5rem); }
.day-step { max-width: 34rem; }
.day-inline { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.2rem; }
.day-when { font-weight: 600; font-size: .92rem; color: inherit; letter-spacing: .02em; margin-bottom: .4rem; }
.day-step h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .5rem; }
.day-step p:last-child { font-size: 1.1rem; }
.day-frame { display: none; }
/* without JS each moment keeps its own sky */
html:not(.js) .day-step[data-sky="noon"] { background: #DCE6EC; }
html:not(.js) .day-step[data-sky="golden"] { background: #EDD9B4; }
html:not(.js) .day-step[data-sky="evening"] { background: #3B3F4B; color: var(--paper); }
html:not(.js) .day-step[data-sky="night"] { background: #141B24; color: var(--paper); }
html:not(.js) .day-step { padding: 1rem; }
@media (min-width: 960px) {
  .js .day-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .js .day-frame { display: block; position: sticky; top: calc(var(--ribbon-h) + 90px); height: min(70vh, 640px); overflow: hidden; }
  .js .day-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
  .js .day-shot.is-active { opacity: 1; }
  .reduce .day-shot { transition: none; }
  .js .day-inline { display: none; }
  .js .day-steps { gap: 0; }
  .js .day-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .7; transition: opacity .5s ease; } /* .7 keeps resting steps above 4.5:1 */
  .js .day-step.is-active { opacity: 1; }
}

/* the spaces */
.spaces { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.spaces-body { display: grid; gap: var(--gap); }
.space-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(34, 38, 42, .22); }
.space-list li { border-bottom: 1px solid rgba(34, 38, 42, .22); }
.space {
  width: 100%; display: grid; gap: .25rem; text-align: left; padding: 1.1rem 0; background: none; border: 0; color: inherit;
  font: inherit; cursor: pointer; position: relative;
}
.space-name { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1; }
.space-note { color: var(--ink-soft); }
.space[aria-pressed="true"] .space-name { color: var(--brass-deep); }
.space[aria-pressed="true"]::before { content: ""; position: absolute; left: -1rem; top: 1.35rem; width: 4px; height: 1.6rem; background: var(--brass); }
.space-photos { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.space-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.space-photo.is-active { opacity: 1; }
.reduce .space-photo { transition: none; }
@media (min-width: 960px) {
  .spaces-body { grid-template-columns: .8fr 1.2fr; align-items: center; column-gap: clamp(3rem, 6vw, 6rem); }
  .space-photos { order: 2; }
}

/* vendors */
.vendors { display: grid; gap: var(--gap); background: var(--mist); padding: clamp(4rem, 9vw, 8rem) var(--pad); align-items: center; }
.vendors-copy p { max-width: 34rem; font-size: 1.15rem; }
.vendors img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 960px) { .vendors { grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); } }

/* photo strip */
.strip { padding: clamp(3rem, 6vw, 5rem) 0; }
.strip-list { list-style: none; margin: 0; padding: 0 var(--pad); display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip-list li { flex: 0 0 auto; scroll-snap-align: start; }
.strip-list img { height: clamp(260px, 38vw, 420px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.strip-list img.tall { aspect-ratio: 2 / 3; }

/* review */
.review { padding: clamp(4rem, 9vw, 7rem) var(--pad); display: grid; place-items: center; text-align: center; }
.review blockquote { margin: 0; max-width: 52rem; }
.review blockquote p { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3; }
.review footer { font-weight: 500; color: var(--ink-soft); }

/* owners */
.owners { display: grid; gap: var(--gap); padding: 0 var(--pad) clamp(4rem, 9vw, 8rem); align-items: center; }
.owners img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.owners figure { margin: 0 0 1.6rem; }
.owners blockquote { margin: 0; }
.owners blockquote p { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; margin-bottom: .4rem; }
.owners figcaption { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 960px) { .owners { grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); } }

/* closer */
.closer { position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--paper); overflow: hidden; }
.closer-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closer::after { content: ""; position: absolute; inset: 0; background: rgba(16, 20, 26, .58); }
.closer-copy { position: relative; z-index: 1; padding: 4rem var(--pad); max-width: 46rem; }
.closer h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); margin-bottom: .5em; }
.closer p { font-size: 1.15rem; margin-bottom: 1.6rem; }

/* footer */
.site-foot { background: var(--ink); color: var(--mist); padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad) 2rem; }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-brand .wordmark-name { font-size: 1.8rem; margin-bottom: .6rem; }
.foot-brand p { max-width: 26rem; }
.foot-h { font-family: var(--text); font-size: .95rem; font-weight: 600; color: var(--brass); margin-bottom: .7rem; }
.site-foot address { font-style: normal; }
.site-foot a:not(.btn) { color: var(--mist); }
.foot-fine { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(232, 236, 238, .18); font-size: .85rem; opacity: .75; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* inner page hero */
.page-hero { position: relative; min-height: 58vh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 18, 22, .78), rgba(14, 18, 22, .15)); }
.page-hero-copy { position: relative; z-index: 1; padding: 0 var(--pad) 3rem; max-width: 44rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: .3em; }
.page-hero p { font-size: 1.15rem; }

/* tour form */
.tour { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.tour-form { display: grid; gap: 1.2rem; max-width: 46rem; }
.field-row { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; }
.optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #9AA3AB; border-radius: 3px; padding: .75rem .85rem; min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.chips label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 400; min-height: 44px; }
.chips input { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--ink); }
.tour-form .btn { justify-self: start; margin-top: .4rem; }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.is-done { background: var(--mist); padding: 1rem 1.2rem; border-left: 4px solid var(--brass); }
.tour-side { max-width: 26rem; }
.side-h { font-family: var(--text); font-size: 1rem; font-weight: 600; color: var(--barn-ink); margin: 0 0 .5rem; }
.tour-side p + .side-h { margin-top: 1.6rem; }
.tour-side img { margin-top: 2rem; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tour { grid-template-columns: 1.6fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); } }

/* 404 */
.lost { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--paper); overflow: hidden; }
.lost-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lost::after { content: ""; position: absolute; inset: 0; background: rgba(16, 20, 26, .6); }
.lost-copy { position: relative; z-index: 1; padding: 2rem var(--pad); }
.lost h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .4em; }
.lost .light { color: var(--paper); margin-left: 1rem; }

/* phones */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: calc(var(--ribbon-h) + 64px) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--ink); padding: 1.5rem var(--pad) 2rem; transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1rem; }
  .site-nav a:not(.btn) { font-size: 1.2rem; }
  .site-head { background: linear-gradient(to bottom, rgba(20, 24, 28, .7), rgba(20, 24, 28, 0)); }
  .wordmark-name { font-size: 1.3rem; }
  .mobile-cta {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(246, 247, 247, .96); border-top: 1px solid rgba(34, 38, 42, .15);
  }
  body { padding-bottom: 72px; }
  .concept-ribbon { font-size: .7rem; }
}
@media (max-width: 600px) {
  /* on a phone the sky holds the words and the barn stays visible below them */
  .hero { align-items: flex-start; }
  .hero::after { background: linear-gradient(to bottom, rgba(14, 18, 22, .78) 0%, rgba(14, 18, 22, .4) 52%, rgba(14, 18, 22, .05) 78%); }
  .hero-copy { padding-top: calc(var(--ribbon-h) + 88px); }
  .hero-title { font-size: 2.05rem; }
  .hero-sub { margin: 1rem 0 1.3rem; }
}
@media (max-width: 860px) {
  /* the sticky bar already carries Call */
  .hero-actions .link-quiet { display: none; }
}
@media (max-width: 860px) {
  /* Preview host only: Netlify's free plan pins a "Powered by Netlify" badge to the
     bottom-right corner, so the quick-action bar floats above it instead of under it. */
  .host-badge .mobile-cta {
    bottom: 64px; left: .6rem; right: .6rem; padding-bottom: .6rem;
    border: 1px solid rgba(34, 38, 42, .15); border-radius: 12px; box-shadow: 0 6px 24px rgba(14, 18, 22, .18);
  }
  .host-badge body { padding-bottom: 140px; }
}
