/* =====================================================
   PREMIUM-SECTIONS.CSS — Mehar Physiotherapy Clinic
   Scope: Home page only (index.html)
   Load order: 4th (after global-style.css, theme.css, style.css)

   Responsibility: premium typographic upgrades, section
   heading accents, doctor photo wrap, credential tag,
   specialization tags, stat badge, section mesh
   backgrounds. Does NOT re-declare glassmorphism,
   box-shadows or section backgrounds — those are
   owned by global-style.css.
   ===================================================== */


/* =====================================================
   1. FONT IMPORT & BODY OVERRIDE
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&display=swap');

body {
    font-family: 'DM Sans', Arial, sans-serif !important;
}


/* =====================================================
   2. NORMALISED PARAGRAPH SIZE — all home sections
   ===================================================== */

#home p,
#about p,
#services p,
#faq-preview p,
#reviews p,
#contact p,
#map-section p {
    font-size: 0.95em;
    line-height: 1.75;
}


/* =====================================================
   3. HOME SECTION
   ===================================================== */

#home {
    position: relative;
    padding: 36px 28px 32px !important;
    overflow: hidden !important;
}

/* Decorative left-edge teal bar */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #00796b, transparent);
    border-radius: 16px 0 0 16px;
    pointer-events: none;
}

/* Subtle teal mesh in background */
#home::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 95% 10%, rgba(0, 121, 107, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 5%  90%, rgba(0, 121, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

/* Main heading — premium serif */
#home h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    color: #00796b;
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Animated underline beneath h2 */
#home h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, #00796b, #4db6ac);
    border-radius: 2px;
    margin-top: 8px;
    transition: width 0.4s ease;
}

#home:hover h2::after {
    width: 80px;
}

/* Lead bold paragraph */
#home > p:first-of-type {
    font-size: 1.02em;
    font-weight: 600;
    color: #00695c;
    margin: 12px 0 14px;
    letter-spacing: 0.1px;
}

/* Body paragraphs */
#home > p:not(:first-of-type) {
    font-size: 0.92em;
    line-height: 1.75;
    color: #3a3a3a;
    margin: 0 0 12px;
}

/* Stat badge — e.g. "20+ Years" */
.home-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 121, 107, 0.08);
    border: 1px solid rgba(0, 121, 107, 0.22);
    border-radius: 50px;
    padding: 7px 16px 7px 10px;
    margin: 6px 0 18px;
    font-size: 0.82em;
    font-weight: 600;
    color: #00695c;
    letter-spacing: 0.2px;
}

.home-stat-badge .badge-icon {
    width: 28px;
    height: 28px;
    background: #00796b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-stat-badge .badge-icon img {
    width: 15px;
    height: 15px;
    filter: invert(1) brightness(2);
}

/* Dark mode — home */
@media (prefers-color-scheme: dark) {
    #home > p:first-of-type        { color: #4db6ac; }
    #home > p:not(:first-of-type)  { color: #d0d0d0; }

    .home-stat-badge {
        background: rgba(0, 121, 107, 0.14);
        border-color: rgba(77, 182, 172, 0.3);
        color: #4db6ac;
    }
}


/* =====================================================
   4. ABOUT SECTION
   ===================================================== */

#about {
    position: relative;
    padding: 32px 28px !important;
    overflow: hidden !important;
}

#about::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 100% 0%, rgba(0, 121, 107, 0.06) 0%, transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

/* Section heading */
#about h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#about h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: #00796b;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Doctor photo wrapper */
.doctor-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 150px;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doctor-photo-wrap .doctor-photo {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.3s ease;
}

.doctor-photo-wrap:hover .doctor-photo {
    box-shadow: 0 10px 32px rgba(0, 121, 107, 0.3);
}

/* Credential tag below photo */
.doctor-credential {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #00796b;
    background: rgba(0, 121, 107, 0.08);
    border-top: 2px solid #00796b;
    border-bottom: 1px solid rgba(0, 121, 107, 0.2);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 7px 4px 6px;
    line-height: 1.3;
    white-space: nowrap;
    width: auto;
    align-self: center;
    box-sizing: border-box;
}

.doctor-credential .cred-degrees {
    font-size: 1em;
    letter-spacing: 1.2px;
}

.doctor-credential .cred-title {
    font-size: 0.88em;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

/* About body text */
.about-text p {
    font-size: 0.95em;
    line-height: 1.75;
    margin: 0 0 12px;
}

/* Specialization tags */
.specialization-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0 16px;
}

.spec-tag {
    font-size: 0.73em;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 5px 11px;
    border-radius: 20px;
    background: rgba(0, 121, 107, 0.08);
    border: 1px solid rgba(0, 121, 107, 0.22);
    color: #00695c;
}

/* Experience line */
.about-exp-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8em;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.2px;
}

.about-exp-line::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #00796b;
    border-radius: 1px;
    flex-shrink: 0;
}

/* Dark mode — about */
@media (prefers-color-scheme: dark) {
    .about-text p         { color: #d0d0d0; }
    .about-exp-line        { color: #aaa; }

    .doctor-credential {
        color: #4db6ac;
        background: rgba(0, 121, 107, 0.15);
        border-color: rgba(77, 182, 172, 0.3);
    }

    .spec-tag {
        background: rgba(0, 121, 107, 0.14);
        border-color: rgba(77, 182, 172, 0.28);
        color: #4db6ac;
    }
}


/* =====================================================
   5. UNIFORM SECTION HEADINGS & MESH BACKGROUNDS
   (services, faq-preview, reviews, contact, map-section)
   ===================================================== */

#services,
#faq-preview,
#reviews,
#contact,
#map-section {
    position: relative;
    overflow: hidden !important;
}

#services::after,
#faq-preview::after,
#reviews::after,
#contact::after,
#map-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 95% 10%, rgba(0, 121, 107, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 5%  90%, rgba(0, 121, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

/* Uniform h2 style across all home sections */
#services h2:first-of-type,
#faq-preview h2,
#reviews h2,
#contact h2,
#map-section h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Teal vertical bar accent before each h2 */
#services h2:first-of-type::before,
#faq-preview h2::before,
#reviews h2::before,
#contact h2::before,
#map-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: #00796b;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Dark mode paragraph text for all sections */
@media (prefers-color-scheme: dark) {
    #services p,
    #faq-preview p,
    #reviews p,
    #contact p,
    #map-section p {
        color: #d0d0d0;
    }
}


/* =====================================================
   6. MOBILE ADJUSTMENTS
   ===================================================== */

@media (max-width: 700px) {
    #home,
    #about {
        padding: 24px 18px 22px !important;
    }

    #about .about-container {
        display: block !important;
    }

    #about .about-text {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #about .doctor-photo-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 110px !important;
        max-width: 110px !important;
        margin: 0 auto 12px !important;
    }

    #about .about-text p {
        font-size: 0.88em !important;
        line-height: 1.65 !important;
    }

    .specialization-strip {
        justify-content: center;
    }

    #home p,
    #services p,
    #faq-preview p,
    #reviews p,
    #contact p,
    #map-section p {
        font-size: 0.88em !important;
        line-height: 1.65 !important;
    }
}

@media (max-width: 480px) {
    #about .doctor-photo-wrap {
        width: 100px !important;
        max-width: 100px !important;
    }
}

@media (min-width: 480px) and (max-width: 900px) and (orientation: landscape) {
    #about .doctor-photo-wrap {
        width: 120px !important;
        max-width: 120px !important;
    }
}
