/* ==========================================================================
   Hospice Ad Partners — landing page design system
   Palette: deep teal (trust/healthcare) + warm amber CTA (action) on warm white
   ========================================================================== */

:root {
    --ink: #16323c;          /* headings / primary text */
    --ink-soft: #3f5a63;     /* body text */
    --teal: #0e4d5c;         /* brand primary */
    --teal-dark: #0a3942;    /* dark sections */
    --teal-tint: #e8f1f2;    /* light tint backgrounds */
    --cta: #e07a2f;          /* conversion orange */
    --cta-hover: #c9681f;
    --gold: #e8a13d;
    --paper: #fdfcfa;        /* warm white */
    --paper-alt: #f5f2ec;    /* alternating section bg */
    --line: #e3ded4;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(14, 61, 72, .10);
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--teal); }
img, svg { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.lede { font-size: 1.1rem; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: .9em;
}

.accent { color: var(--teal); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}

.btn-primary {
    background: var(--cta);
    color: #fff;
    box-shadow: 0 4px 14px rgba(224, 122, 47, .35);
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px); color: #fff; }

.btn-outline {
    border-color: var(--teal);
    color: var(--teal);
    background: #fff;
}
.btn-outline:hover { background: var(--teal-tint); }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-xl { padding: 18px 40px; font-size: 1.15rem; }
.btn-block { display: block; width: 100%; }
.btn-header { padding: 10px 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 252, 250, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--teal);
}
.brand-mark { color: var(--cta); display: inline-flex; }
.brand-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.brand-text em { color: var(--cta); font-style: normal; }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* ---------- Main nav ---------- */
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--teal); border-bottom-color: var(--cta); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 1.3;
}
.header-phone strong { color: var(--ink); font-size: 1.05rem; }
.header-phone svg { display: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(232, 161, 61, .12), transparent 60%),
        linear-gradient(180deg, #f2ede4 0%, var(--paper) 100%);
    padding: 64px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: start;
}

.hero-sub { font-size: 1.15rem; max-width: 34em; }

.hero-points {
    list-style: none;
    padding: 0;
    margin: 1.4em 0;
}
.hero-points li {
    padding-left: 30px;
    position: relative;
    margin-bottom: .6em;
    font-weight: 500;
    color: var(--ink);
}
.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--teal) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9.5 16.2 5.8 12.5l-1.3 1.3 5 5 10-10-1.3-1.3z"/></svg>') center/12px no-repeat;
}

.hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-call { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.hero-call strong { color: var(--ink); }

/* ---------- Lead form card ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--cta);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 28px 22px;
}

.form-title { font-size: 1.35rem; margin-bottom: .3em; }
.form-sub { font-size: .92rem; margin-bottom: 1.2em; }

.field { margin-bottom: 14px; }
.field label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.field input, .field textarea {
    width: 100%;
    padding: 11px 12px;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1.5px solid #cfd8d6;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14, 77, 92, .15);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field-error { display: block; color: #b3261e; font-size: .8rem; margin-top: 3px; }
.validation-summary { color: #b3261e; font-size: .88rem; }
.validation-summary ul { margin: 0 0 10px; padding-left: 18px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-trust {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: .78rem;
    color: var(--ink-soft);
    margin: 12px 0 0;
}
.form-trust svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); }

/* ---------- Trust bar ---------- */
.trust-bar {
    background: var(--teal-dark);
    color: #fff;
    padding: 22px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.trust-item strong { display: block; font-size: 1.02rem; color: #fff; }
.trust-item span { font-size: .82rem; color: #b9d2d4; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-problem { background: var(--paper); }
.section-solution { background: var(--paper-alt); }
.section-steps { background: var(--paper); }
.section-why { background: var(--teal-tint); }
.section-proof { background: var(--paper); }
.section-faq { background: var(--paper-alt); }

/* Problem */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 2em 0;
}
.problem-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.problem-card h3 { color: var(--teal); }
.problem-close { font-size: 1.12rem; max-width: 40em; margin: 0 auto; }

/* Solution */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.solution-list {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--teal);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 1em;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cta) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9.5 16.2 5.8 12.5l-1.3 1.3 5 5 10-10-1.3-1.3z"/></svg>') center/13px no-repeat;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 2.2em 0 2.4em;
}
.step-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Why */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 2em;
}
.why-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(14, 77, 92, .12);
}
.why-item h3 { color: var(--teal); }

/* Proof */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 2em;
}
.quote-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 4px 16px rgba(14, 61, 72, .06);
    display: flex;
    flex-direction: column;
}
.quote-card blockquote {
    margin: 0 0 1em;
    font-family: var(--font-serif);
    font-size: 1.02rem;
    color: var(--ink);
    flex: 1;
}
.quote-card figcaption { font-size: .85rem; color: var(--ink-soft); }
.quote-card figcaption strong { color: var(--teal); }

/* FAQ */
.faq-list { margin-top: 2em; }
.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 0 20px;
}
.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    padding: 16px 0;
    list-style: none;
    position: relative;
    padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--cta);
    font-weight: 400;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding-bottom: 16px; margin: 0; }

/* Close */
.section-close {
    background:
        radial-gradient(800px 400px at 50% 120%, rgba(232, 161, 61, .18), transparent 60%),
        var(--teal-dark);
    color: #cfe0e2;
    padding: 88px 0;
}
.section-close h2 { color: #fff; }
.close-sub { max-width: 44em; margin: 0 auto 1.8em; font-size: 1.08rem; }
.close-alt { margin-top: 1.6em; font-size: .95rem; }
.close-alt a { color: #fff; }

/* Thank you */
.thankyou { padding: 90px 0; }
.ty-check { color: #2e8b57; display: inline-block; margin-bottom: 12px; }
.ty-sub { font-size: 1.1rem; }
.ty-steps {
    text-align: left;
    max-width: 36em;
    margin: 1.5em auto;
    padding-left: 1.4em;
}
.ty-steps li { margin-bottom: .9em; }
.ty-urgent { margin-top: 1.5em; font-size: 1.05rem; }

/* ---------- Inner-page hero ---------- */
.page-hero {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(232, 161, 61, .12), transparent 60%),
        linear-gradient(180deg, #f2ede4 0%, var(--paper) 100%);
    padding: 64px 0 48px;
}

/* ---------- Pricing ---------- */
.section-pricing { padding-top: 40px; }
.pricing-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: start;
}
.pricing-notes {
    background: var(--teal-tint);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-top: 1.6em;
}
.pricing-notes p { margin: 0 0 .4em; }
.pricing-notes p:last-child { margin: 0; }
.pricing-call { font-size: .95rem; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; margin-top: 2em; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: .95rem;
}
.compare-table th, .compare-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.compare-table thead th {
    background: var(--paper-alt);
    font-family: var(--font-sans);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink);
}
.compare-table tbody td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .compare-us {
    background: rgba(14, 77, 92, .06);
    color: var(--teal);
    font-weight: 600;
}
.compare-table thead .compare-us { background: var(--teal); color: #fff; }

/* Why page */
.why-grid-2 { grid-template-columns: repeat(2, 1fr); }

.close-btn-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-ghost {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Legal pages */
.legal { padding: 56px 0; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0b2b32;
    color: #9fbfc3;
    padding: 44px 0;
    font-size: .9rem;
}
.footer-inner { text-align: center; }
.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: .2em;
}
.footer-brand em { color: var(--gold); font-style: normal; }
.footer-tag { margin-bottom: 1.2em; }
.footer-links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 1.4em; }
.footer-links a { color: #cfe0e2; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: .8rem; color: #7da3a8; margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253, 252, 250, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(14, 61, 72, .12);
}
.mobile-cta .btn { flex: 1; padding: 12px 8px; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .solution-grid, .pricing-grid { grid-template-columns: 1fr; gap: 36px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .problem-grid, .steps-grid, .why-grid, .why-grid-2, .proof-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(14, 61, 72, .12);
        padding: 8px 24px 14px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .main-nav a:last-child { border-bottom: none; }
    .nav-toggle { display: flex; }
    .header-inner { position: relative; }
}

@media (max-width: 700px) {
    body { font-size: 16px; }
    .header-phone-label { display: none; }
    .btn-header { display: none; }
    .header-phone { flex-direction: row; align-items: center; gap: 6px; }
    .field-row { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 56px; }
    .mobile-cta { display: flex; }
    .site-footer { padding-bottom: 110px; }
}
