@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500&display=swap');

/* ============ VARIABLES ============ */
:root {
  --primary: #1a3c6e;
  --primary-dark: #0d2548;
  --accent: #00b4d8;
  --accent-dark: #0090b0;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --light-bg: #f0f7ff;
  --light-border: #d0e4f7;
  --text-dark: #1a2a3a;
  --text-mid: #4a6278;
  --text-light: #7a95a8;
  --white: #ffffff;
  --section-bg: #f8fbff;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26,60,110,0.08);
  --shadow-md: 0 8px 32px rgba(26,60,110,0.12);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 70px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(26px, 5vw, 48px); }
h2 { font-size: clamp(22px, 4vw, 36px); }
h3 { font-size: clamp(16px, 2.5vw, 22px); }
h4 { font-size: clamp(14px, 2vw, 18px); }
p { font-size: 15px; color: var(--text-mid); line-height: 1.7; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ SECTION LAYOUT ============ */
.section { padding: 60px 20px; }
.section-alt { background: var(--section-bg); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-header h2 { color: var(--primary); margin-bottom: 12px; }
.section-header p { max-width: 500px; margin: 0 auto; }
.divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ============ DESKTOP HEADER / NAV ============ */
.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-border);
  box-shadow: 0 2px 12px rgba(26,60,110,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}
.logo-text .clinic-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--primary);
  line-height: 1;
}
.logo-text .clinic-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--primary);
  background: var(--light-bg);
}
.header-cta { display: flex; gap: 8px; }
.header-cta .btn { padding: 9px 18px; font-size: 13px; }

/* ============ MOBILE BOTTOM NAV ============ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--light-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 10px;
  box-shadow: 0 -4px 20px rgba(26,60,110,0.08);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-light);
}
.nav-item:hover, .nav-item.active { background: var(--light-bg); color: var(--primary); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { font-size: 10px; font-weight: 500; }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e5499 100%);
  padding: 50px 20px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(0,180,216,0.1);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero h1 { color: var(--white); margin-bottom: 10px; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 24px; font-family: var(--font-body); }
.hero-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.hero-img-placeholder {
  width: 100%;
  height: 240px;
  background: rgba(255,255,255,0.07);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  gap: 8px;
}

/* ============ HIGHLIGHTS STRIP ============ */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px;
  margin: -24px auto 0;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-border);
}
.highlight-card .hval {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  line-height: 1;
}
.highlight-card .hlbl {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============ SERVICE CARDS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: all 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-card .s-icon {
  width: 40px;
  height: 40px;
  background: var(--light-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 20px;
}
.service-card h4 { color: var(--primary); font-size: 13px; line-height: 1.3; }
.service-card p { font-size: 12px; margin-top: 4px; }

/* ============ ABOUT SNIPPET ============ */
.about-snippet {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.doctor-img {
  width: 180px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  outline: 2px solid var(--light-border);
}
.doctor-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-text .tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.about-text h2 { color: var(--primary); margin-bottom: 12px; }
.about-text p { margin-bottom: 16px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge {
  background: var(--light-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--light-border);
}

/* ============ TIMINGS ============ */
.timings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.timing-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.timing-card .day { font-size: 13px; font-weight: 500; color: var(--primary); margin-bottom: 4px; }
.timing-card .time { font-size: 12px; color: var(--text-mid); }
.timing-card.closed .day { color: var(--text-light); }
.timing-card.closed .time { color: #e74c3c; }

/* ============ CONTACT STRIP ============ */
.contact-strip {
  background: var(--primary);
  padding: 40px 20px;
  text-align: center;
  color: var(--white);
}
.contact-strip h2 { color: var(--white); margin-bottom: 10px; }
.contact-strip p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.contact-strip .cta-row { justify-content: center; }

/* ============ INFO ROWS ============ */
.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.info-row:last-child { border-bottom: none; }
.info-row .i-icon {
  width: 36px;
  height: 36px;
  background: var(--light-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-row .i-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; }
.info-row .i-text .label { font-size: 11px; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.info-row .i-text .value { font-size: 14px; color: var(--text-dark); margin-top: 2px; }

/* ============ MAP ============ */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 300px; display: block; border: none; }

/* ============ PHOTO GRID ============ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.photo-box {
  background: var(--light-bg);
  border: 2px dashed var(--light-border);
  border-radius: var(--radius);
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  gap: 8px;
  transition: border-color 0.2s;
}
.photo-box:hover { border-color: var(--accent); }
.photo-box svg { width: 28px; height: 28px; stroke: var(--text-light); fill: none; stroke-width: 1.5; }

/* ============ ABOUT PAGE FULL ============ */
.doc-profile-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
}
.doc-profile-card .doc-photo {
  width: 130px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
}
.doc-profile-card .doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-profile-card h2 { color: var(--white); margin-bottom: 4px; }
.doc-profile-card .role { color: var(--accent); font-size: 13px; }
.doc-profile-card .memberships { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.doc-profile-card .mbadge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--light-border);
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  outline: 2px solid var(--accent);
}
.timeline-item .tl-title { font-size: 14px; font-weight: 500; color: var(--primary); }
.timeline-item .tl-sub { font-size: 13px; color: var(--text-mid); margin-top: 2px; }
.timeline-item .tl-year { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ============ SERVICES FULL PAGE ============ */
.services-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.service-full-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}
.service-full-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.service-full-card .sf-icon {
  width: 44px;
  height: 44px;
  background: var(--light-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.service-full-card h4 { color: var(--primary); font-size: 14px; }
.service-full-card p { font-size: 12px; margin-top: 2px; }

/* ============ FOOTER ============ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
}
footer .clinic-name-ft { font-family: var(--font-display); font-size: 16px; color: var(--white); margin-bottom: 6px; }
footer .footer-address { margin-bottom: 12px; line-height: 1.6; }
footer .footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
footer .footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
footer .footer-links a:hover { color: var(--accent); }
footer .footer-credit { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; }
footer .footer-credit a { color: var(--accent); font-weight: 500; }
footer .footer-credit a:hover { text-decoration: underline; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 40px 20px 50px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(24px, 4vw, 40px); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 14px; }

/* ============ FLOATING CTA (mobile) ============ */
.floating-cta {
  position: fixed;
  bottom: 80px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.1); }
.fab-call { background: var(--accent); }
.fab-wa { background: var(--whatsapp); }
.fab svg { width: 22px; height: 22px; fill: white; }

/* ============ RESPONSIVE — TABLET & DESKTOP ============ */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .services-full-grid { grid-template-columns: repeat(2, 1fr); }
  .timings-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .site-header { display: block; }
  .bottom-nav { display: none; }
  .floating-cta { display: none; }

  .hero { padding: 80px 40px; }
  .hero-inner { flex-direction: row; align-items: center; gap: 60px; }
  .hero-content { flex: 1; }
  .hero-img-wrap { flex: 0 0 420px; }
  .hero-img-placeholder { height: 360px; }

  .highlights { grid-template-columns: repeat(6, 1fr); margin-top: -36px; padding: 0 40px; }

  .section { padding: 80px 40px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-snippet { flex-direction: row; align-items: flex-start; gap: 48px; }
  .doctor-img { width: 220px; height: 280px; }

  .doc-profile-card { flex-direction: row; text-align: left; }
  .doc-profile-card .memberships { justify-content: flex-start; }

  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .services-full-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .map-wrap iframe { height: 400px; }

  .page-hero { padding: 60px 40px; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .services-full-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
