:root {
  --red: #AD2B34;
  --teal: #3B698A;
  --gray: #7D7976;
  --cream: #FAF6F2;
  --ink: #2A2321;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

.brand {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
}

.brand-logo {
  height: 62px;
  width: auto;
  display: block;
  max-width: 100%;
}

.brand-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59, 105, 138, 0.1);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  padding: 4px 13px;
  border: 1px solid rgba(59, 105, 138, 0.25);
  border-radius: 999px;
  white-space: nowrap;
}

.pill-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.pill-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.pill-btn.pill-btn-teal { background: var(--teal); }

.section-cta-row { text-align: center; margin-bottom: 28px; }

h1, h2, h3, .section-title, .stat .num {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

/* Eyebrow label pills above section headings */
.eyebrow-wrap { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 105, 138, 0.12);
  color: var(--teal);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fff;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand span { color: var(--teal); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a.cta {
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nav a.cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.nav a.cta.cta-secondary {
  background: var(--teal);
}

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--teal), #23384a);
  color: #fff;
  padding: 70px 20px;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-text { flex: 1 1 380px; }

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
}

.hero-buttons a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary { background: var(--red); color: #fff; transition: filter 0.15s ease, transform 0.15s ease; }
.btn-secondary { background: #fff; color: var(--teal); transition: filter 0.15s ease, transform 0.15s ease; }
.hero-buttons a:hover, .appt-form button:hover { filter: brightness(1.08); transform: translateY(-2px); }

.hero-stats {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: column;
  text-align: center;
}

.stat .num { font-size: 1.5rem; font-weight: 700; display: block; line-height: 1.1; }
.stat .label { font-size: 0.82rem; opacity: 0.92; font-family: 'Inter', 'Segoe UI', sans-serif; }

/* Section */
section { padding: 56px 20px; }

.section-title {
  text-align: center;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.8rem;
}

.clinic-hours {
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  margin: -20px 0 24px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-top: 4px solid var(--teal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.card h3 {
  color: var(--teal);
  margin-top: 0;
}

.card.alt { border-top-color: var(--red); }
.card.alt h3 { color: var(--red); }

/* Doctor */
.doctor-section { background: #fff; }

.doctor-card {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--teal) 0%, #1c2c39 100%);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(42,35,33,0.18);
}

.doctor-card .initials {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.doctor-card .doctor-photo {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: none;
}

.doctor-card .info { flex: 1 1 300px; }

.doctor-card h3 { margin: 0 0 4px; color: #fff; }
.doctor-card .role { color: #ffd9a8; font-weight: 600; margin-bottom: 10px; }
.doctor-card p { color: rgba(255,255,255,0.92); }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .doctor-card { padding: 24px; justify-content: center; text-align: center; }
  .doctor-card .info { text-align: left; }
}

/* Team photo */
.team-photo img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* Testimonials */
.testimonials { background: var(--cream); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.video-card video {
  width: 100%;
  display: block;
  background: #000;
}

.video-card .caption {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--ink);
}

/* Team members */
.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.team-photo-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 14px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.team-photo-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--teal);
}

.team-photo-card .placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--teal);
}

.team-photo-card h4 { margin: 0 0 4px; color: var(--ink); }
.team-photo-card .role { color: var(--gray); font-size: 0.9rem; }

/* Appointment form */
.appt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--cream);
  border-radius: 14px;
  padding: 28px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }

.form-row label { font-weight: 600; color: var(--gray); font-size: 0.9rem; }

.form-row input, .form-row textarea {
  border: 1px solid #d8d2cd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}

.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.appt-form button {
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
}

.appt-status {
  margin-left: 14px;
  font-weight: 600;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .appt-form { grid-template-columns: 1fr; }
}

/* Quick links (top bar, below header) */
.quick-links-top {
  background: var(--cream);
  border-bottom: 1px solid rgba(42,35,33,0.08);
  padding: 12px 20px;
}

.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.quick-link-btn:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .quick-links-top { padding: 10px 14px; }
  .quick-links-row { gap: 6px; }
  .quick-link-btn { padding: 6px 11px; font-size: 0.76rem; }
}

/* Map */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.map-actions {
  text-align: center;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.map-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: var(--teal);
  color: #fff;
}

.map-actions .btn-primary.map-link {
  background: var(--red);
}

@media (max-width: 640px) {
  .map-embed { aspect-ratio: 4 / 5; }
}

/* Contact / footer */
footer {
  background: var(--ink);
  color: #fff;
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

footer h4 {
  color: #fff;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

footer p, footer a { color: #d8d5d3; text-decoration: none; }

.footer-bottom {
  text-align: center;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #453f3c;
  color: #a39e9b;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .nav { justify-content: center; padding: 10px 16px; }
  .brand { align-items: center; }
  .brand-logo { height: 42px; }
  .brand-location { font-size: 0.7rem; padding: 3px 10px; }
  .nav-actions { gap: 6px; width: 100%; justify-content: center; }
  .nav a.cta { padding: 8px 10px; font-size: 0.8rem; }
}

/* YouTube shorts */
.shorts-heading {
  margin: 40px 0 20px;
  color: var(--red);
  font-size: 1.2rem;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.shorts-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.shorts-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Patient results gallery */
.results-gallery { background: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-card {
  margin: 0;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.gallery-card figcaption {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

/* Clinic blog (Google Business updates) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

.blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink);
}

.blog-card-body p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.blog-card-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red);
  text-decoration: none;
}

.blog-card-link:hover { text-decoration: underline; }

/* Clinic photo gallery */
.clinic-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.clinic-photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Floating action buttons (call / WhatsApp) */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.fab:hover { transform: translateY(-3px); filter: brightness(1.08); }

.fab-call { background: var(--red); }
.fab-whatsapp { background: #25D366; }

.fab-chat { background: var(--teal); position: relative; }

.fab-chat-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid #fff;
  animation: fab-chat-pulse 2.2s ease-in-out infinite;
}

@keyframes fab-chat-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@media (max-width: 640px) {
  .floating-actions { right: 12px; bottom: 12px; gap: 10px; }
  .fab { width: 46px; height: 46px; }
}

/* Chat popup widget */
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 330px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 60;
  display: none;
  flex-direction: column;
}

.chat-widget.open { display: flex; }

.chat-header {
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  flex: none;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  flex: none;
}

.chat-header-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-header-text strong { font-size: 0.95rem; line-height: 1.2; }
.chat-header-text span { font-size: 0.74rem; opacity: 0.88; }

.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.9;
}
.chat-close:hover { opacity: 1; }

.chat-body {
  padding: 14px 16px 16px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.chat-msg-bot {
  background: #fff;
  border-radius: 12px 12px 12px 2px;
  padding: 10px 12px;
  font-size: 0.87rem;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  max-width: 92%;
  align-self: flex-start;
}

.chat-msg-bot.chat-msg-success { background: #fff; border-left: 3px solid var(--teal); }

.chat-form { display: flex; flex-direction: column; gap: 8px; }

.chat-form input, .chat-form textarea {
  border: 1px solid #d8d2cd;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  resize: none;
  width: 100%;
}

.chat-form input:focus, .chat-form textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.chat-form button {
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.chat-form button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.chat-form button:disabled { opacity: 0.7; cursor: default; transform: none; }

.chat-status { font-size: 0.82rem; font-weight: 600; min-height: 1.1em; }

.chat-privacy-note { font-size: 0.72rem; color: var(--gray); line-height: 1.4; }

@media (max-width: 640px) {
  .chat-widget { right: 12px; bottom: 80px; width: calc(100vw - 24px); }
}
