/* =========================================================
   CENTUAL PREMIUM - 02 LAYOUT
   Sistema de Grid, Header, Sections, Footer
   ========================================================= */

/* ========================================
   BODY & HTML
   ======================================== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--centual-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ========================================
   HEADER (Glassmorphism Flotante)
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  z-index: 2;
  text-decoration: none;
}

.header-logo img {
  height: 36px;
  width: auto;
  transition: transform var(--transition-base) var(--ease-out);
}

.header-logo:hover img {
  transform: scale(1.03);
}

/* ========================================
   NAVIGATION
   ======================================== */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-fast) var(--ease-out);
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--centual-primary);
  transition: width var(--transition-base) var(--ease-out);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--centual-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: var(--z-fixed);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--centual-primary);
  transition: all var(--transition-base) var(--ease-out);
  border-radius: 1px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  position: relative;
  padding: var(--space-4xl) var(--space-lg);
  overflow: hidden;
}

.section-light {
  background: var(--centual-bg);
}

.section-subtle {
  background: var(--centual-subtle);
}

.section-dark {
  background: var(--centual-primary-dark);
  color: var(--text-on-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

.section-hero--short {
  min-height: 50vh;
  padding-top: calc(80px + var(--space-2xl));
  padding-bottom: var(--space-2xl);
}

.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header.text-center {
  text-align: center;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Hero CTA buttons */
.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-background video,
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  opacity: 0.4;
  filter: brightness(0.8);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(27, 20, 100, 0.75) 0%,
    rgba(27, 20, 100, 0.6) 50%,
    rgba(19, 14, 70, 0.8) 100%
  );
  z-index: 1;
}

/* Rounded video container */
.video-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.rounded-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

.rounded-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  opacity: 0.6;
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-lg {
  max-width: 1400px;
}

.container-sm {
  max-width: 800px;
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ========================================
   FLEX UTILITIES
   ======================================== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.items-center {
  align-items: center;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ========================================
   CTA SECTION
   ======================================== */
.section-cta {
  padding: var(--space-4xl) var(--space-lg);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--centual-primary-dark);
  color: var(--text-on-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-description {
  font-size: var(--text-sm);
  opacity: 0.7;
  line-height: 1.7;
  max-width: 280px;
}

.footer-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  opacity: 0.6;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-legal a:hover {
  color: white;
}

/* ========================================
   INDUSTRY SECTION
   ======================================== */
.industry-section {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.industry-section:last-child {
  border-bottom: none;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: var(--space-4xl) var(--space-xl);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: var(--z-modal);
  }

  .header-nav.active {
    display: flex;
  }

  .header-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-section .grid-2 {
    gap: var(--space-xl);
  }

  .industry-section .grid-2 > div[style*="order"] {
    order: unset !important;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 640px) {
  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .section-hero {
    padding-top: calc(70px + var(--space-xl));
  }

  .section-hero--short {
    min-height: 40vh;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .header-container {
    padding: var(--space-sm) var(--space-md);
  }

  .header-logo img {
    height: 30px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
