/* 05 · DESIGN.md: built from ./DESIGN.md (HomeNest by @chef, MIT). Every value below is from that file unless marked "gap:". */
:root {
  /* Colors */
  --primary: #92400E;          /* Primary Warm Brown: primary actions, key accents */
  --primary-hover: #78350F;    /* Button Primary hover fill */
  --secondary: #84CC16;        /* Secondary Sage: sparingly, positive sentiment */
  --cream: #FEF3C7;            /* Tertiary Cream / Background */
  --surface: #FFFBEB;          /* Surface Default: card backgrounds */
  --white: #FFFFFF;            /* Card Elevated fill */
  --ink: #1C1917;              /* text (Ghost button, labels, tooltip) */
  --helper: #78716C;           /* helper text, list descriptions (used on light surfaces only) */
  --border: #E7E5E4;           /* card and input border */
  --divider: #F5F5F4;          /* list divider, ghost hover */
  --success: #16A34A;
  /* Typography */
  --font-head: 'Alike', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  /* Spacing (base 8px) */
  --xs: 4px; --sm: 8px; --md: 16px; --lg: 24px; --xl: 32px; --xxl: 48px; --xxxl: 64px;
  /* Radius */
  --r-sm: 4px; --r: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 9999px;
  /* Elevation: warm-toned, #92400E */
  --e-sm: 0 1px 3px rgb(146 64 14 / .06);
  --e: 0 2px 8px rgb(146 64 14 / .08);
  --e-md: 0 4px 16px rgb(146 64 14 / .10);
  --e-lg: 0 8px 32px rgb(146 64 14 / .14);
  /* Input focus ring (#92400E20 in the file; raised opacity so the ring reads at 3:1 on every surface) gap: focus on non-inputs */
  --ring: 0 0 0 3px rgb(146 64 14 / .45);
  --dur: 200ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Typography scale */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 400; color: var(--ink); text-wrap: balance; }
h1 { font-size: 36px; line-height: 1.2; }               /* Display */
h2 { font-size: 30px; line-height: 1.25; }              /* H1 step used for section titles */
h3 { font-size: 20px; line-height: 1.35; }              /* H3 */
.body-lg { font-size: 18px; line-height: 1.65; }        /* Body LG */
.muted { color: var(--helper); }
.overline { font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--primary); margin-bottom: var(--sm); }   /* Caption */
@media (min-width: 900px) { h1 { font-size: 52px; line-height: 1.12; } h2 { font-size: 36px; line-height: 1.2; } } /* gap: desktop hero/section step, see README */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; } .ic-xs { width: 14px; height: 14px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r); }
.skip-link { position: absolute; left: -999px; top: var(--sm); z-index: 100; background: var(--primary); color: var(--white); padding: var(--sm) var(--md); border-radius: var(--r); }
.skip-link:focus { left: var(--sm); color: var(--white); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--md); }
@media (min-width: 768px) { .wrap { padding: 0 var(--xl); } }
.narrow { max-width: 860px; }
.section { padding: var(--xxxl) 0; }
@media (min-width: 900px) { .section { padding: calc(var(--xxxl) + var(--xl)) 0; } }
.section-surface { background: var(--surface); border-block: 1px solid var(--border); }
.center-head { text-align: center; max-width: 640px; margin: 0 auto var(--xxl); display: grid; gap: var(--md); justify-items: center; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--md) var(--lg); margin-bottom: var(--xl); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sm); border: 1px solid transparent; border-radius: var(--r); font-family: var(--font-body); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn-sm { padding: 6px 14px; font-size: 14px; min-height: 34px; }
.btn-md { padding: 8px 20px; font-size: 16px; min-height: 42px; }
.btn-lg { padding: 12px 28px; font-size: 18px; min-height: 50px; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--e-sm); }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: rgb(146 64 14 / .05); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: var(--xs); padding: var(--sm) 14px; border-radius: var(--r); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color var(--dur) var(--ease); }
.btn-ghost:hover, .nav a[aria-current=page] { background: var(--divider); color: var(--ink); }
.nav a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--primary); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; line-height: 1.4; }
.chip-filter { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.chip-active { background: var(--primary); color: var(--white); }
/* gap: Status Success text (#16A34A) is under 4.5:1 at 12px; the chip keeps the file's filter style and marks success with a sage disc, the file's positive-sentiment colour */
.chip-success { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.chip-success .ic { width: 18px; height: 18px; padding: 3px; border-radius: var(--r-full); background: var(--secondary); color: var(--ink); stroke-width: 2.4; }
.chip-link { text-decoration: none; font-size: 14px; padding: var(--sm) var(--md); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chip-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--e-sm); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--md); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--primary); color: var(--white); }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); font-size: 20px; line-height: 1.2; white-space: nowrap; }
.brand-text small { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--helper); }
.nav, .header-actions { display: none; }
@media (min-width: 1100px) { .nav { display: flex; align-items: center; gap: 2px; } .header-actions { display: flex; align-items: center; gap: var(--sm); } .menu-btn { display: none; } }
.nav-item { position: relative; }
.nav-item > a .ic { transition: transform var(--dur) var(--ease); }
.nav-item:hover > a .ic, .nav-item:focus-within > a .ic { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: var(--sm); background: var(--white); border-radius: var(--r-md); box-shadow: var(--e-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
.dropdown.two { display: grid; grid-template-columns: 1fr 1fr; min-width: 460px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; min-height: 40px; padding: 10px var(--md); border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: 15px; }
.dropdown a:first-child { font-weight: 700; }
.dropdown a:hover { background: rgb(254 243 199 / .6); color: var(--primary); }
.menu-btn { display: inline-flex; align-items: center; gap: var(--sm); min-height: 42px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--white); color: var(--ink); font: 600 15px var(--font-body); cursor: pointer; }
.menu-btn:hover { border-color: var(--primary); }
@media (min-width: 1100px) { .menu-btn { display: none; } }
.btn-ghost { white-space: nowrap; }
.drawer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--sm) 0 var(--lg); max-height: calc(100dvh - 72px); overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer .wrap > a, .drawer summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 10px var(--md); border-bottom: 1px solid var(--divider); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; color: var(--helper); font-size: 20px; }
.drawer details[open] summary::after { content: '\2212'; }
.drawer .sub { display: grid; padding: var(--xs) 0 var(--sm); }
.drawer .sub a { padding: 10px var(--xl); color: var(--ink); text-decoration: none; }
.drawer-actions { display: grid; gap: var(--sm); margin-top: var(--lg); }

/* Hero */
.hero { padding: var(--xl) 0 var(--xxxl); }
@media (min-width: 900px) { .hero { padding: var(--xxxl) 0; } }
.hero-grid { display: grid; gap: var(--xl); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--xxl); } }
.hero-copy { display: grid; gap: var(--lg); justify-items: start; }
.hero-copy .chip-filter { font-size: 12px; }
.hero-copy .body-lg { max-width: 52ch; }
.promise-chips { display: flex; flex-wrap: wrap; gap: var(--sm); }
.hero-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--e-md); background: var(--surface); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .hero-media { order: -1; aspect-ratio: 16 / 10; } }

/* Split-tile CTA */
.split { display: grid; gap: var(--md); margin-top: var(--xxl); }
@media (min-width: 768px) { .split { grid-template-columns: 2fr 1fr; } }
.tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--md); min-height: 96px; padding: var(--lg); border-radius: var(--r-md); text-decoration: none; transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.tile:active { transform: translateY(1px); }
.tile-main { background: var(--primary); color: var(--white); box-shadow: var(--e-md); }
.tile-main:hover { background: var(--primary-hover); color: var(--white); box-shadow: var(--e-lg); }
.tile-side { background: var(--white); color: var(--ink); box-shadow: var(--e); border: 1px solid var(--border); }
.tile-side:hover { color: var(--ink); border-color: var(--primary); box-shadow: var(--e-md); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: rgb(255 255 255 / .14); }
.tile-side .tile-icon { background: var(--cream); color: var(--primary); }
.tile-text { display: grid; gap: var(--xs); }
.tile-title { font-family: var(--font-head); font-size: 24px; line-height: 1.3; }
.tile-main .tile-title { font-size: 30px; }
.tile-sub { font-size: 16px; opacity: .9; }
.tile-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-full); background: rgb(255 255 255 / .16); transition: transform var(--dur) var(--ease); }
.tile-side .tile-go { background: var(--divider); }
.tile:hover .tile-go { transform: translateX(3px); }
@media (max-width: 599px) { .tile-main .tile-title { font-size: 24px; } .tile-sub { font-size: 14px; } .tile { padding: var(--md); } }

/* Intro */
.intro-grid { display: grid; gap: var(--xl); align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 6fr; gap: var(--xxxl); } }
.intro-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--e); }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-copy { display: grid; gap: var(--lg); justify-items: start; }

/* Listing cards */
.cards { display: grid; gap: var(--lg); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--e-sm); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card:hover { color: var(--ink); box-shadow: var(--e-md); border-color: rgb(146 64 14 / .35); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--cream); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: var(--sm); padding: 20px; flex: 1; }
.card-title { font-family: var(--font-head); font-size: 20px; line-height: 1.35; }
.card-text { color: var(--helper); font-size: 15px; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 15px; }
.card:hover .card-more .ic { transform: translateX(3px); }
.card-more .ic { transition: transform var(--dur) var(--ease); }
@media (max-width: 599px) {
  .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--md)); padding: var(--xs) var(--md) var(--md); }
  .cards > li { scroll-snap-align: start; }
}

/* Steps */
.steps { display: grid; gap: var(--lg); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.card-elevated { background: var(--white); border-radius: var(--r); box-shadow: var(--e-md); }
.step { display: grid; gap: var(--md); align-content: start; padding: var(--xl) var(--lg); }
.step .chip-active { justify-self: start; font-size: 14px; min-width: 32px; justify-content: center; }

/* Explore */
.explore-grid { display: grid; gap: var(--xl); align-items: start; }
@media (min-width: 900px) { .explore-grid { grid-template-columns: 5fr 7fr; gap: var(--xxxl); } }
.area-chips { display: flex; flex-wrap: wrap; gap: var(--sm); margin-top: var(--lg); }
.list { overflow: hidden; }
.list li + li { border-top: 1px solid var(--divider); }
.list a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: var(--md); text-decoration: none; color: var(--ink); transition: background-color var(--dur) var(--ease); }
.list a:hover { background: rgb(254 243 199 / .35); color: var(--ink); }
.list a:active { background: rgb(146 64 14 / .03); }
.thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--cream); color: var(--primary); }
.list-text { display: grid; gap: 2px; }
.list-label { font-size: 16px; font-weight: 600; }
.list-desc { font-size: 14px; color: var(--helper); }
.list-go { font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; }
@media (max-width: 479px) { .list a { grid-template-columns: 44px 1fr; } .list-go { grid-column: 2; } }

/* FAQ */
.acc details + details { border-top: 1px solid var(--divider); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: var(--md); min-height: 60px; padding: var(--md) var(--lg); cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; transition: background-color var(--dur) var(--ease); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: rgb(254 243 199 / .35); }
.acc summary .ic { color: var(--primary); transition: transform var(--dur) var(--ease); }
.acc details[open] summary .ic { transform: rotate(180deg); }
.acc details p { padding: 0 var(--lg) var(--lg); color: var(--helper); }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--xxxl) 0 var(--xl); }
.footer-grid { display: grid; gap: var(--xl); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-line { margin: var(--md) 0 var(--lg); max-width: 34ch; }
.footer-h { font-family: var(--font-body); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer ul { display: grid; gap: var(--xs); }
.footer ul a { display: inline-block; padding: 2px 0; color: var(--ink); text-decoration: none; }
.footer ul a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px var(--lg); margin-top: var(--xxl); padding-top: var(--lg); border-top: 1px solid var(--border); font-size: 14px; color: var(--helper); }
.legal { display: flex; flex-wrap: wrap; gap: var(--sm) 20px; }
.legal a { color: var(--helper); }
.legal a:hover { color: var(--primary); }

/* Phone quote bar */
.quote-bar { position: fixed; inset: auto 0 0; z-index: 40; padding: 12px var(--md) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--e-lg); }
.quote-bar .btn { width: 100%; }
@media (min-width: 1100px) { .quote-bar { display: none !important; } }
@media (max-width: 1099px) { body { padding-bottom: 80px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }

/* Polish pass (make-interfaces-feel-better): touch targets, image edges, press feedback */
.brand { padding-block: 2px; }
.chip-link { min-height: 44px; }
.hero-media img, .intro-media img, .card-img img { outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.btn:active, .tile:active { transform: scale(.96); }

/* Guidelines pass (web-design-guidelines) */
html { touch-action: manipulation; }
.drawer { overscroll-behavior: contain; }
