/*
 * Kitchen Remodel Program funnel · Aging In The Comfort Of Home®
 * Products division (Trust Blue). Fonts come from assets/brand/styles/fonts.css.
 */

:root {
    --trust-blue-dark: #1b477e;
    --trust-blue: #255ea0;
    --trust-blue-light: #d9ecff;
    --radiant-gold: #fdd841;
    --charcoal: #333333;
    --gray: #e0e0e0;
    --light-linen: #fffce5;

    --ink-soft: #33415c;
    --muted: #4a5568;
    --line: #d3deeb;
    --line-soft: #e3eaf3;
    --hero-top: #eef6ff;
    --tint: #f3f8ff;
    --footer-bg: #f4f7fb;
    --error: #b42318;

    --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

    --radius: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 12px 32px rgba(27, 71, 126, 0.14), 0 1px 3px rgba(0, 0, 0, 0.06);
    --ease: 180ms ease;
}

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

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--trust-blue-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--trust-blue);
}

img {
    max-width: 100%;
    height: auto;
}

sup {
    font-size: 0.6em;
    line-height: 0;
    vertical-align: super;
}

:focus-visible {
    outline: 3px solid var(--trust-blue-dark);
    outline-offset: 3px;
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--trust-blue-dark);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.narrow {
    max-width: 640px;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
    flex: none;
}

/* Check badge used in lists, notes, and the trust row */
.check {
    position: relative;
    display: inline-block;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--trust-blue);
}

.check::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* ------------------------------------------------------------------ Header */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--line-soft);
}

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

.logo {
    display: block;
    width: auto;
    height: 48px;
}

.header-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: var(--trust-blue-dark);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.header-call .icon {
    color: var(--trust-blue);
}

.header-call:hover {
    color: var(--trust-blue);
}

/* -------------------------------------------------------------------- Hero */

.hero {
    padding: 32px 0 40px;
    background: linear-gradient(180deg, var(--hero-top) 0%, var(--trust-blue-light) 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--trust-blue);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--radiant-gold);
}

h1 {
    font-size: clamp(2rem, 7vw, 2.9rem);
    letter-spacing: -0.01em;
}

.lede {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.qualify {
    margin-top: 24px;
}

.qualify-title {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    font-size: 1rem;
    border: 1px solid rgba(37, 94, 160, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--trust-blue-dark);
    font-weight: 600;
    line-height: 1.35;
}

/* Hero copy collapses once the visitor starts the questions */
body.in-quiz [data-intro] {
    display: none;
}

body.in-quiz h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
}

/* ------------------------------------------------------------- Funnel card */

.funnel-card {
    margin-top: 22px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    scroll-margin-top: 16px;
}

body.in-quiz .funnel-card {
    padding: 22px 18px 18px;
}

.progress {
    margin-bottom: 20px;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line-soft);
}

.progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--trust-blue);
    transition: width 300ms ease;
}

.step.is-active {
    animation: step-in 220ms ease both;
}

@keyframes step-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.step h2 {
    margin-bottom: 16px;
    font-size: 1.45rem;
}

.step h2:focus {
    outline: none;
}

.step p:last-child {
    margin-bottom: 0;
}

.step-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--trust-blue-light);
    color: var(--trust-blue-dark);
    font-size: 1rem;
    line-height: 1.35;
}

.step-hint {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ZIP row */
.zip-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Inputs */
.input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 1.125rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.input:focus {
    border-color: var(--trust-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 94, 160, 0.18);
}

.input[aria-invalid="true"] {
    border-color: var(--error);
}

.input-zip {
    height: 58px;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--trust-blue-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.field-grid {
    display: grid;
    gap: 0 14px;
}

.field-error {
    margin: 10px 0 0;
    color: var(--error);
    font-size: 0.98rem;
    font-weight: 600;
}

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

.consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    margin: 6px 0 4px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    cursor: pointer;
}

.consent input {
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--trust-blue);
}

.fine {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 26px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn-primary {
    background: var(--trust-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--trust-blue-dark);
}

.btn-primary[disabled] {
    background: #7f9cc2;
    cursor: progress;
}

.btn-secondary {
    border-color: var(--trust-blue);
    background: #ffffff;
    color: var(--trust-blue-dark);
}

.btn-secondary:hover {
    background: var(--tint);
}

.btn-block {
    width: 100%;
    margin-top: 14px;
}

/* Answer choices */
.choices {
    display: grid;
    gap: 10px;
}

.choice {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 12px 52px 12px 18px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--ease), background-color var(--ease);
}

.choice::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.choice:hover {
    border-color: var(--trust-blue);
    background: var(--tint);
}

.choice[aria-pressed="true"] {
    border-color: var(--trust-blue);
    background: var(--trust-blue-light);
    color: var(--trust-blue-dark);
}

.choice[aria-pressed="true"]::after {
    border-color: var(--trust-blue);
    box-shadow: inset 0 0 0 4px #ffffff;
    background: var(--trust-blue);
}

.choice-hint {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 400;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 14px;
    padding: 8px 4px 4px 0;
    border: 0;
    background: none;
    color: var(--trust-blue);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.back-link:hover {
    text-decoration: underline;
}

/* Thank-you */
.step-thanks {
    text-align: center;
}

.thanks-mark {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    margin: 4px auto 14px;
    border-radius: 50%;
    background: var(--trust-blue);
}

.thanks-mark::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 13px;
    width: 12px;
    height: 22px;
    border: solid #ffffff;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.next-steps {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
    counter-reset: next;
    text-align: left;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--tint);
    counter-increment: next;
}

.next-steps li::before {
    content: counter(next);
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--radiant-gold);
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

/* Under the card */
.hero-note {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--trust-blue-dark);
    font-size: 0.98rem;
    font-weight: 600;
}

.trust-row .check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.trust-row .check::after {
    left: 6.5px;
    top: 3px;
    width: 5px;
    height: 10px;
    border-width: 0 2px 2px 0;
}

.offer-teaser {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ------------------------------------------------------------ How it works */

.how {
    padding: 56px 0;
}

.how h2,
.built h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
}

.how h2 {
    text-align: center;
}

.how-steps {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.how-steps li {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #ffffff;
}

.how-num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--radiant-gold);
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-weight: 700;
}

.how-steps h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.how-steps p {
    margin: 0;
    color: var(--muted);
}

/* ------------------------------------------------------ Kitchens we build */

.built {
    padding: 56px 0;
    background: var(--light-linen);
}

.built-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.built-photo {
    display: block;
    width: 100%;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}

.built-copy h2 {
    margin-bottom: 14px;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.partner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

.partner img {
    width: 110px;
    height: auto;
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
    padding: 36px 0 28px;
    border-top: 1px solid var(--gray);
    background: var(--footer-bg);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer p {
    margin: 0 0 8px;
}

.site-footer a {
    color: var(--trust-blue-dark);
}

.footer-brand {
    color: var(--trust-blue-dark);
    font-size: 1.05rem;
    font-weight: 600;
}

.disclaimer {
    max-width: 680px;
    margin: 18px auto 14px !important;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: left;
}

.copyright {
    font-size: 0.8rem;
}

/* -------------------------------------------------------------- Breakpoints */

@media (max-width: 420px) {
    .logo {
        height: 44px;
    }

    .call-word {
        display: none;
    }
}

@media (min-width: 480px) {
    .zip-row {
        grid-template-columns: 1fr auto;
    }

    .field-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 720px) {
    .logo {
        height: 64px;
    }

    .header-call {
        font-size: 1.05rem;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .lede {
        font-size: 1.2rem;
    }

    .checklist li {
        padding: 10px 14px;
        font-size: 1.0625rem;
    }

    .funnel-card {
        padding: 18px;
    }

    body.in-quiz .funnel-card {
        padding: 30px 30px 24px;
    }

    .how,
    .built {
        padding: 72px 0;
    }

    .how-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .built-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 48px;
    }
}

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