/* lib/styles/pages/home_page.css */

.home-page {
    display: flex;
    flex-direction: column;
}

/* Base Section Padding */
.home-page__section {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow-x: hidden;
}

.home-page__section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-page__section-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    color: var(--color-support-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.home-page__section-title {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.home-page__section-subtitle {
    font-size: var(--fs-h4);
    color: var(--color-neutral-navy);
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   Firm Overview Block
   ========================================== */
.home-page__overview {
    background:
        linear-gradient(180deg, rgba(241, 178, 70, 0.03) 0%, rgba(241, 178, 70, 0) 100%),
        var(--color-white);
    border-bottom: 1px solid rgba(16, 32, 48, 0.06);
}

.home-page__overview-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.home-page__overview-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    color: var(--color-support-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-page__overview-title {
    margin-bottom: var(--space-lg);
    max-width: 20ch;
    font-size: var(--fs-h1);
    line-height: var(--lh-heading-1);
}

.home-page__overview-text {
    max-width: 60ch;
    margin: 0;
    font-size: var(--fs-h4);
    line-height: 1.75;
    color: rgba(16, 32, 48, 0.88);
}

/* =========================================
   Service Pillars
   ========================================== */
.home-page__pillars {
    background-color: var(--color-paper-white);
    border-bottom: 1px solid rgba(16, 32, 48, 0.06);
}

.home-page__pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

.home-page__pillar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-page__pillar-wrapper > * {
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .home-page__pillars-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

/* =========================================
   Protecting Women & Children (5 R's)
   ========================================== */
.home-page__5rs {
    background:
        linear-gradient(180deg, rgba(29, 118, 112, 0.03) 0%, rgba(29, 118, 112, 0) 100%),
        linear-gradient(180deg, rgba(241, 178, 70, 0.03) 0%, rgba(241, 178, 70, 0) 38%),
        var(--color-white);
    border-bottom: 1px solid rgba(16, 32, 48, 0.06);
}

.home-page__5rs .container {
    position: relative;
}

.home-page__5rs .home-page__section-header {
    margin-bottom: var(--space-3xl);
}

.home-page__5rs .home-page__section-title {
    font-size: clamp(2rem, 1.7rem + 1vw, 3rem);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.home-page__5rs .home-page__section-subtitle {
    max-width: 760px;
    font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(16, 32, 48, 0.86);
}

.home-page__5rs-container {
    position: relative;
    padding-top: var(--space-lg);
}

.timeline-container--horizontal {
    position: relative;
}

@media (min-width: 768px) {
    .timeline-container--horizontal::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 26px;
        height: 1px;
        background: linear-gradient(
            90deg,
            rgba(16, 32, 48, 0.04) 0%,
            rgba(16, 32, 48, 0.08) 50%,
            rgba(16, 32, 48, 0.04) 100%
        );
        z-index: 0;
    }
}

/* =========================================
   Knowledge Bank Preview
   ========================================== */
.home-page__knowledge {
    background:
        linear-gradient(180deg, rgba(29, 118, 112, 0.05) 0%, rgba(29, 118, 112, 0.02) 100%);
    border-top: 1px solid rgba(29, 118, 112, 0.08);
    border-bottom: 1px solid rgba(29, 118, 112, 0.08);
}

.home-page__knowledge-header {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: var(--space-2xl);
    align-items: end;
    margin-bottom: var(--space-2xl);
    text-align: left;
}

.home-page__knowledge-header .home-page__section-header {
    margin-bottom: 0;
    align-items: flex-start;
    text-align: left;
}

.home-page__knowledge .home-page__section-eyebrow {
    margin-bottom: var(--space-md);
    letter-spacing: 0.08em;
}

.home-page__knowledge .home-page__section-title {
    margin-bottom: var(--space-md);
    font-size: clamp(2rem, 1.7rem + 0.9vw, 3rem);
    line-height: 1.15;
    max-width: 14ch;
}

.home-page__knowledge-desc {
    max-width: 58ch;
    margin: 0;
    font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(16, 32, 48, 0.86);
}

.home-page__knowledge-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.home-page__knowledge-action .primary-button {
    white-space: nowrap;
}

/* =========================================
   Core Values
   ========================================== */
.home-page__values {
    background:
        linear-gradient(180deg, rgba(241, 178, 70, 0.02) 0%, rgba(241, 178, 70, 0) 100%),
        var(--color-white);
    border-top: 1px solid rgba(16, 32, 48, 0.04);
}

.home-page__values .home-page__section-header {
    margin-bottom: var(--space-2xl);
}

.home-page__values .home-page__section-title {
    max-width: 18ch;
}

.home-page__values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

.home-page__value-wrapper {
    display: block;
    height: auto;
}

.home-page__value-wrapper > * {
    height: 100%;
}

/* =========================================
   Final CTA
   ========================================== */
.home-page__cta-section {
    padding: var(--space-3xl) 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%),
        var(--color-justice-blue);
    position: relative;
    overflow-x: hidden;
}

.home-page__cta-panel {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--space-2xl);
    text-align: center;
    background-color: transparent; /* Updated to remove the background card color */
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: none; /* Updated to remove box shadow */
    transition: none;
}

.home-page__cta-panel:hover {
    transform: none;
    box-shadow: none; /* Updated to remove hover box shadow */
}

.home-page__cta-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-support-gold);
}

.home-page__cta-title {
    margin-top: 0;
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.home-page__cta-desc {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--fs-h4);
    line-height: var(--lh-heading-3);
}

.home-page__cta-action {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
}

.home-page__cta-section .primary-button {
    background-color: var(--color-white);
    color: var(--color-justice-blue);
}

.home-page__cta-section a.primary-button {
    color: var(--color-justice-blue) !important;
}

.home-page__cta-section a.primary-button:hover:not(:disabled),
.home-page__cta-section a.primary-button:focus-visible,
.home-page__cta-section a.primary-button:active {
    background-color: var(--color-paper-white);
    color: var(--color-justice-blue) !important;
}

.home-page__cta-section .primary-button:focus-visible {
    outline: 2px solid var(--color-support-gold);
    outline-offset: 3px;
}

/* =========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .home-page__values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .home-page__section {
        padding: var(--space-2xl) 0;
    }

    .home-page__cta-section {
        padding: var(--space-2xl) 0;
    }

    .home-page__cta-panel {
        padding: var(--space-xl);
    }

    .home-page__cta-desc {
        font-size: var(--fs-body);
        line-height: var(--lh-body);
    }

    .home-page__overview-inner {
        padding: 0;
        text-align: left;
        align-items: flex-start;
    }

    .home-page__overview-title {
        max-width: 100%;
    }

    .home-page__overview-text {
        max-width: 100%;
        font-size: var(--fs-body);
    }

    .home-page__5rs .home-page__section-header {
        margin-bottom: var(--space-2xl);
        align-items: flex-start;
        text-align: left;
    }

    .home-page__5rs .home-page__section-title {
        max-width: 100%;
        font-size: clamp(1.75rem, 1.55rem + 1vw, 2.25rem);
        margin-bottom: var(--space-md);
    }

    .home-page__5rs .home-page__section-subtitle {
        max-width: 100%;
        font-size: var(--fs-body);
        line-height: var(--lh-body);
        margin: 0;
    }

    .home-page__5rs-container {
        padding-top: 0;
    }

    .home-page__knowledge-header {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        align-items: start;
    }

    .home-page__knowledge .home-page__section-title {
        max-width: 100%;
        font-size: clamp(1.75rem, 1.55rem + 1vw, 2.25rem);
    }

    .home-page__knowledge-desc {
        max-width: 100%;
        font-size: var(--fs-body);
        line-height: var(--lh-body);
    }

    .home-page__knowledge-action {
        justify-content: flex-start;
    }

    .home-page__knowledge-action .primary-button {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .home-page__values .home-page__section-header {
        align-items: flex-start;
        text-align: left;
        margin-bottom: var(--space-lg);
    }

    .home-page__values .home-page__section-title {
        max-width: 100%;
    }

    .home-page__values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page__cta-panel:hover {
        transform: none;
    }
}