:root {
  --navy: #173150;
  --navy-2: #21456e;
  --red: #c0392b;
  --text: #263241;
  --muted: #607083;
  --soft: #f3f6fa;
  --white: #fff;
  --line: #e0e6ef;
  --shadow: 0 10px 26px rgba(22, 42, 68, 0.12);
  --green: #25d366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0,0,0,0.16);
}

.logo img { width: 150px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 600;
}
.desktop-nav a:last-child {
  background: var(--red);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 4px;
}

.menu-button { display: none; background: transparent; border: 0; padding: 8px; }
.menu-button span { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--white); }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 620px;
  padding: 160px 24px 90px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,38,62,0.92), rgba(18,38,62,0.7)), url("assets/images/hero.jpg") center/cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  max-width: 760px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.18; color: var(--navy); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 20px; }
.hero p { max-width: 660px; margin: 0 0 30px; color: rgba(255,255,255,0.86); font-size: 1.08rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.primary { background: var(--red); color: var(--white); }
.btn.secondary { border-color: rgba(255,255,255,0.75); color: var(--white); }
.btn.compact { margin-top: 12px; }
.btn.whatsapp { background: var(--green); color: var(--white); border-radius: 999px; }

.section { padding: 78px 24px; }
.section-soft { background: var(--soft); }
.container { width: min(1180px, 100%); margin: 0 auto; }
.center { text-align: center; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 16px; }
.section-lead { max-width: 680px; margin: 0 auto 34px; text-align: center; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 56px; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stats div { background: var(--navy); color: var(--white); border-radius: 6px; padding: 24px; }
.stats strong { display: block; font-size: 2.2rem; line-height: 1; color: #f07d73; }
.stats span { display: block; margin-top: 8px; font-size: 0.9rem; }

.specialty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.specialty-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 42, 68, 0.08);
}
.specialty-card img { width: 100%; height: 142px; object-fit: cover; }
.specialty-card h3 { min-height: 58px; margin: 0; padding: 14px; font-size: 0.96rem; text-align: center; color: var(--navy); }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.doctor-card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 22px 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 365px;
}
.doctor-card .photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 6px solid var(--white);
  box-shadow: 0 6px 18px rgba(23,49,80,0.16);
  margin-bottom: 18px;
}
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-card h3 { margin: 0 0 8px; font-size: 1.06rem; color: var(--navy); }
.doctor-card p { margin: 0 0 14px; color: var(--text); font-size: 0.9rem; }
.doctor-card a {
  margin-top: auto;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.83rem;
  font-weight: 700;
}

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 28px; margin-top: 34px; }
.whatsapp-box { background: var(--navy); color: var(--white); border-radius: 6px; padding: 34px; }
.whatsapp-box h3 { color: var(--white); margin-top: 0; }
.whatsapp-box p { color: rgba(255,255,255,0.82); }
.contact-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-info div { border: 1px solid var(--line); border-radius: 6px; padding: 18px; background: var(--white); }
.contact-info strong { display: block; color: var(--navy); margin-bottom: 6px; }
.contact-info a { color: var(--red); font-weight: 700; }
.maps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.maps iframe { width: 100%; height: 260px; border: 0; border-radius: 6px; }

footer { background: var(--navy); color: rgba(255,255,255,0.76); padding: 52px 24px 22px; }
footer h3 { color: var(--white); font-size: 1rem; }
footer img { width: 150px; margin-bottom: 16px; filter: brightness(1.1); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 34px; }
footer a { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.84); }
.copyright { max-width: 1180px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; color: rgba(255,255,255,0.56); }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 1001;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--navy-2);
    display: none;
    padding: 12px 24px 18px;
  }
  .mobile-nav.open { display: grid; gap: 12px; }
  .mobile-nav a { color: var(--white); font-weight: 700; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .specialty-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 18px; }
  .logo img { width: 132px; }
  .hero { min-height: 560px; padding-top: 130px; }
  .section { padding: 58px 18px; }
  .specialty-grid, .team-grid, .stats, .contact-info, .maps, .footer-grid { grid-template-columns: 1fr; }
  .doctor-card { min-height: 0; }
}
