:root {
  /* Cores PRD */
  --white: #E5E5E5;
  --white-pure: #FFFFFF;
  --black: #010E3F;
  --gray: #ACAFBC;
  --purple-dark: #301A58;
  --purple-light: #4D2B8C;
  --purple-glow: rgba(77, 43, 140, 0.15);
  --neural-line: rgba(172, 175, 188, 0.3);
  --neural-node: rgba(229, 229, 229, 0.6);
  --glass-bg: rgba(229, 229, 229, 0.1);
  --glass-border: rgba(229, 229, 229, 0.2);
}

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

html {
  scroll-behavior: initial; /* Lenis handles smooth scrolling */
  overflow-x: clip; /* clip = sem criar containing block para position:fixed */
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--black);
}

h1 {
  font-weight: 700;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 700;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.label-tag {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  display: inline-block;
  margin-bottom: 16px;
}

p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
}

.text-white { color: var(--white); }
.text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: var(--white-pure); }
.text-white p { color: rgba(229, 229, 229, 0.85); }

/* Containers & Grids (Mobile First) */
.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

section {
  padding: 64px 0;
  position: relative;
}

/* Utilities */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

/* Grid systems */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* Backgrounds */
.bg-dark { background-color: var(--black); color: var(--white); }
.bg-light { background-color: var(--white); color: var(--black); }
.bg-purple { background-color: var(--purple-dark); color: var(--white); }

/* ── Iluminação sutil nas seções escuras (radial-gradient ::before) ── */
.bg-dark {
  position: relative;
  isolation: isolate;
}

.bg-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%,  rgba(100, 60, 180, 0.50) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%,  rgba(77, 43, 140, 0.38)  0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(77, 43, 140, 0.20) 0%, transparent 70%);
}

/* garante que o conteúdo das seções escuras fique acima do ::before */
.bg-dark > * {
  position: relative;
  z-index: 1;
}

/* mesma iluminação na seção roxo-escuro (Sobre a Clínica) */
.bg-purple {
  position: relative;
  isolation: isolate;
}

.bg-purple::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 10% 15%,  rgba(100, 60, 180, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 85%,  rgba(1,  14,  63, 0.45) 0%, transparent 55%);
}

.bg-purple > * {
  position: relative;
  z-index: 1;
}

/* SVG Utilities */
.svg-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* MEDIA QUERIES (Desktop scaling per PRD) */

/* Tablet */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 32px;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
  p {
    font-size: 18px;
  }
  h1 {
    font-size: clamp(48px, 5vw, 72px);
  }
  h2 {
    font-size: clamp(32px, 3.5vw, 48px);
  }
  .container {
    max-width: 1280px;
    padding: 0 48px;
  }
  section {
    padding: 96px 0;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
