/* =========================================================
   Multi-Speciality Clinic - Public Site Stylesheet
   Font: Roboto only | Fully Responsive (Desktop/Tablet/Mobile)
   ========================================================= */
:root {
  --primary: #1a56c4;
  --primary-dark: #123a8a;
  --primary-light: #eaf2fd;
  --accent-navy: #0d2b5e;
  --text-dark: #1b2430;
  --text-muted: #667085;
  --border-color: #e5e9f0;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(18, 58, 138, 0.08);
  --shadow-lg: 0 12px 40px rgba(18, 58, 138, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  margin: 0;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: 'Roboto', Arial, sans-serif; font-weight: 700; margin: 0 0 .5em; color: var(--accent-navy); }
p { margin: 0 0 1em; color: var(--text-muted); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-block { width: 100%; }
.badge { display:inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success{background:#dcfce7;color:#166534;} .badge-warning{background:#fef3c7;color:#92400e;}
.badge-danger{background:#fee2e2;color:#991b1b;} .badge-info{background:#dbeafe;color:#1e40af;}
.badge-primary{background:#dbeafe;color:#1e40af;} .badge-secondary{background:#f1f5f9;color:#475569;}

/* Top bar */
.topbar { background: var(--accent-navy); color: #cfe0ff; font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #eaf2fd; font-weight: 500; }
.topbar-left span, .topbar-left a, .topbar-right a, .topbar-right span { display: flex; align-items: center; gap: 6px; }
.topbar .ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#f5b942,#f7935c); font-size: 12px; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.topbar .social-link { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.topbar .social-link:hover { background: var(--primary); }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 500; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.logo { height: 46px; width: auto; }
.brand .brand-icon { width: 44px; height: 44px; border: 2px solid var(--primary); border-radius: 10px; display:flex; align-items:center; justify-content:center; color: var(--primary); font-size: 22px; }
.brand-text .name { font-weight: 700; font-size: 18px; color: var(--accent-navy); line-height:1.2; }
.brand-text .tagline { font-size: 12px; color: var(--text-muted); }
.brand-icon.cross-logo { border: none; padding: 0; width: auto; height: auto; }
.brand-text .doctor-name { text-transform: uppercase; letter-spacing: .3px; }
.brand-text .doctor-qual { display: block; font-size: 11.5px; }
.main-nav { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.nav-scroll { display: flex; align-items: center; gap: 26px; }
.mobile-nav-head { display: none; }
.nav-ico, .chev, .nav-cta, .nav-contact-footer, .nav-overlay, .pc-ico { display: none; }
.dropdown-menu.portal-cards a { flex-direction: row; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--text-dark); padding: 8px 0; position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--primary); cursor: pointer; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); min-width: 200px; padding: 8px; z-index: 50; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.dropdown-menu a:hover { background: var(--primary-light); }

/* Hero */
.hero { background: linear-gradient(120deg, #f3f8ff 0%, #eaf2fd 60%, #ffffff 100%); padding: 60px 0; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow { display: inline-block; background: #fff; border: 1px solid var(--border-color); color: var(--primary); font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 30px; margin-bottom: 18px; }
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: 16px; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 16px; margin-bottom: 26px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* Trust strip */
.trust-strip { background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); margin: -40px auto 0; position: relative; z-index: 10; max-width: 1160px; padding: 26px 30px; }
.trust-strip .container { max-width: 100%; padding: 0; }
.trust-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: var(--text-dark); flex: 1; min-width: 150px; }
.trust-item .icon { width: 38px; height: 38px; border-radius: 8px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* Section base */
.section { padding: 70px 0; }
.section-alt { background: var(--primary-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; position: relative; display: inline-block; padding-bottom: 14px; }
.section-head h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary); border-radius: 3px; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.contact-grid { grid-template-columns: 1fr 1fr; }
.map-embed-wrap { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; max-width: 100%; }
.map-embed-wrap iframe { width: 100% !important; max-width: 100%; height: 320px !important; border: 0; display: block; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius); }
.about-badge { position: absolute; bottom: -18px; left: -18px; background: var(--primary); color: #fff; padding: 18px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.about-badge .num { font-size: 26px; font-weight: 700; display: block; }
.about-badge .label { font-size: 13px; }
.check-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; color: var(--text-dark); }
.check-list li .chk { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* Cards grid - services / departments */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: all .25s ease; }
.card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.card .icon-wrap { width: 60px; height: 60px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 18px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; margin-bottom: 0; }

/* ===== Auth pages background banner (login / register / forgot-password) =====
   Applied only on auth-type pages via the .auth-page-bg wrapper. The banner
   image itself is uploaded by the clinic admin (Settings > Auth Pages Banner)
   and is optional - with no banner set, this wrapper is visually a no-op and
   the page looks exactly as before. background-size:cover + center position
   keeps the image correctly filled/cropped on both desktop and mobile without
   ever stretching or leaving gaps; the auth .card itself has its own solid
   white background (above), so the form stays fully readable over any image. */
.auth-page-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--bg-light, #f6f8fb);
}
.auth-page-bg .card { box-shadow: var(--shadow-lg); }
.auth-back-home { text-align: center; margin-top: 14px; }


/* ===== Department cards (premium, color-coded) ===== */
.dept-card {
  position: relative;
  text-align: center;
  padding: 34px 26px 28px;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--dc-bg);
}
.dept-card:hover {
  box-shadow: 0 18px 40px var(--dc-glow);
  transform: translateY(-6px);
}
.dept-card .dept-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: #fff; color: var(--dc-fg);
  font-size: 28px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px var(--dc-glow);
}
.dept-card h3 { font-size: 18px; margin-bottom: 8px; }
.dept-card p { color: var(--text-muted); min-height: 42px; }
.dept-card .dept-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 13px; font-weight: 700;
  color: var(--dc-fg);
}
.dept-card .dept-link .arrow { transition: transform .2s ease; }
.dept-card:hover .dept-link .arrow { transform: translateX(4px); }
.dept-grid { align-items: stretch; }

/* Doctor cards */
.doctor-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); text-align: center; transition: all .25s ease; }
.doctor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.doctor-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.doctor-card .body { padding: 20px; }
.doctor-card h3 { font-size: 17px; margin-bottom: 4px; }
.doctor-card .spec { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.doctor-card .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

/* Why choose */
.why-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; text-align: center; }
.why-item { flex: 1; min-width: 150px; }
.why-item .icon-wrap { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; box-shadow: var(--shadow); }
.why-item h4 { font-size: 15px; }

/* Appointment CTA */
.cta-banner { background: linear-gradient(120deg, var(--accent-navy), var(--primary)); border-radius: var(--radius); padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: #fff; }
.cta-banner .left { display: flex; align-items: center; gap: 18px; }
.cta-banner .icon-circle { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.cta-banner h3 { color: #fff; margin-bottom: 4px; font-size: 20px; }
.cta-banner p { color: #dbe8ff; margin-bottom: 0; }
.cta-banner .btn-outline { background: #fff; color: var(--primary); border-color: #fff; }

/* Portal Access / App Banner */
.app-banner { background: linear-gradient(120deg,#eaf2fd,#dceafd); border-radius: var(--radius); padding: 46px 50px; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; }
.app-banner-text { flex: 1; max-width: 480px; }
.app-banner-text h2 { font-size: 28px; margin-bottom: 14px; }
.app-banner-text p { font-size: 15px; margin-bottom: 24px; }
.app-banner-visual { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.app-phone-mock { width: 150px; height: 300px; background: #0d2b5e; border-radius: 26px; padding: 10px; box-shadow: 0 20px 50px rgba(13,43,94,.25); position: relative; }
.app-phone-notch { width: 50px; height: 6px; background: rgba(255,255,255,.3); border-radius: 4px; margin: 4px auto 8px; }
.app-phone-screen { background: #fff; border-radius: 16px; height: calc(100% - 24px); padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.app-mock-topbar { background: var(--primary); color: #fff; font-size: 9px; font-weight: 700; text-align: center; padding: 6px 4px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-mock-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; }
.app-mock-line { height: 6px; border-radius: 3px; background: #eef1f5; margin-bottom: 6px; }
.app-mock-line.w70 { width: 70%; } .app-mock-line.w40 { width: 40%; }
.app-mock-line.accent { background: var(--primary-light); border: 1px solid var(--primary); }
.app-mock-stats { display: flex; justify-content: space-between; gap: 6px; }
.app-mock-stats div { flex: 1; background: var(--primary-light); border-radius: 8px; text-align: center; padding: 10px 0; font-size: 14px; }
.app-mock-btn { margin-top: auto; background: var(--primary); color: #fff; text-align: center; font-size: 9px; font-weight: 700; padding: 8px; border-radius: 6px; }
.app-qr-box { background: #fff; border-radius: 12px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.app-qr-box p { font-size: 11px; margin: 8px 0 0; color: var(--text-muted); }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge { display: flex; align-items: center; gap: 10px; background: #0d1117; color: #fff; padding: 9px 18px; border-radius: 10px; }
.store-badge svg { flex-shrink: 0; }
.store-badge span { font-size: 10px; line-height: 1.3; }
.store-badge strong { font-size: 15px; font-weight: 600; display: block; }
.store-badge:hover { background: #1f2733; }

/* Testimonials */
.testi-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 26px; }
.testi-card .quote-icon { color: var(--primary); font-size: 26px; margin-bottom: 10px; }
.testi-card .stars { color: #f59e0b; margin: 12px 0 6px; font-size: 14px; }
.testi-card .name { font-weight: 700; color: var(--accent-navy); }

/* Footer */
.site-footer { background: var(--accent-navy); color: #b9cbe8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: #b9cbe8; font-size: 14px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-icon { border-color: #fff; color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #b9cbe8; }
.sm-ft { border-top: 1px solid rgba(255,255,255,.08); }
.sm-ft-p { color: #dbe8ff; }
.sm-ft-p strong { color: #ffffff; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text-dark); }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: 'Roboto', sans-serif; font-size: 14px; background: #fff; color: var(--text-dark); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,196,.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.custom-select { position: relative; }
.custom-select .select-trigger { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; background: #fff; font-size: 14px; }
.custom-select .select-options { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 40; max-height: 240px; overflow-y: auto; }
.custom-select.open .select-options { display: block; }
.custom-select .select-options div { padding: 10px 14px; font-size: 14px; cursor: pointer; }
.custom-select .select-options div:hover { background: var(--primary-light); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; } .gap-20 { gap: 20px; }

/* =========================================================
   RESPONSIVE - Tablet & Mobile
   ========================================================= */
@media (max-width: 991px) {
  .app-banner { flex-direction: column; text-align: center; padding: 34px 26px; }
  .app-banner-text { max-width: 100%; }
  .app-banner-text .hero-actions { justify-content: center; }
  .store-badges { justify-content: center; }
  .sm-ft { font-size: 11px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar { display: none; }
  .main-nav { position: fixed; top: 0; left: 50%; right: auto; transform: translateX(-50%); width: 90%; max-width: 380px; max-height: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 0; box-shadow: 0 14px 40px rgba(0,0,0,.14); transition: max-height .45s cubic-bezier(.4,0,.2,1); z-index: 601; overflow: hidden; box-sizing: border-box; font-family: 'Roboto', Arial, sans-serif; border-radius: 0 0 16px 16px; }
  .main-nav.open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(13,43,94,.45); z-index: 599; opacity: 0; transition: opacity .3s ease; }
  .nav-overlay.show { display: block; opacity: 1; }

  .mobile-nav-head { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; padding: 16px 44px; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 2; background: #fff; }
  .mobile-nav-head button { position: absolute; right: 12px; top: 12px; }
  .mnh-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--accent-navy); line-height: 1.2; }
  .mnh-brand img { height: 30px; width: auto; }
  .mnh-icon { width: 32px; height: 32px; border: 2px solid var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 16px; flex-shrink: 0; }
  .mobile-nav-head button { background: var(--primary-light); border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; color: var(--primary); cursor: pointer; line-height: 1; flex-shrink: 0; }

  .nav-scroll { display: block; padding: 2px 12px 8px; }
  .main-nav > a, .main-nav > div { padding-left: 0; padding-right: 0; box-sizing: border-box; width: 100%; }
  .main-nav a { width: 100%; box-sizing: border-box; padding: 0 10px; height: 40px; min-height: 40px; display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 12px; border-bottom: none; font-size: 14px; font-weight: 500; border-radius: 8px; transition: background .15s ease, color .15s ease; color: var(--text-dark); }
  .nav-scroll > a { margin-bottom: 0; }
  .nav-ico { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 18px !important; height: 18px !important; line-height: 18px !important; font-size: 16px !important; vertical-align: middle !important; flex-shrink: 0; color: var(--primary); }
  .nav-ico::before { display: inline-flex; align-items: center; }
  .main-nav a:hover { background: var(--primary-light); }
  .main-nav a.active { background: var(--primary); color: #fff; }
  .main-nav a.active .nav-ico { color: #fff; }

  .dropdown { margin-bottom: 2px; }
  .portal-toggle { justify-content: flex-start; }
  .portal-toggle > .nav-ico:first-child { margin-right: -4px; }
  .chev { width: 16px; height: 16px; margin-left: auto; transition: transform .2s ease; flex-shrink: 0; }
  .dropdown.open .portal-toggle { background: var(--primary-light); }
  .dropdown.open .chev { transform: rotate(180deg); }
  .dropdown-menu.portal-cards { position: static; box-shadow: none; display: none; padding: 6px 0 4px; margin: 0; border-left: none; }
  .dropdown.open .dropdown-menu.portal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .portal-cards a { flex-direction: column; height: auto; min-height: 44px; justify-content: center; text-align: center; gap: 3px; background: #f7f9fc; border: 1px solid var(--border-color); border-radius: 10px; font-size: 11.5px; font-weight: 600; padding: 8px 6px; }
  .portal-cards a:hover { background: var(--primary-light); border-color: var(--primary); }
  .pc-ico { font-size: 16px; }

  .nav-cta { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border-color); margin-top: 8px; }
  .nav-cta .btn { width: 100%; box-sizing: border-box; font-size: 13.5px; padding: 11px; }
  .nav-cta .btn-primary { color: #fff !important; }
  .nav-cta .btn-primary .cta-ico { filter: brightness(1.6) saturate(1.3); }

  .nav-contact-footer { display: block; padding: 14px 16px 20px; margin-top: 4px; border-top: 1px solid var(--border-color); background: var(--primary-light); }
  .nav-contact-footer p { font-size: 13px; color: var(--text-dark); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
  .nav-contact-footer p:last-child { margin-bottom: 0; }
  .nav-contact-footer p a { display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-weight: 500; padding: 0; height: auto; min-height: 0; justify-content: flex-start; }
  .nav-contact-footer .nc-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

  .dropdown-menu:not(.portal-cards) { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 767px) {
  .app-banner-visual { flex-direction: column; gap: 18px; }
  .app-phone-mock { width: 120px; height: 240px; }
  .app-banner-text h2 { font-size: 22px; }
  .app-banner-text .hero-actions { flex-wrap: wrap; }
  .app-banner-text .hero-actions .btn { flex: 1 1 auto; white-space: normal; }
  .store-badges { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; }
  .sm-ft { font-size: 10px; padding: 8px 12px; }
  .topbar .container { flex-wrap: nowrap !important; }
  .topbar-left, .topbar-right { flex-wrap: nowrap !important; gap: 6px !important; overflow: hidden; }
  .topbar-left a, .topbar-right a { font-size: 11.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .topbar-hours, .topbar .social-link { display: none !important; }
  .topbar { font-size: 11px; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 30px 0 50px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1; padding: 12px 8px; font-size: 13px; white-space: nowrap; }
  .trust-strip { margin-top: 20px; padding: 20px; }
  .trust-grid { flex-direction: column; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .grid-cards { grid-template-columns: 1fr; }
  .grid-cards-4 { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .why-grid { flex-direction: column; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner .left { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > div:nth-child(1) { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; text-align: center; }
  .footer-grid > div:nth-child(4) .footer-contact li { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-badge { position: static; margin-top: -40px; display: inline-block; }

  /* Header: hide Book Appointment button next to hamburger so logo/name has room */
  .header-actions .book-appt-btn { display: none; }
  .site-header .container { padding: 10px 16px; }
  .brand .logo { height: 34px; }
  .brand-icon { width: 36px; height: 36px; font-size: 18px; }
  .brand-icon.cross-logo svg { width: 24px; height: 24px; }
  .brand-text .name { font-size: 13.5px; }
  .brand-text .doctor-qual { font-size: 10px; }
  .brand { gap: 8px; }
}

/* ===== Toast Notifications ===== */
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast { background: #fff; border-left: 4px solid var(--primary); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 14px 18px; font-size: 14px; animation: toastIn .3s ease; opacity: 1; transition: opacity .3s ease, transform .3s ease; }
.toast.toast-success { border-left-color: #16a34a; }
.toast.toast-danger { border-left-color: #dc2626; }
.toast.toast-warning { border-left-color: #d97706; }
.toast.toast-hide { opacity: 0; transform: translateX(20px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 480px) { .toast-stack { left: 12px; right: 12px; max-width: none; top: 12px; } }

/* ===== Skeleton Loaders ===== */
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f6f8fb 37%, #eef1f5 63%); background-size: 400% 100%; animation: skeletonShine 1.4s ease infinite; border-radius: 6px; }
@keyframes skeletonShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 100%; }
.skeleton-title { height: 22px; width: 60%; margin-bottom: 14px; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 140px; width: 100%; }

/* ===== PWA Install Button ===== */
.pwa-install-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  background: var(--primary, #1a56c4); color: #fff; border: none;
  padding: 12px 18px; border-radius: 30px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  animation: pwaBtnIn .3s ease;
}
.pwa-install-btn:hover { filter: brightness(1.08); }
@keyframes pwaBtnIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .pwa-install-btn { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 13px; }
}
