/* ============================================================
   Carver's Reach — design tokens
   Warm craft palette, editorial layout, maker's-mark rule motif
   ============================================================ */
:root {
  --bone: #F7F0E4;
  --bone-deep: #EFE4D1;
  --brick: #6E3226;
  --brick-deep: #4C2119;
  --honey: #E3A12E;
  --honey-soft: #F0C69A;
  --ink: #2B1E18;
  --sage: #7C8A5F;
  --white: #FFFCF6;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 10vw, 148px);

  --rule: 1px solid rgba(43, 30, 24, .18);
  --rule-light: 1px solid rgba(255, 252, 246, .28);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; }
h1, h2 { letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0 0 1.15em; }
figure { margin: 0; }
::selection { background: var(--honey); color: var(--brick-deep); }

/* ---------- utilities ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; scroll-margin-top: 84px; }
.hero, .film-band, .quote-band { scroll-margin-top: 84px; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--brick); color: var(--white);
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }

/* maker's mark — flanking rules, from the brand wordmark */
.mark { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--brick); text-transform: uppercase; }
.mark i { display: block; width: 26px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.mark b { font-weight: 700; }
.mark-light { color: var(--honey-soft); }
.brand-mark { font-size: 13px; letter-spacing: .14em; color: var(--white); }
.brand-mark i { width: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-size: 14px; font-weight: 700; letter-spacing: .02em; transition: background .2s, color .2s, transform .2s; }
.btn-primary { background: var(--honey); color: var(--brick-deep); }
.btn-primary:hover { background: #EDB04C; transform: translateY(-2px); }
.btn-quiet { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.6); min-height: 52px; }
.btn-quiet:hover { color: var(--honey); border-color: var(--honey); }
.text-link { display: inline-block; margin-top: 1.2em; font-size: 14px; font-weight: 700; color: var(--brick); border-bottom: 1px solid var(--honey); padding-bottom: 4px; }
.text-link:hover { color: var(--brick-deep); border-bottom-width: 2px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(76, 33, 25, .28);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(76, 33, 25, .96); border-color: rgba(255,255,255,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.header-right { display: flex; align-items: center; gap: clamp(10px, 1vw, 16px); }
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand-sub { font-size: 9px; letter-spacing: .3em; color: var(--honey-soft); padding-left: 28px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.site-nav a:not(.nav-cta) { font-size: 14px; font-weight: 500; color: var(--white); opacity: .9; }
.site-nav a:not(.nav-cta):hover { opacity: 1; color: var(--honey); }
.nav-cta { background: var(--honey); color: var(--brick-deep); font-size: 13px; font-weight: 700; padding: 12px 20px; }
.nav-cta:hover { background: #EDB04C; }
.header-contact { display: flex; flex-direction: column; gap: 5px; padding-left: clamp(12px, 1.2vw, 18px); border-left: 1px solid rgba(255,252,246,.32); }
.header-contact a { font-size: 14px; font-weight: 600; color: var(--white); white-space: nowrap; letter-spacing: .01em; }
.header-contact a span { color: var(--honey); font-weight: 700; margin-right: 4px; }
.header-contact a .contact-value { color: var(--white); font-size: 1.1em; font-weight: 400; letter-spacing: .01em; margin-right: 0; }
.header-contact a:hover { color: var(--honey); }
.header-contact a:hover span { color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); background: transparent; cursor: pointer; padding: 11px 9px; }
.nav-toggle span { display: block; height: 1px; background: var(--white); margin: 5px 0; }
/* seat the CTA + contact cluster in the right corner on wide screens;
   relative offset leaves the three text links in place.
   shell is 1240px max — slide out by the leftover half-viewport plus the gutter,
   leaving a small breathing space at the edge. */
@media (min-width: 761px) {
  .nav-cta, .header-contact { position: relative; left: max(0px, calc(50vw - var(--shell) / 2 + var(--gutter) - 24px)); }
  /* pull Enquire now closer to the contact block — relative offset only, so the three text links stay put */
  .nav-cta { left: calc(max(0px, 50vw - var(--shell) / 2 + var(--gutter) - 24px) + 40px); }
  /* the smaller value type narrows the contact block — pad the nav so the three text links keep their original x */
  .site-nav { margin-right: 3.35em; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--brick-deep); }
.hero-media, .quote-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-media { background-image: url("assets/hero-parkland.jpg"); transform: scale(1.04); animation: heroZoom 1.8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-shade, .quote-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33,18,13,.9) 0%, rgba(48,24,16,.72) 42%, rgba(60,28,18,.25) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: 130px; padding-bottom: clamp(48px, 7vw, 90px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 780px; }
.hero-kicker { color: var(--honey-soft); margin-bottom: 26px; }
.hero-title { font-size: clamp(56px, 9.5vw, 132px); color: var(--white); line-height: .98; letter-spacing: .02em; }
.hero-lead { max-width: 560px; margin-top: 28px; font-size: clamp(17px, 1.5vw, 21px); color: rgba(255,252,246,.9); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,252,246,.8); flex: none; }
.scroll-line { width: 1px; height: 64px; background: var(--honey); }

/* one orchestrated entrance only */
.enter { opacity: 0; transform: translateY(22px); animation: enterUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .5s; } .d4 { animation-delay: .68s; } .d5 { animation-delay: .85s; }
@keyframes enterUp { to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1.04); } }

/* ---------- film ---------- */
.film-band { background: var(--brick-deep); color: var(--white); padding: clamp(60px, 7vw, 104px) 0; }
.film-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.film-intro h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.08; margin: 20px 0; }
.film-intro p:last-child { color: rgba(255,252,246,.78); max-width: 360px; }
.film-frame { border: 1px solid rgba(255,252,246,.2); padding: 10px; }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; background: #1B0F0A; object-fit: cover; }
.film-frame figcaption { font-size: 12px; letter-spacing: .06em; color: var(--honey-soft); padding: 12px 4px 2px; }

/* ---------- section heads ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 76px); }
.section-head h2 { font-size: clamp(40px, 5.4vw, 76px); margin: 20px 0 18px; }
.section-head > p:last-child { max-width: 540px; color: rgba(43,30,24,.72); }
.section-head-light h2 { color: var(--white); }
.section-head-light .mark { color: var(--honey-soft); }

/* ---------- estate ---------- */
.estate { background: var(--bone); }
.estate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.estate-head h2 { font-size: clamp(42px, 5.6vw, 78px); margin-top: 22px; }
.estate-body { border-top: 2px solid var(--brick); padding-top: 8px; }
.estate-body .lead { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.45; margin-top: 26px; }
.estate-body p:not(.lead) { color: rgba(43,30,24,.78); max-width: 56ch; }

/* ---------- lifestyle mosaic ---------- */
.lifestyle { background: var(--bone-deep); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.tile { position: relative; overflow: hidden; background: var(--brick); }
.tile-wide { grid-column: span 2; }
.tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
.tile:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.tile:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.tile:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.tile:nth-child(6) { grid-column: span 4; grid-row: span 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.045); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 14px; color: var(--white); font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(33,18,13,.78)); }

/* ---------- convenience ---------- */
.convenience { background: var(--brick); color: var(--white); }
.convenience .section-head { margin-bottom: 28px; }
.convenience .section-head h2 { font-size: clamp(36px, 4vw, 56px); margin: 14px 0 0; }
.feature-tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.feature-tag { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid rgba(255,252,246,.24); background: rgba(255,252,246,.03); }
.feature-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(227,161,46,.45); border-radius: 50%; color: var(--honey); }
.feature-icon svg { width: 17px; height: 17px; }
.feature-tag h3 { font-family: var(--font-display); font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--honey-soft); margin: 0; }
.feature-tag p { margin: 3px 0 0; font-size: 12px; line-height: 1.35; color: rgba(255,252,246,.7); }

/* ---------- location ---------- */
.location { background: var(--bone); padding-block: clamp(64px, 7vw, 100px); }
.location-grid { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.location-grid h2 { font-size: clamp(38px, 4.4vw, 60px); margin: 16px 0 18px; }
.location-grid .lead { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.location-grid > div > p:not(.lead) { color: rgba(43,30,24,.75); max-width: 50ch; }
.stats { display: flex; gap: 0; margin-top: 26px; border-top: 2px solid var(--brick); padding-top: 18px; }
.stat { display: flex; flex-direction: column; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(43,30,24,.2); }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat strong { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1; color: var(--brick); }
.stat strong span { font-size: .45em; }
.stat > span { font-size: 13px; margin-top: 6px; color: rgba(43,30,24,.75); }
.map-frame img { width: 100%; max-height: 380px; object-fit: cover; object-position: center; border: 1px solid rgba(43,30,24,.18); }
.map-frame figcaption { font-size: 12px; color: rgba(43,30,24,.65); margin-top: 12px; }

/* ---------- quote divider ---------- */
.quote-band { position: relative; min-height: 440px; display: flex; align-items: center; overflow: hidden; background: var(--brick-deep); }
.quote-media { background-image: url("assets/park-aerial.jpg"); }
.quote-shade { background: linear-gradient(90deg, rgba(33,18,13,.86), rgba(33,18,13,.52)); }
.quote-inner { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.quote-inner blockquote { max-width: 900px; margin-top: 24px; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.2; color: var(--white); letter-spacing: -.02em; }

/* ---------- enquiry ---------- */
.enquiry { background: var(--bone-deep); }
.enquiry-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.enquiry-intro { background: var(--brick); color: var(--white); padding: clamp(32px, 4vw, 56px); position: relative; }
.enquiry-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(135deg, var(--brick) 50%, transparent 50%) 0 0/28px 14px repeat-x, var(--bone-deep); }
.enquiry-intro h2 { font-size: clamp(42px, 5vw, 68px); margin: 22px 0; color: var(--white); }
.enquiry-intro p { color: rgba(255,252,246,.82); }
.enquiry-contact { background: var(--white); border: 1px solid rgba(43,30,24,.14); padding: clamp(32px, 4vw, 58px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.contact-label { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brick); margin: 0 0 22px; }
.contact-agency { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.contact-agency span { font-size: .7em; font-weight: 500; color: rgba(43,30,24,.6); }
.contact-name { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1.05; color: var(--brick); margin: 0 0 26px; }
.contact-lines { border-top: 2px solid var(--brick); padding-top: 20px; width: 100%; }
.contact-lines p { margin: 0 0 14px; font-size: 15px; }
.contact-lines p:last-child { margin-bottom: 0; }
.contact-lines p span { display: inline-block; width: 56px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.contact-lines a { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--honey); padding-bottom: 2px; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--brick); border-bottom-width: 2px; }

/* ---------- footer ---------- */
.site-footer { background: var(--brick-deep); color: var(--white); padding: clamp(60px, 7vw, 90px) 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 50px; }
.footer-brand p { margin: 14px 0 0; font-size: 13px; color: rgba(255,252,246,.65); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,252,246,.18); font-size: 12px; color: rgba(255,252,246,.55); }
.footer-base p { margin: 0; }
.footer-legal-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.legal-tags { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.legal-sep { color: rgba(255,252,246,.35); }
.legal-tag { font-size: 12px; color: rgba(255,252,246,.55); text-decoration: underline; text-decoration-color: rgba(255,252,246,.28); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.legal-tag:hover { color: var(--honey); text-decoration-color: var(--honey); }

/* ---------- responsive ---------- */
@media (min-width: 761px) and (max-width: 1150px) {
  .brand-mark { font-size: 11px; letter-spacing: .1em; gap: 8px; white-space: nowrap; }
  .brand-mark i { width: 10px; }
  .brand-sub { font-size: 8px; padding-left: 0; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { font-size: 13px; white-space: nowrap; }
  .nav-cta { font-size: 12px; padding: 10px 14px; white-space: nowrap; }
  .header-contact a { font-size: 13px; }
}
@media (max-width: 1000px) {
  .film-grid, .estate-grid, .location-grid, .enquiry-grid { grid-template-columns: 1fr; }
  .feature-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estate-body { max-width: 720px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .tile:nth-child(1) { grid-column: span 2; }
  .tile:nth-child(2) { grid-column: span 1; grid-row: span 2; }
  .tile:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .tile:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .tile:nth-child(5) { grid-column: span 1; grid-row: span 1; }
  .tile:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-right { display: contents; }
  .header-contact { display: none; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brick-deep); padding: 0 var(--gutter);
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  }
  .site-nav.is-open { max-height: 360px; padding: 10px var(--gutter) 24px; }
  .site-nav a:not(.nav-cta) { padding: 14px 0; border-bottom: 1px solid rgba(255,252,246,.14); }
  .nav-cta { margin-top: 18px; text-align: center; }
  .hero-inner { padding-top: 110px; }
  .scroll-cue { display: none; }
  .contact-lines p span { display: block; width: auto; margin-bottom: 4px; }
  .contact-lines a { font-size: 14px; }
  .feature-tags { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 20px; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(43,30,24,.2); padding: 0 0 18px; margin: 0; }
  .stat:last-child { border-bottom: 0; }
  .footer-inner, .footer-base { flex-direction: column; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .tile:nth-child(1), .tile:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 52px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .enter { opacity: 1; transform: none; }
  .hero-media { transform: none; }
}
