/* ============================================
   FERTILITY CLINIC — DESIGN SYSTEM
   Brand Palette: Blue-Gray + Soft Pink + Light Gray
   ============================================ */

@font-face {
  font-family: 'The Seasons';
  src: url('assets/The Seasons Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ── Tokens ── */
:root {
  /* Brand Colors — FertGroup Official */
  --accent:        #C96B92;
  --accent-light:  #D59CAB;
  --accent-dark:   #a8547a;
  --accent-rose:   #E97FA5;
  --beige:         #CBB59A;
  --beige-light:   #E8DADA;
  --beige-bg:      #e2d5cc;
  --dark-primary:  #394F5A;
  --dark-secondary:#2b3b47;
  --dark-card:     #56606A;
  --cream:         #F6F8F7;
  --cream-dark:    #EDEEEC;
  --card-bg:       #FFFFFF;
  --text-heading:  #394F5A;
  --text-body:     #56606A;
  --text-muted:    #A2AAAD;
  --white:         #FFFFFF;
  --gray-mid:      #5D6B6E;
  --gray-light:    #D2D3D5;
  --overlay-dark:  rgba(57, 79, 90, 0.70);
  --overlay-accent:rgba(201, 107, 146, 0.08);

  /* Typography */
  --font-heading:  'The Seasons', 'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad:   100px 0;
  --container-max: 1280px;
  --gap-sm:        16px;
  --gap-md:        24px;
  --gap-lg:        40px;
  --gap-xl:        64px;

  /* Radius */
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-full:   999px;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover:  0 12px 40px rgba(0,0,0,0.10);
  --shadow-accent: 0 4px 20px rgba(201,107,146,0.30);

  /* Transitions */
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration:      0.4s;
}


/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s var(--ease);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-heading);
  border-color: rgba(26,26,26,0.3);
}

.btn-outline-dark:hover {
  background: var(--text-heading);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-whatsapp:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* ── HEADER / NAV ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--duration) var(--ease);
}

.header.scrolled {
  background: rgba(55, 75, 90, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 2px;
}

.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.footer .logo-img {
  height: 67px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 10px 24px;
  font-size: 0.85rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

/* ── HERO (Stargaze Style) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero > .container {
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(55,75,90,0.85) 0%, rgba(55,75,90,0.5) 50%, rgba(55,75,90,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: left;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

/* Word-by-word animated title */
.hero-title-animated {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.15;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-80deg);
  animation: wordReveal 0.8s var(--ease) forwards;
  transform-origin: bottom center;
}

.title-word.accent {
  color: var(--accent);
}

/* Stagger each word */
.title-line:nth-child(1) .title-word:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(1) .title-word:nth-child(2) { animation-delay: 0.3s; }
.title-line:nth-child(1) .title-word:nth-child(3) { animation-delay: 0.4s; }
.title-line:nth-child(2) .title-word:nth-child(1) { animation-delay: 0.5s; }
.title-line:nth-child(2) .title-word:nth-child(2) { animation-delay: 0.6s; }
.title-line:nth-child(2) .title-word:nth-child(3) { animation-delay: 0.7s; }
.title-line:nth-child(2) .title-word:nth-child(4) { animation-delay: 0.8s; }

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hero-subtitle-animated {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease) 1s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease) 1.2s forwards;
}

/* Scroll Indicator (Stargaze style) */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.6); }
}
/* ── SECTION: Prova Rápida ── */
.section-prova {
  padding: 80px 0;
  background: var(--beige-bg);
}

.prova-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.prova-content h2 {
  margin-bottom: 24px;
}

.prova-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.prova-text strong {
  color: var(--dark-primary);
  font-weight: 600;
}

/* Accordion / Sanfona */
.prova-accordion {
  margin-top: 40px;
  text-align: left;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-light);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-primary);
  transition: color var(--duration) var(--ease);
}

.accordion-trigger:hover {
  color: var(--accent);
}

.accordion-icon {
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
  color: var(--accent);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 0;
}

.accordion-panel.open {
  max-height: 300px;
  padding: 0 0 24px 0;
}

.accordion-panel p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* ── SECTION: Conexão ── */
.section-conexao {
  padding: var(--section-pad);
  background: var(--white);
}

.conexao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.conexao-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 450px;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
}

.conexao-info h2 {
  margin-bottom: 12px;
}

.conexao-info > p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.conexao-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.conexao-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
}

.conexao-bullets li svg {
  flex-shrink: 0;
}

/* ── SECTION: Equipe Médica (Carrossel) ── */
.section-medico {
  padding: var(--section-pad);
  background: var(--beige-bg);
}

.medico-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.medico-slide {
  display: none;
  animation: carouselFadeIn 0.5s var(--ease);
}

.medico-slide.active {
  display: block;
}

@keyframes carouselFadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.medico-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--gap-xl);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.medico-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-hover);
}

.medico-info h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.medico-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.medico-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
}

.medico-bullets li svg {
  flex-shrink: 0;
}

/* Carousel Arrows */
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
  transform: scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.carousel-dots .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-dots .dot:hover {
  background: var(--accent-light);
}

/* ── Button: Panel CTA ── */
.btn-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.btn-panel:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

/* ── SECTION: Diferenciais ── */
.section-diferenciais {
  padding: var(--section-pad);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.section-number {
  position: absolute;
  font-family: var(--font-heading);
  font-size: clamp(12rem, 20vw, 22rem);
  font-weight: 700;
  color: rgba(230,125,160,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-number.left {
  top: -20px;
  left: -30px;
}

.section-number.right {
  top: -20px;
  right: -30px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-header .label {
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
}

.section-header p {
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(230,125,160,0.1);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230,125,160,0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--overlay-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.card:hover .card-icon {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--duration) var(--ease);
}

.card:hover .card-icon svg {
  stroke: var(--white);
}

.card h3 {
  margin-bottom: 12px;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── MARQUEE ── */
.marquee-section {
  padding: 40px 0;
  background: var(--dark-primary);
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-text {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230,125,160,0.35);
  white-space: nowrap;
  padding: 0 40px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.marquee-text .filled {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION: Serviços — SANFONA (ACCORDION STYLE) ── */
.section-servicos {
  padding: 100px 0;
  background: var(--beige-bg);
  position: relative;
  overflow: hidden;
}

.tratamentos-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--dark-primary);
  line-height: 1.25;
  margin-top: 12px;
  margin-bottom: 24px;
}

.tratamentos-centered-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.tratamentos-accordion {
  border-top: 1px solid var(--gray-light);
}

.tratamentos-accordion .accordion-item {
  border-bottom: 1px solid var(--gray-light);
}

.tratamentos-accordion .accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--duration) var(--ease);
}

.accordion-title-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.accordion-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--icon-color);
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.accordion-item:hover .accordion-icon-box {
  background: var(--icon-color);
  color: var(--white);
  transform: scale(1.05);
}

.accordion-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.accordion-custom-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: filter var(--duration) var(--ease);
}

.accordion-item:hover .accordion-custom-icon {
  filter: brightness(0) invert(1);
}

.accordion-title-text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--dark-primary);
  transition: color var(--duration) var(--ease);
}

.accordion-trigger:hover .accordion-title-text {
  color: var(--accent);
}

/* Plus/minus CSS toggle button */
.accordion-toggle-btn {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.accordion-toggle-btn::before,
.accordion-toggle-btn::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

/* Horizontal line */
.accordion-toggle-btn::before {
  width: 14px;
  height: 2px;
}

/* Vertical line */
.accordion-toggle-btn::after {
  width: 2px;
  height: 14px;
}

/* Rotate when expanded */
.accordion-trigger[aria-expanded="true"] .accordion-toggle-btn::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-toggle-btn::before {
  transform: rotate(180deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-title-text {
  color: var(--accent);
}

/* Panel content */
.tratamentos-accordion .accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.tratamentos-accordion .accordion-panel.open {
  max-height: 300px;
}

.accordion-panel-content {
  padding: 0 0 24px 64px; /* Align content text with the title text (44px icon + 20px gap) */
}

.accordion-panel-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

.accordion-panel-content .btn-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--duration) var(--ease);
}

.accordion-panel-content .btn-panel-link:hover {
  color: var(--accent-dark);
  gap: 12px;
}



@media (max-width: 576px) {
  .accordion-panel-content {
    padding-left: 0;
  }
  .accordion-title-wrapper {
    gap: 12px;
  }
  .accordion-icon-box {
    width: 36px;
    height: 36px;
  }
  .accordion-icon-box svg,
  .accordion-custom-icon {
    width: 20px;
    height: 20px;
  }
  .accordion-title-text {
    font-size: 1.1rem;
  }
}

/* ── SECTION: Galeria / Estrutura ── */
.section-galeria {
  padding: var(--section-pad);
  background: var(--dark-primary);
  position: relative;
  overflow: hidden;
}

.section-galeria .section-header h2,
.section-galeria .section-header .label {
  color: var(--white);
}

.section-galeria .section-header h2 {
  color: var(--white);
}

.section-galeria .section-header p {
  color: rgba(255,255,255,0.5);
}

.section-galeria .section-number {
  color: rgba(255,255,255,0.03);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: var(--gap-md);
  position: relative;
  z-index: 1;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(55,75,90,0.5) 100%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1; min-height: 400px; }
.gallery-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; min-height: 400px; }
.gallery-item:nth-child(3) { grid-column: 1 / 5; grid-row: 2; min-height: 300px; }
.gallery-item:nth-child(4) { grid-column: 5 / 9; grid-row: 2; min-height: 300px; }
.gallery-item:nth-child(5) { grid-column: 9 / 13; grid-row: 2; min-height: 300px; }

/* ── SECTION: Video ── */
.section-video {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.section-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(55,75,90,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: pulse-ring 2s var(--ease) infinite;
}

.play-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
  margin-left: 4px;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── SECTION: Contato ── */
.section-contato {
  padding: var(--section-pad);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contato-info {
  padding-right: 40px;
}

.contato-info .label {
  margin-bottom: 12px;
  display: block;
}

.contato-info h2 {
  margin-bottom: 16px;
}

.contato-info > p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--overlay-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Map Embed Placeholder */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
  border: 1px solid rgba(0,0,0,0.08);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark-primary);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap-xl);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--duration) var(--ease);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  transition: all var(--duration) var(--ease);
}

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-links .portal-link {
  color: var(--accent);
}

.footer-links .portal-link:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Intersection Observer Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panels-container {
    height: 500px;
  }

  .gallery-item:nth-child(1) { grid-column: 1 / 7; }
  .gallery-item:nth-child(2) { grid-column: 7 / 13; }
  .gallery-item:nth-child(3) { grid-column: 1 / 5; }
  .gallery-item:nth-child(4) { grid-column: 5 / 9; }
  .gallery-item:nth-child(5) { grid-column: 9 / 13; }

  .contato-grid {
    grid-template-columns: 1fr;
  }

  .contato-info {
    padding-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px 0;
  }

  .hero-bg img {
    object-position: 70% center;
  }

  .container {
    padding: 0 20px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--dark-primary);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.5s var(--ease);
    gap: 24px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Panels become horizontal scroll on mobile */
  .panels-container {
    height: 420px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .expand-panel {
    min-width: 280px;
    flex: none;
    scroll-snap-align: start;
  }

  .panels-container:hover .expand-panel {
    flex: none;
  }

  .panels-container .expand-panel:hover {
    flex: none;
  }

  .panel-title {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .panel-detail {
    opacity: 1;
    max-height: 300px;
  }

  .scroll-indicator {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:nth-child(1) { grid-column: 1 / -1; min-height: 250px; }
  .gallery-item:nth-child(2) { grid-column: 1 / -1; min-height: 250px; }
  .gallery-item:nth-child(3) { grid-column: 1 / 2; min-height: 200px; }
  .gallery-item:nth-child(4) { grid-column: 2 / 3; min-height: 200px; }
  .gallery-item:nth-child(5) { grid-column: 1 / -1; min-height: 200px; }

  .section-video {
    height: 300px;
  }

  .play-btn {
    width: 70px;
    height: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .marquee-text {
    font-size: 2rem;
  }

  .conexao-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .conexao-image img {
    height: 300px;
  }

  .medico-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .medico-image img {
    height: 350px;
    max-width: 320px;
    margin: 0 auto;
  }

  .medico-bullets {
    align-items: center;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}
