/* ============================================================
   SANNARTECH — GLOBAL COMPONENTS STYLESHEET
   Adaptado do Design System da Equipmax
   Plataforma: Reconstrução Limpa e Semântica
   Data: 2026-06-22 | Identidade SannarTech (Âmbar)
   ============================================================ */

:root {
  /* Layout Heights */
  --utility-height: 40px;
  --header-height: 70px;
  --header-scrolled-height: 60px;

  /* Custom component tokens */
  --color-border: rgba(36, 36, 36, 0.08);
  --color-border-hover: rgba(245, 155, 5, 0.35);
  --color-ink-muted: #767676;
}

@media (max-width: 768px) {
  :root {
    --utility-height: 48px;
    --header-height: 60px;
    --header-scrolled-height: 60px;
  }
}

/* ----------------------------------------------------------------
   1) UTILITY BAR
   ---------------------------------------------------------------- */
.utility-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--utility-height);
  z-index: 1002;
  background: #ffffff;
  color: #393939;
  font-size: var(--eqx-fs-xs, 0.825rem);
  font-weight: var(--eqx-fw-semibold, 600);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform var(--eqx-transition, 0.2s ease-out);
}

.utility-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  white-space: nowrap;
}

.utility-bar span:first-child {
  margin-right: auto;
  color: var(--eqx-primary-contrast, var(--color_primary_contrast, #B95500));
  font-weight: var(--eqx-fw-bold, 700);
}

.utility-bar a, 
.utility-bar span {
  color: #393939;
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
}

.utility-bar a {
  transition: color var(--eqx-transition, 0.2s ease-out);
}

.utility-bar a:hover {
  color: var(--eqx-primary-contrast, var(--color_primary_contrast, #B95500));
}

/* Clones do marquee da barra do topo: escondidos no desktop (barra estática) */
.utility-bar-inner .is-clone { display: none; }

@media (max-width: 768px) {
  /* No mobile a barra do topo vira um marquee suave (igual à faixa de Facilidades) */
  .utility-bar { overflow: hidden; }
  .utility-bar-inner {
    justify-content: flex-start;
    width: max-content;
    max-width: none;
    padding: 0;
    gap: 0;
    overflow: visible;
    animation: utility-scroll 22s linear infinite;
    will-change: transform;
  }
  .utility-bar:hover .utility-bar-inner { animation-play-state: paused; }
  .utility-bar-inner > * { flex: 0 0 auto; margin-right: 2rem; }
  .utility-bar span:first-child { margin-right: 2rem; } /* anula o margin-right:auto */
  .utility-bar-inner .is-clone { display: inline-flex; align-items: center; }
}

@keyframes utility-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .utility-bar-inner { animation: none; }
}

/* ----------------------------------------------------------------
   2) HEADER & NAVIGATION
   ---------------------------------------------------------------- */
.header {
  position: fixed;
  top: var(--utility-height);
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1001;
  background: rgba(57, 57, 57, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--eqx-shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.15));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all var(--eqx-transition, 0.2s ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  height: 100%;
  max-width: var(--eqx-container, 1300px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Scrolled Active State */
.header.scrolled {
  background: rgba(57, 57, 57, 0.98);
  height: var(--header-scrolled-height);
  box-shadow: var(--eqx-shadow, 0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Logo container & responsive switch */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: all var(--eqx-transition, 0.2s ease-out);
}

.logo:hover {
  opacity: 0.85;
}

.logo img {
  height: 34px;
  width: auto;
  transition: height var(--eqx-transition, 0.2s ease-out);
}

.logo-compact {
  display: none;
}

.header.scrolled .logo img {
  height: 32px;
}

@media (max-width: 575px) {
  .logo-horizontal {
    display: none;
  }
  .logo-compact {
    display: block;
    height: 30px !important;
  }
}

/* Navigation items & active indicator */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  height: 100%;
  margin-left: auto;
  min-width: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
  font-weight: var(--eqx-fw-semibold, 600);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.86);
  height: 100%;
  padding: 0 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all var(--eqx-transition, 0.2s ease-out);
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--eqx-primary, var(--color_primary, #F59B05));
  border-bottom-color: var(--eqx-primary, var(--color_primary, #F59B05));
}

/* Header CTAs */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-cta .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.header-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.header-cta .btn-outline:hover {
  border-color: var(--eqx-primary, #F59B05);
  background-color: var(--eqx-primary, #F59B05);
  color: #ffffff;
}

@media (min-width: 1200px) and (max-width: 1366px) {
  .header-inner {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a,
  .header-cta .btn {
    font-size: var(--eqx-fs-xs, 0.825rem);
  }

  .header-cta {
    gap: 0.5rem;
  }

  .header-cta .btn {
    padding: 0.65rem 0.9rem;
  }
}

@media (max-width: 1199px) {
  .nav,
  .header-cta {
    display: none !important;
  }
}

/* ----------------------------------------------------------------
   3) MOBILE MENU DRAWER & TOGGLE
   ---------------------------------------------------------------- */
/* Hamburger Toggle Button */
.menu-toggle {
  display: none;
  position: relative;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1005;
  padding: 0;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out, top 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { top: 16px; }

.menu-toggle.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

@media (max-width: 1199px) {
  .menu-toggle {
    display: block;
  }
}

/* Slide-in Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  z-index: 1004;
  background: var(--eqx-surface, var(--color_menu, #ffffff));
  border-left: 1px solid var(--color-border);
  box-shadow: -10px 0 30px rgba(23, 23, 23, 0.08);
  padding: calc(var(--utility-height) + var(--header-height) + 1.5rem) 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: right var(--eqx-transition-slow, 0.3s ease-out);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
  font-size: var(--eqx-fs-md, 1rem);
  font-weight: var(--eqx-fw-semibold, 600);
  color: var(--color_text_global, #393939);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--eqx-surface-alt, var(--color_gray_medium, #f2f2f2));
  transition: color var(--eqx-transition, 0.2s ease-out);
}

.mobile-menu a.active,
.mobile-menu a:hover {
  color: var(--eqx-primary-contrast, var(--color_primary_contrast, #B95500));
}

.mobile-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.mobile-cta .btn {
  width: 100%;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--eqx-transition-slow, 0.3s ease-out), visibility var(--eqx-transition-slow, 0.3s ease-out);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ----------------------------------------------------------------
   4) FOOTER & TRUST BADGES
   ---------------------------------------------------------------- */
.footer-clean {
  background: #171717;
  color: #ffffff;
  border-top: 4px solid var(--eqx-primary, var(--color_primary, #F59B05));
  padding: 4rem 0 3rem 0;
}

.footer-grid-clean {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 3rem;
}

@media (max-width: 991px) {
  .footer-grid-clean {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 575px) {
  .footer-grid-clean {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-clean h3, 
.footer-clean h4 {
  color: #ffffff;
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
  font-weight: var(--eqx-fw-bold, 700);
  font-size: var(--eqx-fs-md, 1rem);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--eqx-fs-sm, 0.875rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-clean ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-clean li {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--eqx-fs-sm, 0.875rem);
}

.footer-clean a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--eqx-transition, 0.2s ease-out);
}

.footer-clean a:hover {
  color: var(--eqx-primary, var(--color_primary, #F59B05));
}

.footer-logo {
  height: 34px;
  margin-bottom: 1.5rem;
  display: block;
}

/* Trust Badges */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(46, 158, 63, 0.34);
  border-radius: var(--eqx-radius, 6px);
  background: rgba(46, 158, 63, 0.12);
  color: #D9F7DE;
  font-size: var(--eqx-fs-2xs, 0.75rem);
  font-weight: var(--eqx-fw-semibold, 600);
}

/* Newsletter Capture Form in Footer */
.footer-newsletter {
  margin-top: 1.5rem;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--eqx-fs-xs, 0.825rem);
  margin-bottom: 0.75rem;
}

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  max-width: 320px;
}

.footer-newsletter input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 0.85rem;
  border-radius: var(--eqx-radius, 6px);
  color: #ffffff;
  font-size: var(--eqx-fs-sm, 0.875rem);
  transition: all var(--eqx-transition, 0.2s ease-out);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter input:focus {
  border-color: var(--eqx-primary, var(--color_primary, #F59B05));
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.footer-newsletter button {
  background-color: var(--eqx-primary-contrast, var(--color_primary_contrast, #B95500));
  color: #ffffff;
  border: none;
  padding: 0.65rem 1rem;
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
  font-weight: var(--eqx-fw-semibold, 600);
  font-size: var(--eqx-fs-sm, 0.875rem);
  border-radius: var(--eqx-radius, 6px);
  cursor: pointer;
  transition: background-color var(--eqx-transition, 0.2s ease-out);
}

.footer-newsletter button:hover {
  background-color: var(--eqx-primary-hover, #E47600);
}

@media (max-width: 575px) {
  .footer-newsletter form {
    flex-direction: column;
    max-width: 100%;
  }
}

/* ----------------------------------------------------------------
   5) "AGENDE UMA REUNIÃO" MODAL
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--eqx-transition-slow, 0.3s ease-out), visibility var(--eqx-transition-slow, 0.3s ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Supports toggling class 'active' directly on .modal wrapper */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal .modal-overlay {
  position: absolute;
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.modal-dialog {
  position: relative;
  z-index: 1102;
  width: 100%;
  max-width: 500px;
  margin: 1.5rem;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--eqx-transition-slow, 0.3s ease-out);
}

.modal-overlay.active .modal-dialog,
.modal.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-content {
  background-color: var(--eqx-surface, var(--color_menu, #ffffff));
  border-radius: var(--eqx-radius-md, 8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid var(--eqx-surface-alt, var(--color_gray_medium, #f2f2f2));
}

.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--eqx-surface-alt, var(--color_gray_medium, #f2f2f2));
  background-color: var(--eqx-surface-alt, var(--color_gray_medium, #f2f2f2));
}

.modal-header h3 {
  margin: 0;
  font-size: var(--eqx-fs-lg, 1.125rem);
  font-weight: var(--eqx-fw-bold, 700);
  color: var(--eqx-ink, var(--color_font_medium, #242424));
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--eqx-text, var(--color_text_global, #393939));
  cursor: pointer;
  transition: color var(--eqx-transition, 0.2s ease-out);
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--eqx-primary-contrast, var(--color_primary_contrast, #B95500));
}

.modal-body {
  padding: 1.5rem;
}

/* Form Styles inside Modal */
.modal-body .form-group {
  margin-bottom: 1.25rem;
}

.modal-body label {
  display: block;
  font-weight: var(--eqx-fw-semibold, 600);
  font-size: var(--eqx-fs-xs, 0.825rem);
  color: var(--eqx-ink, var(--color_font_medium, #242424));
  margin-bottom: 0.5rem;
}

.modal-body .form-input,
.modal-body .form-select,
.modal-body .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(36, 36, 36, 0.18);
  border-radius: var(--eqx-radius, 6px);
  font-size: var(--eqx-fs-sm, 0.875rem);
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
  background-color: #ffffff;
  color: var(--eqx-ink, var(--color_font_medium, #242424));
  transition: border-color var(--eqx-transition, 0.2s ease-out), box-shadow var(--eqx-transition, 0.2s ease-out);
}

.modal-body .form-input:focus,
.modal-body .form-select:focus,
.modal-body .form-textarea:focus {
  border-color: var(--eqx-primary-contrast, var(--color_primary_contrast, #B95500));
  box-shadow: 0 0 0 3px rgba(245, 155, 5, 0.12);
  outline: none;
}

/* ----------------------------------------------------------------
   6) FLOATING WHATSAPP BUTTON
   ---------------------------------------------------------------- */
.floating-whatsapp, 
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #166C28 0%, #1D8732 100%);
  color: #ffffff;
  border-radius: var(--eqx-radius-pill, 50px);
  padding: 0.5rem;
  box-shadow: 0 10px 22px rgba(46, 158, 63, 0.2);
  text-decoration: none;
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
  transition: all var(--eqx-transition, 0.2s ease-out);
  border: 1px solid rgba(46, 158, 63, 0.2);
  cursor: pointer;
}

.floating-whatsapp:hover, 
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(46, 158, 63, 0.3);
  color: #ffffff;
}

/* WhatsApp Icon Wrapper */
.floating-whatsapp__icon, 
.whatsapp-float svg {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--eqx-radius-circle, 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-whatsapp__icon i {
  font-size: 1.5rem;
}

/* If real SVG is present inside the icon */
.floating-whatsapp__icon svg, 
.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Expandable Bubble Message */
.whatsapp-bubble {
  padding: 0 1.25rem 0 0.75rem;
  font-size: var(--eqx-fs-xs, 0.825rem);
  font-weight: var(--eqx-fw-semibold, 600);
  color: #ffffff;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width var(--eqx-transition-slow, 0.3s ease-out), opacity var(--eqx-transition-slow, 0.3s ease-out);
}

.floating-whatsapp:hover .whatsapp-bubble {
  max-width: 300px;
  opacity: 1;
}

/* Standardized Round WhatsApp Float Trigger */
.whatsapp-float {
  width: 60px;
  height: 60px;
  border-radius: var(--eqx-radius-circle, 50%);
  justify-content: center;
  padding: 0;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  background-color: transparent;
}

/* Pulse animation to attract attention safely */
@keyframes wa-pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 158, 63, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(46, 158, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 158, 63, 0);
  }
}

.floating-whatsapp, 
.whatsapp-float {
  animation: wa-pulse-glow 2.5s infinite;
}

/* ----------------------------------------------------------------
   7) LGPD COOKIE CONSENT BANNER
   ---------------------------------------------------------------- */
.lgpd-banner {
  position: fixed;
  bottom: -150px;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: var(--eqx-surface, var(--color_menu, #ffffff));
  color: var(--eqx-ink, var(--color_font_medium, #242424));
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(23, 23, 23, 0.08);
  transition: bottom var(--eqx-transition-slow, 0.3s ease-out);
  padding: 1.25rem 0;
}

.lgpd-banner.show {
  bottom: 0;
}

.lgpd-banner-inner {
  max-width: var(--eqx-container, 1300px);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lgpd-text {
  font-family: var(--eqx-font, 'Montserrat', system-ui, sans-serif);
  font-size: var(--eqx-fs-sm, 0.875rem);
  line-height: 1.5;
  margin: 0;
  color: var(--eqx-text, var(--color_text_global, #393939));
}

.lgpd-text a {
  color: var(--eqx-primary-contrast, var(--color_primary_contrast, #B95500));
  text-decoration: underline;
  font-weight: var(--eqx-fw-semibold, 600);
}

.lgpd-text a:hover {
  color: var(--eqx-primary-hover, #E47600);
}

.lgpd-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lgpd-banner {
    padding: 1.5rem 0;
  }
  .lgpd-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .lgpd-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
