/* All About Heat Pumps — public site styles */

:root {
    --bg: #ffffff;
    --bg-soft: #f4f7f6;
    --ink: #17212b;
    --ink-soft: #4a5866;
    --muted: #6b7885;
    --line: #dfe5e3;
    --brand: #0f766e;
    --brand-dark: #0b5952;
    --brand-tint: #e6f4f2;
    --warm: #c2410c;
    --warm-tint: #fff4ec;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(23, 33, 43, .06), 0 4px 16px rgba(23, 33, 43, .06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.visually-hidden, .hp-field {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 1rem; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.header-search input { width: 180px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--bg-soft); }
@media (max-width: 720px) {
    .header-search { width: 100%; }
    .header-search input { width: 100%; }
    .site-nav { order: 3; width: 100%; }
}

/* Buttons & forms */
.btn {
    display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
    padding: 11px 18px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-warm { background: var(--warm); }
.btn-warm:hover { background: #9a3412; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], select, textarea {
    font: inherit; padding: 10px 12px; border: 1px solid #c9d2d0; border-radius: 8px; width: 100%; background: #fff; color: var(--ink);
}
label { font-weight: 600; font-size: .95rem; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }

.notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; }
.notice-success { background: #e8f6ee; color: #14532d; border: 1px solid #b7e2c7; }
.notice-error { background: #fdecec; color: #7f1d1d; border: 1px solid #f5c2c2; }
.notice-info { background: var(--brand-tint); color: #134e4a; border: 1px solid #b9ded9; }

/* Hero */
.hero { background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.15rem; max-width: 680px; color: #d7efeb; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn { background: #fff; color: var(--brand-dark); }
.hero .btn:hover { background: #e6f4f2; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.audience-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.audience-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 18px; color: #fff; text-decoration: none; }
.audience-card:hover { background: rgba(255,255,255,.14); color: #fff; }
.audience-card strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.audience-card span { color: #d7efeb; font-size: .95rem; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); }
.page-head { padding: 36px 0 12px; }
.page-head p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 720px; }

/* Cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .card-meta { font-size: .82rem; color: var(--muted); margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); background: var(--brand-tint); padding: 3px 8px; border-radius: 999px; margin-bottom: 10px; text-decoration: none; }
.tag-warm { color: var(--warm); background: var(--warm-tint); }
.tag-verified { color: #14532d; background: #e8f6ee; }

/* Filters / pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.pills a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 600; }
.pills a:hover { border-color: var(--brand); color: var(--brand); }
.pills a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-bar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.filter-bar label { display: block; font-size: .85rem; margin-bottom: 4px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink-soft); }
.pagination span[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Breadcrumbs */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 20px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }

/* Article / guide body */
.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
@media (min-width: 980px) { .article-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; } }
.article-header { padding: 16px 0 8px; }
.article-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.article-summary { font-size: 1.15rem; color: var(--ink-soft); border-left: 4px solid var(--brand); padding-left: 16px; margin: 20px 0 28px; }
.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; color: #1f2a35; }
.prose h2, .prose h3 { font-family: var(--font); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 12px 18px; background: var(--bg-soft); border-left: 4px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .95rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.callout { font-family: var(--font); font-size: 1rem; background: var(--brand-tint); border: 1px solid #b9ded9; border-radius: var(--radius); padding: 16px 18px; margin: 1.5em 0; }
.callout-warm { background: var(--warm-tint); border-color: #fbd5bb; }
.disclosure { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }

.sidebar > * + *, .sidebar-sticky > * + * { margin-top: 20px; }
.sidebar-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.sidebar-box h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li + li { margin-top: 10px; }
.sidebar-box a { text-decoration: none; font-weight: 600; }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { margin-bottom: 6px; font-size: .95rem; }
@media (min-width: 980px) { .sidebar-sticky { position: sticky; top: 84px; } }

.books { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 36px 0; background: var(--bg-soft); }
.books h2 { font-size: 1.25rem; }
.book { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.book:first-of-type { border-top: 0; }
.book-title { font-weight: 700; }
.book-author { color: var(--muted); font-size: .92rem; }

/* Directory */
.listing { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; display: grid; gap: 6px; }
.listing-list { display: grid; gap: 14px; }
.listing h3 { margin: 0; }
.listing-meta { font-size: .9rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.listing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.listing-actions a { font-weight: 700; font-size: .92rem; }

/* Subscribe */
.subscribe { display: grid; gap: 16px 32px; grid-template-columns: 1fr; align-items: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 28px; margin: 48px 0; }
.subscribe h2 { color: #fff; }
.subscribe p { color: #c5d0d9; margin: 0; }
.subscribe .notice { margin: 0; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input[type="email"] { flex: 1 1 220px; border: 0; }
.subscribe-form .btn { background: #14b8a6; color: #06302c; }
.subscribe-form .btn:hover { background: #2dd4bf; }
@media (min-width: 860px) { .subscribe { grid-template-columns: 1.1fr 1fr; padding: 36px; } }

/* Steps / feature list */
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { padding: 4px 0; }
.feature .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 8px; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-soft); }

/* Footer */
.site-footer { background: #0f1a22; color: #b4c0ca; margin-top: 64px; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #e2e8ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 6px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-heading { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.site-footer .muted { color: #8b99a6; }
.footer-legal { border-top: 1px solid #22323f; margin-top: 32px; padding-top: 18px; font-size: .82rem; color: #8b99a6; }
