/* ============================================================
   Sterling Home Offer — Vanilla CSS
   Mobile-first. Dark navy primary + white + light grey + green CTA.
   Per brief: clean professional, no scammy vibes, no red banners.
   ============================================================ */

:root {
    --primary: #0F1F3D;
    --primary-hover: #1A3060;
    --primary-light: #E8EDF5;
    --accent: #1B7B4F;
    --accent-hover: #166B43;
    --text: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --border-strong: #C7CCD4;
    --bg: #FFFFFF;
    --bg-alt: #F7F7F8;
    --bg-dark: #0F1F3D;
    --error: #B23A3A;
    --success: #1B7B4F;
    --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 31, 61, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 31, 61, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    letter-spacing: -0.01em;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

@media (min-width: 768px) {
    h1 { font-size: 44px; }
    h2 { font-size: 34px; }
    h3 { font-size: 22px; }
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

/* ---------- HEADER ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover { color: var(--primary); }

.logo span {
    color: var(--accent);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease;
}

.header-cta:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
}

/* ---------- HERO ---------- */

.hero {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
    padding: 48px 0 64px;
}

@media (min-width: 768px) {
    .hero { padding: 80px 0 96px; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.hero h1 {
    margin-bottom: 16px;
}

.hero h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero h2 { font-size: 22px; }
}

.hero-body {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.15s ease;
}

.hero-cta:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
}

/* ---------- SECTIONS ---------- */

section {
    padding: 56px 0;
}

@media (min-width: 768px) {
    section { padding: 80px 0; }
}

section.alt-bg { background: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- HOW IT WORKS ---------- */

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ---------- SITUATIONS ---------- */

.situations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .situations {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.situation {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 768px) {
    .situation { font-size: 15px; padding: 24px 20px; }
}

.situation:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- FORM ---------- */

.form-section {
    background: var(--bg-dark);
    color: #FFFFFF;
}

.form-section .section-header h2 { color: #FFFFFF; }
.form-section .section-header p { color: rgba(255,255,255,0.78); }

.form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .form-wrap { padding: 40px; }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.cols-3 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
    .form-row.cols-3 {
        grid-template-columns: 1.4fr 0.8fr 0.9fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.field label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.field input,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(27, 123, 79, 0.15);
}

.field.field-invalid input,
.field.field-invalid select {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(178, 58, 58, 0.12);
}

.consent {
    margin: 8px 0 20px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.15s ease;
}

.consent.field-invalid {
    border-color: var(--error);
    background: rgba(178, 58, 58, 0.05);
}

.consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent);
}

.consent label {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    cursor: pointer;
}

.consent label a {
    color: var(--primary);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.submit-btn:hover { background: var(--accent-hover); }

.submit-btn:disabled {
    background: var(--border-strong);
    cursor: not-allowed;
}

.form-error {
    background: #FDECEC;
    color: var(--error);
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid #F4C7C7;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.form-success {
    text-align: center;
    padding: 32px 16px;
    color: var(--success);
    font-size: 18px;
    font-weight: 600;
}

/* ---------- WHY US ---------- */

.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .benefits { grid-template-columns: 1fr 1fr; }
}

.benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
}

.benefit-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.benefit-check svg { width: 14px; height: 14px; }

.benefit p {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
}

/* ---------- CONTACT ---------- */

.contact-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
}

.contact-card .contact-row {
    margin: 12px 0;
    font-size: 16px;
    color: var(--text);
}

.contact-card .contact-row strong { color: var(--primary); }

.contact-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover { color: var(--accent); }

.contact-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-style: italic;
    font-size: 15px;
}

/* ---------- FOOTER ---------- */

.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 40px 0 32px;
    font-size: 13px;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.footer-legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-policies {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-policies a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 6px;
    transition: color 0.15s ease;
}

.footer-policies a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-policies { font-size: 12px; }
    .footer-policies a { margin: 0 10px; }
}

/* ---------- POLICY / LEGAL PAGE LAYOUT ---------- */

.policy-page {
    background: var(--bg);
}

.policy-page .site-header {
    border-bottom: 1px solid var(--border);
}

.policy-main {
    padding: 48px 0 64px;
}

@media (min-width: 768px) {
    .policy-main { padding: 64px 0 96px; }
}

.policy-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .policy-container { padding: 0 32px; }
}

.policy-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.policy-page h1 {
    font-size: 30px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .policy-page h1 { font-size: 40px; }
}

.policy-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.policy-page h2 {
    font-size: 18px;
    margin: 32px 0 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (min-width: 768px) {
    .policy-page h2 { font-size: 20px; }
}

.policy-page h2:first-of-type { margin-top: 0; }

.policy-page p {
    margin: 0 0 16px;
    color: var(--text);
    line-height: 1.7;
}

.policy-page ul,
.policy-page ol {
    margin: 0 0 16px 24px;
    color: var(--text);
}

.policy-page li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.policy-page strong {
    color: var(--primary);
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 24px;
}

.back-link:hover { color: var(--accent); }

/* ---------- THANK YOU PAGE ---------- */

.thanks-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}

.thanks-card {
    max-width: 560px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    box-shadow: var(--shadow-md);
}

.thanks-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thanks-icon svg { width: 32px; height: 32px; }

.thanks-card h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.thanks-card .lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.thanks-call-row {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.thanks-call-row .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.thanks-call-row a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.thanks-call-row .hours {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- TRUST STRIP ---------- */

.trust-strip {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .trust-row { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .trust-item { font-size: 14px; }
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ---------- TIMELINE ---------- */

.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--accent);
    opacity: 0.25;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 2px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--bg);
}

.timeline-marker svg { width: 14px; height: 14px; }

.timeline-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- COMPARISON TABLE ---------- */

.comparison-wrap {
    max-width: 960px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--bg);
    font-size: 14px;
}

.comparison-table thead th {
    padding: 16px 14px;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    vertical-align: middle;
}

.comparison-table thead th.col-feature {
    background: var(--bg-dark);
    text-align: left;
    padding-left: 20px;
}

.comparison-table thead th.col-highlight {
    background: var(--accent);
    position: relative;
}

.comparison-table thead th.col-highlight::after {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.comparison-table tbody td {
    padding: 16px 14px;
    text-align: center;
    border-top: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.comparison-table tbody td.feature {
    text-align: left;
    padding-left: 20px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-alt);
    width: 30%;
}

.comparison-table tbody td.highlight {
    background: rgba(27, 123, 79, 0.06);
    font-weight: 600;
}

.comparison-table tbody tr:hover td:not(.feature) {
    background: rgba(15, 31, 61, 0.02);
}

.comparison-table tbody tr:hover td.highlight {
    background: rgba(27, 123, 79, 0.1);
}

@media (min-width: 768px) {
    .comparison-table { font-size: 15px; min-width: 0; }
    .comparison-table thead th { padding: 18px 18px; }
    .comparison-table tbody td { padding: 18px 18px; }
}

.comparison-note {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 56px 18px 20px;
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- UTILITY ---------- */

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