/* =============================================================
   emergency-dental-care.css — Service details page styles
   Extends: css/index.css (shared design system)
   ============================================================= */

/* ── Layout & Sections ──────────────────────────────────────── */
.emergency-intro-section,
.emergency-care-section,
.emergency-types-section,
.emergency-whattodo-section,
.emergency-process-section,
.emergency-fees-section,
.emergency-afterhours-section,
.emergency-bottom-cta {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

/* Alternate backgrounds for professional structure */
.emergency-intro-section,
.emergency-types-section,
.emergency-process-section,
.emergency-afterhours-section {
    background-color: var(--bg-white);
}

.emergency-care-section,
.emergency-whattodo-section,
.emergency-fees-section,
.emergency-bottom-cta {
    background-color: var(--bg-light);
}

/* Grid layout for two-column alignment */
.emergency-grid {
    display: grid;
    grid-template-columns: 33.33333333% 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Class to reverse image/text sides */
.emergency-grid.reverse-grid {
    grid-template-columns: 1fr 33.33333333%;
}
.reverse-grid {
    direction: ltr;
}
.reverse-grid > *:first-child {
    order: 2;
}

/* Specific 50/50 split override for the Emergency Care, Appointment Process, and After-Hours sections only */
.emergency-care-section .emergency-grid,
.emergency-process-section .emergency-grid,
.emergency-afterhours-section .emergency-grid {
    grid-template-columns: 1fr 1fr;
}

/* ── Typography & Tags ──────────────────────────────────────── */
.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.emergency-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.highlight-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.emergency-text-col p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.85;
    margin-bottom: 1.2rem;
}

.emergency-text-col p:last-child {
    margin-bottom: 0;
}

.emergency-cta-btn {
    padding: 1rem 2.5rem;
    display: inline-block;
    margin-top: 1rem;
}

/* ── Media Containers (Images & Videos) ─────────────────────── */
.emergency-image-col {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    background-color: var(--bg-white);
    aspect-ratio: 4 / 5;
    display: flex;
}

.emergency-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Care Feature Boxes ───────────────────────────────────────── */
.emergency-care-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.care-feature-box {
    background-color: var(--bg-white);
    padding: 1.8rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(150, 178, 174, 0.15);
    box-shadow: var(--shadow-subtle);
}

.care-feature-box .feature-icon {
    font-size: 2rem;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.care-feature-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.care-feature-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ── Checkmark Lists ────────────────────────────────────────── */
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.checkmark-list li {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.checkmark-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    background-color: rgba(150, 178, 174, 0.15);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkmark-list li strong {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-dark);
}

.emergency-types-note {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.85;
    line-height: 1.6;
    margin-top: 1.5rem !important;
}

/* ── What to Do Section ──────────────────────────────────────── */
.emergency-whattodo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.emergency-whattodo-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.emergency-whattodo-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.whattodo-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.whattodo-detail-item {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(150, 178, 174, 0.1);
    box-shadow: var(--shadow-subtle);
}

.whattodo-item-title-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.whattodo-bullet-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(150, 178, 174, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whattodo-detail-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.whattodo-detail-item p {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-dark);
    opacity: 0.85;
    margin: 0;
}

/* ── Timeline process ───────────────────────────────────────── */
.emergency-process-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.process-step-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-white);
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid rgba(150, 178, 174, 0.15);
    box-shadow: var(--shadow-subtle);
}

.process-step-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(150, 178, 174, 0.12);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-step-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.process-step-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ── Emergency Fees ─────────────────────────────────────────── */
.emergency-fees-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fees-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(150, 178, 174, 0.2);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.fees-badge {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2rem;
}

.fees-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.fees-lead {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.fees-tiers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.fee-tier-box {
    background-color: var(--bg-light);
    border: 1px solid rgba(150, 178, 174, 0.12);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fee-tier-box h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.fee-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.fee-quoted-text {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
    margin: 0;
}

.fees-note {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* ── After hours & Prevention ─────────────────────────────── */
.afterhours-card,
.prevention-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(150, 178, 174, 0.15);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-subtle);
}

.afterhours-card h3,
.prevention-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.afterhours-card p,
.prevention-card p {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-dark);
    opacity: 0.85;
    margin-bottom: 1rem;
}

.afterhours-card p:last-child,
.prevention-card p:last-child {
    margin-bottom: 0;
}

.warning-text {
    color: #c0392b !important;
    font-weight: 500;
    margin-top: 1.5rem;
}

/* ── Bottom CTA ─────────────────────────────────────────────── */
.emergency-bottom-cta {
    text-align: center;
}

.emergency-bottom-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.emergency-bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.emergency-bottom-cta p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

/* ── Responsive Adaptations ─────────────────────────────────── */
@media (max-width: 992px) {
    .emergency-grid {
        gap: 3.5rem;
    }
    .whattodo-list-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .emergency-intro-section,
    .emergency-care-section,
    .emergency-types-section,
    .emergency-whattodo-section,
    .emergency-process-section,
    .emergency-fees-section,
    .emergency-afterhours-section,
    .emergency-bottom-cta {
        padding: 5rem 0;
    }

    .emergency-grid,
    .emergency-grid.reverse-grid,
    .emergency-care-section .emergency-grid,
    .emergency-process-section .emergency-grid,
    .emergency-afterhours-section .emergency-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reverse-grid > *:first-child {
        order: 0;
    }

    /* Stack order configs: text first, visual components second on mobile */
    .emergency-care-section .emergency-grid,
    .emergency-types-section .emergency-grid,
    .emergency-process-section .emergency-grid {
        display: flex;
        flex-direction: column;
    }

    .emergency-care-section .emergency-text-col,
    .emergency-types-section .emergency-text-col,
    .emergency-process-section .emergency-text-col {
        order: 1;
    }

    .emergency-care-section .emergency-care-features,
    .emergency-types-section .emergency-image-col,
    .emergency-process-section .emergency-process-timeline {
        order: 2;
    }

    .emergency-image-col {
        aspect-ratio: 4 / 3;
        width: 100%;
    }

    .emergency-text-col {
        text-align: center;
    }

    .emergency-care-features {
        align-items: center;
    }

    .care-feature-box {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }

    .checkmark-list {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 320px;
        margin: 2rem auto;
        text-align: center;
    }

    .checkmark-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

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

    .whattodo-detail-item {
        padding: 2rem;
        text-align: center;
    }

    .whattodo-item-title-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .emergency-process-timeline {
        align-items: center;
    }

    .process-step-card {
        width: 100%;
        max-width: 400px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .fees-card {
        padding: 2.5rem 1.5rem;
    }

    .fees-tiers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fee-tier-box {
        padding: 2rem 1.5rem;
    }

    .afterhours-card,
    .prevention-card,
    .afterhours-card h3,
    .prevention-card h3,
    .afterhours-card p,
    .prevention-card p {
        text-align: center !important;
    }
}
