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

:root {
  --red:        #c0151a;
  --red-dark:   #8f0e12;
  --red-deep:   #3d0608;
  --red-light:  #e8373c;
  --white:      #ffffff;
  --off-white:  #f9f9f9;
  --gray-light: #f0f0f0;
  --gray-bg:    #f5f5f5;
  --gray:       #888;
  --text:       #1a1a1a;
  --text-light: #4a4a4a;
  --dark:       #0f0102;
  --topbar-h:   36px;
  --nav-h:      72px;
  --header-h:   calc(var(--topbar-h) + var(--nav-h));
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ==========================================
   TOPBAR
   ========================================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--topbar-h);
  background: var(--red-dark);
  transition: transform var(--transition);
}

.topbar.hidden { transform: translateY(-100%); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  color: rgba(255,255,255,.8);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.topbar-icon:hover { color: var(--white); background: rgba(255,255,255,.12); }
.topbar-icon svg { width: 14px; height: 14px; }

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color var(--transition);
}
.topbar-item:hover { color: var(--white); }
.topbar-item svg { width: 13px; height: 13px; flex-shrink: 0; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 96px 0; }
.section-alt { background: var(--gray-bg); }

.section-eyebrow {
  display: inline-block;
  position: relative;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  padding-left: 14px;
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--red);
  border-radius: 2px;
}
.section-eyebrow.center-eyebrow {
  padding-left: 0;
}
.section-eyebrow.center-eyebrow::before {
  position: static;
  display: inline-block;
  transform: none;
  width: 24px;
  height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-outline.btn-dark { color: var(--red); border-color: var(--red); }
.btn-outline.btn-dark:hover { background: rgba(192,21,26,.08); }

.btn-full { width: 100%; }

#header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), top var(--transition);
}
#header.topbar-gone { top: 0; }
#header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.logo-img--footer { height: 36px; }

.nav-links { display: flex; gap: 40px; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 14px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
#header.scrolled .nav-links a { color: var(--text-light); }
#header.scrolled .nav-links a:hover,
#header.scrolled .nav-links a.active { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
#header.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #1a0203 0%, #3d0608 45%, #7a0c10 100%);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(192,21,26,.3) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(232,55,60,.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-ecg {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 60%;
  opacity: .08;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 40px;
}

.hero-eyebrow {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-content h1 { color: var(--white); margin-bottom: 24px; }

.hero-sub {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 24px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  position: relative;
  text-align: left;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.2);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.doctor-card {
  position: relative;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.doctor-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.doctor-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,2,3,.88) 0%, rgba(10,2,3,.3) 50%, transparent 75%);
  pointer-events: none;
}

.doctor-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 28px 28px 28px;
  text-align: left;
}

.doctor-name {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 3px;
}
.doctor-title {
  color: rgba(232,55,60,.9);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 2px;
}
.doctor-location {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  margin-bottom: 16px;
}

.doctor-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cred-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: .02em;
}

.about-badge {
  position: absolute;
  top: -18px; right: -18px;
  background: var(--red);
  color: var(--white);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(192,21,26,.4);
  z-index: 3;
}
.badge-num { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.badge-label { display: block; font-size: .72rem; opacity: .95; margin-top: 4px; letter-spacing: .05em; }

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.75; }

.about-highlights {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text);
}
.highlight-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.highlight-icon svg { width: 14px; height: 14px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-category {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
}

.category-icon {
  width: 56px; height: 56px;
  background: rgba(192,21,26,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
}
.category-icon svg { width: 30px; height: 30px; }

.service-category h3 { margin-bottom: 16px; color: var(--text); }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.55;
}

.check-ic {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-ic svg { width: 18px; height: 18px; }

.services-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: .88rem;
  color: var(--text-light);
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: var(--text);
  transition: transform var(--transition);
}
a.contact-item:hover { transform: translateX(4px); }

.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(192,21,26,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-item strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.contact-item p { color: var(--text); font-size: .98rem; margin: 0; }

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.form-wrap { position: relative; }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 13px 16px;
  min-height: 44px;
  border: 1.5px solid #d6d6d6;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #8a8a8a; }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,21,26,.15);
}

.form-group input.error,
.form-group textarea.error { border-color: var(--red); background: rgba(192,21,26,.03); }

.form-status {
  margin-top: 12px;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
  color: var(--text);
}
.form-status.success { color: #0f6b2e; }
.form-status.error { color: var(--red); }

.form-success {
  background: var(--white);
  border-radius: 16px;
  padding: 56px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  text-align: center;
  animation: successPop .5s ease;
}
.form-success[hidden] { display: none; }

@keyframes successPop {
  0% { opacity: 0; transform: translateY(10px) scale(.98); }
  100% { opacity: 1; transform: none; }
}

.success-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(192,21,26,.35);
}
.success-check svg { width: 36px; height: 36px; }

.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text); }
.form-success p { color: var(--text-light); margin-bottom: 24px; }

.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col--brand { gap: 20px; }

.footer-logo { color: var(--white); }
.footer-logo .logo-icon { color: var(--red-light); }

.footer-tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social-icon:hover { background: var(--red); color: var(--white); }
.footer-social-icon svg { width: 15px; height: 15px; }

.footer-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list a,
.footer-contact-list span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  transition: color var(--transition);
}
.footer-contact-list a:hover { color: var(--white); }
.footer-contact-list svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding: 18px 0;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  box-shadow: 0 6px 20px rgba(192,21,26,.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background var(--transition), visibility .3s;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  #header { top: 0; }
  section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
  .hero { padding-top: var(--nav-h); }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    color: var(--text);
    display: block;
    padding: 14px 32px;
    font-size: 1rem;
    min-height: 48px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { color: var(--red); background: var(--gray-bg); }

  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-success { padding: 44px 24px; }

  .hero-stats { grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
  .hero-stat { padding: 14px 0; text-align: left; }
  .hero-stat + .hero-stat::before {
    left: 0; right: 0; top: 0;
    width: 100%; height: 1px;
    background: rgba(255,255,255,.15);
  }

  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { width: 100%; }

  .footer-links { flex-wrap: wrap; gap: 12px 20px; }

  .back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .about-badge { top: -14px; right: 8px; padding: 12px 18px; }
  .badge-num { font-size: 1.35rem; }
  .doctor-info { padding: 20px; }
  .contact-form { padding: 24px 18px; }
}
