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

/* ── Layout & Sections ──────────────────────────────────────── */
.implants-intro-section,
.implants-benefits-section,
.implants-process-section,
.implants-candidacy-section,
.implants-faq-section,
.implants-bottom-cta {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

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

.implants-benefits-section,
.implants-candidacy-section,
.implants-bottom-cta {
    background-color: var(--bg-light);
}

/* Grid layout for two-column alignment */
.implants-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 */
.implants-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;
}

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

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

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

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

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

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

/* ── Checkmark Lists ────────────────────────────────────────── */
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 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;
}

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

/* ── Candidacy Blocks ────────────────────────────────────────── */
.candidacy-block {
    margin: 2rem 0;
}

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

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

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

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

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

/* ── FAQ Section ────────────────────────────────────────────── */
.implants-faq-section {
    padding: 8rem 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background-color: var(--bg-light);
    border: 1px solid rgba(150, 178, 174, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth);
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-subtle);
}

.faq-trigger {
    width: 100%;
    padding: 1.8rem 2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 1.5rem;
}

.faq-trigger span:first-child {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s var(--transition-quick);
}

.faq-item:hover .faq-trigger span:first-child,
.faq-item.active .faq-trigger span:first-child {
    color: var(--primary-color);
}

.faq-icon-arrow {
    width: 12px;
    height: 12px;
    border-bottom: 2.5px solid var(--text-light);
    border-right: 2.5px solid var(--text-light);
    transform: rotate(45deg);
    transition: transform 0.3s var(--transition-smooth), border-color 0.3s var(--transition-quick);
    flex-shrink: 0;
    margin-top: -3px;
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(-135deg);
    border-color: var(--primary-color);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
}

.faq-item.active .faq-content {
    max-height: 250px;
}

.faq-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.85;
    padding-bottom: 1.8rem;
    margin: 0;
}

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

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

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

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

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

@media (max-width: 768px) {
    .implants-intro-section,
    .implants-benefits-section,
    .implants-process-section,
    .implants-candidacy-section,
    .implants-faq-section,
    .implants-bottom-cta {
        padding: 5rem 0;
    }

    .implants-grid,
    .implants-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 */
    .implants-benefits-section .implants-grid,
    .implants-candidacy-section .implants-grid {
        display: flex;
        flex-direction: column;
    }

    .implants-benefits-section .implants-text-col,
    .implants-candidacy-section .implants-text-col {
        order: 1;
    }

    .implants-benefits-section .implants-image-col,
    .implants-candidacy-section .implants-image-col {
        order: 2;
    }

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

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

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

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

    .faq-trigger {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .faq-icon-arrow {
        margin-top: 0;
    }

    .faq-content {
        padding: 0 1.5rem;
        text-align: center;
    }
}
