:root {
  --teal: #d92b2b;
  --teal-dark: #2f2a86;
  --navy: #2f2a86;
  --ink: #221f47;
  --muted: #6b6a8a;
  --bg: #ffffff;
  --soft: #fdf2f2;
  --card: #ffffff;
  --border: #f0e3ea;
  --shadow: 0 10px 30px rgba(47, 42, 134, 0.08);
  --radius: 14px;
  --maxw: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(47, 42, 134, .10);
  border-color: var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  min-width: 0;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--teal);
  flex: 0 0 auto;
}

.brand-logo {
  width: auto;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 6px;
}

.footer-brand .brand-logo {
  height: 34px;
}

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

.nav>a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

.nav>a:not(.nav-cta):hover {
  color: var(--teal);
}

.nav>a.active:not(.nav-cta) {
  color: var(--teal);
}

.nav>a.nav-cta {
  padding: 11px 22px;
  white-space: nowrap;
  line-height: 1;
}

.nav>a.active:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 43, 43, .28);
}

.btn-primary:hover {
  background: #b81f1f;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.burger {
  display: none;
  width: 44px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: .25s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #fdf5f6 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 40px;
  padding: 60px 20px 70px;
}

.pill {
  display: inline-block;
  background: #fde3e3;
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.14;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.5px;
}

.hero p {
  color: var(--muted);
  margin: 18px 0 28px;
  max-width: 430px;
}

.hero-media img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 16 / 11;
  max-height: 500px;
  box-shadow: 0 24px 50px rgba(47, 42, 134, .14);
}

/* Sections */
.section {
  padding: 70px 0;
}

.pt-0 {
  padding-top: 0;
}

.eyebrow {
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
}

.eyebrow.left {
  text-align: left;
}

.section-title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  margin-top: 8px;
}

.section-title.left {
  text-align: left;
}

.rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--teal);
  border-radius: 3px;
  margin: 14px auto 38px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(47, 42, 134, .12);
}

.card .bubble {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  padding: 15px;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
}

.card p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 8px;
}

/* About */
.about-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #f4fbfc, #ffffff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.about-photo img {
  border-radius: 14px;
  width: 100%;
  height: 500px;
  max-height: 500px;
  object-fit: cover;
  background: #eef2f4;
}

.about-body .muted {
  color: var(--muted);
  font-size: .95rem;
  margin-top: 12px;
}

.doctor-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-top: 22px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--teal);
  padding: 12px;
}

.doctor-card h3 {
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 700;
}

.doctor-card .role {
  color: var(--ink);
  font-size: .92rem;
}

.doctor-card .muted {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 8px;
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-col.bordered {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: .95rem;
}

.line.block {
  align-items: flex-start;
}

.line a:hover {
  color: var(--teal);
}

.ci {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex: 0 0 auto;
  margin-top: 2px;
}

.contact-col h4 {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.contact-col .muted {
  color: var(--muted);
  font-size: .9rem;
}

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: #fff;
  margin-top: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
}

.footer-brand {
  color: #fff;
  font-size: 1.05rem;
}

.footer-brand .brand-mark {
  color: #fff;
}

.copy {
  font-size: .9rem;
  text-align: center;
}

.socials {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  padding: 8px;
  transition: background .2s ease, transform .2s ease;
}

.socials a:hover {
  background: #fff;
  color: var(--teal-dark);
  transform: translateY(-2px);
}

.socials a.top {
  background: #fff;
  color: var(--teal-dark);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 44px 20px 56px;
  }

  .hero p {
    max-width: none;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 320px;
  }
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    box-shadow: 0 18px 30px rgba(47, 42, 134, .1);
    transform: translateY(-140%);
    transition: transform .3s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav>a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav>a.active:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 14px;
    align-self: flex-start;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 48px 0;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .contact-col.bordered {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 520px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.08rem;
  }

  .card {
    padding: 26px 18px;
  }
}


.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #1B2E73;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.2px;
}