/* ============================================
   DRA. ANA GABRIELA — Estilos globais
   Sistema do brand-style PDF
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Display';
  src: url('assets/fonts/ClashDisplay-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Agrandir';
  src: url('assets/fonts/Agrandir-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta — extraída do PDF Style Guide */
  --color-primary:    #FFFFFF;
  --color-bg:         #DCDCDC;       /* solicitado */
  --color-bg-soft:    #FFFFFF;       /* branco */
  --color-bg-greige:  #B3A2A4;       /* greige rosado */
  --color-bg-deep:    #2A2224;       /* vinho/marrom escuro */
  --color-accent:     #B3A2A4;
  --color-accent-2:   #C9B7B0;       /* nude rosado */
  --color-sage:       #A6B0A0;       /* sálvia (apoio) */
  --color-gold:       #B89968;       /* dourado fosco */
  --color-text:       #333333;
  --color-text-mute:  #6B6066;
  --color-line:       #C7C7C7;

  /* Tipografia */
  --font-head: 'Tenor Sans', 'Times New Roman', serif;
  --font-body: 'Poppins', 'Helvetica Neue', sans-serif;
  --font-light: 'Aileron', 'Poppins', 'Helvetica Neue', sans-serif;

  /* Tamanhos baseados no PDF (desktop) */
  --fs-h-xl: 56px;
  --fs-h-l:  48px;
  --fs-h-m:  40px;
  --fs-h-s:  24px;
  --fs-h-xs: 20px;
  --fs-h-xxs:18px;
  --fs-body-l: 18px;
  --fs-body-m: 16px;
  --fs-body-s: 14px;

  /* Espaçamentos — layout full width */
  --container: 100%;
  --pad-section: 120px;
  --pad-h: 80px;

  /* Detalhes */
  --radius-sm: 2px;
  --radius-md: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
html, body { background: var(--color-primary); color: var(--color-text); font-family: var(--font-body); font-size: var(--fs-body-m); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--color-bg-greige); color: white; }

/* Tipografia helpers */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-text-mute);
  font-weight: 500;
}
.h-xl { font-family: var(--font-head); font-size: var(--fs-h-xl); line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; }
.h-l  { font-family: var(--font-head); font-size: var(--fs-h-l);  line-height: 1.15; font-weight: 400; letter-spacing: -0.005em; }
.h-m  { font-family: var(--font-head); font-size: var(--fs-h-m);  line-height: 1.2; font-weight: 400; }
.h-s  { font-family: var(--font-head); font-size: var(--fs-h-s);  line-height: 1.3; font-weight: 400; letter-spacing: 0.01em; }
.h-xs { font-family: var(--font-head); font-size: var(--fs-h-xs); line-height: 1.35; font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* Section paddings */
.section { padding: var(--pad-section) 0; }
.section-tight { padding: 80px 0; }

/* Hairline ornament under section titles (do site referência) */
.title-rule {
  width: 36px;
  height: 1px;
  background: var(--color-gold);
  margin: 18px auto 0;
}

/* Botão primário (do PNG 3) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: all 0.35s ease;
  background: transparent;
}
.btn:hover { background: var(--color-text); color: white; border-color: var(--color-text); }
.btn-light { color: white; }
.btn-light:hover { background: white; color: var(--color-text); border-color: white; }
.btn-dark { color: var(--color-text); }
.btn-arrow {
  width: 14px; height: 1px; background: currentColor; position: relative;
}
.btn-arrow::after {
  content: ''; position: absolute; right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Cartões/Specialty cards */
.card {
  background: white;
  border: 1px solid var(--color-line);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s ease;
}
.card:hover {
  border-color: var(--color-bg-greige);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.18);
}

/* Animação de entrada simples */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* Scrollbar discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-bg-greige); border-radius: 5px; }

/* utilidades */
.text-center { text-align: center; }
.muted { color: var(--color-text-mute); }
.gold { color: var(--color-gold); }
.greige-bg { background: var(--color-bg-greige); color: white; }
.soft-bg { background: var(--color-bg-soft); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 0.78, 0.24, 1),
    transform 0.78s cubic-bezier(0.22, 0.78, 0.24, 1),
    filter 0.78s cubic-bezier(0.22, 0.78, 0.24, 1);
  will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.testimonial-reveal-card {
  transform: translateY(42px) scale(0.985);
}

.testimonial-reveal-card.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .testimonial-reveal-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 1200px) {
  :root { --pad-h: 56px; }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --pad-section: 72px; --pad-h: 28px; --fs-h-xl: 40px; --fs-h-l: 32px; --fs-h-m: 28px; }
  .container { padding: 0 var(--pad-h); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .atendimento-info-grid { grid-template-columns: 1fr !important; }
  .attendance-card { grid-template-columns: 1fr !important; }
  .attendance-card figure { min-height: 320px !important; }
  .attendance-video-panel { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .attendance-video-panel video { min-height: 320px !important; }
  .atendimento-info-line { grid-template-columns: 1fr !important; gap: 10px !important; }
}

/* ============================================================
   Mobile polish
   ============================================================ */
@media (max-width: 900px) {
  body { font-size: 15px; }

  .section,
  .section-tight {
    padding: 64px 0;
  }

  header .container {
    min-height: 72px !important;
    gap: 18px !important;
  }

  header img[src*="logo-ag"] {
    height: 52px !important;
  }

  .mobile-panel {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 98;
    box-shadow: 0 18px 38px rgba(42, 23, 27, 0.12);
  }

  .home-hero-section {
    min-height: 112svh !important;
    height: 112svh !important;
    padding-top: 72px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    contain: paint;
    overflow: hidden !important;
  }

  .home-hero-section .container {
    padding-top: 0 !important;
  }

  .home-hero-section > div:first-of-type img {
    transform: none !important;
    max-width: none !important;
  }

  .hero-main-title {
    font-size: clamp(30px, 8.8vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
    max-width: min(92vw, 620px) !important;
  }

  .hero-main-title span:last-child {
    font-size: 0.42em !important;
    letter-spacing: 0.04em !important;
  }

  .hero-info-rotator {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    min-height: 64px !important;
    max-width: 90vw !important;
  }

  .home-video-section {
    min-height: 560px !important;
  }

  .home-video-frame {
    width: calc(100vw - 28px) !important;
    max-height: 48vh !important;
  }

  .home-video-trail {
    min-height: 560px !important;
    padding: clamp(190px, 54vw, 275px) 20px 58px !important;
  }

  .home-video-trail h2 {
    font-size: clamp(30px, 8vw, 42px) !important;
    letter-spacing: -1.2px !important;
    line-height: 1.08 !important;
  }

  .home-about-section {
    padding: 64px 0 !important;
  }

  .about-section-grid {
    gap: 34px !important;
  }

  .about-section-grid > div:first-child {
    max-height: 560px;
    overflow: hidden;
  }

  .about-section-grid > div:first-child img {
    min-height: 420px;
    object-fit: cover;
  }

  .home-philosophy-section {
    padding: 72px 0 !important;
  }

  .home-philosophy-grid,
  .consultation-sticky-grid,
  .care-videos-heading-grid,
  .academic-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .home-philosophy-text-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-top: 42px !important;
  }

  .home-philosophy-text-grid > span {
    width: 64px !important;
    height: 1px !important;
    transform: none !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  .home-philosophy-section p,
  .home-consultation-intro p {
    text-align: left !important;
    font-size: 17px !important;
    line-height: 1.72 !important;
  }

  .home-philosophy-grid > div:last-child span {
    display: none !important;
  }

  .home-philosophy-grid > div:last-child > div {
    width: min(100%, 420px);
    margin: 0 auto !important;
    max-height: 520px !important;
  }

  .home-consultation-intro {
    min-height: auto !important;
    padding: 72px 0 !important;
  }

  .consultation-sticky-grid {
    min-height: auto !important;
  }

  .consultation-sticky-title,
  .academic-sticky-aside {
    position: static !important;
    top: auto !important;
  }

  .consultation-sticky-title h2 {
    font-size: clamp(36px, 10vw, 50px) !important;
  }

  .consultation-sticky-grid > div:last-child {
    padding-bottom: 0 !important;
  }

  .care-videos-grid {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
  }

  .care-videos-grid article,
  .care-videos-grid video {
    min-height: 420px !important;
  }

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

  .specialties-grid > div {
    min-height: 260px !important;
    padding: 40px 22px !important;
    border-right: 1px solid rgba(245,239,233,0.10) !important;
    border-bottom: 1px solid rgba(245,239,233,0.10) !important;
  }

  .home-nextstep-section,
  .home-nextstep-inner {
    min-height: 760px !important;
  }

  .home-nextstep-section h2 {
    font-size: clamp(42px, 12vw, 58px) !important;
  }

  .attendance-hero-section {
    min-height: auto !important;
    padding: 118px 0 62px !important;
  }

  .attendance-card {
    padding: 24px !important;
    gap: 28px !important;
  }

  .attendance-card > div:first-child {
    align-items: flex-start !important;
  }

  .attendance-card > div:first-child p {
    width: 100%;
    text-align: left !important;
  }

  .attendance-card figure {
    min-height: 360px !important;
    order: -1;
  }

  .attendance-video-section {
    padding-bottom: 70px !important;
  }

  .attendance-video-panel {
    width: min(100%, 430px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
  }

  .attendance-video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  .attendance-video-panel > div {
    border-left: 0 !important;
    border-top: 1px solid rgba(42,23,27,0.10) !important;
    padding: 30px 22px !important;
  }

  .attendance-video-copy {
    white-space: normal !important;
    text-align: center !important;
    font-size: clamp(26px, 7.5vw, 34px) !important;
    max-width: 360px;
  }

  .academic-layout-grid article,
  .academic-layout-grid details,
  .academic-layout-grid > div > div:first-child {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 34px !important;
  }

  .site-footer {
    padding-top: 62px !important;
  }
}

@media (max-width: 560px) {
  :root {
    --pad-h: 18px;
    --pad-section: 58px;
    --fs-h-xl: 34px;
    --fs-h-l: 30px;
    --fs-h-m: 26px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  header img[src*="logo-ag"] {
    height: 44px !important;
  }

  .home-hero-section {
    min-height: 104svh !important;
    height: 104svh !important;
  }

  .hero-main-title {
    font-size: clamp(27px, 8.7vw, 36px) !important;
    letter-spacing: -0.035em !important;
  }

  .hero-copy button,
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px !important;
  }

  .hero-copy button {
    max-width: 340px !important;
    min-height: 58px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
  }

  .header-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 88px !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
  }

  .home-video-frame {
    width: calc(100vw - 20px) !important;
  }

  .home-video-trail h2 {
    font-size: clamp(34px, 10.5vw, 46px) !important;
    line-height: 1.02 !important;
    max-width: 360px !important;
    padding: 0 10px !important;
  }

  .home-about-section h2 {
    font-size: clamp(32px, 9vw, 44px) !important;
    line-height: 1.12 !important;
  }

  .home-philosophy-section p,
  .home-consultation-intro p {
    font-size: 20px !important;
    line-height: 1.68 !important;
  }

  .testimonial-reveal-card div:nth-child(2) {
    font-size: 16px !important;
    letter-spacing: 0.04em !important;
  }

  .about-tabs-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .about-tabs-nav button {
    width: 100% !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .home-philosophy-grid > div:last-child > div {
    max-height: 440px !important;
  }

  .care-videos-grid article,
  .care-videos-grid video {
    min-height: 360px !important;
  }

  .care-videos-grid button[aria-label="Reproduzir vídeo"] {
    width: 84px !important;
    height: 84px !important;
  }

  .specialties-grid {
    grid-template-columns: 1fr !important;
  }

  .specialties-grid > div {
    min-height: 230px !important;
    padding: 36px 20px !important;
  }

  .attendance-card {
    padding: 18px !important;
  }

  .attendance-card figure {
    min-height: 300px !important;
  }

  .attendance-video-panel {
    width: min(100%, 340px) !important;
  }

  .atendimento-info-line {
    padding: 15px 0 !important;
  }

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

  .site-footer > .container > div:nth-last-child(2) {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}
