/*
 * Homepage visual fixes — v1.2.0
 * Loaded after main.css to guarantee the homepage hero and stats
 * retain the intended contrast, spacing and responsive layout.
 */

.hero {
    background: linear-gradient(135deg, #0a1f3d 0%, #075fba 100%) !important;
    color: #fff !important;
    padding: 3.25rem 0 3.5rem !important;
    width: 100% !important;
}

.hero > .container {
    max-width: 1180px;
}

.hero h1 {
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 2.65rem) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    margin: 0 0 .45rem !important;
    letter-spacing: -.35px !important;
}

.hero .hero-sub {
    color: #fff !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    max-width: 75ch !important;
    margin: 0 0 .45rem !important;
}

.hero .hero-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .35rem .5rem !important;
    margin: 0 0 .55rem !important;
}

.hero .hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: .25rem .7rem !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.hero .hero-ctas {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .25rem !important;
    margin: 0 !important;
}

.hero .hero-ctas .btn {
    min-width: 165px !important;
    min-height: 58px !important;
    padding: .8rem 1.5rem !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.hero .hero-ctas .btn--primary {
    background: #0868c9 !important;
    border-color: #0868c9 !important;
}

.hero .hero-ctas .btn--primary:hover {
    background: #0755a5 !important;
    border-color: #0755a5 !important;
}

.hero .hero-ctas .btn--wa {
    background: #20d366 !important;
    border-color: #20d366 !important;
}

.hero .hero-ctas .btn--wa:hover {
    background: #1caf55 !important;
    border-color: #1caf55 !important;
}

.stats-bar {
    background: #075fba !important;
    color: #fff !important;
    padding: 1.35rem 0 !important;
}

.stats-bar__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: center !important;
}

.stats-bar .stat-item {
    min-width: 0;
    text-align: center !important;
}

.stats-bar .stat-num {
    display: block !important;
    color: #ffb800 !important;
    font-size: clamp(1.7rem, 3vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 .25rem !important;
}

.stats-bar .stat-label {
    display: block !important;
    color: #fff !important;
    font-size: .82rem !important;
    line-height: 1.35 !important;
}

@media (max-width: 767px) {
    .hero {
        padding: 2.35rem 0 2.5rem !important;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.15rem) !important;
    }

    .hero .hero-sub {
        font-size: .95rem !important;
    }

    .hero .hero-badges {
        gap: .35rem !important;
    }

    .hero .hero-badge {
        font-size: .72rem !important;
        padding: .25rem .55rem !important;
    }

    .hero .hero-ctas {
        gap: .5rem !important;
    }

    .hero .hero-ctas .btn {
        min-width: 140px !important;
        min-height: 52px !important;
        padding: .7rem 1rem !important;
    }

    .stats-bar {
        padding: 1.25rem 0 !important;
    }

    .stats-bar__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.35rem .5rem !important;
    }
}

@media (max-width: 480px) {
    .hero .hero-ctas {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero .hero-ctas .btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================
   WORDPRESS HOMEPAGE EDITOR CONTENT
   The Home Page template outputs the page's
   editor content inside .home-editor-content.
   These rules keep normal WordPress editor
   content readable and responsive without
   changing the existing homepage layout.
   ========================================= */
.home-editor-section {
    background: #ffffff;
    color: #1f2937;
}

.home-editor-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.home-editor-content > *:first-child {
    margin-top: 0;
}

.home-editor-content > *:last-child {
    margin-bottom: 0;
}

.home-editor-content p {
    margin: 0 0 1.15rem;
    color: #374151;
}

.home-editor-content h1,
.home-editor-content h2,
.home-editor-content h3,
.home-editor-content h4,
.home-editor-content h5,
.home-editor-content h6 {
    color: #0f172a;
    line-height: 1.25;
    font-weight: 800;
    margin: 1.8rem 0 .75rem;
}

.home-editor-content h1 { font-size: clamp(1.8rem, 4vw, 2.35rem); }
.home-editor-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.home-editor-content h3 { font-size: 1.35rem; }
.home-editor-content h4 { font-size: 1.15rem; }

.home-editor-content a {
    color: #075fba;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-editor-content a:hover {
    color: #064b91;
}

.home-editor-content ul,
.home-editor-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.home-editor-content li {
    margin-bottom: .45rem;
}

.home-editor-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #075fba;
    background: #f5f7fa;
    color: #374151;
}

.home-editor-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.25rem auto;
    border-radius: 8px;
}

.home-editor-content figure {
    margin: 1.5rem 0;
}

.home-editor-content figcaption {
    margin-top: .5rem;
    color: #6b7280;
    font-size: .9rem;
    text-align: center;
}

.home-editor-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.home-editor-content th,
.home-editor-content td {
    padding: .7rem .8rem;
    border: 1px solid #dbe2ea;
    text-align: left;
    vertical-align: top;
}

.home-editor-content th {
    background: #f5f7fa;
    color: #0f172a;
    font-weight: 700;
}

.home-editor-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* WordPress block editor content */
.home-editor-content .wp-block-heading {
    color: #0f172a;
}

.home-editor-content .wp-block-image {
    margin: 1.5rem 0;
}

.home-editor-content .wp-block-buttons {
    margin: 1.5rem 0;
}

.home-editor-content .wp-block-button__link {
    color: #fff;
    text-decoration: none;
}

.home-editor-content .wp-block-columns {
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .home-editor-section {
        padding: 2.5rem 0;
    }

    .home-editor-content {
        font-size: .97rem;
        line-height: 1.7;
    }

    .home-editor-content h1 { font-size: 1.8rem; }
    .home-editor-content h2 { font-size: 1.5rem; }
    .home-editor-content h3 { font-size: 1.25rem; }

    .home-editor-content .wp-block-columns {
        display: block;
    }

    .home-editor-content .wp-block-column {
        margin-bottom: 1.25rem;
    }
}
