/* ============================================================
   SEF v1.0.16 — Internal pages design system normalization
   Aligns individual unit pages and legal/trust pages with the same
   visual language used by Home, Sobre and Nossas Unidades.
============================================================ */
:root {
  --sef-brand-primary: #4C165A;
  --sef-brand-secondary: #6A277C;
  --sef-brand-accent: #E62D92;
  --sef-black: #0A0A0A;
  --sef-white: #FFFFFF;
  --sef-light-bg: #F4F2F0;
  --sef-text-dark: #121211;
  --sef-muted-dark: rgba(18,18,17,0.72);
  --sef-muted-light: #CFCAC3;
  --sef-border-dark: rgba(207,202,195,0.18);
  --sef-border-light: rgba(76,22,90,0.14);
  --sef-radius-card: 32px;
  --sef-radius-button: 999px;
  --sef-shadow-light: 0 12px 40px rgba(10,10,10,0.08);
  --sef-shadow-dark: 0 24px 72px rgba(0,0,0,0.28);
  --sef-gradient-hero: linear-gradient(135deg, #1a0421 0%, #0A0A0A 60%, #4C165A 100%);
  --sef-gradient-hero-light: linear-gradient(135deg, #3a0a47 0%, #1a0421 100%);
  --font-primary: "Helvetica Neue", Helvetica, Arial, "Inter", sans-serif;
}

body.sef-internal-page,
.sef-internal-page .single-unit-page,
.sef-internal-page .legal-page {
  font-family: var(--font-primary);
  background: var(--sef-black);
  color: var(--sef-white);
}

html.light-mode body.sef-internal-page,
html.light-mode .sef-internal-page .single-unit-page,
html.light-mode .sef-internal-page .legal-page {
  background: var(--sef-light-bg);
  color: var(--sef-text-dark);
}

/* Shared internal hero system: same structure as Sobre and Nossas Unidades. */
.sef-unit-single-page #main-content > .unit-single-hero:first-child,
.sef-legal-page #main-content > .legal-hero:first-child {
  min-height: 44vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  color: var(--sef-white);
  background: var(--sef-gradient-hero) !important;
  padding-top: calc(72px + 52px) !important;
}

html.light-mode .sef-unit-single-page #main-content > .unit-single-hero:first-child,
html.light-mode .sef-legal-page #main-content > .legal-hero:first-child {
  background: var(--sef-gradient-hero-light) !important;
}

.sef-unit-single-page #main-content > .unit-single-hero:first-child::before,
.sef-legal-page #main-content > .legal-hero:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(106,39,124,0.30) 0%, transparent 70%);
  pointer-events: none;
}

.sef-unit-single-page .page-hero-content,
.sef-legal-page .legal-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  padding-bottom: 76px !important;
}

.sef-unit-single-page .breadcrumb,
.sef-legal-page .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px !important;
  color: rgba(207,202,195,0.55);
  font-size: 13px;
  line-height: 1.4;
}

.sef-unit-single-page .breadcrumb a,
.sef-legal-page .breadcrumb a {
  color: rgba(207,202,195,0.62);
  text-decoration: none;
  transition: color 150ms ease;
}

.sef-unit-single-page .breadcrumb a:hover,
.sef-legal-page .breadcrumb a:hover {
  color: var(--sef-white);
}

.sef-unit-single-page .breadcrumb span,
.sef-legal-page .breadcrumb span {
  color: rgba(207,202,195,0.38);
}

.sef-unit-single-page .eyebrow,
.sef-legal-page .eyebrow {
  display: block;
  color: var(--sef-brand-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sef-unit-single-page .section-divider,
.sef-legal-page .eyebrow::after {
  width: 48px;
  height: 2px;
  background: var(--sef-brand-accent);
}

.sef-legal-page .eyebrow::after {
  content: "";
  display: block;
  margin-top: 18px;
}

.sef-unit-single-page .page-h1,
.sef-legal-page .page-h1,
.sef-legal-page .legal-page h1 {
  max-width: 920px;
  margin: 16px 0 0;
  color: var(--sef-white);
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.96;
  letter-spacing: -4px;
}

.sef-legal-page .legal-hero__lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.7;
}

/* Shared dark/light surface rhythm. */
.sef-unit-single-page .unit-single-info,
.sef-legal-page .legal-content-section {
  background: var(--sef-black) !important;
}

html.light-mode .sef-unit-single-page .unit-single-info,
html.light-mode .sef-legal-page .legal-content-section {
  background: var(--sef-light-bg) !important;
}

.sef-unit-single-page .unit-form-section {
  background:
    radial-gradient(circle at 20% 18%, rgba(230,45,146,0.12), transparent 28%),
    linear-gradient(135deg, #4C165A 0%, #0A0A0A 100%) !important;
}

html.light-mode .sef-unit-single-page .unit-form-section {
  background: linear-gradient(180deg, rgba(76,22,90,0.06) 0%, #FFFFFF 100%) !important;
}

.sef-unit-single-page .unit-single-copy h2,
.sef-unit-single-page .unit-form-copy h2,
.sef-legal-page .legal-content-card h2 {
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.06;
}

.sef-unit-single-page .unit-single-copy h2,
.sef-unit-single-page .unit-form-copy h2 {
  color: var(--text-on-dark);
  font-size: clamp(32px, 5vw, 52px);
}

.sef-legal-page .legal-content-card h2 {
  color: inherit;
  font-size: clamp(28px, 4vw, 44px);
  margin: 44px 0 16px;
}

.sef-unit-single-page .unit-single-copy p,
.sef-unit-single-page .unit-form-copy p,
.sef-legal-page .legal-content-card p,
.sef-legal-page .legal-content-card li {
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.72;
}

.sef-unit-single-page .unit-single-map-card,
.sef-unit-single-page .form-card,
.sef-unit-single-page .unit-hours-card,
.sef-legal-page .legal-content-card {
  border-radius: var(--sef-radius-card);
  border: 1px solid var(--sef-border-dark);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--sef-shadow-dark);
}

html.light-mode .sef-unit-single-page .unit-single-map-card,
html.light-mode .sef-unit-single-page .form-card,
html.light-mode .sef-unit-single-page .unit-hours-card,
html.light-mode .sef-legal-page .legal-content-card {
  background: var(--sef-white);
  border-color: var(--sef-border-light);
  box-shadow: var(--sef-shadow-light);
}

.sef-legal-page .legal-content-card {
  max-width: 960px;
  padding: clamp(28px, 5vw, 64px);
}

.sef-legal-page .legal-content-card p,
.sef-legal-page .legal-content-card li {
  color: rgba(255,255,255,0.72);
}

html.light-mode .sef-legal-page .legal-content-card p,
html.light-mode .sef-legal-page .legal-content-card li {
  color: var(--sef-muted-dark);
}

.sef-legal-page .legal-content-card ul {
  list-style: disc;
  padding-left: 1.3em;
}

.sef-legal-page .legal-content-card ol {
  list-style: decimal;
  padding-left: 1.3em;
}

.sef-unit-single-page .btn,
.sef-legal-page .btn,
.sef-legal-page footer#rodape .btn-whatsapp {
  border-radius: var(--sef-radius-button);
  font-family: var(--font-primary);
}

/* Header logo/theme behavior on dark hero stays identical to the homepage. */
@media (min-width: 901px) {
  html.light-mode .sef-internal-page #site-header.sef-over-dark-section .header-logo img,
  html.light-mode .sef-internal-page #site-header:not(.scrolled) .header-logo img {
    content: url("https://sigaemfrentetreinamento.com.br/wp-content/uploads/2026/07/logo-white.webp");
  }

  html.light-mode .sef-internal-page #site-header.sef-over-light-section .header-logo img,
  html.light-mode .sef-internal-page #site-header.scrolled:not(.sef-over-dark-section) .header-logo img {
    content: url("https://sigaemfrentetreinamento.com.br/wp-content/uploads/2026/07/logo-color.webp");
  }

  html.light-mode .sef-internal-page #site-header.sef-over-dark-section nav.desktop-nav a,
  html.light-mode .sef-internal-page #site-header.sef-over-dark-section .nav-dropdown-toggle,
  html.light-mode .sef-internal-page #site-header:not(.scrolled) nav.desktop-nav a,
  html.light-mode .sef-internal-page #site-header:not(.scrolled) .nav-dropdown-toggle {
    color: rgba(255,255,255,0.75);
  }

  html.light-mode .sef-internal-page #site-header.sef-over-dark-section nav.desktop-nav a:hover,
  html.light-mode .sef-internal-page #site-header.sef-over-dark-section nav.desktop-nav a.active,
  html.light-mode .sef-internal-page #site-header.sef-over-dark-section .nav-dropdown-toggle:hover,
  html.light-mode .sef-internal-page #site-header.sef-over-dark-section .nav-dropdown-toggle.active {
    color: var(--sef-white);
  }
}

@media (max-width: 900px) {
  .sef-unit-single-page #main-content > .unit-single-hero:first-child,
  .sef-legal-page #main-content > .legal-hero:first-child {
    min-height: auto;
    padding-top: 32px !important;
  }

  .sef-unit-single-page .page-hero-content,
  .sef-legal-page .legal-hero__inner {
    padding-bottom: 56px !important;
  }

  .sef-unit-single-page .page-h1,
  .sef-legal-page .page-h1,
  .sef-legal-page .legal-page h1 {
    font-size: clamp(42px, 14vw, 68px);
    letter-spacing: -3px;
  }

  .sef-unit-single-page .unit-form-grid,
  .sef-unit-single-page .unit-single-grid {
    gap: 40px;
  }

  .sef-legal-page .legal-content-section {
    padding-top: 56px;
    padding-bottom: 88px;
  }
}
