/* ═══════════════════════════════════════════════════════════════
   Abbas Clinic – Dr. Sultan Murtaza
   Design tokens: Deep Navy · Teal · Gold · Off-White
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy:     #0a1628;
  --navy-mid: #112240;
  --teal:     #0d9488;
  --teal-lt:  #14b8a6;
  --gold:     #d4af37;
  --gold-lt:  #f0c84e;
  --off-white:#f0f4f8;
  --white:    #ffffff;
  --text-dk:  #0a1628;
  --text-md:  #334155;
  --text-lt:  #64748b;
  --card-bg:  #ffffff;
  --border:   rgba(13,148,136,0.15);

  --shadow-sm: 0 2px 8px rgba(10,22,40,0.08);
  --shadow-md: 0 8px 32px rgba(10,22,40,0.14);
  --shadow-lg: 0 20px 60px rgba(10,22,40,0.20);
  --shadow-3d: 0 10px 0 rgba(10,22,40,0.25);

  --radius:    16px;
  --radius-sm: 10px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-hindi:   'Noto Sans Devanagari', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-dk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-lt); }

/* ── Utility ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.2);
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-desc {
  color: var(--text-md);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.devanagari { font-family: var(--font-hindi); }

/* ══════════════════════════════ BUTTONS ══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn-icon { font-size: 1.1em; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-lt);
  border-color: var(--teal-lt);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-3d {
  box-shadow: var(--shadow-3d), 0 4px 16px rgba(13,148,136,0.35);
  transform: translateY(0);
}
.btn-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 0 rgba(10,22,40,0.2), 0 8px 24px rgba(13,148,136,0.4);
}
.btn-3d:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(10,22,40,0.2), 0 2px 8px rgba(13,148,136,0.25);
}
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════ HEADER ══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(13,148,136,0.4);
}
.logo-text { color: var(--white); }
.logo-text strong { display: block; font-size: 1rem; font-weight: 600; }
.logo-text small { font-size: .72rem; color: rgba(255,255,255,0.65); letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal-lt);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: .5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════ HERO ══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0f2744 50%, #0a2038 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .55;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13,148,136,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212,175,55,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 8rem 2rem 5rem;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
  padding: .4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  background: rgba(212,175,55,0.06);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title em { color: var(--teal-lt); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-sub .devanagari {
  display: block;
  margin-top: .3rem;
  font-size: .95rem;
  color: rgba(255,255,255,0.5);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal-lt);
  line-height: 1;
}
.stat span:not(.stat-num):not(.stat-label) { color: var(--gold); font-weight: 700; }
.stat-label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: .25rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ══════════════════════════════ ABOUT ══════════════════════════════ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition);
}
.about-img-card:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
}
.about-photo { width: 100%; height: 460px; object-fit: cover; object-position: top; }
.img-accent-badge {
  position: absolute;
  top: 1.5rem; right: -1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}
.about-floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--border);
  animation: floatY 4s ease-in-out infinite;
}
.float-card-1 { bottom: 2rem; left: -2rem; animation-delay: 0s; }
.float-card-2 { top: 3rem; left: -2.5rem; animation-delay: 2s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc-icon { font-size: 1.5rem; }
.fc-text { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); }
.fc-sub  { display: block; font-size: .75rem; color: var(--text-lt); }

.about-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.about-desc {
  color: var(--text-md);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.qualifications { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .75rem; }
.qual-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.qual-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: .35rem;
}
.qual-item strong { display: block; font-weight: 600; color: var(--navy); }
.qual-item span   { font-size: .88rem; color: var(--text-lt); }

/* ══════════════════════════════ SERVICES ══════════════════════════════ */
.services { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  transform: perspective(600px) translateZ(0);
  cursor: default;
}
.service-card:hover {
  transform: perspective(600px) translateZ(20px) translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13,148,136,0.3);
}
.service-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(13,148,136,0.2));
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .88rem;
  color: var(--text-md);
  line-height: 1.65;
}

/* ══════════════════════════════ APPOINTMENT ══════════════════════════ */
.appointment { background: var(--navy); }
.appointment .eyebrow { background: rgba(13,148,136,0.15); border-color: rgba(13,148,136,0.3); }
.appointment .section-title { color: var(--white); }
.appointment > .container > .appt-grid > .appt-info > p { color: rgba(255,255,255,0.7); margin: .5rem 0 2rem; }
.appt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.opd-hours { margin-bottom: 2rem; }
.opd-hours h3 { color: var(--gold); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.hours-table { display: flex; flex-direction: column; gap: .5rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
}
.hours-row.closed { opacity: .5; }
.hours-row .day   { color: rgba(255,255,255,0.8); font-size: .9rem; }
.hours-row .time  { color: var(--teal-lt); font-weight: 600; font-size: .9rem; }
.clinic-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.info-icon { font-size: 1.5rem; }
.info-card strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: .2rem; }
.info-card span, .info-card a {
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.info-card a { color: var(--teal-lt); }
.appt-form-wrap { position: relative; }
.appt-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13,148,136,0.1);
  transform: perspective(800px) rotateY(3deg);
  transition: transform var(--transition);
}
.appt-form:hover { transform: perspective(800px) rotateY(0deg); }
.appt-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-md);
  margin-bottom: .45rem;
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(13,148,136,0.2);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font-body);
  color: var(--text-dk);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-lt);
  margin-top: .75rem;
}

/* ══════════════════════════════ MAP ══════════════════════════════ */
.map-section { position: relative; }
.map-embed-wrap { position: relative; height: 380px; }
.map-embed-wrap iframe { width: 100%; height: 100%; border: none; filter: grayscale(20%); }
.map-cta {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 5;
  box-shadow: 0 6px 24px rgba(13,148,136,0.45);
}

/* ══════════════════════════════ FAQ ══════════════════════════════ */
.faq { background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: rgba(13,148,136,0.35); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--teal); box-shadow: 0 4px 16px rgba(13,148,136,0.12); }
.faq-item summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-md);
  font-size: .9rem;
  line-height: 1.7;
}

/* ══════════════════════════════ FOOTER ══════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: 4rem 1.25rem 2rem;
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: .88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal-lt); }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--teal-lt); }

/* ══════════════════════════════ CHATBOT ══════════════════════════════ */
.chatbot-launcher {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 1000;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13,148,136,0.5), 0 0 0 0 rgba(13,148,136,0.4);
  animation: pulseLauncher 3s ease-in-out infinite;
  transition: transform var(--transition);
  border: none;
}
.chatbot-launcher svg { width: 26px; height: 26px; color: var(--white); }
.chatbot-launcher:hover { transform: scale(1.1); }
.chatbot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(13,148,136,0.4);
  animation: ripple 2.5s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes pulseLauncher {
  0%, 100% { box-shadow: 0 8px 24px rgba(13,148,136,0.5), 0 0 0 0 rgba(13,148,136,0.3); }
  50% { box-shadow: 0 8px 24px rgba(13,148,136,0.5), 0 0 0 10px rgba(13,148,136,0); }
}
.chatbot-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gold);
  color: var(--navy);
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .35rem;
  border-radius: 99px;
  letter-spacing: .05em;
  border: 2px solid var(--off-white);
}

.chatbot-panel {
  position: fixed;
  bottom: 6.5rem; right: 2rem;
  z-index: 1000;
  width: 360px;
  max-height: 520px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
  overflow: hidden;
}
.chatbot-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.chatbot-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.chatbot-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.chatbot-title { color: var(--white); font-weight: 600; font-size: .95rem; display: block; }
.chatbot-status { color: rgba(255,255,255,0.5); font-size: .72rem; }
.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1rem;
  padding: .25rem;
  transition: color var(--transition);
  line-height: 1;
}
.chatbot-close:hover { color: var(--white); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  background: var(--off-white);
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(13,148,136,0.25); border-radius: 2px; }

.chat-msg { display: flex; }
.chat-msg.bot .chat-bubble {
  background: var(--white);
  color: var(--text-dk);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg.user .chat-bubble {
  background: var(--teal);
  color: var(--white);
  border-radius: 16px 16px 4px 16px;
}
.chat-bubble {
  max-width: 82%;
  padding: .75rem 1rem;
  font-size: .875rem;
  line-height: 1.55;
}
.chat-typing .chat-bubble { display: flex; gap: 4px; align-items: center; padding: .9rem 1rem; }
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chatbot-input-area {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.lang-toggle {
  display: flex;
  gap: .35rem;
  padding: .5rem .75rem .2rem;
}
.lang-btn {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .2rem .6rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-lt);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.lang-btn.active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .75rem .75rem;
}
#chatbot-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .6rem .9rem;
  font-size: .88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  background: var(--off-white);
}
#chatbot-input:focus { border-color: var(--teal); background: var(--white); }
.mic-btn, .send-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.mic-btn { background: rgba(13,148,136,0.1); color: var(--teal); }
.mic-btn:hover { background: var(--teal); color: var(--white); }
.mic-btn.listening { background: #ef4444; color: var(--white); animation: micPulse 1s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); } 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
.mic-btn svg, .send-btn svg { width: 17px; height: 17px; }
.send-btn { background: var(--teal); color: var(--white); }
.send-btn:hover { background: var(--teal-lt); transform: scale(1.05); }

/* 3D card mixin */
.card-3d { transform-style: preserve-3d; }

/* ══════════════════════════════ MOBILE NAV ══════════════════════════════ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.3rem; }
  .nav-cta { margin-left: 0; }

  .about-grid, .appt-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { order: -1; }
  .about-img-card { transform: none; max-height: 320px; overflow: hidden; }
  .about-photo { height: 320px; }
  .float-card-1 { left: 0; bottom: 1rem; }
  .float-card-2 { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .chatbot-panel { right: 1rem; left: 1rem; width: auto; bottom: 5.5rem; }
  .appt-form { transform: none; padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .map-embed-wrap { height: 260px; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 40px; height: 1px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
