/* =====================================================================
   HeavenHome.site — main stylesheet
   Professional, calm, home-improvement palette.
   Palette: deep teal green + warm cream + charcoal ink + amber accent.
   ===================================================================== */

/* ----------------------- Design tokens ----------------------------- */
:root {
    /* Brand */
    --green-900: #0b3d33;
    --green-700: #0e5c4a;
    --green-600: #136f59;
    --green-100: #e3f1ec;
    --green-50:  #f1f8f5;

    --cream:     #fbf8f2;
    --cream-2:   #f5efe4;

    --ink:       #15212b;
    --ink-soft:  #3c4a55;
    --muted:     #6b7785;
    --line:      #e3e8ee;
    --line-2:    #eef2f6;

    --amber:     #d98a23;
    --amber-100: #fbeede;

    --white:     #ffffff;
    --danger:    #c33c2a;
    --ok:        #2a8a5a;

    /* Type */
    --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Radii & shadows */
    --r-sm: 6px;
    --r:    10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --sh-sm: 0 1px 2px rgba(15, 33, 43, .06);
    --sh:    0 4px 14px rgba(15, 33, 43, .08);
    --sh-lg: 0 18px 40px -12px rgba(15, 33, 43, .18);

    --container: 1160px;
    --narrow: 760px;

    --header-h: 70px;
}

/* ----------------------- Reset ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nav-locked { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-900); text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 700; }
small { font-size: .85em; }
hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* ----------------------- Layout helpers ---------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 700;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-600); margin: 0 0 .6em;
}
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: .35em; }
.section-lead, .page-lead { font-size: 1.12rem; color: var(--ink-soft); }
.section-cta, .steps-cta { text-align: center; margin-top: 36px; }

.visually-hidden, .skip-link {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; clip: auto; background: #fff; z-index: 1000; border-radius: var(--r-sm); box-shadow: var(--sh); }

/* ----------------------- Buttons ----------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: 12px 22px; border-radius: var(--r); border: 2px solid transparent;
    cursor: pointer; text-decoration: none; line-height: 1.2;
    transition: transform .12s ease, background .2s ease, box-shadow .2s ease, color .2s;
    -webkit-appearance: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; box-shadow: var(--sh); }
.btn-secondary { background: var(--green-100); color: var(--green-900); }
.btn-secondary:hover { background: var(--green-50); color: var(--green-900); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--cream-2); color: var(--green-900); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.icon-btn, .link-btn {
    background: none; border: 0; cursor: pointer; font-family: var(--font-head);
    color: var(--muted); font-size: .95rem; padding: 4px 8px; border-radius: var(--r-sm);
}
.icon-btn { font-size: 1.4rem; line-height: 1; }
.icon-btn:hover, .link-btn:hover { color: var(--green-700); background: var(--green-50); }

/* ----------------------- Header / nav ------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 248, 242, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { border-radius: 8px; }
.brand-accent { color: var(--green-700); }
.primary-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
    display: inline-block; padding: 9px 14px; border-radius: var(--r-sm);
    color: var(--ink-soft); text-decoration: none; font-weight: 500; font-family: var(--font-head);
    transition: background .15s, color .15s;
}
.primary-nav a:hover, .primary-nav a.is-active { background: var(--green-50); color: var(--green-900); }
.nav-cta a { background: var(--green-700); color: #fff !important; }
.nav-cta a:hover { background: var(--green-900); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .25s, opacity .25s; }

/* ----------------------- Breadcrumbs ------------------------------- */
.breadcrumbs { background: var(--white); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; margin: 0; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li::after { content: '›'; margin-left: 6px; color: var(--line); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-700); }

/* ----------------------- Hero -------------------------------------- */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--green-50) 100%); padding: 64px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: .92rem; color: var(--ink-soft); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.hero-trust .check { color: var(--ok); font-weight: 800; }
.stars { color: var(--amber); letter-spacing: 1px; }

/* Hero card / mini-calc mock */
.hero-card { perspective: 1200px; }
.mini-calc {
    background: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-lg);
    border: 1px solid var(--line);
}
.mini-calc-head { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #e36b6b; } .dot-y { background: #e3c46b; } .dot-g { background: #7bc47f; }
.mini-title { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.mini-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }
.mini-bar { height: 9px; background: var(--green-100); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-700)); }
.mini-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.mini-results > div { background: var(--green-50); border-radius: var(--r); padding: 14px 6px; }
.mini-results strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--green-900); }
.mini-results small { color: var(--muted); font-size: .76rem; }
.mini-foot { margin-top: 16px; text-align: center; font-size: .82rem; color: var(--muted); }

/* ----------------------- Trust bar --------------------------------- */
.trust-bar { background: var(--green-900); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; text-align: center; }
.trust-grid strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: #fff; }
.trust-grid span { color: rgba(255,255,255,.78); font-size: .88rem; }

/* ----------------------- Feature grid ------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature, .value-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 28px 24px; box-shadow: var(--sh-sm); transition: transform .15s, box-shadow .2s;
}
.feature:hover, .value-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.feature-icon, .value-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.feature h3, .value-card h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { text-align: center; }

/* ----------------------- Steps ------------------------------------- */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.steps li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; margin: 0; position: relative; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--green-700); color: #fff;
    font-family: var(--font-head); font-weight: 800; margin-bottom: 12px;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ----------------------- Guide grid -------------------------------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
    display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: var(--ink);
    box-shadow: var(--sh-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--green-100); text-decoration: none; }
.guide-cat {
    align-self: flex-start; font-family: var(--font-head); font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--green-700);
    background: var(--green-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.guide-card h2, .guide-card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.guide-card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 16px; flex: 1; }
.guide-meta { font-family: var(--font-head); font-size: .85rem; color: var(--green-700); font-weight: 600; }

/* Guides toolbar */
.guides-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.guide-search { padding: 11px 16px; border-radius: var(--r); border: 1px solid var(--line); font-size: 1rem; min-width: 240px; background: var(--white); }
.guide-search:focus { outline: 2px solid var(--green-100); border-color: var(--green-600); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
    background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
    cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink-soft);
    transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { border-color: var(--green-600); }
.filter-chip[aria-selected="true"] { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ----------------------- Testimonials ------------------------------ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testimonial { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--green-600); border-radius: var(--r-lg); padding: 26px; margin: 0; }
.testimonial p { font-size: 1.02rem; font-style: italic; color: var(--ink); }
.testimonial footer { font-family: var(--font-head); font-size: .9rem; color: var(--ink-soft); font-style: normal; }

/* ----------------------- Accordion --------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
    cursor: pointer; padding: 18px 8px; font-family: var(--font-head); font-weight: 700;
    font-size: 1.05rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: '+'; font-size: 1.5rem; color: var(--green-700); font-weight: 400; transition: transform .2s; }
.acc-item[open] summary::after { content: '−'; }
.acc-item summary:hover { color: var(--green-700); }
.acc-body { padding: 0 8px 20px; color: var(--ink-soft); }
.acc-body p { margin: 0; }

/* ----------------------- CTA band ---------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ----------------------- Prose sections ---------------------------- */
.prose-section { background: var(--cream); }
.prose-section h2 { margin-top: 1.6em; }
.prose-section h2:first-child { margin-top: 0; }
.prose-section p, .legal p { color: var(--ink-soft); }
.prose-section a, .legal a { font-weight: 500; }
.meta-line { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* Data tables */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: .95rem; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--green-50); font-family: var(--font-head); color: var(--green-900); font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--green-50); }

/* ----------------------- Page hero (inner pages) ------------------- */
.page-hero { background: linear-gradient(180deg, var(--cream), var(--white)); padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .3em; }

/* ----------------------- Ref / quick cards ------------------------- */
.ref-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ref-card {
    display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--sh-sm);
    transition: transform .15s, box-shadow .2s;
}
.ref-card:hover { transform: translateY(-3px); box-shadow: var(--sh); text-decoration: none; }
.ref-card h3 { font-size: 1.05rem; margin-bottom: .3em; }
.ref-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* =====================================================================
   PAINT CALCULATOR
   ===================================================================== */
.calculator-section { padding: 48px 0 64px; background: var(--cream); }
.calc-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }

.calc-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 28px; box-shadow: var(--sh-sm); position: sticky; top: calc(var(--header-h) + 16px);
}
.calc-group { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; min-width: 0; }
.calc-group legend {
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--green-900);
    padding: 0 8px; display: flex; align-items: center; gap: 8px;
}
.legend-count { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field:last-child { margin-bottom: 0; }
.field-half { grid-column: span 1; }
.field-sm label { font-size: .82rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; }
.field-help { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.hint-out { font-family: var(--font-body); font-weight: 700; color: var(--green-700); font-size: .85rem; }

input[type="text"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
    width: 100%; padding: 11px 13px; font-family: var(--font-body); font-size: 1rem;
    color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
textarea { resize: vertical; min-height: 120px; }

/* Segmented control (units) */
.segmented { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented label { flex: 1; text-align: center; padding: 10px 8px; cursor: pointer; margin: 0; font-size: .9rem; font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); background: #fff; transition: background .15s, color .15s; border-radius: 0; justify-content: center; }
.segmented label + label { border-left: 1px solid var(--line); }
.segmented input:checked + label { background: var(--green-700); color: #fff; }

/* Range */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--green-100); border-radius: 4px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-700); cursor: pointer; border: 3px solid #fff; box-shadow: var(--sh-sm); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--green-700); cursor: pointer; border: 3px solid #fff; }
input[type="range"]:disabled { opacity: .4; }

/* Switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #cfd8df; border-radius: 999px; transition: background .2s; cursor: pointer; }
.slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: var(--sh-sm); }
.switch input:checked + .slider { background: var(--green-700); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.field-check { flex-direction: row; align-items: flex-start; gap: 12px; }
.check-label { font-family: var(--font-body); font-weight: 400; font-size: .92rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }

/* Room cards */
.room-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.room-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--cream); }
.room-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.room-name { flex: 1; font-weight: 700; font-family: var(--font-head); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.room-adv { margin-top: 12px; }
.room-adv summary { cursor: pointer; font-size: .85rem; color: var(--green-700); font-family: var(--font-head); font-weight: 600; }
.room-adv .room-grid { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.field-sm input { padding: 9px 11px; font-size: .95rem; }

.calc-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* Results panel */
.calc-results { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.results-card { background: var(--green-900); color: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-lg); }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.results-head h2 { color: #fff; font-size: 1.2rem; margin: 0; }
.results-badge { background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .05em; }
.results-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.result-big { background: rgba(255,255,255,.08); border-radius: var(--r); padding: 16px; text-align: center; }
.result-big.alt { background: rgba(255,255,255,.04); }
.result-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.result-unit { font-size: .82rem; color: rgba(255,255,255,.72); }
.results-stats { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.results-stats li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.results-stats li span { color: rgba(255,255,255,.72); }
.results-stats li strong { color: #fff; font-family: var(--font-head); font-weight: 700; }
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.results-actions .btn { background: rgba(255,255,255,.12); color: #fff; flex: 1; min-width: 90px; }
.results-actions .btn:hover { background: rgba(255,255,255,.22); }
.results-share { font-size: .85rem; color: rgba(255,255,255,.85); margin: 8px 0 0; }
.results-breakdown { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.results-breakdown h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.breakdown-list .muted { color: rgba(255,255,255,.6); }
.breakdown-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .88rem; border-bottom: 1px dashed rgba(255,255,255,.1); }
.bd-name { color: rgba(255,255,255,.85); }
.bd-vals { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.72); }
.bd-vals strong { color: #fff; }
.breakdown-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); font-family: var(--font-head); font-weight: 700; }

/* History card */
.history-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); }
.history-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.history-head h2 { font-size: 1.1rem; margin: 0; }
.history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.history-list .muted { color: var(--muted); font-size: .9rem; padding: 4px 0; }
.history-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; }
.hist-load { flex: 1; text-align: left; background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: var(--r-sm); }
.hist-load:hover { background: var(--green-50); }
.hist-sum { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .92rem; }
.hist-meta { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* ----------------------- Article layout ---------------------------- */
.article-head { background: linear-gradient(180deg, var(--cream), #fff); padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.article-lead { font-size: 1.18rem; color: var(--ink-soft); margin-top: 12px; }
.article-byline { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .9rem; margin-top: 16px; font-family: var(--font-head); }
.article-body { padding: 40px 0; }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-faq { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--green-100); }
.article-cta { margin-top: 40px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r-lg); padding: 28px; text-align: center; }
.article-cta h3 { margin-bottom: .3em; }
.related-title { text-align: center; margin-bottom: 32px; }

/* ----------------------- Contact ----------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-card { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r-lg); padding: 24px; }
.contact-card-alt { background: #fff; border-color: var(--line); }
.contact-card h2 { font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.ci-label { font-family: var(--font-head); font-weight: 700; color: var(--green-700); font-size: .85rem; }
.form-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm); font-size: .92rem; }
.form-note-ok { background: var(--green-50); color: var(--green-900); border: 1px solid var(--green-100); }

/* ----------------------- 404 --------------------------------------- */
.not-found { padding: 90px 0 120px; text-align: center; }
.nf-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 14vw, 9rem); color: var(--green-100); line-height: 1; margin: 0; }
.nf-links { list-style: none; padding: 0; margin: 28px 0 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ----------------------- Footer ------------------------------------ */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.82); padding-top: 56px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.brand-text-light { color: #fff; }
.brand-accent-light { color: var(--green-100); }
.footer-tagline { font-size: .92rem; color: rgba(255,255,255,.7); margin: 14px 0 8px; max-width: 320px; }
.footer-hours { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-col h2 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-newsletter p { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 16px; }
.newsletter-form input { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: .9rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .btn { background: var(--amber); color: #fff; }
.newsletter-form .btn:hover { background: #c07a1c; }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .82rem; }
.social-links a:hover { background: rgba(255,255,255,.2); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }
.footer-legal a { color: rgba(255,255,255,.6); }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.45); max-width: 520px; }

/* ----------------------- To-top button ----------------------------- */
.to-top {
    position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px;
    border-radius: 50%; background: var(--green-700); color: #fff; border: none;
    font-size: 1.3rem; cursor: pointer; box-shadow: var(--sh-lg); z-index: 90;
    transition: background .2s, transform .15s;
}
.to-top:hover { background: var(--green-900); transform: translateY(-2px); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .feature-grid, .guide-grid, .testimonial-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .ref-grid, .value-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .calc-layout { grid-template-columns: 1fr; }
    .calc-panel, .calc-results { position: static; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { max-width: 460px; margin-top: 16px; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding: 52px 0; }
    .container { padding: 0 18px; }
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream);
        padding: 24px; flex-direction: column; transform: translateX(100%);
        transition: transform .25s ease; overflow-y: auto;
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .primary-nav a { padding: 14px 16px; font-size: 1.05rem; }
    .nav-cta, .nav-cta a { width: 100%; }
    .nav-cta a { padding: 14px; }

    .hero { padding: 40px 0; }
    .feature-grid, .guide-grid, .testimonial-grid, .steps, .ref-grid, .value-grid, .trust-grid, .footer-grid, .results-primary { grid-template-columns: 1fr; }
    .field-row, .room-grid { grid-template-columns: 1fr 1fr; }
    .field-row .field { grid-column: span 2; }
    .calc-panel, .results-card, .contact-form { padding: 20px; }
    .calc-group { padding: 16px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .to-top { bottom: 16px; right: 16px; }
}

@media (max-width: 460px) {
    .field-row, .room-grid, .room-adv .room-grid { grid-template-columns: 1fr; }
    .field-row .field { grid-column: span 1; }
    .mini-results { grid-template-columns: 1fr; }
    .btn-lg { width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* ----------------------- Print ------------------------------------- */
@media print {
    .site-header, .site-footer, .breadcrumbs, .to-top, .nav-toggle, .calc-actions, .results-actions, .newsletter-form, .hero-card { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    a { color: #000; text-decoration: none; }
    .container { max-width: 100%; }
    .section, .calculator-section { padding: 12pt 0; }
}

/* ----------------------- Reduced motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
