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

/* ── Layout & Sections ──────────────────────────────────────── */
.fillings-intro-section,
.fillings-about-section,
.fillings-why-section,
.fillings-indicators-section,
.fillings-process-section,
.fillings-replace-section,
.fillings-fees-section,
.fillings-prevention-section,
.fillings-bottom-cta {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

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

.fillings-about-section,
.fillings-indicators-section,
.fillings-replace-section,
.fillings-prevention-section,
.fillings-bottom-cta {
    background-color: var(--bg-light);
}

/* Grid layout for two-column alignment */
.fillings-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 */
.fillings-grid.reverse-grid {
    grid-template-columns: 1fr 33.33333333%;
}
.reverse-grid {
    direction: ltr;
}
.reverse-grid > *:first-child {
    order: 2;
}

/* ── 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;
}

.fillings-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;
}

.fillings-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;
}

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

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

/* ── Media Containers (Images & Videos) ─────────────────────── */
.fillings-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;
}

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

/* ── Checkmark Lists ────────────────────────────────────────── */
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.checkmark-list li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.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;
    margin-top: 2px;
}

.checkmark-list li strong {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.2rem;
}

.checkmark-list li p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

.fillings-why-note {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ── Standard SPA style lists ───────────────────────────────── */
.bullet-list-spa {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bullet-list-spa li {
    position: relative;
    padding-left: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.9;
    line-height: 1.6;
}

.bullet-list-spa li::before {
    content: "•";
    position: absolute;
    left: 0.2rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    top: -1px;
}

/* ── Indicators & Notes ───────────────────────────────────────── */
.indicators-block {
    margin: 2rem 0;
}

.indicators-note {
    font-style: italic;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

/* ── Process Section ────────────────────────────────────────── */
.fillings-process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

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

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

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

.process-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;
}

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

.process-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;
}

/* ── Pricing & Health Funds Card ──────────────────────────────── */
.fillings-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: 4.5rem;
    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: 1.5rem;
    line-height: 1.6;
}

.fees-card p:not(.fees-lead) {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

/* ── Prevention Cards ───────────────────────────────────────── */
.prevention-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.prevention-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);
}

.prevention-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

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

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

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

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

.fillings-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;
}

.fillings-bottom-cta p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}
.fillings-why-no-image-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.fillings-why-header {
    margin-bottom: 3rem;
}

.why-intro-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto;
}

.fillings-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.benefit-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(150, 178, 174, 0.12);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    text-align: left;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.benefit-card-content strong {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.4rem;
}

.benefit-card-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    color: var(--text-dark);
}

.why-detailed-text {
    background-color: rgba(150, 178, 174, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    display: inline-block;
    max-width: 800px;
    margin: 0 auto;
}

.why-detailed-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
    text-align: center;
}

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

@media (max-width: 768px) {
    .fillings-intro-section,
    .fillings-about-section,
    .fillings-why-section,
    .fillings-indicators-section,
    .fillings-process-section,
    .fillings-replace-section,
    .fillings-fees-section,
    .fillings-prevention-section,
    .fillings-bottom-cta {
        padding: 5rem 0;
    }

    .fillings-grid,
    .fillings-grid.reverse-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    /* Stack order configs: text first, visual components second on mobile */
    .fillings-about-section .fillings-grid,
    .fillings-indicators-section .fillings-grid,
    .fillings-replace-section .fillings-grid,
    .fillings-prevention-section .fillings-grid {
        display: flex;
        flex-direction: column;
    }

    .fillings-about-section .fillings-text-col,
    .fillings-indicators-section .fillings-text-col,
    .fillings-replace-section .fillings-text-col,
    .fillings-prevention-section .fillings-text-col {
        order: 1;
    }

    .fillings-about-section .fillings-image-col,
    .fillings-indicators-section .fillings-image-col,
    .fillings-replace-section .fillings-image-col,
    .fillings-prevention-section .prevention-card-list {
        order: 2;
    }

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

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

    .fillings-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 2rem 1.5rem;
    }

    .why-detailed-text {
        padding: 1.5rem;
    }

    .checkmark-list {
        text-align: center;
    }

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

    .bullet-list-spa {
        text-align: center;
        align-items: center;
    }

    .bullet-list-spa li {
        padding-left: 0;
        text-align: center;
    }

    .bullet-list-spa li::before {
        display: none;
    }

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

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

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

    .prevention-card-list {
        align-items: center;
    }

    .prevention-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;
    }
}
