/* =========================================================
   GPS Galderma — Materiais Educativos — style.css
   Paleta: bege/terracota/preto
   ========================================================= */

/* --- Fonte body: Segma --- */
@import url('../../fonts/segma.css');

/* --- Fontes customizadas: GaldermaSans --- */
@font-face {
  font-family: 'GaldermaSans';
  src: url('../../fonts/GaldermaFontFamily/GALDERMA-Regular.woff2') format('woff2'),
       url('../../fonts/GaldermaFontFamily/GALDERMA-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GaldermaSans';
  src: url('../../fonts/GaldermaFontFamily/GALDERMA-Bold.woff2') format('woff2'),
       url('../../fonts/GaldermaFontFamily/GALDERMA-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   PROTOTYPE SHARED — Header & Footer
   (replicados do index.html para funcionar em educativo.html)
   ========================================================= */

/* Prototype variables */
:root {
  --color-primary:       #816EF8;
  --color-primary-900:   #2D1B4E;
  --color-primary-800:   #816EF8;
  --color-primary-700:   #4B2D7A;
  --color-primary-100:   #EDE7F4;
  --color-primary-hover: rgba(129, 110, 248, 0.20);
  --color-bg-light:      #F8F6F2;
  --color-border:        #DEE2E6;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --font-size-small: 0.875rem;
  --font-size-xs:    0.75rem;
  --font-size-body:  1rem;
  --font-size-body-lg: 1.125rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}
.header-logo img { height: 60px; width: auto; }
.header-nav { display: flex; align-items: center; gap: var(--spacing-lg); }
.header-nav a {
  font-weight: 400;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #4c4e55;
  transition: color 0.3s ease;
  position: relative;
}
.header-nav a:hover,
.header-nav a.active { color: var(--color-primary); }
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #4c4e55;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 98;
}
.mobile-overlay.active { display: block; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: -280px;
  width: 280px; height: 100%;
  background: white;
  z-index: 99;
  padding: 80px var(--spacing-lg) var(--spacing-lg);
  transition: right 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-menu a {
  display: block;
  padding: var(--spacing-sm) 0;
  font-weight: 400;
  font-size: var(--font-size-body-lg);
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #4c4e55;
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }
  .mobile-menu { display: block; }
}

/* Footer */
.footer {
  background: #f8f9fa;
  color: #4c4e55;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}
.footer-logo img { height: 32px; margin-bottom: var(--spacing-sm); }
.footer-about p { font-size: var(--font-size-small); line-height: 1.7; }
.footer h4 { color: #181B21; font-size: var(--font-size-body); margin-bottom: var(--spacing-sm); }
.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: var(--font-size-small);
  color: #4c4e55;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: #816EF8; }
.footer-bottom {
  border-top: 1px solid #dee2e6;
  padding-top: var(--spacing-lg);
  color: #6c757d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xs);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--spacing-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   GPS EDUCATIVO — Variáveis
   ========================================================= */
:root {
  --color-bg:      #FAFAFA;
  --color-accent:  #816EF8;
  --color-text:    #4c4e55;
  --color-muted:   #8A8A8A;
  --color-card:    #F8F6F2;
  --color-divider: #E5E5E5;
  --color-surface: #EDE7F4;
}

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

html {
  scroll-behavior: smooth;
}

/* --- Body --- */
body {
  font-family: 'Segma', Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 0.5px solid var(--color-divider);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-left img {
  height: 36px;
  background: transparent;
  display: block;
}

.header-logo-right img {
  height: 28px;
  background: transparent;
  display: block;
}

/* =========================================================
   NAV DE ABAS
   ========================================================= */
.nav-tabs {
  background: var(--color-surface);
  display: flex;
  padding: 0 40px;
  border-bottom: none;
}

.nav-tab {
  color: var(--color-muted);
  padding: 14px 24px;
  font-family: 'Segma', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  text-transform: none;
}

.nav-tab:hover {
  color: #816EF8;
  background: rgba(129, 110, 248, 0.10);
  outline: none;
}

.nav-tab.active {
  color: #816EF8;
  border-bottom-color: #816EF8;
}

/* =========================================================
   PÁGINAS (tab panels)
   ========================================================= */
.material-page {
  display: none;
}

.material-page.active {
  display: block;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--color-surface);
  padding: 60px 40px 48px;
}

.hero-eyebrow {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-eyebrow img {
  display: block;
}

.hero-title-bold {
  display: inline;
  font-family: 'GaldermaSans', Helvetica, Arial, sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #816EF8;
  line-height: 52px;
}

.hero-title-light {
  display: inline;
  font-family: 'GaldermaSans', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #2D1B4E;
  line-height: 52px;
}

h1 {
  line-height: 1.15;
}

.hero-divider {
  height: 0.75px;
  background: rgba(129, 110, 248, 0.4);
  margin: 24px 0;
}

.hero-tagline {
  font-size: 13px;
  color: #816EF8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========================================================
   CONTEÚDO
   ========================================================= */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* =========================================================
   SEÇÕES
   ========================================================= */
.content .section {
  padding: 0;
  margin-bottom: 48px;
}

.section-num {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--color-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-divider {
  height: 0.75px;
  background: var(--color-text);
  margin-bottom: 20px;
}

/* =========================================================
   TIPOGRAFIA DE CORPO
   ========================================================= */
.body-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
  text-align: justify;
}

.subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 24px 0 12px;
}

/* =========================================================
   HIGHLIGHT CARD
   ========================================================= */
.highlight-card {
  background: var(--color-surface);
  border-left: 3px solid #816EF8;
  padding: 14px 18px;
  margin: 14px 0;
  border-radius: 0;
}

.highlight-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  font-style: normal;
}

/* =========================================================
   BULLET LIST
   ========================================================= */
.bullet-list {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 16px;
}

.bullet-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.bullet-list li::before {
  content: '—';
  color: var(--color-accent);
  position: absolute;
  left: 0;
}

/* =========================================================
   REFERÊNCIAS
   ========================================================= */
.references {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 24px;
  border-top: 0.5px solid var(--color-divider);
  padding-top: 16px;
}

.references p {
  line-height: 1.6;
  margin-bottom: 4px;
}

/* =========================================================
   TREATMENT GRID
   ========================================================= */
.treatment-grid {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}

.treatment-grid thead th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 0.75px solid var(--color-text);
}

.treatment-grid tbody tr:nth-child(odd) td {
  background: var(--color-surface);
}

.treatment-grid tbody tr:nth-child(even) td {
  background: #FFFFFF;
}

.treatment-grid tbody td {
  font-size: 14px;
  padding: 12px 16px;
  color: var(--color-text);
  border-right: 0.5px solid #816EF8;
}

.treatment-grid tbody td:last-child {
  border-right: none;
}

.treatment-grid tbody tr:first-child td {
  border-top: 0.75px solid #816EF8;
}

.treatment-grid tbody tr:last-child td {
  border-bottom: 0.75px solid #816EF8;
}

/* =========================================================
   QUESTIONS TABLE
   ========================================================= */
.questions-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}

.questions-table thead th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 0.75px solid var(--color-text);
}

.questions-table tbody tr:nth-child(odd) td {
  background: var(--color-surface);
}

.questions-table tbody tr:nth-child(even) td {
  background: #FFFFFF;
}

.questions-table tbody td {
  font-size: 14px;
  padding: 12px 16px;
  color: var(--color-text);
  border-right: 0.5px solid #816EF8;
}

.questions-table tbody td:last-child {
  border-right: none;
}

.questions-table tbody tr:first-child td {
  border-top: 0.75px solid #816EF8;
}

.questions-table tbody tr:last-child td {
  border-bottom: 0.75px solid #816EF8;
}

.questions-table .q-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  width: 48px;
}

/* =========================================================
   DOWNLOAD BAR
   ========================================================= */
.download-bar {
  background: var(--color-card);
  border-top: 1px solid var(--color-divider);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  flex: 1;
}

.download-btn {
  background: #816EF8;
  color: #FFFFFF;
  padding: 12px 24px;
  font-family: 'Segma', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.download-btn:hover {
  background: #2D1B4E;
}

/* =========================================================
   FOOTER
   ========================================================= */
.page-footer {
  background: var(--color-surface);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.footer-legal {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
  text-align: center;
}

.footer-page-num {
  font-size: 11px;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Logo Galderma branco no footer */
img[src*="Galderma-Logo-White"] {
  height: 28px;
}

/* =========================================================
   GPS PATTERN 1 — Estrelas de 4 pontas (sparkle), grade intercalada
   Uso: adicione class="gps-pattern-1" ou "gps-pattern-1--dark"
   ========================================================= */
.gps-pattern-1,
.gps-pattern-1--light {
  background-color: #ffffff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14,5 Q18,10.5 23,14 Q18,17.5 14,23 Q10,17.5 5,14 Q10,10.5 14,5Z' fill='none' stroke='black' stroke-width='0.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14,5 Q18,10.5 23,14 Q18,17.5 14,23 Q10,17.5 5,14 Q10,10.5 14,5Z' fill='none' stroke='black' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  background-repeat: repeat, repeat;
}

.gps-pattern-1--dark {
  background-color: #2D1B4E;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14,5 Q18,10.5 23,14 Q18,17.5 14,23 Q10,17.5 5,14 Q10,10.5 14,5Z' fill='none' stroke='white' stroke-width='0.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14,5 Q18,10.5 23,14 Q18,17.5 14,23 Q10,17.5 5,14 Q10,10.5 14,5Z' fill='none' stroke='white' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  background-repeat: repeat, repeat;
}

/* =========================================================
   ACESSIBILIDADE
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =========================================================
   RESPONSIVO — max-width: 768px
   ========================================================= */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 20px;
  }

  .nav-tabs {
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    padding: 12px 16px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    padding: 40px 20px 36px;
  }

  .hero-title-bold,
  .hero-title-light {
    font-size: 36px;
    line-height: 40px;
  }

  .content {
    padding: 32px 20px 60px;
  }

  .section-title {
    font-size: 18px;
  }

  /* Tabelas responsivas: células em bloco */
  .treatment-grid thead,
  .questions-table thead {
    display: none;
  }

  .treatment-grid tbody tr,
  .questions-table tbody tr {
    display: block;
    margin-bottom: 8px;
  }

  .treatment-grid tbody td,
  .questions-table tbody td {
    display: block;
    border-right: none;
    border-bottom: 0.5px solid var(--color-divider);
  }

  .treatment-grid tbody tr:nth-child(odd) td,
  .treatment-grid tbody tr:nth-child(even) td {
    background: var(--color-card);
  }

  .questions-table tbody td.q-num {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .download-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .footer-legal {
    text-align: left;
  }
}

/* =========================================================
   PRINT — gera PDF sem header/footer/nav
   ========================================================= */
@media print {
  @page {
    margin: 0;
  }

  #header,
  .mobile-overlay,
  .mobile-menu,
  .nav-tabs,
  .download-bar,
  .footer,
  .whatsapp-float {
    display: none !important;
  }

  .material-page {
    display: none !important;
  }

  .material-page.active {
    display: block !important;
  }

  body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
  }

  .hero {
    margin: 0;
    padding: 24px 40px 20px;
    background: #EDE7F4 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .content {
    padding: 24px 40px;
  }

  .highlight-card {
    background: #EDE7F4 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .content .section {
    padding: 0 !important;
  }

  .highlight-card,
  .subtitle,
  .references {
    page-break-inside: avoid;
  }

  .references {
    page-break-after: always;
  }

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