/* ======================================================
   PAGE-SPECIFIC STYLES
====================================================== */

.how-it-works-page .how-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/*BUTTON*/

.btn-HowItWorks {
    font-family: var(--font-sans);
    background-color: var(--white);
    border-color: #0f1927;
    border: 4px solid #0f1927;
    color: var(--medical-navy);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
}

/* ======================================================
   HERO
====================================================== */

.how-it-works-page .process-hero {
    position: relative;
    background-image: url("images/how_to.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 160px 0 110px;
    color: #ffffff;
}

.how-it-works-page .process-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 42, 74, 0.65);
    z-index: 0;
}

.how-it-works-page .process-hero .how-container {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.how-it-works-page .process-hero h1 {
    margin-bottom: 18px;
}

.how-it-works-page .process-hero .lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.how-it-works-page .process-hero .btn-primary {
    display: inline-block;
    margin-top: 8px;
}

/* ======================================================
   SECTION BACKGROUNDS 
====================================================== */

.how-it-works-page .phases-section {
    background-color: #f4f6f9;
}

.how-it-works-page .how-deliverables {
    background-color: #ffffff;
}

.how-it-works-page .how-who {
    background-color: #e3e7ec;
}

/* Section spacing */
.how-it-works-page section.section {
    padding: 90px 0;
}

/* Intro text */
.how-it-works-page .section-intro {
    max-width: 640px;
    font-size: 15px;
    color: #06090c;
    margin-bottom: 42px;
}

/* ======================================================
   COLLAPSIBLE PHASES
====================================================== */

.how-it-works-page .phase {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 22px 0;
}

.how-it-works-page .phase-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.how-it-works-page .phase-number {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--cool-slate);
    width: 28px;
}

.how-it-works-page .phase-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--blue-primary);
    flex-grow: 1;
}

.how-it-works-page .phase-toggle {
    font-size: 18px;
    transition: transform 0.25s ease;
}

/* Collapsible body */
.how-it-works-page .phase-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 46px;
}

.how-it-works-page .phase-body p {
    font-size: 14px;
    color: #4b5563;
    margin-top: 14px;
    max-width: 720px;
}

/* Open state */
.how-it-works-page .phase.open .phase-body {
    max-height: 260px;
}

.how-it-works-page .phase.open .phase-toggle {
    transform: rotate(180deg);
}

/* ======================================================
   DELIVERABLES
====================================================== */

.how-it-works-page .deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.how-it-works-page .deliverable-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(11,42,74,0.08);
    box-shadow: 0 14px 30px rgba(11,42,74,0.05);
}

.how-it-works-page .deliverable-card h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--blue-primary);
}

.how-it-works-page .deliverable-card p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
}

/* ======================================================
   WHO WE WORK WITH
====================================================== */

.how-it-works-page .who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.how-it-works-page .who-card {
    background-color: #f0f4fa;
    padding: 28px;
    border-radius: 10px;
}

.how-it-works-page .who-card h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--blue-primary);
}

.how-it-works-page .who-card p {
    font-size: 14px;
    color: #0f1927;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {
    .how-it-works-page .deliverables-grid,
    .how-it-works-page .who-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-page .process-hero {
        padding: 120px 0 90px;
    }
}
