/* ============================================================
   CENTRO CIRÚRGICO OCULAR — Custom Stylesheet
   Design System: "The Visionary Sanctuary"
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --primary:              #002538;
  --primary-container:    #003c57;
  --secondary:            #3d6374;
  --tertiary:             #2c2114;
  --surface:              #f4faff;
  --surface-low:          #e9f5fd;
  --surface-container:    #e4f0f7;
  --surface-card:         #ffffff;
  --surface-high:         #deeaf1;
  --on-surface:           #121d22;
  --on-surface-variant:   #41484d;
  --outline-variant:      #c1c7ce;
  --primary-fixed:        #c7e7ff;
  --primary-fixed-dim:    #9fcced;
  --secondary-container:  #bee6f9;
  --tertiary-fixed:       #f4dfcb;
  --tertiary-fixed-dim:   #d7c3b0;

  --font-headline: 'Noto Serif', Georgia, serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1.5rem;
  --radius-full: 9999px;

  --shadow-card:    0 4px 24px rgba(0, 37, 56, 0.06);
  --shadow-lifted:  0 8px 40px rgba(0, 37, 56, 0.10);
  --shadow-ambient: 0 20px 60px rgba(0, 30, 46, 0.08);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-headline); line-height: 1.2; }

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

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-low); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: var(--radius-full); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(244, 250, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  padding-top: 0;
  padding-bottom: 0;
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding var(--transition);
}

.nav.scrolled .nav__inner { padding-top: 0.875rem; padding-bottom: 0.875rem; }

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav.scrolled .nav__logo-img { height: 46px; transition: height var(--transition); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active { color: var(--primary); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.nav__cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 37, 56, 0.25);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(193,199,206,0.2);
}

.nav__mobile.open { max-height: 500px; }

.nav__mobile a {
  display: block;
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1rem;
  border-bottom: 1px solid rgba(193,199,206,0.15);
  transition: background var(--transition), color var(--transition);
}

.nav__mobile a:hover { background: var(--surface-low); color: var(--primary); }

.nav__mobile .nav__cta {
  margin: 1rem 2rem 1.5rem;
  justify-content: center;
}

/* ── Mega-menu ─────────────────────────────────────────────── */
.nav__item { list-style: none; position: static; }

.nav__link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav__arrow {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform var(--transition);
  color: var(--secondary);
}

.nav__item--mega.mega-open .nav__arrow { transform: rotate(180deg); }

.nav__mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0,37,56,0.13);
  border-top: 2px solid var(--primary-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 99;
  pointer-events: none;
}

.nav__item--mega.mega-open .nav__mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.nav__mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.nav__mega-col-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--primary-fixed);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__mega-col-title .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: 'FILL' 1;
}

.nav__mega-list { list-style: none; display: flex; flex-direction: column; }

.nav__mega-link {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.nav__mega-link:hover {
  background: var(--surface-low);
  color: var(--primary);
  padding-left: 1rem;
}

/* Mobile mega accordion */
.nav__mobile-group { border-bottom: 1px solid rgba(193,199,206,0.15); }

.nav__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color var(--transition);
}

.nav__mobile-toggle:hover { color: var(--primary); }

.nav__mobile-toggle-arrow {
  font-size: 18px;
  transition: transform var(--transition);
}

.nav__mobile-group.open .nav__mobile-toggle-arrow { transform: rotate(180deg); }

.nav__mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--surface-low);
}

.nav__mobile-group.open .nav__mobile-sub { max-height: 800px; }

.nav__mobile-subgroup { border-top: 1px solid rgba(193,199,206,0.15); }

.nav__mobile-subtoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.nav__mobile-subtoggle-arrow {
  font-size: 16px;
  transition: transform var(--transition);
}

.nav__mobile-subgroup.open .nav__mobile-subtoggle-arrow { transform: rotate(180deg); }

.nav__mobile-sublist {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0,37,56,0.03);
}

.nav__mobile-subgroup.open .nav__mobile-sublist { max-height: 600px; }

.nav__mobile-sublist a {
  padding: 0.55rem 2rem 0.55rem 2.75rem;
  font-size: 0.875rem;
  border-bottom: none;
  display: block;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: color var(--transition), background var(--transition);
}

.nav__mobile-sublist a:hover { color: var(--primary); background: var(--surface-low); }

.nav__mobile.open { max-height: 2000px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 9rem 2rem 5rem;
  overflow: hidden;
  background: linear-gradient(150deg, #f8fcff 0%, rgba(244, 223, 203, 0.18) 55%, #eef7ff 100%);
  display: flex;
  align-items: center;
}

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__bg-shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(159, 204, 237, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero__bg-shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(215, 195, 176, 0.3) 0%, transparent 70%);
  bottom: 0;
  left: 5%;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-fixed);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__badge .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }

.hero__title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__title em {
  font-style: italic;
  color: var(--secondary);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 37, 56, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 37, 56, 0.35);
}

.btn--ghost {
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.6);
  color: var(--primary);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(193,199,206,0.4);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.9);
}

.hero__doctor-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  /* grid position: col 1, row 2, small width, pulled up */
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  margin-top: -1.5rem;
}

.hero__doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--tertiary-fixed-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__doctor-avatar .material-symbols-outlined {
  font-size: 24px;
  color: var(--tertiary);
  font-variation-settings: 'FILL' 1;
}

.hero__doctor-name { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.hero__doctor-role { font-size: 0.78rem; color: var(--secondary); }

.hero__image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  grid-row: 1 / 3; /* spans text + doctor-card rows on desktop */
  grid-column: 2;
}

.hero__image-bg {
  position: absolute;
  inset: 0;
  background: var(--tertiary-fixed-dim);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  opacity: 0.35;
  transform: scale(0.9) rotate(-8deg);
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 480px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 3rem;
  box-shadow: var(--shadow-ambient);
  border: 6px solid rgba(255,255,255,0.8);
}

.hero__stat-badge {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lifted);
  font-family: var(--font-headline);
}

.hero__stat-badge--1 { top: 8%; left: -1.5rem; }
.hero__stat-badge--2 { bottom: 18%; right: 0; }

@media (max-width: 1100px) and (min-width: 769px) {
  .hero__stat-badge--1 { top: auto; bottom: 28%; left: -1rem; }
}

.hero__stat-badge .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.hero__stat-badge .label {
  font-size: 0.72rem;
  color: var(--secondary);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--primary);
  padding: 2.5rem 2rem;
}

.stats-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item__value {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 6rem 2rem; }
.section--alt { background-color: var(--surface-container); }
.section--low { background-color: var(--surface-low); }
.section--white { background-color: var(--surface-card); }

.section__header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--on-surface-variant);
  font-size: 1rem;
  line-height: 1.7;
}

.container { max-width: 1280px; margin: 0 auto; }

/* ============================================================
   ANATOMY SECTION
   ============================================================ */
.anatomy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.anatomy__image-wrap {
  display: flex;
  align-self: stretch;
}

.anatomy__image-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted);
  padding: 2rem 2rem 2rem 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anatomy__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
}

.anatomy__cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Caption at bottom of right column */
.anatomy__caption {
  margin-top: auto;
  padding-top: 0.5rem;
}

.anatomy__title {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.anatomy__subtitle {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 0;
}

.anatomy__cards { display: flex; flex-direction: column; gap: 1.5rem; }

.info-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-lifted);
  transform: translateY(-2px);
}

.info-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

.info-card__text { font-size: 0.95rem; color: var(--on-surface-variant); line-height: 1.7; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
/* ── Services split header ── */
.services__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.services__header-left { flex: 1; min-width: 280px; }

/* Hidden temporarily — remove display:none to restore */
#servicos { display: none; }
#anatomy-section { display: none; }

.services__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  background: var(--surface-card);
  color: var(--secondary);
}

.filter-btn:hover { background: var(--surface-high); transform: scale(1.03); }
.filter-btn.active { background: var(--primary); color: #fff; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  cursor: pointer;
  border: 1px solid rgba(193,199,206,0.15);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-container));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lifted); border-color: rgba(0,60,87,0.15); }
.service-card:hover::before { transform: scaleX(1); }

.service-card[data-hidden="true"] { display: none; }

.service-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}

.service-card:hover .service-card__icon-wrap { background: var(--primary); }

.service-card__icon {
  font-size: 26px;
  color: var(--primary);
  font-variation-settings: 'FILL' 0;
  transition: color var(--transition), font-variation-settings var(--transition);
}

.service-card:hover .service-card__icon {
  color: #fff;
  font-variation-settings: 'FILL' 1;
}

.service-card__category {
  display: none;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card__desc { font-size: 0.9rem; color: var(--on-surface-variant); line-height: 1.6; margin-bottom: 1.5rem; }

.service-card__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition), color var(--transition);
}

.service-card:hover .service-card__link { gap: 0.6rem; color: var(--primary); }

/* ============================================================
   DOCTORS SECTION
   ============================================================ */
.doctors__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.doctor-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: grid;
  grid-template-columns: 220px 1fr;
}

.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); }

.doctor-card__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
}

.doctor-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.doctor-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.doctor-card__bio { font-size: 0.875rem; color: var(--on-surface-variant); line-height: 1.65; margin-bottom: 1.25rem; }

.doctor-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--secondary-container);
  color: var(--primary-container);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); }

.tech-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-fixed), var(--secondary-container));
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-card__icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1;
}

.tech-card__name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.tech-card__desc { font-size: 0.85rem; color: var(--on-surface-variant); line-height: 1.6; }

/* ============================================================
   TESTIMONIALS — CAROUSEL
   ============================================================ */
.carousel-wrapper { position: relative; }

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(193,199,206,0.4);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
  color: var(--secondary);
}

.carousel-btn svg { width: 20px; height: 20px; }

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(61, 99, 116, 0.25);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), width var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
}

.testimonial-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card__quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--primary-fixed-dim);
  font-family: var(--font-headline);
  margin-bottom: 0.5rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author { display: flex; align-items: center; gap: 1rem; }

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--tertiary-fixed-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__avatar .material-symbols-outlined {
  font-size: 24px;
  color: var(--tertiary);
  font-variation-settings: 'FILL' 1;
}

.testimonial-card__name { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.testimonial-card__date { font-size: 0.78rem; color: var(--secondary); }

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-card__stars .material-symbols-outlined {
  font-size: 18px;
  color: #f59e0b;
  font-variation-settings: 'FILL' 1;
}

/* ============================================================
   INSURANCE LOGOS
   ============================================================ */
.insurance { padding: 3.5rem 2rem; background: #ffffff; }

.insurance__inner { max-width: 1280px; margin: 0 auto; }

.insurance__title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 2.5rem;
}

.insurance__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
}

.insurance__logos:hover { opacity: 1; filter: grayscale(0); }

.insurance__logo {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner__decoration {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  opacity: 0.08;
  background: #fff;
}

.cta-banner__decoration--1 { width: 400px; height: 400px; top: -200px; right: -100px; }
.cta-banner__decoration--2 { width: 250px; height: 250px; bottom: -100px; left: 10%; }

.cta-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.btn--light {
  padding: 1rem 2.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--light:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.btn--white {
  padding: 1rem 2.5rem;
  background: #fff;
  color: var(--primary);
}

.btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact__info-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact__info-desc { font-size: 0.95rem; color: var(--on-surface-variant); line-height: 1.7; margin-bottom: 2rem; }

.contact__items { display: flex; flex-direction: column; gap: 1.25rem; }

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon .material-symbols-outlined {
  font-size: 20px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1;
}

.contact__item-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); margin-bottom: 0.2rem; }
.contact__item-value { font-size: 0.95rem; color: var(--on-surface); font-weight: 500; }

.contact__form {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lifted);
}

.form__title { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 1.75rem; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form__group { display: flex; flex-direction: column; gap: 0.375rem; }
.form__group--full { grid-column: 1 / -1; }

.form__label { font-size: 0.8rem; font-weight: 700; color: var(--primary); letter-spacing: 0.03em; }

.form__input,
.form__select,
.form__textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(193,199,206,0.5);
  background: var(--surface-low);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--on-surface);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(61, 99, 116, 0.1);
  background: var(--surface-card);
}

.form__textarea { resize: vertical; min-height: 120px; }

.form__submit {
  margin-top: 1.25rem;
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 37, 56, 0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

.footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer__logo {
  margin-bottom: 1.25rem;
}

.footer__logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer__desc { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__link:hover { color: #fff; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.footer__contact-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary-fixed-dim);
  font-variation-settings: 'FILL' 1;
  flex-shrink: 0;
}

.footer__contact-text { font-size: 0.875rem; color: rgba(255,255,255,0.65); }

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy { font-size: 0.8rem; }

.footer__socials { display: flex; gap: 0.75rem; }

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer__social:hover { background: rgba(255,255,255,0.18); }

.footer__social svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); transition: fill var(--transition); }
.footer__social:hover svg { fill: #fff; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  text-decoration: none;
}

.whatsapp-btn__pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: #25d366;
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.5; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}

.whatsapp-btn__circle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-btn:hover .whatsapp-btn__circle {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn__circle svg { width: 32px; height: 32px; fill: #fff; }

/* ============================================================
   SERVICE MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 20, 32, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-ambient);
  transform: translateY(24px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal__icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-low);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  margin-left: auto;
}

.modal__close:hover { background: var(--surface-high); }
.modal__close .material-symbols-outlined { font-size: 20px; color: var(--on-surface-variant); }

.modal__category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 0.375rem; }
.modal__title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

.modal__desc { font-size: 0.95rem; color: var(--on-surface-variant); line-height: 1.7; margin-bottom: 1.75rem; }

.modal__list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }

.modal__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--on-surface);
}

.modal__list li .material-symbols-outlined {
  font-size: 18px;
  color: var(--secondary);
  font-variation-settings: 'FILL' 1;
  flex-shrink: 0;
}

.modal__footer { display: flex; gap: 1rem; }
.modal__footer .btn--primary { flex: 1; justify-content: center; }
.modal__footer .btn--ghost { padding: 1rem 1.5rem; }

/* ============================================================
   ANIMATIONS (scroll-reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   SOBRE NÓS
   ============================================================ */
.sobre { background: var(--surface); }

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sobre__text .section__eyebrow,
.sobre__text .section__title { text-align: left; }

.sobre__desc {
  font-size: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.sobre__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sobre__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--on-surface);
  font-weight: 500;
}

.sobre__list .material-symbols-outlined {
  font-size: 20px;
  color: var(--secondary);
  font-variation-settings: 'FILL' 1;
  flex-shrink: 0;
}

.sobre__carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-ambient);
}

.sobre__slides { position: relative; width: 100%; height: 100%; }

.sobre__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sobre__slide.active { opacity: 1; }

.sobre__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre__quote {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.75rem 1.5rem;
  background: linear-gradient(to top, rgba(0,37,56,0.88) 0%, transparent 100%);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  z-index: 2;
}

.sobre__quote .material-symbols-outlined {
  font-size: 30px;
  color: rgba(255,255,255,0.55);
  font-variation-settings: 'FILL' 1;
  flex-shrink: 0;
  margin-top: 2px;
  transform: rotate(180deg);
}

.sobre__quote p {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}

.sobre__dots {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.sobre__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.sobre__dot.active { background: #fff; transform: scale(1.3); }

/* ============================================================
   INSURANCE — Infinite Marquee
   ============================================================ */
.insurance__track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

@keyframes marquee-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.insurance__track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: marquee-logos 30s linear infinite;
}

.insurance__track:hover { animation-play-state: paused; }

.insurance__logo-img {
  height: 120px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  flex-shrink: 0;
  display: block;
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  padding: 2.5rem 2rem 0;
  background: var(--surface-low);
}

.map__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.map__header .section__eyebrow,
.map__header .section__title { display: block; text-align: center; }

.map__address {
  font-size: 1rem;
  color: var(--on-surface-variant);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.map__address .material-symbols-outlined {
  font-size: 18px;
  color: var(--secondary);
  font-variation-settings: 'FILL' 1;
}

.map__embed {
  width: 100%;
  height: 420px;
  overflow: hidden;
  box-shadow: var(--shadow-lifted);
}

.map__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   SERVICE PAGE
   ============================================================ */
.sp-hero {
  padding: 9rem 2rem 5rem;
  background: linear-gradient(150deg, #f8fcff 0%, rgba(199,231,255,0.25) 55%, #eef7ff 100%);
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159,204,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.sp-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 5rem;
  align-items: center;
}

.sp-hero__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  aspect-ratio: 4/3;
}

.sp-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sp-breadcrumb a { color: var(--secondary); transition: color var(--transition); }
.sp-breadcrumb a:hover { color: var(--primary); }
.sp-breadcrumb__sep { color: var(--outline-variant); font-size: 0.7rem; }

.sp-hero__category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-fixed);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.sp-hero__category .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 1;
}

.sp-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.sp-hero__desc {
  font-size: 1.05rem;
  color: var(--on-surface-variant);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 560px;
}

.sp-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.sp-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-hero__icon-bg {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-fixed) 0%, var(--secondary-container) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px rgba(0,37,56,0.12);
}

.sp-hero__icon-bg .material-symbols-outlined {
  font-size: 120px;
  color: var(--primary);
  font-variation-settings: 'FILL' 0, 'wght' 200;
  opacity: 0.75;
}

/* Sections */
.sp-section { padding: 5rem 2rem; }
.sp-section--alt { background: var(--surface-low); }
.sp-section--white { background: var(--surface-card); }

.sp-container { max-width: 1280px; margin: 0 auto; }

.sp-section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.sp-section__title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.sp-section__desc {
  font-size: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.75;
  max-width: 900px;
}

/* Highlights grid */
.sp-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .sp-highlights {
    grid-template-columns: 1fr;
  }
}

.sp-highlight-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(193,199,206,0.3);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sp-highlight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lifted); }

.sp-highlight-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-fixed);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sp-highlight-card__icon .material-symbols-outlined {
  font-size: 20px; color: var(--primary);
  font-variation-settings: 'FILL' 1;
}

.sp-highlight-card__text {
  font-size: 0.9rem;
  color: var(--on-surface);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

/* ── Multiverse Accordion Slider ──────────────────────────────── */

/* 2-col layout: text left, slider right */
.mv-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
}

.mv-layout__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mv-layout__text .sp-section__title {
  margin: 0;
}

.mv-layout__text .sp-section__desc {
  margin: 0;
}

.mv-slider {
  display: flex;
  gap: 10px;
  height: 460px;
}

.mv-item {
  flex: 0 0 110px;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.mv-item:hover,
.mv-item:focus-visible,
.mv-item.mv-active {
  flex: 1 1 auto;
}

/* ── Face (image card) ── */
.mv-face {
  min-width: 110px;
  width: 110px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;         /* title sticks to bottom vertically */
  justify-content: center;
  padding-bottom: 1.5rem;
  position: relative;
  transition: border-radius 0.4s ease;
}

.mv-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 40, 80, 0) 30%, rgba(2, 40, 80, 0.85) 100%);
  border-radius: inherit;
}

.mv-face__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  user-select: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.mv-face__arrow {
  display: none;
}

/* hide title when panel opens */
.mv-item:hover .mv-face__title,
.mv-item:focus-visible .mv-face__title,
.mv-item.mv-active .mv-face__title {
  opacity: 0;
}

.mv-item:hover .mv-face,
.mv-item:focus-visible .mv-face,
.mv-item.mv-active .mv-face {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ── Panel (expanded content) ── */
.mv-panel {
  width: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--surface-card);
  border: 1px solid rgba(193, 199, 206, 0.3);
  border-left: none;
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  transition: width 0.48s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.28s ease 0.12s;
}

.mv-item:hover .mv-panel,
.mv-item:focus-visible .mv-panel,
.mv-item.mv-active .mv-panel {
  width: 300px;
  opacity: 1;
}

.mv-panel__inner {
  width: 280px;
  height: 100%;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mv-panel__name {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.2;
}

.mv-panel__desc {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  flex: 1;
}

/* ── Desktop fix: collapse mv-active when another item is hovered ── */
.mv-slider:has(.mv-item:hover) .mv-item.mv-active:not(:hover) {
  flex: 0 0 110px;
}
.mv-slider:has(.mv-item:hover) .mv-item.mv-active:not(:hover) .mv-panel {
  width: 0;
  opacity: 0;
  transition: width 0.48s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.mv-slider:has(.mv-item:hover) .mv-item.mv-active:not(:hover) .mv-face__title {
  opacity: 1;
}

/* ── Breakpoint: text col stacks above slider ── */
@media (max-width: 900px) {
  .mv-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Mobile: vertical accordion ── */
@media (max-width: 768px) {
  .mv-slider {
    flex-direction: column;
    height: auto;
    gap: 0.5rem;
  }

  .mv-item {
    flex: none !important;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  /* Face: thinner, mobile image, title horizontal */
  .mv-face {
    width: 100%;
    min-width: unset;
    height: 80px;
    background-image: var(--bg-mob);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0.9rem 0.7rem;
  }

  .mv-item:hover .mv-face,
  .mv-item.mv-active .mv-face {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  /* Title: horizontal over photo */
  .mv-face__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 1 !important;
  }

  /* Arrow indicator */
  .mv-face__arrow {
    display: block;
    color: #fff;
    font-size: 22px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }

  .mv-item.mv-active .mv-face__arrow {
    transform: rotate(180deg);
  }

  /* Panel: accordion collapse via max-height */
  .mv-panel {
    width: 100% !important;
    max-height: 0;
    opacity: 1 !important;
    overflow: hidden;
    border-left: 1px solid rgba(193, 199, 206, 0.3);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: max-height 0.4s ease !important;
  }

  .mv-item.mv-active .mv-panel {
    max-height: 320px;
  }

  .mv-panel__inner {
    width: 100%;
    height: auto;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .mv-panel__name { font-size: 1.15rem; }
}

/* Steps */
.sp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sp-step { text-align: center; }

.sp-step__number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-headline);
  box-shadow: 0 8px 20px rgba(0,37,56,0.2);
}

.sp-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.sp-step__desc {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* FAQ */
.sp-faq { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; }

.sp-faq-item {
  border: 1px solid rgba(193,199,206,0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-card);
}

.sp-faq-q {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  transition: background var(--transition);
}

.sp-faq-q:hover { background: var(--surface-low); }

.sp-faq-q__icon {
  font-size: 20px;
  color: var(--secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.sp-faq-item.open .sp-faq-q__icon { transform: rotate(45deg); }

.sp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.sp-faq-item.open .sp-faq-a { max-height: 300px; }

.sp-faq-a p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  border-top: 1px solid rgba(193,199,206,0.25);
  padding-top: 1rem;
}

/* CTA banner on service page */
.sp-cta {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  text-align: center;
}

.sp-cta__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 0.75rem;
}

.sp-cta__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}

/* Responsive service page */
@media (max-width: 768px) {
  .sp-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .sp-hero__img { aspect-ratio: 16/9; order: -1; }
  .sp-hero { padding: 7rem 1.5rem 4rem; }
  .sp-section { padding: 3.5rem 1.5rem; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--primary);
  color: rgba(255,255,255,0.87);
  padding: 1.25rem 2rem;
  box-shadow: 0 -4px 24px rgba(0,37,56,0.25);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  min-width: 200px;
}

.cookie-banner__text a {
  color: var(--primary-fixed-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-banner__accept {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cookie-banner__accept:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,255,255,0.2); }

.cookie-banner__decline {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.cookie-banner__decline:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 1024px) {
  .doctors__grid { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }

  .hero { padding: 7rem 1.5rem 4rem; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__image-wrap  { order: 1; grid-row: auto; grid-column: auto; }
  .hero__doctor-card { order: 2; grid-row: auto; grid-column: auto; justify-self: stretch; margin-top: 0; }
  .hero__content     { order: 3; }
  .hero__image { width: 100%; max-width: 360px; margin: 0 auto; }
  .hero__stat-badge--1 { top: 5%; left: 0; }
  .hero__stat-badge--2 { bottom: 5%; right: 0; }

  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 4rem 1.5rem; }
  .anatomy__grid { grid-template-columns: 1fr; gap: 2rem; }
  .anatomy__image-wrap { order: -1; } /* image always on top on mobile */
  .anatomy__image-box { padding: 1.5rem; min-height: 260px; }
  .anatomy__caption { margin-top: 0.5rem; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-card__image { min-height: 240px; height: 240px; }
  .doctors__grid { grid-template-columns: 1fr; }
  .sobre__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sobre__carousel { aspect-ratio: 1/1; order: -1; }
  .hero__image-wrap { grid-row: auto; grid-column: auto; }
  .map__embed { height: 280px; }
  .services__top { flex-direction: column; align-items: flex-start; }
  .services__filter { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form__grid { grid-template-columns: 1fr; }
  .cookie-banner__inner { flex-direction: column; gap: 1rem; text-align: center; }
  .cookie-banner__actions { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .modal { padding: 1.75rem; }
  .modal__footer { flex-direction: column; }
}
