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

:root {
  --primary: #0052A5;
  --primary-dark: #003A7A;
  --primary-light: #E8F1FB;
  --accent: #E63027;
  --accent-light: #FFF0EF;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --success: #16A34A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,82,165,0.12);
  --shadow-lg: 0 8px 32px rgba(0,82,165,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.1; margin: 0; letter-spacing: 0; }
p { margin: 0; color: var(--gray-600); }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2, .about-copy h2, .choose-grid h2, .appointment-copy h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--text-dark); margin-bottom: 14px; }
.section-kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.section-kicker.light { background: rgba(255,255,255,.14); color: var(--white); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px rgba(230,48,39,.25); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-whatsapp { background: #25D366; color: var(--white); }

.announcement {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 44px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}
.announcement button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255,255,255,.15);
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--primary); text-transform: uppercase; }
.brand img { width: 150px; height: auto; }
.brand span { font-size: .88rem; display: none; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 700; color: var(--gray-800); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.call-pill { background: var(--accent); color: var(--white) !important; padding: 10px 16px; border-radius: 999px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: var(--primary-light); border-radius: 50%; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); margin: 4px auto; }

.hero { position: relative; min-height: 90vh; overflow: hidden; color: var(--white); isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(0,35,80,.92) 0%, rgba(0,82,165,.72) 46%, rgba(0,82,165,.08) 100%), var(--hero-image, url("../images/hero.jpg")) center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.28)); }
.hero-inner { min-height: 90vh; display: grid; grid-template-columns: minmax(0, 1.1fr) 340px; gap: 48px; align-items: center; padding: 90px 0 72px; }
.hero-copy { max-width: 720px; }
.hero h1 { font-size: clamp(2.65rem, 6vw, 5.4rem); margin-bottom: 20px; color: var(--white); }
.hero p { max-width: 620px; font-size: 1.18rem; color: rgba(255,255,255,.88); margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row span { padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-weight: 800; font-size: .9rem; }
.hours-card {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.94);
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}
.hours-card span { display: block; color: var(--primary); font-weight: 900; margin-bottom: 8px; }
.hours-card strong { display: block; font-size: 1.25rem; margin-bottom: 18px; }
.hours-card a { color: var(--accent); font-weight: 900; }
.pulse-ring { position: absolute; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; animation: pulse 5s infinite; }
.ring-one { width: 180px; height: 180px; left: 8%; bottom: 12%; }
.ring-two { width: 280px; height: 280px; right: 16%; top: 18%; animation-delay: 1.3s; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.12); opacity: .08; } }

.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--primary); color: var(--white); }
.stat-card { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.16); }
.stat-card strong { display: block; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 900; line-height: 1; }
.stat-card span { color: rgba(255,255,255,.8); font-weight: 700; }

.services-section { background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--card-color, var(--primary));
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--card-color, var(--primary)); background: var(--primary-light); border-radius: 50%; margin-bottom: 18px; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.45rem; margin-bottom: 14px; }
.service-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--gray-600); }
.learn-more { border: 0; background: transparent; color: var(--primary); padding: 0; font-weight: 900; cursor: pointer; }

.about-grid, .choose-grid, .appointment-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image img, .choose-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-copy > p { font-size: 1.05rem; margin-bottom: 24px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mission-grid div { background: var(--primary-light); padding: 20px; border-radius: var(--radius); }
.mission-grid strong { color: var(--primary); }
.feature-list { display: grid; gap: 16px; margin-top: 24px; }
.feature-list article { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; padding: 18px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.feature-list article span { width: 50px; height: 50px; display: grid; place-items: center; background: var(--accent-light); color: var(--accent); border-radius: 50%; font-weight: 900; }
.feature-list h3 { font-family: 'Inter', sans-serif; font-size: 1.02rem; margin-bottom: 4px; }

.gallery-section { background: var(--gray-50); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid button { border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--gray-200); }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .25s ease; }
.gallery-grid button:hover img { transform: scale(1.05); }

.testimonials-section { background: var(--primary-light); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stars { color: #F59E0B; letter-spacing: 0; margin-bottom: 12px; }
.patient { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-weight: 900; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--primary); }

.appointment-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }
.appointment-copy h2, .appointment-copy p { color: var(--white); }
.appointment-copy p { margin-bottom: 10px; color: rgba(255,255,255,.86); }
.appointment-form { display: grid; gap: 14px; padding: 28px; background: var(--white); color: var(--text-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.appointment-form label { display: grid; gap: 7px; font-weight: 800; color: var(--gray-800); }
.appointment-form input, .appointment-form select, .appointment-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text-dark);
}
.form-status { min-height: 22px; font-weight: 800; color: var(--success); }

.contact-grid { align-items: stretch; }
.contact-grid iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--gray-100); }
.contact-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-bottom: 18px; }
.contact-card p { margin-bottom: 12px; }

.footer { background: var(--text-dark); color: var(--white); padding-top: 54px; }
.footer p, .footer a { color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.footer img { width: 170px; background: var(--white); padding: 8px; border-radius: 8px; margin-bottom: 14px; }
.footer h3 { font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 14px; }
.footer a { display: block; margin-bottom: 8px; }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.68); font-size: .92rem; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.2s;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.1); }

.modal, .lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(15,23,42,.72); padding: 24px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-panel { width: min(560px, 100%); max-height: 85vh; overflow: auto; background: var(--white); border-radius: var(--radius-lg); padding: 30px; position: relative; }
.modal-close, #lightboxClose { position: absolute; right: 18px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; }
.lightbox img { max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
#lightboxClose { position: fixed; color: var(--text-dark); background: var(--white); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-inner, .about-grid, .choose-grid, .appointment-grid, .contact-grid { grid-template-columns: 1fr; }
  .hours-card { max-width: 420px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1140px); }
  .section { padding: 64px 0; }
  .hero { min-height: 100svh; text-align: center; }
  .hero-inner { min-height: 100svh; padding-top: 70px; gap: 26px; }
  .hero p { font-size: 1rem; }
  .cta-row, .trust-row { flex-direction: column; align-items: stretch; }
  .hours-card { text-align: left; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .testimonial-grid, .footer-grid, .mission-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .call-pill { text-align: center; }
  .brand img { width: 132px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
