/* ============================================================
   pages.css — Shared styles for About, Services, Doctors pages
   ============================================================ */

/* --- Page Hero --- */
.page-hero {
    background: var(--primary-deep);
    padding-block: clamp(140px, 15vh, 220px) clamp(60px, 8vh, 100px);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 79, 155, 0.3) 0%, transparent 60%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.page-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Active Nav Link --- */
.nav-links a.active {
    color: var(--primary-vibrant);
    font-weight: 700;
}

/* --- ABOUT PAGE --- */
.about-story-section {
    padding-block: var(--section-padding);
}

.about-story-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .about-story-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
        align-items: center;
    }
}

.about-story-content .lead-text {
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-vibrant);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.about-story-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-story-images {
    position: relative;
    min-height: 400px;
    /* Reduced basis for mobile */
}

.story-img-main {
    width: 70%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    position: absolute;
    top: 0;
    right: 0;
}

.story-img-secondary {
    width: 55%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    border: 6px solid white;
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    .about-story-images {
        min-height: 300px;
    }
}

/* Values Section */
.values-section {
    padding: var(--section-padding, 100px) 0;
    background: #f8fafc;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

.value-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-vibrant);
    transition: var(--transition-smooth);
}

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

.value-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-vibrant), var(--primary-deep));
    border-radius: 16px;
    margin-bottom: 2rem;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--primary-deep);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Practice Section */
.practice-section {
    padding: var(--section-padding, 100px) 0;
}

.practice-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: 4rem;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
}

/* Medical Aid Section */
.medical-aid-section {
    padding: var(--section-padding, 100px) 0;
    background: var(--primary-deep);
    color: white;
}

.medical-aid-section .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.medical-aid-section .section-title,
.medical-aid-section .section-subtitle {
    color: white;
}

.medical-aid-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.aid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.aid-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-smooth);
}

.aid-card.reveal:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* Map Section */
.map-section {
    padding: var(--section-padding, 100px) 0 0;
}

.map-embed-wrapper {
    margin-top: 4rem;
    border-radius: 0;
    overflow: hidden;
    line-height: 0;
}

.map-embed-wrapper iframe {
    display: block;
}

/* --- SERVICES PAGE --- */
.pricing-banner {
    background: var(--primary-vibrant);
    padding: 2.5rem 0;
    color: white;
}

.pricing-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.pricing-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
}

.pricing-item strong {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
}

.pricing-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

.services-detail-section {
    padding: var(--section-padding, 120px) 0;
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(1.5rem, 3.5vw, 3rem);
    margin-top: 4rem;
}

.service-detail-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.sdc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sdc-icon-bar {
    width: 5px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-vibrant), var(--primary-deep));
    border-radius: 10px;
    flex-shrink: 0;
}

.sdc-header h3 {
    font-size: 1.2rem;
    color: var(--primary-deep);
    font-weight: 700;
}

.sdc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sdc-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.sdc-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-vibrant);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.sdc-list li:last-child {
    border-bottom: none;
}

.sdc-more {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #002d6a 100%);
    color: white;
}

.sdc-more .sdc-header h3 {
    color: white;
}

.sdc-more-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.services-cta-section {
    padding: var(--section-padding, 120px) 0;
    background: #f8fafc;
}

.services-cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.services-cta-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-deep);
    margin-bottom: 1.5rem;
}

.services-cta-inner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* --- DOCTORS PAGE --- */
.doctor-profile-section {
    padding: var(--section-padding, 100px) 0;
}

.doctor-profile-section:nth-child(even) {
    background: #f8fafc;
}

.doctor-profile-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .doctor-profile-grid {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 8rem;
        align-items: start;
    }

    .dp-reversed .doctor-profile-grid {
        grid-template-columns: 1fr 420px;
    }
}

.dp-reversed .dp-image-col {
    order: 2;
}

.dp-reversed .dp-content-col {
    order: 1;
}

.dp-image-wrap {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--hover-shadow);
    aspect-ratio: 4 / 5;
}

.dp-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.dp-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.cred-item {
    background: var(--primary-deep);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dp-content-col h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-deep);
    margin-bottom: 0.5rem;
}

.dp-role {
    font-size: 1.1rem;
    color: var(--primary-vibrant);
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}

.dp-content-col p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.dp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dp-tag {
    background: rgba(0, 121, 193, 0.08);
    color: var(--primary-vibrant);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doctor-divider {
    height: 1px;
    background: #e8edf2;
    margin: 0 5%;
}

/* Reviews — enhanced */
.reviews-stats {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stars-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-deep);
}

.reviews-count {
    color: var(--text-muted);
    font-size: 1rem;
}

.reviews-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-vibrant);
    color: var(--primary-vibrant);
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--primary-vibrant);
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {

    .doctor-profile-grid,
    .dp-reversed .doctor-profile-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .dp-reversed .dp-image-col {
        order: 0;
    }

    .dp-reversed .dp-content-col {
        order: 0;
    }

    .dp-image-wrap {
        height: 400px;
        max-width: 500px;
    }

    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-story-images {
        height: 350px;
    }
}

@media (max-width: 900px) {
    .practice-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-img {
        height: 250px;
    }

    .pricing-banner-inner {
        gap: 2rem;
    }

    .pricing-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 80px;
    }

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .aid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}