/* ============================================================
   Procedure Page Template
   ============================================================ */

/* ── Hero Banner ──────────────────────────────── */
.procedure-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.procedure-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 79, 125, 0.4) 0%,
        rgba(5, 79, 125, 0.85) 100%
    );
}

.procedure-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px 48px;
}

.procedure-hero__breadcrumbs {
    font-size: 0.875rem;
    margin-bottom: 16px;
    opacity: 0.85;
}

.procedure-hero__breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}

.procedure-hero__breadcrumbs a:hover {
    text-decoration: underline;
}

.procedure-hero__breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.procedure-hero__title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

/* ── Content Area ─────────────────────────────── */
.procedure-content {
    padding: 0;
}

.procedure-content__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* Section headings — h2 as dividers */
.procedure-content__inner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    margin: 48px 0 24px;
}

.procedure-content__inner h2:first-child {
    margin-top: 0;
}

.procedure-content__inner h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--body-text);
    margin: 32px 0 16px;
}

/* Body text */
.procedure-content__inner p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--body-text);
    margin: 0 0 20px;
}

/* Two-column layouts: img + text */
.procedure-content__inner .wp-block-image,
.procedure-content__inner figure {
    margin: 0 0 24px;
}

.procedure-content__inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Lists — clean checklists */
.procedure-content__inner ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.procedure-content__inner ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--body-text);
}

.procedure-content__inner ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

.procedure-content__inner ol {
    padding-left: 24px;
    margin: 0 0 24px;
}

.procedure-content__inner ol li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--body-text);
}

/* Alternating section backgrounds via adjacent h2s */
.procedure-content__inner > h2 ~ h2 ~ * {
    /* Light gray for alternating feel */
}

/* ── Scroll Animations ────────────────────────── */
.procedure-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.procedure-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── CTA Section ──────────────────────────────── */
.procedure-cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 80px 24px;
}

.procedure-cta__inner {
    max-width: 700px;
    margin: 0 auto;
}

.procedure-cta__heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 16px;
}

.procedure-cta__body {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0 0 32px;
}

.procedure-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.procedure-cta__button {
    display: inline-block;
    background: #00a1dd;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.procedure-cta__button:hover {
    background: #00719b;
    color: var(--white);
}

.procedure-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.procedure-cta__phone svg {
    flex-shrink: 0;
}

.procedure-cta__phone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .procedure-hero {
        min-height: 240px;
    }

    .procedure-hero__title {
        font-size: 2rem;
    }

    .procedure-hero__inner {
        padding: 40px 16px 32px;
    }

    .procedure-content__inner {
        padding: 40px 16px;
    }

    .procedure-content__inner h2 {
        font-size: 1.5rem;
        margin: 32px 0 16px;
    }

    .procedure-cta {
        padding: 60px 16px;
    }

    .procedure-cta__heading {
        font-size: 1.5rem;
    }
}
