/* Shared stylesheet for the three demo lead-capture landers.
   Theme colors are set per page via a class on <body>:
     .theme-windows  clean / bright
     .theme-hvac     cool blues
     .theme-roofing  solid / earthy
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --ink: #111827;
    --ink-soft: #4b5563;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-ink: #065f46;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --error-ink: #991b1b;
    --radius: 12px;
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.25);
}

.theme-windows {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0ea5e9;
    --bg: #ffffff;
    --bg-soft: #f0f7ff;
    --hero-grad-start: #eff6ff;
    --hero-grad-end: #ffffff;
}

.theme-hvac {
    --primary: #0e7490;
    --primary-dark: #155e75;
    --accent: #38bdf8;
    --bg: #ffffff;
    --bg-soft: #eefbff;
    --hero-grad-start: #083344;
    --hero-grad-end: #0e7490;
}

.theme-roofing {
    --primary: #9a3412;
    --primary-dark: #7c2d12;
    --accent: #b45309;
    --bg: #fffaf5;
    --bg-soft: #fdf3ea;
    --hero-grad-start: #451a03;
    --hero-grad-end: #9a3412;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
}
.header-phone {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
    padding: 48px 0 40px;
    color: #fff;
}
.theme-windows .hero { color: var(--ink); }
.hero-inner {
    display: grid;
    gap: 32px;
    align-items: start;
}
@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.theme-windows .eyebrow {
    background: var(--primary);
    color: #fff;
}
.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 14px;
    font-weight: 800;
}
.hero .subhead {
    font-size: 1.1rem;
    max-width: 46ch;
    opacity: 0.92;
    margin: 0 0 20px;
}
.theme-windows .hero .subhead { color: var(--ink-soft); opacity: 1; }

.hero-benefits {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.hero-benefits li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
}
.hero-benefits li::before {
    content: "✓";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1220;
    font-weight: 800;
    font-size: 0.8rem;
}

/* Trust bar */
.trust-bar {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.trust-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    text-align: center;
}
@media (min-width: 700px) {
    .trust-bar ul { grid-template-columns: repeat(4, 1fr); text-align: left; }
}
.trust-bar li {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
@media (min-width: 700px) { .trust-bar li { justify-content: flex-start; } }
.trust-bar li::before {
    content: "•";
    color: var(--primary);
    font-weight: 900;
}

/* Benefits grid */
.section { padding: 48px 0; }
.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 8px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 auto 32px;
}
.benefits-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
.benefit-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.benefit-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 14px;
}
.benefit-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.benefit-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Lead form */
.form-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 48px 0 56px;
}
.form-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px 24px;
}
.form-card h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    text-align: center;
}
.form-card .form-lead {
    text-align: center;
    color: var(--ink-soft);
    margin: 0 0 22px;
    font-size: 0.95rem;
}
.field-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}
@media (min-width: 560px) {
    .field-row.two-up { grid-template-columns: 1fr 1fr; }
}
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
}
.field input,
.field select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}
.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Honeypot — hidden from real users, present for bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 20px;
}
.consent-row input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--primary);
}
.consent-text {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.consent-text a { color: var(--primary); text-decoration: underline; }

.submit-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.submit-btn:hover { background: var(--primary-dark); }
.submit-btn:disabled { opacity: 0.7; cursor: default; }

.form-fine-print {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 14px 0 0;
}

.form-flash {
    max-width: 560px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
}
.form-flash ul { margin: 0; padding-left: 18px; }
.form-flash--success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-ink);
}
.form-flash--error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-ink);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 32px 0;
    font-size: 0.85rem;
}
.site-footer a { color: #cbd5e1; }
.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}
.site-footer .footer-links a { text-decoration: underline; }
.footer-disclaimer {
    color: #64748b;
    margin-top: 14px;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Simple static pages (privacy/terms/index) */
.static-page { padding: 48px 0 64px; }
.static-page h1 { font-size: 1.8rem; margin-bottom: 8px; }
.static-page h2 { font-size: 1.2rem; margin-top: 28px; }
.static-page p, .static-page li { color: var(--ink-soft); }

.index-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 28px;
}
@media (min-width: 700px) {
    .index-grid { grid-template-columns: repeat(3, 1fr); }
}
.index-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--ink);
    background: var(--bg-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.index-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.index-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.index-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
