/* ================================
   Title reveal animation is handled by AOS
   (data-aos="fade-up" in the templates) —
   no CSS keyframes needed here.
================================ */

/* ================================
   WEBSITE SECTION HEADER
================================ */

.website-section-header {
    max-width: var(--main-width);
    margin: 0 auto;
    padding: var(--spacing-4xl) var(--spacing-lg);
    text-align: center;
}

.website-section-header__eyebrow {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.website-section-header__title {
    margin: 0 0 var(--spacing-lg);
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.website-section-header__subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* View all link */

.website-section-header__view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--spacing-lg);
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.website-section-header__view-all::after {
    content: "→";
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.website-section-header__view-all:hover {
    color: var(--primary-hover);
    gap: 9px;
}

.website-section-header__view-all:hover::after {
    transform: translateX(2px);
}

/* Mobile */

@media (max-width: 480px) {
    .website-section-header {
        padding: var(--spacing-3xl) var(--spacing-lg);
    }

    .website-section-header__eyebrow {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: normal;
    }

    .website-section-header__title {
        margin-bottom: var(--spacing-md);
        font-size: 24px;
        font-weight: 600;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .website-section-header__subtitle {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
        letter-spacing: normal;
    }

    .website-section-header__view-all {
        margin-top: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

/* ================================
   BH HEADER (with CTA / nav arrows)
================================ */

.bh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    width: 100%;
    max-width: var(--main-width);
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

.bh-header__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0; /* lets long titles wrap instead of overflowing the flex row */
}

.bh-header__eyebrow {
    margin: 0;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: capitalize;
}

.bh-header__title {
    margin: 0;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bh-header__subtitle {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: 0;
}

.bh-header__cta-content {
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-shrink: 0;
}

.bh-header__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    background-color: var(--primary-color);
    color: var(--text-white);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.bh-header__cta svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.bh-header__cta:hover {
    background-color: var(--primary-hover);
}

.bh-header__cta:hover svg {
    transform: translateX(3px);
}

.bh-header__cta:active {
    background-color: var(--primary-dark);
    transform: scale(0.98);
}

.bh-header__cta:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Carousel nav buttons */

.section-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.carousel-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color, #e2e2e2);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.carousel-nav-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive */

@media (max-width: 768px) {
    .bh-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
        position: relative;
    }

    .bh-header__title {
        font-size: 24px;
    }

    .bh-header__cta-content,
    .section-buttons {
        align-self: flex-start;
    }
    .section-buttons{
        position: absolute;
        top: 15px;
        right: 0px;
    }
    .bh-header__cta-content{
        position: absolute;
        top: 25px;
        right: 0px;
    }
}

@media (max-width: 480px) {
    .bh-header__eyebrow {
        font-size: 16px;
    }

    .bh-header__title {
        font-size: 22px;
    }

    .bh-header__subtitle {
        font-size: 16px;
    }
}

/* ── Generic footer CTA ────────────────────────── */

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    background: var(--bg-hover, var(--bg-secondary));
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-2xl);
    max-width: var(--main-width);
    margin: 0px auto;
}

.footer-cta-text h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    letter-spacing: 0px;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.footer-cta-text p {
    margin: 0;
    color: var(--text-muted);
    letter-spacing: normal;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-cta-btn {
    column-gap: var(--spacing-sm);
    background-color: var(--primary-color);
    color: var(--text-white);
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    justify-content: center;
    align-items: center;
    font-weight: 600;
    display: flex;
    box-shadow: rgba(255, 255, 255, 0.12) 0px 1px inset, rgba(0, 0, 0, 0.05) 0px 1px 2px;
    border: 1px solid var(--primary-color);
    white-space: nowrap;
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.footer-cta-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.footer-cta-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.footer-cta-btn:hover svg {
    transform: translateX(2px);
}

.footer-cta-btn svg {
    transition: var(--transition-fast);
}

.footer-cta-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .footer-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: var(--spacing-md);
    }
}