/* =====================================================================
   Elite Eye Hospitals: consistency layer
   Pages: Home, About, Services, Our Doctors, Doctor single pages.
   Loaded LAST so it wins over the older page stylesheets. One place to change
   typography, heading colours and section spacing for all these pages.
   To switch it off, remove its <link> from the shared head (ui_meta_tags.php).
   ===================================================================== */
:root{
  --ec-font:"Philosopher",sans-serif;          /* headings AND body text use the same family */
  --ec-navy:#212b5c;
  --ec-orange:#ff6f0a;
  --ec-body:#626b86;                           /* paragraph colour on light backgrounds */
  --ec-body-dark:rgba(255,255,255,.84);        /* paragraph colour on dark backgrounds */
  --ec-h1:clamp(32px,4vw,58px);
  --ec-h2:clamp(30px,4vw,58px);
  --ec-h3-xl:clamp(26px,2.8vw,40px);           /* sub-section headings */
  --ec-h3-lg:clamp(22px,1.9vw,26px);           /* card / person titles */
  --ec-h3-md:clamp(19px,1.5vw,21px);           /* small card titles */
  --ec-lead:17px;  --ec-lead-lh:1.75;          /* section intro text */
  --ec-text:15px;  --ec-text-lh:1.7;           /* card / body text */
  --ec-small:14px; --ec-small-lh:1.65;         /* small card text */
  --ec-kicker:14px;
  --ec-pad:clamp(48px,5.4vw,78px);             /* vertical padding of every content section */
}
@media(max-width:767px){
  :root{--ec-lead:15.5px;--ec-lead-lh:1.7;--ec-text:14.5px;--ec-text-lh:1.65;--ec-small:13.5px;--ec-small-lh:1.6;--ec-kicker:12px}
}

/* ---------- 1. One font family everywhere (icons are left alone) ---------- */
body,
body :is(h1,h2,h3,h4,h5,h6,p,li,a,small,strong,b,em,label,input,textarea,select,button,td,th,dt,dd,blockquote,figcaption,span,div):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.bi):not([class^="bi-"]):not([class*=" bi-"]){
  font-family:var(--ec-font)!important;
}

/* ---------- 2. Headings ---------- */
section h1,main h1{font-size:var(--ec-h1)!important;line-height:1.08!important;letter-spacing:-.5px!important;font-weight:700!important}
section h2,main h2{font-size:var(--ec-h2)!important;line-height:1.1!important;letter-spacing:-.5px!important;font-weight:700!important}
.dpv-cta h2,.ehcta h2{font-size:clamp(28px,3.4vw,48px)!important}   /* call-to-action banners are a step smaller */
section h1 em,main h1 em,section h2 em,main h2 em,section h2 span.accent,main h2 span.accent{
  font-style:normal!important;color:var(--ec-orange)!important;-webkit-text-fill-color:var(--ec-orange)!important;background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;
}
/* sub-section headings */
.eh-insurance-block-head>h3,.eh-government-copy>h3,.eh-insurance-cta>h3,.eh-faq-cta>h3,.eh-values-heading>h3,.eh-tech-list-head>h3,.ehwc-sub>h3,.ehct-sub>h3,.ehpc-sub>h3,.ehcta-serve-body>h3{font-size:var(--ec-h3-xl)!important;line-height:1.15!important}
/* card / person titles */
.eh-why-point>h3,.eh-specialist-info>h3,.eh-branch-card>h3,.eh-branches-cta>h3,.eh-blog-info>h3,.eh-principle-card>h3,.ehsx-ctext>h3,.ehpc-in>h4,.ehcta-card-head>h3,.ehtm-info>h3,
.dpv-card3 h3,.dpv-why h3,.dpv-steps h3,.dpv-other-body strong,.dpv-panel-title,.dpv-side-title,.dpv-rich h3{font-size:var(--ec-h3-lg)!important;line-height:1.2!important}
/* small card titles */
.eh-service-body>h3,.eh-testimonial-person>h3,.eh-value-card>h4,.eh-tech-card>h4,.ehct-body>h4,.ehr-in>h3{font-size:var(--ec-h3-md)!important;line-height:1.2!important}

/* kickers / eyebrow labels */
section [class*="kicker"],main [class*="kicker"],section [class*="eyebrow"]{font-size:var(--ec-kicker)!important;letter-spacing:2.5px!important;font-weight:700!important;text-transform:uppercase}

/* ---------- 3. Body text: three tiers (lead, text, small) ---------- */
/* lead = the intro paragraph under a section heading */
.eh-why-intro>p,.eh-branches-head>p,.eh-testimonials-head>p,.eh-blogs-head>p,.eh-story-copy>p,.eh-tech-copy>p,.eh-patient-copy>p,.eh-vision-cta-copy>p,.ehsv-text>p,.eh-doctors-intro-copy>p,.eh-services-copy>p,.ehtm-copy>p,.dpv-lead p{
  font-size:var(--ec-lead)!important;line-height:var(--ec-lead-lh)!important;color:var(--ec-body)!important}
p.eh-desc,.eh-qc-copy>p,p.eh-qc-emergency,.eh-achievements-content>p,.eh-insurance-copy>p,.eh-faq-intro>p,.eh-about-body>p,p.eh-principles-intro,.eh-community-copy>p,p.ehf-lead,.ehs-text>p,.ehwc-text>p,.ehcta-text>p,.ehd-text p{
  font-size:var(--ec-lead)!important;line-height:var(--ec-lead-lh)!important;color:var(--ec-body-dark)!important}
/* text = card and body paragraphs */
.eh-why-point>p,.eh-doctors-bottom>p,p.eh-testimonial-text,.ehf-a-inner>p,.ehsx-ctext>p,.ehct-body>p,.ehpc-in>p,p.ehr-role,p.ehtm-bio,.ehtm-note-txt>p,
.dpv-card3 p,.dpv-why p,.dpv-steps p,.dpv-rich p,.dpv-rich li,.dpv-side-text,.dpv-cta p{
  font-size:var(--ec-text)!important;line-height:var(--ec-text-lh)!important}
.eh-why-point>p,.eh-doctors-bottom>p,p.eh-testimonial-text,.ehf-a-inner>p,.ehsx-ctext>p,.ehct-body>p,.ehpc-in>p,p.ehr-role,p.ehtm-bio,.ehtm-note-txt>p,.dpv-card3 p,.dpv-why p,.dpv-rich p,.dpv-rich li{color:var(--ec-body)!important}
.eh-branches-cta>p,.eh-insurance-block-head>p,.eh-government-copy>p,.eh-faq-answer>p,.eh-faq-cta>p,.eh-principle-card>p,.ehcta-serve-body>p{
  font-size:var(--ec-text)!important;line-height:var(--ec-text-lh)!important;color:var(--ec-body-dark)!important}
/* small = compact card text */
.eh-service-body>p,.eh-specialist-info>p,.eh-branch-card>p{font-size:var(--ec-small)!important;line-height:var(--ec-small-lh)!important;color:var(--ec-body)!important}
.eh-achievement-item>p,.eh-insurance-note>p,.eh-value-card>p{font-size:var(--ec-small)!important;line-height:var(--ec-small-lh)!important;color:rgba(255,255,255,.74)!important}

/* doctor profile text: same family and sizes as the rest */
.dpv-rich p,.dpv-rich ul,.dpv-rich li{font-family:var(--ec-font)!important}

/* ---------- 4. Section spacing: the same top/bottom padding everywhere ---------- */
#quick-contact,#why-choose-elite,#eye-care-services,#eye-care-achievements,#our-doctors,#our-branches,#insurance-cashless,#patient-testimonials,#eye-care-blogs,#frequently-asked-questions,
#our-story,#mission-vision-values,#our-technology,#patient-care,#community-outreach,#our-vision,#about-faq,
#ehEyeCareServices,#ehServicesShowcase,#ehWhyChoose,#ehConditions,#ehPatientCare,#services-faq,#ehCta,
#doctorsToday,#ehDoctorsTeam,#doctors-faq,
.dpv:not(.dpv-cta){
  padding-top:var(--ec-pad)!important;padding-bottom:var(--ec-pad)!important}
.dpv-cta{padding-top:clamp(36px,4vw,60px)!important;padding-bottom:clamp(36px,4vw,60px)!important}

/* Doctors-today block ships its own ID-based heading rule; match its strength */
body #doctorsToday #ehrTitle,body #doctorsToday h2{font-size:var(--ec-h2)!important;line-height:1.1!important}
