/* =========================================================
   Dr. Irfan Clinics — site.css
   Lean layer on top of Bootstrap 5 (grid + utilities only).
   Replaces main.css (~410 KB) and 7 vendor stylesheets.
   ========================================================= */

:root {
  --navy-900: #071C3C;   /* original --rr-color-900 */
  --navy-800: #0e1b33;
  --navy-700: #12305e;
  --blue-600: #185EC8;   /* original --rr-theme-primary */
  --blue-500: #2f74de;
  --blue-50:  #F2F7FD;   /* original --rr-color-100 */
  --sky-100:  #C9F3FF;   /* original --rr-theme-secondary */
  --teal-500: #0aa0a0;   /* accent used across service pages */
  --wa-green: #1fa855;
  --wa-green-dark: #178a45;
  --ink:      #0f1a2e;
  --body:     #4a5568;
  --muted:    #6b7686;
  --line:     #e3e8f0;
  --white:    #fff;
  --radius:   16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(7, 28, 60, .06);
  --shadow:    0 12px 32px rgba(7, 28, 60, .08);
  --ff: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--ff);
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ink); font-weight: 700; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
img { max-width: 100%; height: auto; }
strong { color: var(--ink); font-weight: 700; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
:focus-visible { outline: 3px solid var(--sky-100); outline-offset: 2px; }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.bg-soft { background: var(--blue-50); }
.bg-navy { background: var(--navy-900); color: rgba(255,255,255,.82); }
.bg-navy h2, .bg-navy h3, .bg-navy strong { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: .75rem 0 0; }
.lead-text { font-size: 1.15rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn-c {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn-c:hover { transform: translateY(-1px); }
.btn-primary-c { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(24,94,200,.28); }
.btn-primary-c:hover { background: var(--blue-500); color: #fff; }
.btn-wa { background: var(--wa-green); color: #fff; box-shadow: 0 8px 20px rgba(31,168,85,.25); }
.btn-wa:hover { background: var(--wa-green-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline-c { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline-c:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-sm-c { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and collapse it to 0px. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 28, 60, .96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: 176px; height: auto; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
  display: block; padding: .5rem .85rem; border-radius: 8px;
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.has-sub { position: relative; }
.has-sub > button {
  background: none; border: 0; color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem;
  padding: .5rem .85rem; border-radius: 8px; display: flex; align-items: center; gap: .3rem; font-family: inherit;
}
.has-sub > button:hover, .has-sub.is-active > button { color: #fff; background: rgba(255,255,255,.08); }
.has-sub .sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; display: none; flex-direction: column;
  background: #fff; border-radius: 14px; padding: .5rem; box-shadow: var(--shadow);
}
.has-sub .sub a { color: var(--ink); font-weight: 600; padding: .6rem .8rem; }
.has-sub .sub a:hover, .has-sub .sub a[aria-current="page"] { background: var(--blue-50); color: var(--blue-600); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: flex; }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-phone { display: flex; align-items: center; gap: .6rem; color: #fff; line-height: 1.2; }
.header-phone:hover { color: #fff; }
.header-phone .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); display: grid; place-items: center; }
.header-phone small { display: block; color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 600; }
.header-phone b { font-size: .98rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .4rem; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 1199.98px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--navy-900); z-index: 1001;
    padding: 1.25rem; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a, .has-sub > button { font-size: 1.1rem; padding: .85rem 1rem; width: 100%; }
  .has-sub .sub { position: static; display: flex; background: transparent; box-shadow: none; padding: 0 0 0 1rem; }
  .has-sub .sub a { color: rgba(255,255,255,.75); }
  .has-sub .sub a:hover, .has-sub .sub a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
  .has-sub > button .icon { display: none; }
  .main-nav .desk-only { display: none; }
  .main-nav .mobile-cta { display: flex !important; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 575.98px) { .brand img { width: 150px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: rgba(255,255,255,.85);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(24,94,200,.45), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(10,160,160,.18), transparent 60%),
    var(--navy-900);
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .lead-text { color: rgba(255,255,255,.82); max-width: 620px; }
.hero .lead-text strong { color: #fff; }
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.2;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: .8rem 1rem; display: flex; gap: .75rem; align-items: center;
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.3;
}
.hero-badge .stars { color: #f5a524; display: flex; gap: 1px; }
.hero-badge b { font-size: 1.15rem; }
@media (max-width: 991.98px) { .hero-badge { left: 12px; bottom: 12px; } .hero-media .frame { aspect-ratio: 4 / 3; } }

.crumbs { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .88rem; }
.crumbs li { color: rgba(255,255,255,.55); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: rgba(255,255,255,.35); }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }

.trust-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; padding: 0; list-style: none; font-size: .92rem; }
.trust-chips li { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.78); }
.trust-chips .icon { color: var(--sky-100); }

/* ---------- Answer box (AEO) ---------- */
.answer-box {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm);
}
.answer-box h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: .75rem; }
.answer-box p { margin: 0; font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 0; }
.facts div { background: #fff; padding: 1.1rem 1.25rem; }
.facts dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.45; }

/* ---------- Cards ---------- */
.card-c {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-c:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-c h3 { margin: 1rem 0 .5rem; }
.card-c p { margin: 0; color: var(--muted); }
.ic-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
}
.ic-tile .icon { width: 26px; height: 26px; }
.ic-tile img { width: 30px; height: 30px; object-fit: contain; }

.service-card { display: flex; flex-direction: column; color: inherit; }
.service-card:hover { color: inherit; }
.service-card .more { margin-top: auto; padding-top: 1.25rem; font-weight: 700; color: var(--blue-600); display: inline-flex; align-items: center; gap: .4rem; }
.service-card:hover .more .icon { transform: translateX(3px); }
.service-card .more .icon { transition: transform .2s ease; }

/* ---------- Media ---------- */
.media-frame { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: #dfe8f5; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4 / 5; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #dfe8f5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .gallery.g3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { display: flex; gap: .75rem; padding: .45rem 0; color: var(--body); }
.check-list li .icon { color: var(--teal-500); margin-top: .3rem; }
.dot-list { padding-left: 1.1rem; margin: 0; }
.dot-list li { padding: .3rem 0; }
.dot-list li::marker { color: var(--blue-600); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.4rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.15rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--blue-600); color: #fff;
  font-weight: 700; font-size: .85rem; display: grid; place-items: center;
}
.steps li::after { content: ""; position: absolute; left: 1.2rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: .1rem; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.timeline div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.timeline b { display: block; color: var(--blue-600); font-size: .95rem; }
.timeline span { font-size: .95rem; color: var(--body); }
.note { font-size: .92rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- Process (home) ---------- */
.process-card { text-align: center; }
.process-card .ph {
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden; margin: 0 auto 1.25rem;
  border: 5px solid #fff; box-shadow: 0 0 0 2px var(--blue-600), var(--shadow); position: relative;
}
.process-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.process-card .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: .6rem;
}
.process-card p { color: var(--muted); max-width: 320px; margin: .4rem auto 0; }

/* ---------- Doctor ---------- */
.doctor-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.cred-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1.25rem 0; }
.cred-list li { background: #fff; border: 1px solid #cfdcf0; color: var(--navy-700); font-weight: 700; font-size: .85rem; padding: .4rem .8rem; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .75rem; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #cfdcf0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-600); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .ans { padding: 0 1.35rem 1.2rem; }
.faq .ans p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); color: rgba(255,255,255,.82);
  background: radial-gradient(600px 300px at 100% 0%, rgba(24,94,200,.55), transparent 60%), var(--navy-900);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .addr { font-size: .95rem; color: rgba(255,255,255,.7); margin-top: 1rem; }

.reviewed {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; border-radius: 14px;
  background: var(--blue-50); font-size: .92rem; color: var(--body);
}
.reviewed .ic-tile { background: #fff; width: 44px; height: 44px; }

/* ---------- Contact ---------- */
.contact-card { text-align: center; }
.contact-card .ic-tile { margin: 0 auto; }
.contact-card address { font-style: normal; color: var(--muted); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li.today { color: var(--blue-600); font-weight: 700; }
.hours li.today strong { color: var(--blue-600); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%; min-height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Video facade ---------- */
.yt {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  cursor: pointer; border: 0; padding: 0; width: 100%; display: block;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.yt:hover img { opacity: 1; }
.yt .play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--blue-600); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.25);
}
.yt .play .icon { width: 30px; height: 30px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tiktok-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; min-height: 580px; display: flex; align-items: center; justify-content: center; }
.tiktok-card blockquote { margin: 0 !important; }

.intro-video { position: absolute; width: 46%; right: 12px; bottom: -24px; aspect-ratio: 16 / 10; border: 4px solid #fff; box-shadow: var(--shadow); }
@media (min-width: 992px) { .intro-video { right: -14px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 72px 0 0; font-size: .97rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .3rem 0; }
.f-contact li { display: flex; gap: .7rem; }
.f-contact .icon { margin-top: .3rem; color: var(--sky-100); }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--blue-600); }
.g-rating { display: inline-flex; gap: .75rem; align-items: center; margin-top: 1.25rem; padding: .7rem .9rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.g-rating .stars { color: #f5a524; display: flex; gap: 1px; }
.g-rating b { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 1.25rem 0; font-size: .9rem; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    box-shadow: 0 -6px 20px rgba(7,28,60,.1);
  }
  .mobile-bar .btn-c { width: 100%; padding: .8rem 1rem; }
  body { padding-bottom: 76px; }
}

/* ---------- 404 ---------- */
.err-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--blue-600); letter-spacing: -.05em; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
