/* =========================
   Base
   ========================= */
:root {
  --ink: #10242c;
  --ink-soft: #48616a;
  --deep: #0d3341;
  --deep-2: #153f4d;
  --accent: #9f2f3b;
  --accent-soft: #c97780;
  --paper: #ffffff;
  --mist: #f3f7f8;
  --line: rgba(13, 51, 65, 0.14);
  --shadow: 0 24px 70px rgba(13, 51, 65, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(159, 47, 59, 0.06), transparent 26rem),
    var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

address {
  font-style: normal;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fbfb 0%, #eef5f6 100%);
}

.section-dark {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.08), transparent 25rem),
    linear-gradient(135deg, #0b2d39, #123f4f 68%, #0d3341);
  color: white;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
  color: var(--deep);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13, 51, 65, 0.08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--deep), var(--deep-2));
  box-shadow: 0 12px 28px rgba(13, 51, 65, .18);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: white;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: .98rem;
  letter-spacing: .01em;
}

.brand small {
  margin-top: -2px;
  font-size: .74rem;
  color: var(--ink-soft);
}

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

.main-nav a {
  position: relative;
  font-size: .92rem;
  font-weight: 700;
  color: #29454f;
  transition: color .2s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--deep);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  color: white !important;
  background: var(--deep);
  box-shadow: 0 10px 25px rgba(13,51,65,.14);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--mist);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--deep);
  transition: .2s ease;
}

/* =========================
   Hero
   ========================= */
.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 86px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 76px;
  align-items: center;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-a {
  width: 460px;
  height: 460px;
  right: -150px;
  top: 80px;
  background: radial-gradient(circle, rgba(159,47,59,.13), transparent 68%);
}

.hero-orb-b {
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(13,51,65,.08), transparent 68%);
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .75rem;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.65rem, 5.1vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 800;
  font-size: .93rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--deep), #174c5c);
  box-shadow: 0 16px 34px rgba(13,51,65,.18);
}

.button-secondary {
  color: var(--deep);
  border-color: var(--line);
  background: rgba(255,255,255,.82);
}

.button-light {
  color: var(--deep);
  background: white;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
  max-width: 650px;
}

.hero-stats article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.72);
}

.hero-stats strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--deep);
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  font-size: .89rem;
  color: var(--ink-soft);
}

.hero-media {
  position: relative;
  display: grid;
  justify-items: center;
}

.portrait-shell {
  position: relative;
  width: min(100%, 410px);
  padding: 18px;
  border: 1px solid rgba(13,51,65,.16);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(241,246,247,.92));
  box-shadow: var(--shadow);
}

.portrait-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border-radius: 28px;
  box-shadow: inset 0 0 26px 18px rgba(255,255,255,.12);
}

.portrait-shell img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(13,51,65,.16);
  box-shadow: 0 0 28px rgba(13,51,65,.08);
}

.hero-card {
  width: min(92%, 340px);
  margin-top: -28px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 19px;
  border: 1px solid rgba(13,51,65,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(13,51,65,.13);
}

.hero-card p {
  margin: 0;
  font-size: .9rem;
  color: #39535d;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(159,47,59,.34);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(159,47,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(159,47,59,0); }
}

/* =========================
   Shared headings
   ========================= */
.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  max-width: 650px;
  color: var(--ink-soft);
}

.section-heading-light .eyebrow {
  color: #f0aab1;
}

.section-heading-light > p:last-child {
  color: rgba(255,255,255,.72);
}

/* =========================
   Services
   ========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.service-card {
  min-height: 292px;
  padding: 28px;
  border: 1px solid rgba(13,51,65,.10);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.92);
  box-shadow: 0 15px 35px rgba(13,51,65,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(159,47,59,.24);
  box-shadow: 0 25px 48px rgba(13,51,65,.11);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 16px;
  background: #eff5f6;
}

.service-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* =========================
   Experience
   ========================= */
.experience-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(13,51,65,.12));
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(159,47,59,.08);
}

.timeline-label {
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent);
}

.timeline h3 {
  margin: 0;
  font-size: 1.22rem;
}

.timeline p:not(.timeline-label) {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

/* =========================
   Credentials
   ========================= */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

.credential-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}

.credential-number {
  margin-bottom: 44px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #f0aab1;
}

.credential-card h3 {
  margin: 0 0 12px;
  max-width: 500px;
  font-size: 1.3rem;
}

.credential-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

/* =========================
   Clinics
   ========================= */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}

.clinic-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,250,250,.96));
  box-shadow: 0 18px 44px rgba(13,51,65,.07);
}

.clinic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.clinic-index {
  font-size: .76rem;
  font-weight: 800;
  color: var(--accent);
}

.clinic-city {
  font-size: .78rem;
  color: var(--ink-soft);
}

.clinic-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.clinic-card address {
  color: var(--ink-soft);
}

.schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.schedule span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.schedule strong {
  color: var(--deep);
}

/* =========================
   Contact
   ========================= */
.contact-section {
  padding-top: 34px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 46px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.11), transparent 18rem),
    linear-gradient(135deg, var(--accent), #7e2430);
  box-shadow: 0 26px 60px rgba(126,36,48,.18);
}

.contact-panel .eyebrow {
  color: #ffd6da;
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  letter-spacing: -.04em;
}

.contact-number {
  margin: 12px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 800;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  padding: 48px 0 105px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
}

.footer-grid p {
  margin: 0;
  font-size: .85rem;
  color: var(--ink-soft);
}

.footer-grid a:hover {
  color: var(--accent);
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 13px 17px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(126,36,48,.28);
}

/* =========================
   Reveal animation
   ========================= */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 0s;
}

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

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

  .hero-grid {
    gap: 46px;
  }

  .experience-grid {
    gap: 46px;
  }
}

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

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px 13px;
    border-radius: 12px;
  }

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

  .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

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

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    margin-top: 6px;
  }

  .experience-grid {
    gap: 12px;
  }

  .credentials-grid,
  .clinics-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 74px 0;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand strong {
    font-size: .9rem;
  }

  .brand small {
    font-size: .7rem;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.1rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .portrait-shell {
    width: min(100%, 330px);
    padding: 12px;
    border-radius: 26px;
  }

  .portrait-shell img {
    border-radius: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .clinic-top,
  .schedule {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 30px 24px;
  }

  .contact-panel .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-call {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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