/* ==========================================================================
   Zen Home Co. — production stylesheet
   Replaces the Tailwind CDN build. Served locally, cached, minifiable.
   Brand: navy #0f2744 / sage #4a9e7f (from ZenHomeCo_Logo.svg)
   ========================================================================== */

:root {
  --navy: #0f2744;
  --navy-deep: #0a1c31;
  --navy-soft: #1b3a5e;
  --sage: #4a9e7f;
  --sage-dark: #357759;   /* 5.34:1 on white, 4.70:1 on sage-light — WCAG AA everywhere it is used */
  --sage-light: #e8f3ee;
  --ink: #1f2933;
  --body: #46535f;
  --muted: #5f6b77;       /* 5.45:1 on white, 5.12:1 on the alt surface */
  --border: #dfe4e9;
  --surface: #ffffff;
  --surface-alt: #f6f8fa;
  --warn-bg: #fdf3e7;
  --warn-ink: #8a5300;
  --error: #b3261e;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 68, .06), 0 2px 8px rgba(15, 39, 68, .05);
  --shadow-md: 0 4px 12px rgba(15, 39, 68, .08), 0 12px 32px rgba(15, 39, 68, .07);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.2; margin: 0 0 .6rem; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
small { font-size: .82rem; }

/* ---- Focus visibility (WCAG 2.2 AA) ---- */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .sel-btn:focus-visible { outline-offset: 3px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 999;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none; font-weight: 700;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage-dark); margin-bottom: .75rem;
}
.section--navy .eyebrow { color: #7cc8a9; }
.lede { font-size: 1.08rem; max-width: 62ch; }
.center .lede { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: 1rem; font-weight: 800; line-height: 1.2;
  padding: .95rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
/* --sage-dark reaches 4.59:1 with white text (WCAG AA); --sage is reserved
   for borders, icons and other graphical use where 3:1 applies. */
.btn--primary { background: var(--sage-dark); color: #fff; }
.btn--primary:hover { background: #2a5f47; color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.section--navy .btn--outline,
.hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.65); }
.section--navy .btn--outline:hover,
.hero .btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--sage-dark); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--sage); background: var(--sage-light); color: var(--navy); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 900; color: var(--navy); font-size: 1.1rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 1.4rem; }
  .nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .94rem; }
  .nav a:hover, .nav a:focus-visible { color: var(--navy); text-decoration: underline; }
}
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ---- Hero ---- */
.hero { background-color: var(--navy); background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%); color: rgba(255,255,255,.86); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #7cc8a9; }
.hero .eyebrow { color: #7cc8a9; }
.hero__lede { font-size: 1.1rem; max-width: 56ch; margin-bottom: 1.75rem; }
.hero__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.8); }
.trust-row span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); flex: none; }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card--flag { border-left: 4px solid var(--sage); }

/* ---- Pricing cards ---- */
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.price-card--featured { border: 2px solid var(--sage); box-shadow: var(--shadow-md); }
.price-card__tag { position: absolute; top: -.75rem; left: 1.5rem; background: var(--sage); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 50px; }
.price-card__size { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card__amount { font-size: 2.35rem; font-weight: 900; color: var(--navy); line-height: 1.1; margin: .35rem 0 .1rem; letter-spacing: -.03em; }
.price-card__from { font-size: .8rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; font-size: .92rem; }
.price-card li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ---- Add-on list ---- */
.addon-grid { display: grid; gap: .6rem; }
@media (min-width: 640px) { .addon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .addon-grid { grid-template-columns: repeat(3, 1fr); } }
.addon-pill { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; font-size: .92rem; }
.addon-pill b { color: var(--navy); white-space: nowrap; }

/* ---- Quote calculator ---- */
.quote-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.5rem; color: var(--body); }
@media (min-width: 560px) { .quote-card { padding: 1.9rem; } }
.quote-card h2 { font-size: 1.5rem; }
.field-group { margin-bottom: 1.4rem; }
.field-group > legend, .field-label {
  display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; padding: 0;
}
fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; }
.sel-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.sel-btn {
  font-family: inherit; font-size: .92rem; font-weight: 700; color: var(--navy);
  background: #fff; border: 1.5px solid var(--border); border-radius: 50px;
  padding: .6rem 1.05rem; cursor: pointer; min-height: 44px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.sel-btn:hover { border-color: var(--sage); }
.sel-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.addon-check { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: .5rem; background: #fff; }
.addon-check:hover { border-color: var(--sage); }
.addon-check input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sage); flex: none; }
.addon-check label { font-size: .93rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.addon-check .addon-amount { color: var(--sage-dark); font-weight: 800; white-space: nowrap; }
.addon-check .addon-note { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: .15rem; }

.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border);
  background: #fff; color: var(--navy); font-size: 1.15rem; font-weight: 800; cursor: pointer; line-height: 1;
}
.stepper button:hover { border-color: var(--sage); }
.stepper output { min-width: 2.25rem; text-align: center; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.form-row .req { color: var(--error); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff;
  min-height: 48px;
}
.form-row input:hover { border-color: #c4ccd4; }
.form-row .hint { display: block; font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.form-row .err { display: none; font-size: .82rem; color: var(--error); font-weight: 600; margin-top: .3rem; }
.form-row[data-invalid="true"] input, .form-row[data-invalid="true"] select { border-color: var(--error); }
.form-row[data-invalid="true"] .err { display: block; }

.error-summary { display: none; border: 2px solid var(--error); background: #fdecea; border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.error-summary[data-visible="true"] { display: block; }
.error-summary h3 { color: var(--error); font-size: 1rem; margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.error-summary a { color: var(--error); font-weight: 700; }

.summary { background: var(--navy); color: rgba(255,255,255,.82); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin: 1.5rem 0 1rem; }
.summary h3 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.summary__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .3rem 0; }
.summary__line b { color: #fff; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .75rem; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.2); }
.summary__total span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.summary__total b { color: #fff; font-size: 2rem; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary__gst { font-size: .78rem; color: rgba(255,255,255,.62); margin: .2rem 0 0; }

.price-note { font-size: .84rem; color: var(--muted); background: var(--surface-alt); border-left: 3px solid var(--sage); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0; }
.legal-note { font-size: .8rem; color: var(--muted); margin-top: .75rem; }
.legal-note a { color: var(--sage-dark); }

.is-loading { position: relative; pointer-events: none; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Inclusions ---- */
.incl-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; padding-bottom: .6rem; border-bottom: 2px solid var(--sage-light); margin-bottom: .8rem; }
.incl-col ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.incl-col li { position: relative; padding-left: 1.35rem; margin-bottom: .4rem; }
.incl-col li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 800; }

/* ---- Steps ---- */
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-light); color: var(--sage-dark); font-weight: 900; margin-bottom: .75rem; }

/* ---- Reviews ---- */
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.review__stars { color: #96690a; /* 4.86:1 on white — star glyphs are text, so AA applies */ letter-spacing: .1em; margin-bottom: .5rem; }
.review blockquote { margin: 0 0 1rem; font-size: .95rem; color: var(--body); }
.review__who { display: flex; align-items: center; gap: .65rem; }
.review__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; flex: none; }
.review__name { font-weight: 700; color: var(--navy); font-size: .9rem; line-height: 1.3; }
.review__place { font-size: .8rem; color: var(--muted); }

/* ---- Before / after ---- */
.ba-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ba-grid { grid-template-columns: repeat(4, 1fr); } }
.ba-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.ba-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ba-item figcaption { padding: .6rem .8rem; font-size: .82rem; color: var(--muted); }
.ba-item b { display: block; color: var(--navy); font-size: .88rem; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; font-family: inherit; font-size: 1.02rem; font-weight: 700;
  color: var(--navy); text-align: left; padding: 1.1rem .25rem; cursor: pointer; min-height: 48px;
}
.faq__btn:hover { color: var(--sage-dark); }
.faq__icon { flex: none; font-size: 1.4rem; font-weight: 400; color: var(--sage); transition: transform .2s ease; line-height: 1; }
.faq__btn[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__panel { padding: 0 .25rem 1.2rem; font-size: .95rem; max-width: 70ch; }
.faq__panel[hidden] { display: none; }

/* ---- Service areas ---- */
.area-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.area-list li { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 50px; padding: .4rem .9rem; font-size: .86rem; font-weight: 600; color: var(--navy); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.62); padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; }

/* ---- Mobile sticky action bar ---- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: .6rem; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15,39,68,.08);
}
.sticky-bar .btn { flex: 1; padding: .8rem 1rem; font-size: .95rem; }
@media (min-width: 900px) { .sticky-bar { display: none; } }
/* Keep the bar from covering content or form fields */
@media (max-width: 899px) { body { padding-bottom: 84px; } }

/* ---- Content pages ---- */
.doc { max-width: 780px; }
.doc h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.doc h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.doc ul, .doc ol { margin-bottom: 1.25rem; }
.doc__meta { font-size: .86rem; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--border); }
.callout { background: var(--sage-light); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.callout--warn { background: var(--warn-bg); }
.callout p:last-child { margin-bottom: 0; }
.confirm {
  background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed #d9a642;
  border-radius: var(--radius); padding: .85rem 1rem; margin: 1.25rem 0; font-size: .88rem; font-weight: 600;
}

table.data { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); }
table.data th { color: var(--navy); font-weight: 800; background: var(--surface-alt); }
table.data td:last-child, table.data th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media print {
  .site-header, .sticky-bar, .btn, .site-footer { display: none !important; }
  body { color: #000; }
}
