/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
*/


/* =========================================
   REMOVE DEFAULT PAGE TITLE
========================================= */

body.home .wp-block-post-title,
body.page .wp-block-post-title {
    display: none !important;
}


/* =========================================
   HERO
========================================= */

.spr-home-hero {
    width: 100% !important;
    min-height: 726px !important;

    background:
        radial-gradient(
            circle at 85% 55%,
            rgba(20, 80, 90, 0.25),
            transparent 40%
        ),
        #101a29 !important;

    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;

    box-sizing: border-box;

    margin: 0 !important;
    padding: 90px 0 !important;
}


/* =========================================
   CONTAINER
========================================= */

.spr-home-container {
    width: min(1195px, calc(100% - 60px)) !important;

    margin: 0 auto !important;

    display: grid !important;

    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr) !important;

    gap: 70px !important;

    align-items: center !important;

    box-sizing: border-box;
}


/* =========================================
   LEFT
========================================= */

.spr-home-left {
    width: 100%;
    max-width: 650px;
}


/* =========================================
   SMALL TITLE
========================================= */

.spr-hero-small-title {
    display: inline-flex !important;

    align-items: center;

    gap: 8px;

    padding: 7px 13px;

    border: 1px solid #334052;

    border-radius: 30px;

    color: #c9d2df !important;

    background: transparent;

    font-size: 13px;

    line-height: 1.2;

    margin-bottom: 28px;
}


.spr-hero-small-title span {
    width: 7px;

    height: 7px;

    background: #9bea3b;

    border-radius: 50%;

    display: inline-block;

    flex-shrink: 0;
}


/* =========================================
   TITLE
========================================= */

.spr-hero-title {
    margin: 0 0 26px !important;

    font-size: clamp(48px, 5vw, 64px) !important;

    line-height: 1.04 !important;

    font-weight: 700 !important;

    letter-spacing: -2px !important;

    color: #ffffff !important;

    max-width: 650px;
}


.spr-hero-title strong {
    color: #9bea3b !important;

    font-weight: 700;
}


/* =========================================
   DESCRIPTION
========================================= */

.spr-hero-description {
    max-width: 610px;

    color: #aebbd0 !important;

    font-size: 17px !important;

    line-height: 1.65 !important;

    margin-bottom: 32px !important;
}


.spr-hero-description p {
    margin: 0 0 12px;
}


/* =========================================
   BUTTONS
========================================= */

.spr-hero-buttons {
    display: flex !important;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-bottom: 34px;
}


.spr-btn {
    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding: 0 27px;

    border-radius: 6px;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 600;

    transition: all 0.2s ease;

    box-sizing: border-box;
}


/* PRIMARY */

.spr-btn-primary {
    background: #9bea3b !important;

    color: #07100b !important;

    border: 1px solid #9bea3b !important;
}


.spr-btn-primary span {
    margin-left: 12px;

    font-size: 18px;

    line-height: 1;
}


.spr-btn-primary:hover {
    background: #b2f866 !important;

    border-color: #b2f866 !important;

    color: #07100b !important;

    transform: translateY(-2px);
}


/* SECONDARY */

.spr-btn-secondary {
    background: transparent !important;

    border: 1px solid #344154 !important;

    color: #ffffff !important;
}


.spr-btn-secondary:hover {
    background: #1c2738 !important;

    border-color: #536175 !important;

    color: #ffffff !important;
}


/* =========================================
   FEATURES
========================================= */

.spr-hero-features {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 28px;

    color: #aeb9c9 !important;

    font-size: 13px;

    line-height: 1.4;
}


/* ACF UL */

.spr-hero-features ul {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 28px;

    list-style: none;

    padding: 0;

    margin: 0;
}


.spr-hero-features li {
    position: relative;

    padding-left: 20px;

    white-space: nowrap;
}


.spr-hero-features li::before {
    content: "✓";

    position: absolute;

    left: 0;

    top: 0;

    color: #9bea3b;

    font-weight: 700;
}


/* =========================================
   RIGHT SIDE
========================================= */

.spr-home-right {
    width: 100%;

    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 16px !important;

    align-self: center;
}


/* =========================================
   STAT CARD
========================================= */

.spr-stat-card {
    min-height: 102px;

    padding: 24px;

    border: 1px solid #334052 !important;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.015) !important;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.spr-stat-card strong {
    display: block;

    color: #9bea3b !important;

    font-size: 29px;

    line-height: 1;

    margin-bottom: 10px;
}


.spr-stat-card span {
    color: #aeb9c9 !important;

    font-size: 13px;

    line-height: 1.45;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .spr-home-hero {
        min-height: auto !important;

        padding: 80px 0 !important;
    }


    .spr-home-container {
        width: min(100% - 40px, 650px) !important;

        grid-template-columns: 1fr !important;

        gap: 50px !important;
    }


    .spr-home-left {
        max-width: 100%;
    }


    .spr-home-right {
        grid-template-columns: repeat(2, 1fr) !important;
    }


    .spr-hero-title {
        font-size: 48px !important;
    }

}


@media (max-width: 600px) {

    .spr-home-container {
        width: calc(100% - 32px) !important;
    }


    .spr-hero-title {
        font-size: 40px !important;

        letter-spacing: -1px !important;
    }


    .spr-hero-description {
        font-size: 16px !important;
    }


    .spr-home-right {
        grid-template-columns: 1fr !important;
    }


    .spr-hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    .spr-btn {
        width: 100%;
    }


    .spr-hero-features ul {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    .spr-hero-features li {
        white-space: normal;
    }

}

/* =========================================
   FINAL FIX FOR TWENTY TWENTY-FIVE
========================================= */

/* Hide WordPress default page title */
.wp-block-post-title,
.entry-title {
    display: none !important;
}


/* Make hero full browser width */
.spr-home-hero {
    width: 100vw !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    min-height: 726px !important;

    background:
        radial-gradient(
            circle at 85% 55%,
            rgba(20, 80, 90, 0.25),
            transparent 40%
        ),
        #101a29 !important;

    display: flex !important;
    align-items: center !important;

    box-sizing: border-box !important;
}


/* Make hero container wide */
.spr-home-hero .spr-home-container {
    width: min(1195px, calc(100% - 60px)) !important;
    max-width: 1195px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;

    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr) !important;

    gap: 70px !important;

    align-items: center !important;
}


/* Left side */
.spr-home-hero .spr-home-left {
    width: 100% !important;
    max-width: 650px !important;
}


/* Right cards */
.spr-home-hero .spr-home-right {
    width: 100% !important;

    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 16px !important;
}


/* Cards */
.spr-home-hero .spr-stat-card {
    min-height: 102px !important;
}


/* =========================================
   REMOVE WORDPRESS CONTENT CONSTRAINT
========================================= */

main .wp-block-group:has(.spr-home-hero) {
    max-width: none !important;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .spr-home-hero .spr-home-container {
        width: calc(100% - 40px) !important;

        grid-template-columns: 1fr !important;

        gap: 50px !important;
    }

    .spr-home-hero .spr-home-right {
        grid-template-columns: repeat(2, 1fr) !important;
    }

}


@media (max-width: 600px) {

    .spr-home-hero .spr-home-container {
        width: calc(100% - 32px) !important;
    }

    .spr-home-hero .spr-home-right {
        grid-template-columns: 1fr !important;
    }

}

