/* ═══════════════════════════════════════════════════════════
   Caswell House — demonstration rebuild
   Spectral (display, true italic) + Manrope (UI/body)
   Eco-luxury Cotswolds barn — cream, deep sage, near-black ink.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Spectral Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 101.12%;
  ascent-override: 104.73%;
  descent-override: 45.79%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 102.51%;
  ascent-override: 103.99%;
  descent-override: 29.27%;
  line-gap-override: 0%;
}

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

:root {
  --bg:       #F6F1EC;
  --surface:  #FFFFFF;
  --surface2: #EEE9E2;
  --border:   #D4CFC7;

  --ink:      #171816;
  --ink-l:    #989B82;
  --dark:     #0D0E0C;

  --sage:      #989B82;
  --sage-text: #4D5040;
  --sage-l:    #C2C5B0;

  --text:  #1A1C17;
  --muted: #4A4D3F;

  --max: 1180px;
  --nav: 74px;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Manrope Fallback', system-ui, Arial, sans-serif;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Spectral', 'Spectral Fallback', Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.008em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.95rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.72rem); }
h4 { font-size: 1.15rem; }

p { color: var(--muted); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: 'Spectral', 'Spectral Fallback', Georgia, serif; color: var(--text); }

blockquote, .pull-quote {
  font-family: 'Spectral', 'Spectral Fallback', Georgia, serif;
  font-style: italic; font-weight: 500; line-height: 1.42;
  color: var(--text);
}

:focus-visible { outline: 2px solid var(--sage-text); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.section { padding: clamp(4.5rem, 9vw, 9rem) 0; }
.section-sm { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.panel { background: var(--surface2); }

.eyebrow {
  font-family: 'Manrope', 'Manrope Fallback', system-ui, Arial, sans-serif;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sage-text);
  display: block; margin-bottom: 1.3rem;
}
.rule { width: 2.6rem; height: 2px; background: var(--sage); display: block; margin: 1.5rem 0; }
.rule.center { margin-left: auto; margin-right: auto; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.8; color: var(--muted); max-width: 58ch; }

.btn {
  display: inline-block;
  font-family: 'Manrope', 'Manrope Fallback', system-ui, Arial, sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 2.2rem; min-height: 44px;
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--sage-deep, #5C5E50); color: #FFFFFF; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--sage-text); color: var(--sage-text); }
.band-image .btn-ghost, .band-image .btn-primary { border-color: rgba(255,255,255,0.5); color: #FFFFFF; background: transparent; }
.band-image .btn-ghost:hover, .band-image .btn-primary:hover { border-color: var(--sage-l); color: var(--sage-l); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav); z-index: 100;
  display: flex; align-items: center;
  background-color: rgba(14,17,12,0.65);
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background-color: rgba(246,241,236,0.97); border-bottom-color: var(--border); box-shadow: 0 2px 20px rgba(26,28,23,0.06); }
.nav-inner { max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { font-family: 'Spectral', 'Spectral Fallback', Georgia, serif; font-size: 1.2rem; color: #FFFFFF; white-space: nowrap; flex-shrink: 0; transition: color 0.4s; }
.nav.solid .nav-brand { color: var(--ink); }
.nav-links { display: flex; align-items: center; }
.nav-links a { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.92); padding: 0.7rem 0.78rem; white-space: nowrap; transition: color 0.3s; }
.nav.solid .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--sage-l); }
.nav.solid .nav-links a:hover { color: var(--sage-text); }
.nav-links a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--sage-l); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav.solid .nav-links a[aria-current="page"] { color: var(--sage-text); text-decoration-color: var(--sage); }
.nav-cta { font-size: 0.6rem; padding: 0.8rem 1.35rem; flex-shrink: 0; min-height: 40px; }
.nav:not(.solid) .nav-cta { background: transparent; border-color: rgba(255,255,255,0.65); color: #FFFFFF; }
.nav:not(.solid) .nav-cta:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; min-width: 32px; min-height: 32px; flex-shrink: 0; }
.nav-toggle span { width: 22px; height: 2px; background: #FFFFFF; display: block; transition: background 0.4s; }
.nav.solid .nav-toggle span { background: var(--text); }
.nav-mobile { display: none; flex-direction: column; background: rgba(246,241,236,0.99); border-top: 1px solid var(--border); padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.25rem; position: fixed; top: var(--nav); left: 0; right: 0; z-index: 99; box-shadow: 0 8px 24px rgba(26,28,23,0.10); max-height: calc(100vh - var(--nav)); overflow-y: auto; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0.95rem 0; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .btn { margin-top: 1rem; text-align: center; }
@media (max-width: 1060px) { .nav-toggle { display: flex; } .nav-links, .nav-cta { display: none !important; } }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #101310; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 26s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.08) translate3d(0,-1%,0); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(13,18,12,0.72) 0%, rgba(13,18,12,0.30) 30%, rgba(13,18,12,0.04) 58%, rgba(13,18,12,0.24) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(4rem, 9vh, 8rem); padding-top: calc(var(--nav) + 2rem); }
.hero h1 { color: #FFFFFF; margin-bottom: 1.4rem; max-width: 16ch; }
.hero .eyebrow { color: var(--sage-l); }
.hero-sub { color: rgba(255,255,255,0.92); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.75; max-width: 46ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.5); color: #FFFFFF; }
.hero .btn-ghost:hover { border-color: var(--sage-l); color: var(--sage-l); }
.hero-scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span.line { display: block; width: 2px; height: 42px; background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent); animation: scrollpulse 2.4s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
.hero .stag { opacity: 0; transform: translateY(26px); animation: stagIn 0.8s cubic-bezier(.2,.7,.3,1) forwards; }
.hero h1.stag { opacity: 1; transform: none; animation: none; }
.hero .stag:nth-child(1) { animation-delay: 0.08s; }
.hero .stag:nth-child(3) { animation-delay: 0.16s; }
.hero .stag:nth-child(4) { animation-delay: 0.26s; }
@keyframes stagIn { to { opacity: 1; transform: translateY(0); } }

.page-head { background: var(--surface2); padding: calc(var(--nav) + clamp(4rem, 8vw, 7rem)) 0 clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -8%; top: -50%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(152,155,130,0.12) 0%, transparent 68%); pointer-events: none; }
.page-head h1 { max-width: 18ch; position: relative; }
.page-head p { max-width: 54ch; margin-top: 1.1rem; position: relative; }

.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(.2,.7,.3,1), transform 0.9s cubic-bezier(.2,.7,.3,1); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal-left  { opacity: 0; transform: translateX(-34px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.3,1); }
.js .reveal-right { opacity: 0; transform: translateX(34px);  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.3,1); }
.js .reveal-left.visible, .js .reveal-right.visible { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; }
.js .reveal-img img { transform: scale(1.1); transition: transform 1.6s cubic-bezier(.2,.7,.3,1); will-change: transform; }
.js .reveal-img.visible img { transform: scale(1); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.reverse > .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .split.reverse > .split-media { order: 0; } }
.split-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface2); }
.split-media.tall { aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.band-image { position: relative; overflow: hidden; min-height: 62svh; display: flex; align-items: center; background: #101310; }
.band-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.band-image::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(13,18,12,0.74) 0%, rgba(13,18,12,0.58) 34%, rgba(13,18,12,0.22) 68%, rgba(13,18,12,0.10) 100%); }
@media (max-width: 860px) { .band-image::after { background: linear-gradient(to top, rgba(13,18,12,0.74) 0%, rgba(13,18,12,0.56) 55%, rgba(13,18,12,0.30) 100%); } }
.band-image .wrap { position: relative; z-index: 2; }
.band-image h2, .band-image h3 { color: #FFFFFF; }
.band-image p { color: rgba(255,255,255,0.90); }
.band-image .eyebrow { color: var(--sage-l); }
.band-image blockquote { color: #FFFFFF; }
.band-image .quote-attrib { color: var(--sage-l); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
@media (max-width: 780px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem); text-align: center; }
.fact-n { font-family: 'Spectral', 'Spectral Fallback', Georgia, serif; font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--sage-l); line-height: 1; }
.fact-l { display: block; margin-top: 0.6rem; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.80); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.pillar { background: var(--bg); padding: clamp(1.8rem, 3.4vw, 2.6rem); }
.panel .pillar { background: var(--surface2); }
.pillar-num { font-family: 'Spectral', 'Spectral Fallback', Georgia, serif; font-size: 1.4rem; color: var(--ink); background: var(--sage); width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; line-height: 1; margin-bottom: 1.25rem; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.pillar p { font-size: 0.92rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s; }
.card:hover { border-color: var(--sage); box-shadow: 0 18px 40px rgba(26,28,23,0.10); transform: translateY(-4px); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s cubic-bezier(.2,.7,.3,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { font-size: 1.3rem; }
.card-body p { font-size: 0.9rem; }
.card-tag { font-size: 0.57rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-text); }

.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }
.gal figure { margin: 0; overflow: hidden; background: var(--surface2); aspect-ratio: 3 / 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.3,1); }
.gal figure:hover img { transform: scale(1.05); }

.quote-lead { text-align: center; max-width: 42ch; margin: 0 auto; }
.quote-lead blockquote { font-size: clamp(1.4rem, 2.9vw, 2.3rem); margin-bottom: 1.4rem; }
.quote-attrib { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-text); }
.review { background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--sage); padding: clamp(1.5rem, 3vw, 2.2rem); }
.review blockquote { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.1rem; }
.review .who { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-text); }

.form-card { background: var(--surface); border: 1px solid var(--border); padding: clamp(1.6rem, 3.4vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.85rem 0.95rem; font-family: 'Manrope', 'Manrope Fallback', system-ui, Arial, sans-serif; font-size: 1rem; min-height: 46px; width: 100%; outline: none; transition: border-color 0.25s; -webkit-appearance: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage-text); }
.field input::placeholder, .field textarea::placeholder { color: #7A7D6E; }
.form-note { font-size: 0.8rem; color: var(--muted); background: var(--surface2); border-left: 2px solid var(--sage); padding: 0.8rem 1rem; }
.panel .form-note { background: var(--bg); }
.avail { margin-top: 1.4rem; padding: 1.3rem 1.5rem; border-left: 2px solid var(--sage); background: var(--surface2); }
.avail h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.avail p { font-size: 0.9rem; margin: 0; }
.avail.free { border-left-color: #3F6B4A; }
.avail.busy { border-left-color: #7A5C3A; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 2rem; width: 100%; padding: 1.5rem 0; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 44px; }
.faq-q-text { font-family: 'Spectral', 'Spectral Fallback', Georgia, serif; font-size: 1.22rem; color: var(--text); }
.faq-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--sage); transition: transform 0.35s, opacity 0.35s; }
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after  { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-icon.open::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s ease, padding 0.3s; }
.faq-a.open { max-height: 460px; padding-bottom: 1.5rem; }
.faq-a p { font-size: 0.94rem; }

footer { background: var(--dark); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-family: 'Spectral', 'Spectral Fallback', Georgia, serif; font-size: 1.5rem; color: #FFFFFF; margin-bottom: 0.6rem; }
.footer-tag { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.72); max-width: none; }
.footer-h { font-size: 0.57rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-l); margin-bottom: 1.1rem; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-col a, .footer-col span { font-size: 0.8rem; color: rgba(255,255,255,0.80); padding: 0.35rem 0; display: inline-block; transition: color 0.25s; max-width: none; }
.footer-col a:hover { color: var(--sage-l); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-legal p { font-size: 0.63rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.66); max-width: none; }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.prose p { margin-bottom: 1.3rem; }
.prose p:last-child { margin-bottom: 0; }
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.8rem; }
.tick-list li { font-size: 0.95rem; color: var(--muted); padding-left: 1.5rem; position: relative; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: 0.66em; width: 9px; height: 2px; background: var(--sage); }
.band-image .tick-list li { color: rgba(255,255,255,0.90); }

.skip-link { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto; overflow: visible; clip: auto; padding: 0.6rem 1.1rem; background: var(--ink); color: #FFFFFF; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; z-index: 9999; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-left, .js .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .reveal-img img { transform: none !important; transition: none !important; }
  .hero-media img { animation: none !important; }
  .hero .stag { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-scroll span.line { animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
