/* ===========================
   HOME PAGE STYLES
   =========================== */

/* ===========================
   HERO — full-bleed image, no overlay
   =========================== */
.hero_slider {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* The <img> tag that IS the hero image */
.hero_slider > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Text lives on top of image — no overlay applied */
.slide {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide h1 {
    font-size: 3.25rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.15;
    max-width: 700px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    text-wrap: balance;     /* even line lengths, no lone last word */
}

.slide p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    line-height: 1.7;
}

/* Red CTA matches logo red */
.btn_primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.5);
}

.btn_primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.55);
    color: #ffffff;
}

/* ===========================
   BENEFITS SECTION
   =========================== */
.benefits_section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--background-light);
}

.section_title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.eyebrow {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.section_title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.benefits_badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit_badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--accent-color);
}

.benefit_badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.benefit_badge:hover::before { width: 300px; height: 300px; }

.benefit_badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.45);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
}

/* ===========================
   SERVICES OVERVIEW
   =========================== */
.services_overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.service_card {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.service_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service_card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service_card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service_card a {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.service_card a:hover { color: var(--primary-color); }

/* ===========================
   SERVICE TABS — dark navy bg
   =========================== */
.service_tabs {
    background-color: var(--primary-color);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.service_tabs h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
}

.tab_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.service_column {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 2rem;
    border-top: 3px solid var(--accent-color);
}

.service_column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service_column ul { list-style: none; }

.service_column ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.service_column ul li:last-child { border-bottom: none; }

.service_column ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ===========================
   CONTACT CTA
   =========================== */
.contact_cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.form_wrap h2,
.testimonials h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

#schedule_form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#schedule_form input,
#schedule_form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#schedule_form input:focus,
#schedule_form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

#schedule_form button {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#schedule_form button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.35);
}

blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    padding: 2rem;
    background-color: var(--background-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===========================
   PARTNERS
   =========================== */
.partners_section {
    background-color: var(--background-light);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.partners_section h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.partner_logos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.partner_logos img {
    height: 48px;
    width: auto;
    mix-blend-mode: multiply;   /* drops the logo's light background */
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner_logos img:hover {
    filter: none;
    opacity: 1;
}

/* ===========================
   TABLET (768px and below)
   =========================== */
@media (max-width: 768px) {
    .hero_slider {
        padding: 3rem 1.5rem;
    }

    /* The hero already has side padding; drop the desktop 4rem so text
       gets the full width */
    .slide {
        padding: 0;
    }

    .slide h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .slide p {
        font-size: 1.125rem;
        font-weight: 400;
    }

    .btn_primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .benefits_section {
        padding: 2.5rem 1.5rem;
    }

    .section_title h2 {
        font-size: 1.875rem;
    }

    .benefits_badges {
        gap: 1rem;
    }

    .benefit_badge {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .services_overview {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .service_card {
        padding: 2rem;
    }

    .service_card h3 {
        font-size: 1.25rem;
    }

    .service_tabs {
        padding: 2.5rem 1.5rem;
    }

    .service_tabs h2 {
        font-size: 1.5rem;
    }

    .tab_container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service_column h3 {
        font-size: 1.25rem;
    }

    .contact_cta {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }

    .form_wrap h2,
    .testimonials h2,
    .partners_section h2 {
        font-size: 1.5rem;
    }

    blockquote {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .partners_section {
        padding: 2.5rem 1.5rem;
    }

    .partner_logos img {
        height: 36px;
    }
}

/* ===========================
   PHONE (480px and below)
   =========================== */
@media (max-width: 480px) {
    .hero_slider {
        min-height: 80vh;
        padding: 2.5rem 1.25rem;
    }

    .slide h1 {
        font-size: 2.125rem;
        margin-bottom: 1rem;
    }

    .slide p {
        font-size: 1.0625rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }

    /* Full-width, thumb-friendly call to action */
    .btn_primary {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }

    .benefits_section {
        padding: 2rem 1rem;
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    .section_title h2 {
        font-size: 1.5rem;
    }

    .benefits_badges {
        flex-direction: column;
        align-items: stretch;
    }

    .benefit_badge {
        padding: 0.875rem 1.5rem;
        font-size: 0.938rem;
    }

    .services_overview {
        padding: 2rem 1rem;
    }

    .service_card {
        padding: 1.5rem;
    }

    .service_card h3 {
        font-size: 1.125rem;
    }

    .service_card p {
        font-size: 0.938rem;
    }

    .service_tabs {
        padding: 2rem 1rem;
    }

    .service_tabs h2 {
        font-size: 1.25rem;
    }

    .service_column h3 {
        font-size: 1.125rem;
    }

    .service_column ul li {
        font-size: 0.938rem;
        padding: 0.625rem 0;
        padding-left: 1.25rem;
    }

    .contact_cta {
        padding: 2rem 1rem;
    }

    .form_wrap h2,
    .testimonials h2,
    .partners_section h2 {
        font-size: 1.25rem;
    }

    #schedule_form input,
    #schedule_form select,
    #schedule_form button {
        padding: 0.875rem;
        font-size: 0.938rem;
    }

    blockquote {
        font-size: 0.938rem;
        padding: 1.25rem;
    }

    cite {
        font-size: 0.938rem;
    }
}

/* ===========================
   LARGE SCREENS (1200px+)
   =========================== */
@media (min-width: 1200px) {
    .slide h1 {
        font-size: 3.5rem;
    }

    .section_title h2 {
        font-size: 3rem;
    }

    .service_tabs h2 {
        font-size: 2.25rem;
    }
}

/* ===========================
   LANDSCAPE PHONE
   =========================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero_slider {
        padding: 2rem 1.5rem;
    }

    .slide h1 {
        font-size: 1.75rem;
    }

    .slide p {
        font-size: 0.938rem;
        margin-bottom: 1rem;
    }

    .btn_primary {
        padding: 0.625rem 1.5rem;
    }
}

@media (prefers-contrast: high) {
    .btn_primary,
    #schedule_form button {
        border: 2px solid currentColor;
    }
}

@media print {
    .btn_primary {
        display: none !important;
    }
}
