/*
Theme Name: Secure Family Insurance
Theme URI: https://secure-fi.com/
Author: Secure Family Insurance
Description: Custom WordPress conversion of the Secure Family Insurance Lovable site.
Version: 1.0.0
Text Domain: secure-family-insurance
*/

:root {
    --bg: #f8fafc;
    --fg: #1b2433;
    --card: #fff;
    --primary: #1a57a3;
    --secondary: #eef3f8;
    --muted: #687386;
    --accent: #29a47c;
    --gold: #f4b72e;
    --border: #dce4ed;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(24, 38, 58, 0.10);
    --shadow-lg: 0 16px 48px rgba(24, 38, 58, 0.14);
}

/* Base
-------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.55;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: auto;
}


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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-row {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand .family {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 26px;
}

.main-nav a,
.login-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover,
.login-link:hover {
    color: var(--primary);
}

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

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
}


/* Buttons
-------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    font: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: #fff;
    color: var(--primary);
}


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

.hero {
    padding: 150px 0 90px;
    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #edf4fa 100%
    );
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 64px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 9px 15px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.stars {
    color: var(--gold);
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.04;
    margin: 24px 0 20px;
    letter-spacing: -2.1px;
}

.text-gradient {
    background: linear-gradient(
        135deg,
        #1a57a3,
        #279dc4
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 20px;
    color: var(--muted);
    max-width: 620px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.check-list li {
    margin: 12px 0;
    font-weight: 650;
}

.check-list li:before {
    content: "✓";
    color: var(--accent);
    font-weight: 900;
    margin-right: 11px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.trusted-by {
    border-top: 1px solid var(--border);
    margin-top: 38px;
    padding-top: 24px;
}

.trusted-by p {
    font-size: 13px;
    color: var(--muted);
}

.trusted-names {
    display: flex;
    gap: 30px;
    opacity: 0.55;
    font-weight: 800;
    font-size: 18px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}


/* Stats Card
-------------------------------------------------- */

.stats-card {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 13px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: var(--shadow);
    text-align: center;
}

.stats-card > div + div {
    border-left: 1px solid var(--border);
}

.stats-card strong {
    display: block;
    font-size: 24px;
}

.stats-card span {
    font-size: 12px;
    color: var(--muted);
}

.stats-card .green {
    color: var(--accent);
}


/* Trust Bar
-------------------------------------------------- */

.trustbar {
    background: var(--primary);
    color: #fff;
    padding: 48px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
}

.trust-item strong {
    display: block;
    font-size: 27px;
}

.trust-item span {
    font-size: 13px;
    opacity: 0.72;
}


/* Sections
-------------------------------------------------- */

.section {
    padding: 92px 0;
}

.section-alt {
    background: linear-gradient(
        180deg,
        #f8fafc,
        #edf4fa
    );
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.eyebrow {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.section-head h2 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
    margin: 10px 0 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
}


/* Grids
-------------------------------------------------- */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* Cards
-------------------------------------------------- */

.card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
}

.hover-lift {
    transition: 0.25s;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-card {
    text-align: center;
}

.step-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto 16px;
    color: var(--primary);
    font-size: 27px;
}

.card h3 {
    margin: 4px 0 10px;
    font-size: 21px;
}

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


/* Product Cards
-------------------------------------------------- */

.product-card {
    padding: 32px;
}

.product-card.popular {
    outline: 2px solid var(--primary);
}

.popular-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 800;
}

.product-card .desc {
    min-height: 72px;
}

.price {
    font-size: 30px;
    font-weight: 850;
    color: var(--primary);
    margin-top: 20px;
}

.coverage {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.product-card ul {
    padding: 0;
    list-style: none;
    margin: 24px 0;
}

.product-card li {
    margin: 10px 0;
}

.product-card li:before {
    content: "✓";
    color: var(--accent);
    font-weight: 900;
    margin-right: 9px;
}

.product-card .btn {
    width: 100%;
}


/* Benefits
-------------------------------------------------- */

.benefit .icon-box {
    margin: 0 0 16px;
}


/* Testimonials
-------------------------------------------------- */

.testimonial .quote {
    position: absolute;
    right: 24px;
    top: 18px;
    font-size: 42px;
    color: var(--secondary);
    font-family: Georgia, serif;
}

.testimonial .stars {
    margin-bottom: 15px;
}

.person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.person small {
    display: block;
    color: var(--muted);
}


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

.faq-wrap {
    max-width: 820px;
    margin: auto;
}

.faq-item {
    background: #fff;
    border-radius: 13px;
    box-shadow: var(--shadow);
    margin: 14px 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    font-size: 18px;
    font-weight: 750;
    color: var(--fg);
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 24px 22px;
    color: var(--muted);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question {
    color: var(--primary);
}


/* CTA
-------------------------------------------------- */

.cta {
    padding: 92px 0;
    background: linear-gradient(
        135deg,
        #1a57a3,
        #279dc4
    );
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: clamp(34px, 4vw, 50px);
    margin: 0 0 18px;
}

.cta p {
    font-size: 19px;
    opacity: 0.82;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 13px !important;
    opacity: 0.62 !important;
    margin-top: 22px !important;
}


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

.site-footer {
    background: #1b2433;
    color: #fff;
    padding: 66px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 28px;
}

.site-footer .brand {
    color: #fff;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer h4 {
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 10px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 44px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-bottom p {
    font-size: 12px;
    max-width: 560px;
}


/* Page / Content
-------------------------------------------------- */

.page-wrap {
    padding: 130px 0 70px;
    min-height: 70vh;
}

.simple-card {
    max-width: 640px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.simple-card h1 {
    margin-top: 0;
}

.wp-content {
    max-width: 850px;
    margin: auto;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}


/* Forms
-------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 650;
}

.field input,
.field select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 12px;
    font: inherit;
}


/* Quote Form
-------------------------------------------------- */

.quote-progress {
    height: 8px;
    background: var(--secondary);
    border-radius: 999px;
    overflow: hidden;
    margin: 14px 0 24px;
}

.quote-progress span {
    display: block;
    height: 100%;
    background: var(--primary);
    width: 20%;
    transition: 0.2s;
}

.quote-step {
    display: none;
}

.quote-step.active {
    display: block;
}

.quote-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
}

.radio-card input {
    margin-right: 7px;
}

.notice {
    padding: 14px;
    border-radius: 10px;
    background: #ebfaf5;
    color: #17664f;
}


/* Authentication
-------------------------------------------------- */

.auth-wrap {
    min-height: 100vh;
    padding: 60px 16px;
    background: linear-gradient(
        135deg,
        #edf4fa,
        #f8fafc,
        #edf9f5
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    width: min(440px, 100%);
}

.auth-brand {
    justify-content: center;
    margin-bottom: 24px;
}

.auth-card {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    text-align: center;
}

.auth-card .btn {
    width: 100%;
}

.small {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}


/* Responsive: Tablet
-------------------------------------------------- */

@media (max-width: 980px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-header.open .main-nav {
        position: absolute;
        display: flex;
        flex-direction: column;
        left: 0;
        right: 0;
        top: 80px;
        background: #fff;
        padding: 20px 24px;
        border-top: 1px solid var(--border);
    }

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero-image {
        max-width: 720px;
    }

    .hero {
        padding-top: 130px;
    }
}


/* Responsive: Mobile
-------------------------------------------------- */

@media (max-width: 640px) {

    .container {
        width: min(100% - 24px, 1160px);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .grid-4,
    .grid-3,
    .trust-grid,
    .footer-grid,
    .form-grid,
    .radio-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 68px 0;
    }

    .stats-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 10px;
    }

    .stats-card strong {
        font-size: 17px;
    }

    .stats-card span {
        font-size: 10px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }
}