/*
Theme Name: Tarasha Dental
Theme URI: https://tarashadental.com
Author: Suraj Digital
Author URI: https://tarashadental.com
Description: A fast, modern, professional WordPress theme built for Tarasha Dental Clinic — a CGHS-empanelled, AIIMS Alumni dental practice in Lajpat Nagar, New Delhi. Lightweight (no page builder, no jQuery, minimal JS), accessible, and SEO-ready with built-in Dentist JSON-LD schema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarasha-dental
Tags: dental, clinic, healthcare, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand palette */
  --teal: #1A4A45;
  --teal-700: #143a36;
  --teal-900: #0e2b28;
  --gold: #B8965A;
  --gold-600: #a5834a;
  --ivory: #FAF8F4;
  --ivory-200: #f2eee6;
  --ink: #22312f;
  --muted: #5c6b68;
  --line: #e5ddd0;
  --white: #ffffff;

  /* Type */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -24px rgba(20, 58, 54, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(20, 58, 54, 0.3);
  --gutter: clamp(18px, 5vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);
  --trans: 0.25s ease;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-600); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--teal); letter-spacing: 0.2px; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--white); }
.section--teal { background: var(--teal); color: var(--ivory); }
.section--teal h1, .section--teal h2, .section--teal h3 { color: var(--ivory); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 14px;
  display: inline-block;
}
.section--teal .eyebrow { color: var(--gold); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.section--teal .lede { color: rgba(250, 248, 244, 0.82); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.3px; padding: 14px 26px; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer; transition: all var(--trans);
  line-height: 1.15; text-align: center; min-height: 48px; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; display: block; }
.btn--primary { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { background: var(--ivory); color: var(--teal); }
.btn--light:hover { background: #fff; color: var(--teal); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1eb257; color: #fff; transform: translateY(-2px); }

/* ============================================================
   5. HEADER
   ============================================================ */
.topbar {
  background: var(--teal-900); color: var(--ivory);
  font-size: 0.82rem; letter-spacing: 0.3px;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; justify-content: space-between; padding-block: 8px; }
.topbar a { color: var(--ivory); }
.topbar a:hover { color: var(--gold); }
.topbar__badges { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar__badges > span, .topbar__phone { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; flex: none; }
.badge-cghs { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold); }
.badge-cghs svg { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(250, 248, 244, 0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--trans); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(20,58,54,0.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; flex: none; }
.brand__name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--teal); line-height: 1; }
.brand__tag { font-size: 0.68rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.primary-nav ul { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; align-items: center; }
.primary-nav a { font-weight: 500; font-size: 0.96rem; color: var(--ink); position: relative; padding-block: 6px; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width var(--trans); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal); position: relative; transition: var(--trans); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--teal); transition: var(--trans); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   6. HERO
   ============================================================ */
.hero { position: relative; background: linear-gradient(160deg, var(--ivory) 0%, var(--ivory-200) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 55%; height: 140%; background: radial-gradient(circle at center, rgba(184,150,90,0.16), transparent 62%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); align-items: center; padding-block: clamp(50px, 8vw, 96px); position: relative; z-index: 1; }
.hero__badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--line); padding: 7px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--teal); box-shadow: var(--shadow-sm); }
.pill svg { width: 15px; height: 15px; color: var(--gold-600); }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold-600); }
.hero__lede { font-size: 1.16rem; color: var(--muted); max-width: 52ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__trust-item strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--teal); display: block; line-height: 1; }
.hero__trust-item span { font-size: 0.82rem; color: var(--muted); }
.hero__visual { position: relative; }
.hero__card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; border: 1px solid var(--line); }
.hero__card-top { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.hero__doc-avatar { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-700)); color: var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; flex: none; }
.hero__doc-name { font-family: var(--font-head); font-size: 1.35rem; color: var(--teal); font-weight: 700; }
.hero__doc-cred { font-size: 0.8rem; color: var(--muted); }
.hero__card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero__card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; }
.hero__card li svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; margin-top: 1px; }

/* ============================================================
   7. CGHS STRIP
   ============================================================ */
.cghs { background: var(--teal); color: var(--ivory); }
.cghs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.cghs__points { display: grid; gap: 18px; }
.cghs__point { display: flex; gap: 14px; align-items: flex-start; }
.cghs__point .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(184,150,90,0.18); display: grid; place-items: center; flex: none; color: var(--gold); }
.cghs__point .ic svg { width: 22px; height: 22px; }
.cghs__point h3 { color: var(--ivory); font-size: 1.15rem; margin-bottom: 3px; }
.cghs__point p { color: rgba(250,248,244,0.78); font-size: 0.92rem; }

/* ============================================================
   8. SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.svc-card__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--ivory-200); display: grid; place-items: center; color: var(--teal); margin-bottom: 20px; }
.svc-card__ic svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: 10px; font-size: 1.28rem; }
.svc-card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 16px; }
.svc-card a { font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.svc-card a svg { width: 15px; height: 15px; transition: transform var(--trans); }
.svc-card a:hover svg { transform: translateX(4px); }

/* ============================================================
   9. ABOUT / WHY
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about__visual { border-radius: var(--radius); background: linear-gradient(150deg, var(--teal) 0%, var(--teal-700) 100%); color: var(--ivory); padding: 40px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.about__visual::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(184,150,90,0.2); }
.about__visual h3 { color: var(--ivory); font-size: 1.6rem; margin-bottom: 14px; position: relative; }
.about__visual p { color: rgba(250,248,244,0.85); position: relative; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; position: relative; }
.about__stat strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold); display: block; line-height: 1; }
.about__stat span { font-size: 0.82rem; color: rgba(250,248,244,0.75); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 42px; }
.why-card { text-align: center; padding: 30px 20px; }
.why-card .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--ivory-200); display: grid; place-items: center; margin: 0 auto 18px; color: var(--gold-600); }
.why-card .ic svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   10. TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.quote p { font-style: italic; color: var(--ink); margin-bottom: 18px; }
.quote__author { font-weight: 600; color: var(--teal); font-size: 0.92rem; }

/* ============================================================
   10b. FAQ / ACCORDION
   ============================================================ */
.faq-list { max-width: 820px; margin: 42px auto 0; display: grid; gap: 14px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--trans); }
.faq.is-open { border-color: var(--gold); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; min-height: 56px; font-family: var(--font-head); font-size: 1.18rem; font-weight: 600; color: var(--teal); }
.faq__q-text { flex: 1; min-width: 0; overflow-wrap: break-word; line-height: 1.3; }
.faq__icon { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--gold-600); transform: translate(-50%, -50%); transition: transform var(--trans); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq.is-open .faq__a { max-height: 400px; }
.faq__a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 0.96rem; line-height: 1.7; }

/* ============================================================
   11. CTA BAND
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--teal) 0%, var(--teal-900) 100%); border-radius: var(--radius); padding: clamp(40px, 6vw, 66px); text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(184,150,90,0.25), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--ivory); margin-bottom: 14px; }
.cta-band p { color: rgba(250,248,244,0.85); max-width: 54ch; margin: 0 auto 28px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer { background: var(--teal-900); color: rgba(250,248,244,0.8); padding-top: clamp(50px, 7vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer__brand .brand__name { color: var(--ivory); }
.footer p, .footer li { font-size: 0.9rem; }
.site-footer h4 { color: var(--ivory); font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(250,248,244,0.8); }
.site-footer a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.footer__contact span, .footer__contact a { overflow-wrap: break-word; word-break: normal; min-width: 0; }
.footer__bottom { border-top: 1px solid rgba(250,248,244,0.14); padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; }

/* ============================================================
   13. FLOATING / STICKY
   ============================================================ */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6); transition: transform var(--trans); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   14. CONTENT / BLOG / PAGES
   ============================================================ */
.page-hero { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-700) 100%); color: var(--ivory); padding-block: clamp(50px, 7vw, 84px); text-align: center; }
.page-hero h1 { color: var(--ivory); margin-bottom: 10px; }
.page-hero .breadcrumb { font-size: 0.85rem; color: rgba(250,248,244,0.7); }
.page-hero .breadcrumb a { color: var(--gold); }

.entry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--trans), box-shadow var(--trans); }
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.entry__thumb { aspect-ratio: 16 / 9; background: var(--ivory-200); overflow: hidden; }
.entry__thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry__body { padding: 26px; }
.entry__meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-600); font-weight: 600; margin-bottom: 10px; }
.entry__body h2, .entry__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.entry__body h2 a, .entry__body h3 a { color: var(--teal); }
.entry__body p { font-size: 0.94rem; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-sm); }
.article-content { font-size: 1.06rem; line-height: 1.8; }
.article-content > * + * { margin-top: 1.1em; }
.article-content h2 { margin-top: 1.6em; font-size: 1.8rem; }
.article-content h3 { margin-top: 1.4em; font-size: 1.4rem; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li { margin-bottom: 0.5em; }
.article-content img { border-radius: var(--radius-sm); }
.article-content blockquote { border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; font-family: var(--font-head); font-size: 1.3rem; font-style: italic; color: var(--teal); }
.article-content a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-content code { background: var(--ivory-200); padding: 2px 7px; border-radius: 5px; font-size: 0.9em; }

.entry-footer { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
.tags a { display: inline-block; background: var(--ivory-200); color: var(--teal); font-size: 0.78rem; padding: 5px 13px; border-radius: 100px; margin: 0 6px 6px 0; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-weight: 600; color: var(--teal); }
.pagination .page-numbers.current { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--gold); }

.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.widget-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--teal); margin-bottom: 16px; }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.widget a { color: var(--ink); font-size: 0.94rem; }
.widget a:hover { color: var(--gold-600); }

/* Comments */
.comments-area { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,4vw,40px); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea,
.search-form input[type=search], .contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.96rem; background: var(--ivory); margin-bottom: 14px;
}
.comment-form textarea, .contact-form textarea { min-height: 130px; resize: vertical; }

/* 404 / no results */
.notfound { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.notfound h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--gold); }

/* ============================================================
   15. WORDPRESS CORE CLASSES
   ============================================================ */
.alignwide { width: min(100%, 1000px); margin-inline: auto; }
.alignfull { width: auto; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { display: block; margin-inline: auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--muted); text-align: center; }
.sticky, .bypostauthor { display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); word-wrap: normal; }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ============================================================
   16. ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.05s !important; }
}

/* ============================================================
   17. RESPONSIVE
   Breakpoints: 1023 (tablet grids), 900 (mobile nav), 767 (mobile
   grids), 576 (stack CTAs). Tested 320 / 360 / 375 / 390 / 414 /
   480 / 768 / 820 / 1024 / 1280 / 1440. No horizontal overflow.
   ============================================================ */

/* --- Tablet: 1024px and below (768–1023 zone) --- */
@media (max-width: 1023px) {
  .hero__grid, .cghs__grid, .about__grid { grid-template-columns: 1fr; }
  .content-sidebar { grid-template-columns: 1fr; display: block; }
  .svc-grid, .quotes, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__visual { max-width: 520px; }
}

/* --- Switch to mobile nav early so the tablet header never crowds --- */
@media (max-width: 900px) {
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--ivory); box-shadow: -20px 0 60px -20px rgba(20,58,54,0.4); transform: translateX(100%); transition: transform 0.3s ease; padding: 96px 26px calc(30px + env(safe-area-inset-bottom)); overflow-y: auto; z-index: 95; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 2px; align-items: stretch; }
  .primary-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.06rem; }
  .primary-nav a::after { display: none; }
  .nav-toggle { display: flex; z-index: 96; }
  .nav-mobile-cta { display: flex; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(14,43,40,0.4); opacity: 0; visibility: hidden; transition: var(--trans); z-index: 94; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  .header-actions .btn--primary { display: none; }
}

/* --- Mobile: 767px and below --- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .svc-grid, .quotes, .post-grid, .why-grid, .footer__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .topbar { font-size: 0.78rem; }
  .topbar__inner { justify-content: center; text-align: center; gap: 4px 16px; }
  .topbar__badges { gap: 8px 16px; justify-content: center; }
  .brand__name { font-size: 1.28rem; }
  .hero__visual { max-width: none; }
  .hero__trust { gap: 20px; }
  .article { padding: 26px 20px; }
}

/* --- Trim the top bar to essentials on phones (keeps it one clean line) --- */
@media (max-width: 560px) {
  .topbar__aiims, .topbar__hours { display: none; }
  .topbar__inner { gap: 4px 20px; }
}

/* --- Small phones: stack grouped CTAs full width (below 576px) --- */
@media (max-width: 576px) {
  .hero__cta, .cta-band__btns { flex-direction: column; align-items: stretch; }
  .hero__cta .btn, .cta-band__btns .btn { width: 100%; }
  .hero__trust { gap: 14px 24px; }
  .hero__trust-item strong { font-size: 1.7rem; }
  .about__stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .faq__q { font-size: 1.06rem; padding: 18px; }
  .cta-band { padding: 40px 22px; }
}

/* --- Very small (≤360px): guard against clipping --- */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand__mark { width: 38px; height: 38px; font-size: 1.2rem; border-radius: 10px; }
  .brand__name { font-size: 1.12rem; }
  .brand__tag { display: none; }
  .hero__badges .pill { font-size: 0.74rem; padding: 6px 12px; }
}

/* Mobile-only CTA shown inside the nav drawer */
.nav-mobile-cta { display: none; margin-top: 22px; }
.nav-mobile-cta .btn { width: 100%; }
