/* =============================================================
   emergency-dentist-semaphore.css — Emergency Dentist Semaphore page styles
   Extends: css/index.css (shared design system)
   ============================================================= */

/* ── Layout & Sections ──────────────────────────────────────── */
.emergency-intro-section,
.emergency-need-section,
.emergency-services-section,
.emergency-appointments-section,
.emergency-designed-section,
.emergency-faqs-section,
.emergency-bottom-cta {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

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

.emergency-need-section,
.emergency-appointments-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 */
.emergency-services-section .emergency-grid {
    grid-template-columns: 1fr 1fr;
}

/* Typography */
.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-text-col p a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.emergency-text-col p a:hover {
    color: var(--primary-dark);
}

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

/* CTA Block Styles */
.emergency-cta-block {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.emergency-cta-block h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.emergency-cta-block p {
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

/* Checkmark List Styles */
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.checkmark-list li span {
    color: var(--primary-color);
}

/* Images & Media */
.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;
}

/* Timeline & Steps */
.emergency-services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-card {
    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);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

/* Warning & Alerts */
.warning-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #c94a4a;
    background-color: rgba(201, 74, 74, 0.05);
    padding: 1rem 1.2rem;
    border-left: 3px solid #c94a4a;
    border-radius: 4px;
    margin-top: 1.5rem;
    display: inline-block;
}

.warning-text i {
    margin-right: 0.5rem;
}

/* FAQs Accordion Styles */
.faq-container {
    max-width: 900px;
    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;
    margin-top: 0.5rem;
    color: var(--text-dark);
}

.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; /* Safe upper limit for accordion content */
}

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

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .emergency-grid,
    .emergency-grid.reverse-grid,
    .emergency-services-section .emergency-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .emergency-text-col {
        text-align: center;
    }
    
    .emergency-text-col ul {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 1.5rem auto !important;
        padding: 0;
    }
    
    .emergency-text-col ul li {
        justify-content: center;
        text-align: center;
    }
    
    .service-card {
        text-align: center;
    }
    
    .emergency-cta-btn {
        margin: 1rem auto 0 auto;
        display: inline-block;
    }
    
    .emergency-image-col {
        aspect-ratio: 16 / 10;
        max-height: 400px;
        margin: 0 auto;
    }
    
    .emergency-intro-section,
    .emergency-need-section,
    .emergency-services-section,
    .emergency-appointments-section,
    .emergency-designed-section,
    .emergency-faqs-section,
    .emergency-bottom-cta {
        padding: 5rem 0;
    }
    
    .faq-trigger {
        justify-content: center;
        text-align: center;
    }
    
    .faq-content p {
        text-align: center;
    }
}
