/* =============================================
   BASE / GLOBAL
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* prevent any element from creating horizontal scroll */
    width: 100%;
}

/* Grids and wrappers inside .big-wrapper already get constrained by
   the wrapper width — their own max-width/padding is redundant and
   can double up on small screens. Strip the inner padding when the
   wrapper itself handles spacing. */
.support-grid,
.about-wrapper,
.offerings-grid {
    padding-left: 0;
    padding-right: 0;
}

/* =============================================
   HERO CARDS
   ============================================= */

/* Prevent hero buttons from touching the overlapping hero-cards below */
.hero-home .hero-buttons {
    margin-bottom: 80px;
}

.hero-cards {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: -180px;
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 535px;
    height: auto;
    min-height: 304px;
    background: #003060;
    border-radius: 30px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: #F9F5EE;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Prevent card icons from shrinking */
.hero-card .card-icon {
    flex-shrink: 0;
}

.hero-card .card-icon img {
    width: 60px;
    height: auto;
    display: block;
}

.hero-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 15px;
}

.hero-card p {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    line-height: 150%;
}

/* =============================================
   WHO WE SERVE
   ============================================= */

.who-we-serve {
    margin-top: 0;
    padding: 20px 0 60px;
    background: #F9F5EE;
    text-align: center;
}

.section-tag {
    display: inline-block;
    border: 1px solid #FBBF00;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    color: #003060;
    margin-bottom: 30px;
    text-decoration: none;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    color: #003060;
    margin-bottom: 80px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.support-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 60px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Support card images */
.support-card>img {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.support-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #003060;
}

.support-card p {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    line-height: 160%;
    color: #003060;
}

/* =============================================
   ABOUT SHARON
   ============================================= */

.about-home {
    padding: 140px 0;
    background: #F9F5EE;
}

.yellow-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    color: #FBBF00;
    margin-bottom: 80px;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
    padding: 0 20px;
}

.about-left {
    max-width: 600px;
    flex: 1 1 0;
    min-width: 0;
}

.about-left h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 30px;
    color: #003060;
}

.about-left ul {
    /* list-style: none; */
    padding: 0;
    margin-bottom: 40px;
}

.about-left li {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    margin-bottom: 25px;
    color: #003060;
}

.about-left li strong {
    font-weight: 600;
}

.about-right {
    flex-shrink: 0;
    width: 420px;
}

.about-right img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}

.btn-yellow {
    font-family: 'Urbanist', sans-serif;
    background: #FBBF00;
    color: #003060;
    width: 217px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

/* =============================================
   OFFERINGS
   ============================================= */

.offerings {
    padding: 60px 0;
    background: #F9F5EE;
}

.offerings-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    color: #003060;
}

.offerings-header p {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    color: #003060;
    line-height: 1.5;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.offerings-grid .offerings-header {
    justify-self: start;
    align-self: center;
}

.offering-card {
    position: relative;
    width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.offering-card img {
    width: 75px;
    height: auto;
    /* was hardcoded 78.59px — let it scale naturally */
    max-width: 100%;
    display: block;
}

.offering-card h3 {
    margin-top: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #003060;
}

.offering-card p {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    line-height: 160%;
    color: #003060;
}

/* =============================================
   TESTIMONIAL
   ============================================= */

.testimonial-wrapper {
    padding: 0 20px;
}

.home-testimonial {
    position: relative;
    width: 100%;
    height: 655px;
    margin: 120px auto;
    border-radius: 30px;
    overflow: hidden;
}

.testimonial-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.home-testimonial::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 16, 16, 0.85);
    z-index: 2;
}

.testimonial-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 120px;
    right: 80px;
    /* added — prevents text from bleeding off right edge */
    transform: translateY(-50%);
    max-width: 900px;
    color: #ffffff;
}

.quote-mark {
    max-width: 177px;
    height: auto;
    margin-bottom: 30px;
    opacity: 0.6;
}

.quote-mark img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.testimonial-content p {
    font-family: 'Urbanist', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 130%;
    color: #ffffff;
}

/* =============================================
   CERTIFIED SECTION
   ============================================= */

.certified-section {
    width: 100%;
    height: auto;
    /* removed min-height: 486px */
    background: #003060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    /* tight padding — just enough breathing room */
    overflow: hidden;
}

.certified-container {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    min-width: 0;
}

.certified-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 17px;
    max-width: 817px;
    margin: 0 auto 24px auto;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.certified-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.certified-logos img {
    height: 80px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    flex-shrink: 1;
}

/* Handles both the old .searchcode-wrapper case and the new single-image case */
.searchcode-wrapper {
    flex: 0 1 537px;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.logo-search-icon {
    flex: 0 1 25%;
    min-width: 0;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-header {
    padding: 80px 20px 0;
    background: #F9F5EE;
}

.home-contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 600;
    color: #003060;
    text-align: center;
    line-height: 110%;
}

.home-contact-title .highlight-yellow {
    color: #FBBF00;
}

.home-contact-subtext {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    color: #003060;
    text-align: center;
    max-width: 900px;
    margin: 20px auto 0;
}

.contact-section {
    padding: 40px 20px 120px;
    background: #F9F5EE;
}

/* Homepage contact box sits without .container wrapper
   so max-width + auto margin handle centring */
.contact-box {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 80px 80px;
    border-radius: 30px;
    background: white;
}

.contact-box h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px;
    margin-bottom: 40px;
    color: #003060;
}

.contact-box label {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 25px;
    color: #003060;
}

.contact-box input,
.contact-box select,
.contact-box textarea,
.select-wrapper,
.submit-btn {
    width: 100%;
}

.contact-box input,
.contact-box select {
    height: 59px;
    border-radius: 40px;
    border: 1px solid #003060;
    padding: 0 20px;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    outline: none;
}

.contact-box textarea {
    height: 137px;
    border-radius: 20px;
    border: 1px solid #003060;
    padding: 20px;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    resize: none;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    width: 100%;
    height: 59px;
    padding: 0 60px 0 20px;
}

.select-arrow {
    position: absolute;
    width: 24px;
    height: 24px;
    right: 25px;
    top: 50%;
    /* corrected from 38% */
    transform: translateY(-50%);
    pointer-events: none;
}

.select-arrow::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-right: 2px solid #003060;
    border-bottom: 2px solid #003060;
    transform: rotate(45deg);
    left: 6px;
    top: 4px;
}

.submit-btn {
    width: 100%;
    height: 56px;
    background: #003060;
    color: white;
    border-radius: 40px;
    border: none;
    margin-top: 40px;
    font-family: 'Urbanist', sans-serif;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #014694;
}

/* =============================================
   RESPONSIVE — TABLET (max-width: 1023px)
   ============================================= */

@media screen and (max-width: 1023px) {
    .hero-cards {
        flex-direction: column;
        align-items: center;
        margin-top: -100px;
        margin-bottom: 30px;
    }

    .hero-card {
        max-width: 100%;
        min-height: unset;
    }

    .hero-card h3 {
        font-size: 24px;
    }

    .hero-card p {
        font-size: 15px;
    }

    .section-title {
        font-size: 38px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 40px;
    }

    .support-card h3 {
        font-size: 24px;
    }

    .support-card p {
        font-size: 15px;
    }

    .about-wrapper {
        flex-direction: column-reverse;
    }

    .about-left {
        max-width: 100%;
    }

    .about-right {
        width: 100%;
    }

    .about-right img {
        max-width: 100%;
        max-height: none;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .yellow-title {
        font-size: 38px;
        margin-bottom: 40px;
    }

    .about-left h3 {
        font-size: 24px;
    }

    .about-left li {
        font-size: 16px;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .offering-card {
        padding: 40px;
    }

    .offering-card h3 {
        font-size: 24px;
    }

    .offering-card p {
        font-size: 15px;
    }

    .testimonial-content {
        top: 50%;
        left: 40px;
        right: 40px;
        transform: translateY(-50%);
        max-width: calc(100% - 80px);
    }

    .quote-mark {
        max-width: 120px;
    }

    .certified-logos {
        gap: 40px;
    }

    .certified-logos img {
        height: 64px;
        max-width: 220px;
    }

    .home-contact-title {
        font-size: 42px;
    }

    .home-contact-subtext {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .contact-box {
        padding: 30px 30px 60px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ============================================= */

@media screen and (max-width: 767px) {
    .hero-cards {
        margin-top: -80px;
        gap: 20px;
    }

    .hero-card {
        padding: 30px;
        flex-direction: column;
        text-align: center;
    }

    .hero-card h3 {
        font-size: 22px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .support-card {
        padding: 30px;
    }

    .yellow-title {
        font-size: 28px;
    }

    .about-home {
        padding: 60px 0;
    }

    .offerings-header h2 {
        font-size: 36px;
    }

    .offerings-header p {
        font-size: 16px;
    }

    .offering-card {
        padding: 30px;
    }

    .home-testimonial {
        height: auto;
        min-height: 400px;
        margin: 60px auto;
        padding: 50px 20px;
    }

    .testimonial-content {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        max-width: 100%;
        padding: 0;
    }

    .quote-mark {
        max-width: 80px;
        margin-bottom: 16px;
    }

    .certified-logos {
        gap: 24px;
    }

    .certified-logos img {
        height: 48px;
        max-width: 160px;
    }

    .home-contact-title {
        font-size: 32px;
    }

    .home-contact-subtext {
        font-size: 15px;
    }

    .contact-box {
        padding: 20px 16px 40px;
        border-radius: 20px;
    }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max-width: 479px)
   ============================================= */

@media screen and (max-width: 479px) {
    .hero-cards {
        margin-top: -60px;
    }

    .hero-card {
        padding: 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .home-testimonial {
        min-height: 300px;
        border-radius: 16px;
        padding: 40px 16px;
    }

    .quote-mark {
        max-width: 60px;
    }

    .testimonial-content p {
        font-size: 13px;
    }

    .certified-logos {
        gap: 16px;
    }

    .certified-logos img {
        height: 36px;
        max-width: 120px;
    }

    .home-contact-title {
        font-size: 26px;
    }

    .submit-btn {
        font-size: 16px;
    }
}