/*
Theme Name: Wellnest Homeopathy Demo
Theme URI: https://example.com/
Author: Sudhakar
Author URI: https://example.com/
Description: Homeopathy clinic demo theme with a client-side patient portal and doctor's admin panel. Marketing pages are hardcoded; the portal runs on localStorage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellnest-homeopathy-demo
Tags: healthcare, clinic, one-column, custom-menu, full-width-template
*/

/* ============================================================
   Ashi Homoeo's — Redesign
   Clean · Minimal · Premium healthcare UI
   Palette: trust blue + white + subtle teal-green accent
   ============================================================ */

:root {
  --primary: #1c6dd0;
  --primary-dark: #14549f;
  --primary-soft: #eaf2fd;
  --accent: #12a594;
  --accent-soft: #e5f6f3;

  --ink: #0f2540;
  --body: #46586e;
  --muted: #7b8aa0;

  --bg: #ffffff;
  --bg-soft: #f5f9fd;
  --bg-tint: #eef4fb;
  --line: #e6eef6;

  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 37, 64, .05);
  --shadow-md: 0 12px 30px rgba(15, 37, 64, .08);
  --shadow-lg: 0 24px 60px rgba(15, 37, 64, .12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 96px 0; }
.section-tint { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.eyebrow.accent { color: var(--accent); background: var(--accent-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.02em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn i { font-size: 1.05em; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(28,109,208,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(28,109,208,.36); }
.btn-ghost { background: transparent; color: var(--primary); border-color: #cfe0f6; }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(18,165,148,.28); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18,165,148,.36); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.topbar {
  background: var(--ink); color: #cdd7e5; font-size: .86rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar a, .topbar span { color: #cdd7e5; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-info { display: flex; gap: 22px; align-items: center; }
.topbar .tb-info span, .topbar .tb-info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-social { display: flex; gap: 16px; font-size: .95rem; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.96); }
.navbar { display: flex; align-items: center; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: 56px; }
.brand .mark {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; box-shadow: 0 6px 16px rgba(28,109,208,.3);
}
.brand .brand-txt b { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.18rem; display: block; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.brand .brand-txt span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; }
/* Direct children only: the drawer CTAs are nested in .nav-cta and must keep
   their .btn styling, which these rules would otherwise outrank. */
.nav-links > a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 9px 15px; border-radius: var(--radius-pill); position: relative; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--primary); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
.nav-cta { display: none; }

/* mobile drawer */
.nav-backdrop { position: fixed; inset: 0; background: rgba(15,37,64,.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 99; }
.nav-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: #fff; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 90px 22px 30px; box-shadow: var(--shadow-lg); transition: right .35s var(--ease); z-index: 101;
  }
  .nav-links.open { right: 0; }
  .nav-links > a { padding: 13px 16px; font-size: 1.05rem; }

  /* Header keeps only the hamburger; both CTAs move into the drawer. */
  .nav-actions .btn { display: none; }
  .nav-cta {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .nav-cta .btn { width: 100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 70px 0 90px; background: linear-gradient(180deg, var(--bg-tint), #fff 78%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(18,165,148,.14), transparent 70%); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); letter-spacing: -.025em; color: var(--ink); }
.hero h1 .hl { color: var(--primary); }
.hero .lead { margin-top: 20px; font-size: 1.13rem; color: var(--body); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }
.hero-trust .t span { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.hero-badge b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.hero-badge span { font-size: .8rem; color: var(--muted); }
.hero-badge.b1 { bottom: 26px; left: -26px; }
.hero-badge.b1 i { background: var(--accent-soft); color: var(--accent); }
.hero-badge.b2 { top: 26px; right: -20px; }
.hero-badge.b2 i { background: var(--primary-soft); color: var(--primary); }

/* ============================================================
   Feature cards (why choose)
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card .ic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--primary-soft); color: var(--primary); }
.feature-card:nth-child(2) .ic { background: var(--accent-soft); color: var(--accent); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 58px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.about-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.02em; }
.about-content > p { margin-top: 16px; color: var(--body); }
.about-list { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.about-list li { display: flex; gap: 16px; align-items: flex-start; }
.about-list .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: var(--accent-soft); color: var(--accent); }
.about-list h5 { font-size: 1.05rem; color: var(--ink); }
.about-list p { font-size: .93rem; color: var(--muted); margin-top: 2px; }

/* ============================================================
   Stats
   ============================================================ */
.stats { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat i { font-size: 2rem; color: #9fd0ff; margin-bottom: 12px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.stat b span { display: inline; }
.stat > span { color: #cfe1f6; font-size: .96rem; display: block; margin-top: 8px; }
.stat .plus { color: #9fd0ff; }

/* ============================================================
   Services
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::after { width: 100%; }
.service-card .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 20px; background: var(--primary-soft); color: var(--primary); transition: .3s; }
.service-card:hover .ic { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   Tabs (Know More)
   ============================================================ */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.tab-nav { display: flex; flex-direction: column; gap: 8px; }
.tab-btn {
  text-align: left; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  cursor: pointer; transition: .25s; display: flex; align-items: center; gap: 12px;
}
.tab-btn i { color: var(--muted); transition: .25s; }
.tab-btn:hover { border-color: #cfe0f6; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 10px 22px rgba(28,109,208,.25); }
.tab-btn.active i { color: #fff; }
.tab-panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tab-panel.active { display: grid; grid-template-columns: 1.4fr 1fr; animation: fadeIn .4s var(--ease); }
.tab-panel .txt { padding: 38px 36px; }
.tab-panel .txt h3 { font-size: 1.45rem; margin-bottom: 14px; }
.tab-panel .txt p { color: var(--body); }
.tab-panel .pic { min-height: 260px; }
.tab-panel .pic img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Doctors
   ============================================================ */
.doctors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.doctor-card { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.doctor-card .pic { flex-shrink: 0; width: 130px; height: 150px; border-radius: var(--radius-sm); overflow: hidden; }
.doctor-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h4 { font-size: 1.25rem; }
.doctor-card .role { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 12px; border-radius: var(--radius-pill); margin: 6px 0 10px; }
.doctor-card p { font-size: .93rem; color: var(--muted); }
.doctor-card .social { display: flex; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 1rem; }
.doctor-card .social a:hover { color: var(--primary); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: #cfe0f6; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: 1.05rem; }
.faq-q i { color: var(--primary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

/* ============================================================
   Testimonials
   ============================================================ */
.tst-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; flex-wrap: wrap; }
.tst-title { max-width: 620px; }
.tst-title h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
.tst-title p { margin-top: 12px; color: var(--muted); }
.tst-arrows { display: flex; gap: 12px; flex-shrink: 0; }
.tst-arrows button { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--primary); font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; transition: .25s var(--ease); }
.tst-arrows button:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tst-arrows button:disabled { opacity: .35; cursor: default; }
.tst-viewport { overflow: hidden; }
.tst-track { display: flex; gap: 26px; transition: transform .55s var(--ease); }
.tst-card { flex: 0 0 calc(50% - 13px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.tst-card .quote { font-size: 2.6rem; color: var(--primary-soft); line-height: .6; font-family: Georgia, serif; display: block; }
.tst-card > p { color: var(--body); font-size: 1.02rem; margin: 16px 0 24px; min-height: 108px; }
.tst-person { display: flex; align-items: center; gap: 14px; }
.tst-person img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.tst-person b { font-family: var(--font-head); color: var(--ink); display: block; }
.tst-person span { font-size: .85rem; color: var(--muted); }
.tst-stars { color: #f5b301; margin-left: auto; font-size: .95rem; white-space: nowrap; }
@media (max-width: 768px) { .tst-card { flex: 0 0 100%; } .tst-card > p { min-height: 0; } }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid a::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: rgba(28,109,208,.55); opacity: 0; transition: .3s; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a:hover::after { opacity: 1; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: linear-gradient(135deg, var(--accent), #0d8578); border-radius: var(--radius-lg); padding: 54px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -80px; right: -60px; width: 260px; height: 260px; background: rgba(255,255,255,.1); border-radius: 50%; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); margin: 12px auto 26px; max-width: 560px; position: relative; }
.cta-band .btn-light { position: relative; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card .ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; background: var(--primary-soft); color: var(--primary); }
.contact-card h5 { color: var(--ink); font-size: 1.05rem; }
.contact-card p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 340px; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: #b9c6d8; padding: 70px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer .brand .brand-txt b { color: #fff; }
.footer .brand .brand-txt span { color: #8698ae; }
.footer-about p { margin-top: 16px; font-size: .93rem; color: #93a3b8; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #cdd7e5; transition: .25s; }
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .93rem; color: #93a3b8; transition: color .2s, padding .2s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-contact p { font-size: .93rem; color: #93a3b8; margin-bottom: 8px; }
.footer-contact b { color: #cdd7e5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: .88rem; color: #8698ae; }
.footer-bottom a { color: #cdd7e5; }

/* ============================================================
   Scroll-reveal + scroll-top
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.scroll-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; z-index: 90;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--primary-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 480px; margin-inline: auto; }
  .features-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { grid-template-columns: 1fr; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .tab-panel .pic { min-height: 220px; order: -1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 620px) {
  .section { padding: 66px 0; }
  .features-grid, .services-grid, .doctors-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .topbar .tb-social { display: none; }
  .topbar .container { justify-content: center; }
  .doctor-card { flex-direction: column; }
  .doctor-card .pic { width: 100%; height: 200px; }
  .hero-badge.b1 { left: 8px; }
  .hero-badge.b2 { right: 8px; }
  .cta-band { padding: 40px 24px; }
}
