/* Modular Garden Home — guide pages (base.njk). The homepage keeps its own inline
   styles; these tokens are copied from it so the two read as one site. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #fbf8f3;
  --oat: #f1ebe1;
  --stone: #e4dccf;
  --line: #d9d0c2;
  --ink: #1b1e1c;
  --ink-soft: #3b403d;
  --muted: #6b6f6a;
  --moss: #36503b;
  --moss-deep: #263a2a;
  --moss-tint: #e6ece3;
  --brass: #a8743e;
  --white: #ffffff;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --measure: 46rem;
  --gutter: clamp(16px, 4vw, 48px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--moss-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
h4 { font-family: var(--sans); font-weight: 600; }
em { font-style: italic; }

.eyebrow {
  display: block;
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 0.92rem; font-weight: 500; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--moss); }
.site-nav .nav-cta {
  background: var(--moss); color: var(--white); padding: 10px 16px; border-radius: 2px; white-space: nowrap;
}
.site-nav .nav-cta:hover { background: var(--moss-deep); color: var(--white); }
@media (max-width: 560px) {
  .brand img { height: 32px; }
  .site-nav { gap: 12px; font-size: 0.85rem; }
  .site-nav > a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { padding: 9px 12px; }
}

/* Garden homes dropdown (15 Nov 2026): <details>, no JS, works on touch */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; white-space: nowrap; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-drop summary:hover { color: var(--moss); }
.nav-drop-panel { position: absolute; top: calc(100% + 12px); left: -14px; min-width: 200px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 8px 0; z-index: 30; }
.nav-drop-panel a { display: block; padding: 9px 18px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.nav-drop-panel a:hover, .nav-drop-panel a[aria-current="page"] { color: var(--moss); background: var(--oat, #f1ebe1); }
@media (max-width: 560px) { .nav-drop-panel { left: auto; right: -90px; } }
/* Areas dropdown (15 Nov 2026): short label on phones so logo + 2 dropdowns + CTA fit at 390px */
.lbl-short { display: none; }
@media (max-width: 760px) { .lbl-long { display: none; } .lbl-short { display: inline; } }
@media (max-width: 560px) { .nav-drop-areas .nav-drop-panel { right: -40px; } }
.xs-short { display: none; }
@media (max-width: 560px) { .brand { flex-shrink: 0; } .site-nav { gap: 10px; } .xs-long { display: none; } .xs-short { display: inline; } }

/* ---------- Page hero ---------- */
.page-hero { background: var(--oat); border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 56px); }
.page-hero .container { max-width: calc(var(--measure) + 2 * 48px); }
.page-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.04; margin-bottom: 16px; }
.standfirst { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }
.byline { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.byline a { color: var(--ink-soft); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--moss); text-decoration: underline; }
.breadcrumb .sep { opacity: .6; }

/* ---------- Article body ---------- */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.prose, .article { max-width: var(--measure); margin: 0 auto; }
.article { padding: clamp(32px, 5vw, 56px) var(--gutter); }
.prose > * + *, .article > * + * { margin-top: 1.1em; }
.prose h2, .article h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; margin-top: 1.9em; }
.prose h3, .article h3 { font-size: 1.45rem; line-height: 1.2; margin-top: 1.6em; }
.prose ul, .prose ol, .article ul, .article ol { padding-left: 1.3em; }
.prose li + li, .article li + li { margin-top: .4em; }
.prose strong, .article strong { font-weight: 600; }
.lede { font-size: 1.15rem; }

.article table, .prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.article th, .article td, .prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th, .prose th { font-weight: 600; background: var(--oat); }

.callout { background: var(--moss-tint); border-left: 3px solid var(--moss); padding: 18px 20px; border-radius: 2px; }
.callout.warn { background: #f6ecdf; border-left-color: var(--brass); }
.key-facts { background: var(--white); border: 1px solid var(--line); padding: 20px 22px; border-radius: 2px; }
.key-facts h2, .key-facts h3 { margin-top: 0 !important; font-size: 1.35rem; }
.source-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  font: 600 1.02rem/1.4 var(--sans); color: var(--ink); padding: 18px 32px 18px 0; position: relative;
}
.faq-question::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 400 1.5rem/1 var(--sans); color: var(--brass); }
.faq-item.open .faq-question::after { content: '–'; }
.faq-answer { display: none; padding: 0 0 18px; color: var(--ink-soft); }
.faq-item.open .faq-answer { display: block; }

/* ---------- CTA ---------- */
.cta-box {
  margin: clamp(32px, 5vw, 56px) auto 0; max-width: var(--measure);
  background: var(--moss-deep); color: var(--white); padding: clamp(22px, 4vw, 34px); border-radius: 2px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-box h2 { color: var(--white); font-size: 1.7rem; line-height: 1.1; margin: 0 0 6px !important; }
.cta-box p { color: rgba(255,255,255,.82); font-size: 0.95rem; max-width: 30em; margin: 0 !important; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: #e9c79c; color: var(--ink);
  padding: 14px 20px; border-radius: 2px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #f2dcbc; color: var(--ink); text-decoration: none; }

/* ---------- Cluster block ---------- */
.cluster-nav { background: var(--oat); border-top: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0; }
.cluster-nav .container { max-width: calc(var(--measure) + 2 * 48px); }
.cluster-nav .cta-box { margin: 0 0 40px; max-width: none; }
.cluster-nav h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cluster-nav-blurb { color: var(--ink-soft); margin-bottom: 16px; }
.cluster-nav-list, .cluster-nav-pillars { list-style: none; display: grid; gap: 8px; }
.cluster-nav-item a { text-decoration: none; font-weight: 500; }
.cluster-nav-item a:hover { text-decoration: underline; }
.cluster-nav-item.is-current a { color: var(--ink); }
.cluster-nav-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); margin-left: 6px; }
.cluster-nav-other-heading { margin-top: 32px; }

/* ---------- Guides hub ---------- */
.guide-cluster { max-width: var(--measure); margin: 0 auto 44px; }
.guide-cluster-title { font-size: 1.9rem; margin-bottom: 6px; }
.guide-cluster-title a { color: var(--ink); text-decoration: none; }
.guide-cluster-blurb { color: var(--ink-soft); margin-bottom: 14px; }
.guide-list { list-style: none; border-top: 1px solid var(--line); }
.guide-item { border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; gap: 4px; }
.guide-link { font-weight: 600; text-decoration: none; }
.guide-desc { font-size: 0.92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-deep); color: rgba(255,255,255,.78); padding: 48px var(--gutter) 28px; font-size: 0.9rem; }
.site-footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 12px; }
.footer-col h2 { font: 600 0.72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #e9c79c; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { max-width: 1240px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.78rem; color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .site-footer-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   DESIGN REFRESH (4 Nov 2026): guide pages and the guides hub.
   Dark moss hero with the garden home render (labelled artist's impression),
   "On this page" list, stronger fact boxes, card list on the hub.
   The homepage, thankyou and privacy pages do not load this file.
   ========================================================================== */
.is-guide .page-hero, .is-hub .page-hero {
  position: relative; overflow: hidden; border-bottom: 0;
  background: var(--moss-deep); color: var(--white);
  padding: clamp(40px, 7vw, 88px) 0 clamp(44px, 7vw, 88px);
}
.is-guide .page-hero::before, .is-hub .page-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background: url(/images/garden-home-exterior.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  opacity: .9;
}
.cluster-cost .page-hero::before, .cluster-living .page-hero::before { background-image: url(/images/garden-home-interior.jpg); }
.is-guide .page-hero::after, .is-hub .page-hero::after {
  content: "Artist's impression"; position: absolute; right: 14px; bottom: 10px;
  font-size: 0.7rem; letter-spacing: .04em; color: rgba(255,255,255,.75);
}
.is-guide .page-hero .container, .is-hub .page-hero .container { position: relative; z-index: 1; max-width: 1120px; }
.is-guide .page-hero .container > *, .is-hub .page-hero .container > * { max-width: 40rem; }
.is-guide .page-hero h1, .is-hub .page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.6vw, 4rem); }
.is-guide .standfirst, .is-hub .standfirst { color: rgba(255,255,255,.82); }
.is-guide .page-hero .eyebrow, .is-hub .page-hero .eyebrow { color: #e9c79c; }
.is-guide .breadcrumb, .is-guide .breadcrumb a, .is-hub .breadcrumb, .is-hub .breadcrumb a { color: rgba(255,255,255,.65); }
.is-guide .byline, .is-guide .byline a { color: rgba(255,255,255,.7); }
@media (max-width: 860px) {
  .is-guide .page-hero::before, .is-hub .page-hero::before { width: 100%; opacity: .28;
    -webkit-mask-image: none; mask-image: none; }
}

/* Layout with the "On this page" list */
.guide-layout { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.guide-layout > .prose.container { padding: 0; }
.toc { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--moss); border-radius: 4px; padding: 18px 20px; margin: 0 auto 28px; max-width: var(--measure); font-size: 0.92rem; }
.toc-title { font: 600 0.72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 6px; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.6em 1fr; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--brass); font-size: 0.78rem; padding-top: 2px; }
.toc a { color: var(--ink-soft); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--moss); text-decoration: underline; }
@media (min-width: 1100px) {
  .guide-layout { display: grid; grid-template-columns: 240px minmax(0, var(--measure)); gap: 56px; justify-content: center; align-items: start; }
  .toc { position: sticky; top: 88px; margin: 6px 0 0; max-height: calc(100vh - 110px); overflow: auto; }
}

/* Article body polish */
.is-guide .prose h2 { position: relative; padding-top: 18px; scroll-margin-top: 90px; }
.is-guide .prose > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--brass); }
.is-guide .prose > p:first-child { font-size: 1.15rem; color: var(--ink); }
.key-facts { border: 0; border-top: 3px solid var(--moss); border-radius: 4px; box-shadow: 0 14px 34px -22px rgba(27,30,28,.45); padding: 24px 26px; }
.key-facts ul { list-style: none; padding-left: 0 !important; }
.key-facts li { position: relative; padding-left: 22px; }
.key-facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.callout { border-radius: 0 4px 4px 0; }
.prose table { border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.prose th { background: var(--moss-tint); }
.cta-box { border-radius: 4px; background-image: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(233,199,156,.18) 0%, transparent 60%); }

/* Guides hub: card list */
.is-hub .guide-cluster { max-width: 1040px; }
.is-hub .guide-list { border-top: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.is-hub .guide-item { border: 0; padding: 0; }
.is-hub .guide-link {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px 40px;
  color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms;
}
.is-hub .guide-link:hover { transform: translateY(-2px); border-color: var(--moss); box-shadow: 0 14px 30px -20px rgba(27,30,28,.45); text-decoration: none; }
.guide-link-title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; color: var(--ink); }
.is-hub .guide-desc { line-height: 1.55; }
.guide-arrow { position: absolute; left: 22px; bottom: 14px; color: var(--brass); font-weight: 600; }
.is-hub .guide-cluster-title { padding-top: 16px; position: relative; }
.is-hub .guide-cluster-title::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--brass); }
.is-hub .cta-box { max-width: 1040px; }
summary.toc-title { cursor: pointer; list-style: none; margin-bottom: 0; }
summary.toc-title::-webkit-details-marker { display: none; }
summary.toc-title::after { content: " +"; }
.toc[open] summary.toc-title { margin-bottom: 12px; }
.toc[open] summary.toc-title::after { content: " –"; }
