/* v1.0.9 - Shell/layout fallback for legal pages.
   Ensures the shared header, footer, social icons, quick menu, sticky WhatsApp
   and video modal are styled even when a page does not load front-page.css. */
:root {
  --brand-primary: #4C165A;
  --brand-secondary: #6A277C;
  --brand-accent: #E62D92;
  --background-white: #FFFFFF;
  --background-neutral: #CFCAC3;
  --text-primary: #121211;
  --black-extreme: #0A0A0A;
  --text-on-dark: #FFFFFF;
  --text-muted-dark: #CFCAC3;
  --surface-purple: rgba(76,22,90,0.72);
  --border-dark: rgba(207,202,195,0.18);
  --radius-button: 999px;
  --shadow-soft: 0 12px 40px rgba(10,10,10,0.32);
  --shadow-premium: 0 32px 90px rgba(10,10,10,0.54);
  --font-primary: "Helvetica Neue", Helvetica, Arial, "Inter", sans-serif;
}

html.light-mode {
  --black-extreme: #FFFFFF;
  --text-on-dark: #121211;
  --text-muted-dark: rgba(18,18,17,0.72);
  --border-dark: rgba(76,22,90,0.18);
  --brand-primary: #6A277C;
  --brand-secondary: #4C165A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black-extreme);
  color: var(--text-on-dark);
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #site-header { top: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}
@media (max-width: 1024px) { .container { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 768px) { .container { padding-left: 24px; padding-right: 24px; } }

/* Header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-bottom 300ms ease;
}
#site-header.scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(207,202,195,0.14);
}
html.light-mode #site-header.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(76,22,90,0.18);
}
#site-header .container { width: 100%; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}
.header-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
#site-header .header-logo img {
  width: 140px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}
#site-header .logo-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #FFFFFF;
  text-transform: uppercase;
}
html.light-mode #site-header.scrolled .header-logo img { content: url("https://sigaemfrentetreinamento.com.br/wp-content/uploads/2026/07/logo-color.webp"); }
html.light-mode #site-header.scrolled .logo-text { color: #4C165A; }

nav.desktop-nav {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
nav.desktop-nav a,
.nav-dropdown-toggle {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  transition: color 150ms;
}
nav.desktop-nav a:hover,
nav.desktop-nav a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown:hover .nav-dropdown-toggle { color: #FFFFFF; }
html.light-mode #site-header.scrolled nav.desktop-nav a,
html.light-mode #site-header.scrolled .nav-dropdown-toggle { color: rgba(18,18,17,0.70); }
html.light-mode #site-header.scrolled nav.desktop-nav a:hover,
html.light-mode #site-header.scrolled nav.desktop-nav a.active,
html.light-mode #site-header.scrolled .nav-dropdown-toggle:hover,
html.light-mode #site-header.scrolled .nav-dropdown-toggle.active { color: #121211; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown-toggle svg { width: 11px; height: 11px; transition: transform 250ms ease; opacity: .7; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 260px;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(207,202,195,0.16);
  border-radius: 20px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 1200;
  box-shadow: 0 24px 64px rgba(0,0,0,0.54);
}
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(10,10,10,0.94);
  border-left: 1px solid rgba(207,202,195,0.16);
  border-top: 1px solid rgba(207,202,195,0.16);
  border-radius: 2px 0 0 0;
}
.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: rgba(207,202,195,0.85) !important;
}
.nav-dropdown-panel a:hover { background: rgba(230,45,146,0.12); color: #FFFFFF !important; }
.dd-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent); flex-shrink: 0; }
.nav-dropdown-divider { height: 1px; background: rgba(207,202,195,0.12); margin: 6px 4px; }
.nav-dropdown-footer { color: var(--brand-accent) !important; font-weight: 600; }
.nav-dropdown-footer svg { width: 14px; height: 14px; }
html.light-mode .nav-dropdown-panel {
  background: rgba(255,255,255,0.96);
  border-color: rgba(76,22,90,0.16);
  box-shadow: 0 24px 64px rgba(76,22,90,0.14);
}
html.light-mode .nav-dropdown-panel::before { background: rgba(255,255,255,0.96); border-color: rgba(76,22,90,0.16); }
html.light-mode .nav-dropdown-panel a { color: rgba(74,69,64,0.85) !important; }
html.light-mode .nav-dropdown-panel a:hover { color: #121211 !important; background: rgba(230,45,146,0.08); }

.header-cta { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; }
.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #FFFFFF;
  transition: background 200ms, border-color 200ms, transform 200ms;
  flex-shrink: 0;
  font-size: 17px;
  line-height: 1;
  padding: 0;
}
.btn-theme:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.40); transform: rotate(20deg); }
html.light-mode #site-header.scrolled .btn-theme { background: rgba(76,22,90,0.10); border-color: rgba(76,22,90,0.25); color: #4C165A; }
html.light-mode #site-header.scrolled .btn-theme:hover { background: rgba(76,22,90,0.18); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 28px; font-weight: 300; color: #FFFFFF; letter-spacing: -1px; }
.mobile-menu a:hover { color: var(--brand-accent); }
html.light-mode .mobile-menu { background: rgba(255,255,255,0.97); }
html.light-mode .mobile-menu a { color: #121211; }

@media (max-width: 900px) {
  #site-header {
    top: 0 !important;
    height: 64px;
    background: rgba(10,10,10,0.86);
    border-bottom: 1px solid rgba(207,202,195,0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  html.light-mode #site-header { background: rgba(255,255,255,0.94); border-bottom-color: rgba(76,22,90,0.16); }
  html.light-mode #site-header .header-logo img { content: url("https://sigaemfrentetreinamento.com.br/wp-content/uploads/2026/07/logo-color.webp"); }
  html.light-mode #site-header .logo-text { color: #4C165A; }
  nav.desktop-nav { display: none; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 64px; }
  .header-logo { grid-column: 2 / 3; }
  .header-cta { grid-column: 3 / 4; justify-self: end; }
  #site-header .header-logo img { width: 128px; max-height: 42px; }
  #site-header .btn-theme { width: 38px; height: 38px; }
  #main-content { padding-top: 64px; }
}

/* Footer */
footer#rodape {
  background: var(--black-extreme);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
  padding: 64px 0 40px;
}
html.light-mode footer#rodape { background: #FFFFFF; color: #121211; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 20px; margin: 0 0 16px; color: #FFFFFF; }
html.light-mode .footer-brand .logo { color: #4C165A; }
.footer-brand p {
  font-size: 15px;
  color: var(--text-muted-dark);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 0 24px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(207,202,195,0.5);
  margin: 0 0 20px;
}
html.light-mode .footer-col h4 { color: rgba(76,22,90,0.55); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 15px;
  color: var(--text-muted-dark);
  transition: color 150ms;
}
.footer-col ul li a:hover { color: #FFFFFF; }
html.light-mode .footer-col ul li a:hover { color: #121211; }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 32px; }
.footer-legal { font-size: 13px; color: rgba(207,202,195,0.4); line-height: 1.6; max-width: 960px; margin: 0; }
html.light-mode .footer-legal { color: rgba(18,18,17,0.72); }
.footer-company { margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: rgba(207,202,195,0.58); }
.footer-company span { display: inline-block; margin-right: 16px; }
html.light-mode .footer-company { color: rgba(18,18,17,0.72); }

/* v1.0.11 - Legal/footer WhatsApp CTA fallback.
   Legal pages do not load the home/sobre/unidades page CSS, so the shared
   footer CTA needs its own button style here. */
footer#rodape .btn-whatsapp,
.sef-legal-page footer#rodape .btn-whatsapp,
body footer#rodape .footer-brand .btn-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 48px !important;
  margin: 4px 0 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--brand-accent) !important;
  color: #FFFFFF !important;
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 12px 34px rgba(230,45,146,0.26) !important;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease !important;
}

footer#rodape .btn-whatsapp:hover,
.sef-legal-page footer#rodape .btn-whatsapp:hover,
body footer#rodape .footer-brand .btn-whatsapp:hover {
  opacity: 0.94 !important;
  transform: translateY(-1px) !important;
  color: #FFFFFF !important;
  box-shadow: 0 16px 42px rgba(230,45,146,0.34) !important;
}

footer#rodape .btn-whatsapp svg,
.sef-legal-page footer#rodape .btn-whatsapp svg,
body footer#rodape .footer-brand .btn-whatsapp svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  fill: currentColor !important;
  display: block !important;
}

html.light-mode footer#rodape .btn-whatsapp,
html.light-mode .sef-legal-page footer#rodape .btn-whatsapp {
  background: var(--brand-accent) !important;
  color: #FFFFFF !important;
  border-color: var(--brand-accent) !important;
}

.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(207,202,195,0.18);
  color: var(--text-muted-dark);
  transition: background 180ms, border-color 180ms, color 180ms, transform 180ms;
}
.social-icon:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: #FFFFFF; transform: translateY(-2px); }
.social-icon svg { width: 18px !important; height: 18px !important; fill: currentColor; flex: 0 0 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-company span { display: block; margin: 0 0 4px; }
}

/* Floating quick menu */
.fluid-menu-container {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
}
@media (max-width: 900px) { .fluid-menu-container { display: block; } }
.fluid-menu-item {
  position: absolute;
  top: 0;
  right: 0;
  width: 168px;
  height: 56px;
  border-radius: 999px;
  background: var(--surface-purple);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 18px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.4,0,0.2,1), opacity 300ms, background 180ms, border-color 180ms;
}
.fluid-menu-item:hover { background: var(--brand-accent); border-color: var(--brand-accent); }
.fluid-menu-item svg { width: 22px; height: 22px; flex: 0 0 22px; }
.fluid-menu-toggle {
  position: relative;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-soft);
  opacity: 1;
  pointer-events: auto;
}
.fluid-menu-container.open .fluid-menu-item:not(.fluid-menu-toggle) { opacity: 1; pointer-events: auto; }
.fluid-menu-label { display: inline-block; font-size: 13px; line-height: 1; font-weight: 700; white-space: nowrap; }
.fluid-menu-toggle .icon-open,
.fluid-menu-toggle .icon-close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms, transform 300ms;
}
.fluid-menu-toggle .icon-open { opacity: 1; transform: rotate(0deg) scale(1); }
.fluid-menu-toggle .icon-close { opacity: 0; transform: rotate(-180deg) scale(.5); }
.fluid-menu-container.open .fluid-menu-toggle .icon-open { opacity: 0; transform: rotate(180deg) scale(.5); }
.fluid-menu-container.open .fluid-menu-toggle .icon-close { opacity: 1; transform: rotate(0deg) scale(1); }
html.light-mode .fluid-menu-item { background: #FFFFFF; border-color: rgba(76,22,90,0.18); color: var(--brand-primary); box-shadow: 0 8px 24px rgba(10,10,10,.10); }
html.light-mode .fluid-menu-toggle { background: var(--brand-accent); color: #FFFFFF; border-color: var(--brand-accent); }
@media (max-width: 380px) { .fluid-menu-item { width: 150px; padding: 0 14px; } .fluid-menu-label { font-size: 12px; } }

.mobile-sticky-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1400;
  background: var(--brand-accent);
  color: #FFFFFF;
  border-radius: var(--radius-button);
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-premium);
  transition: opacity 300ms;
}
.mobile-sticky-bar svg { width: 20px; height: 20px; flex: 0 0 20px; }
@media (max-width: 900px) { .mobile-sticky-bar { display: flex; } .mobile-sticky-bar.hidden { opacity: 0; pointer-events: none; } }

/* Video modal fallback: prevents a bare iframe from appearing as a giant block. */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 24px;
}
.video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.video-modal-content { position: relative; z-index: 1; width: 100%; max-width: 1000px; background: #000; border-radius: 16px; border: 1px solid var(--border-dark); box-shadow: var(--shadow-premium); }
.video-modal-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #FFFFFF; font-size: 32px; line-height: 1; cursor: pointer; }
.video-modal-iframe-wrapper { position: relative; width: 100%; padding-top: 56.25%; border-radius: 16px; overflow: hidden; }
.video-modal-iframe-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
