/**
 * BRAKEMATIC, LDA — Header, Navigation, Footer & Layout Grid
 */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: var(--space-4);
}

/* Brand Logo */
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-logo-img {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Primary Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-blue);
  text-decoration: none;
}

.nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-blue);
}

/* Header Actions (Language Switcher & Persistent CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface-muted);
  padding: 2px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.lang-btn {
  display: inline-block;
  padding: 4px 8px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.lang-btn:hover {
  color: var(--brand-blue);
  text-decoration: none;
}

.lang-btn.active {
  background-color: var(--surface);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

/* Persistent Quote CTA in Header */
.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--brand-blue);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle-icon {
  width: 22px;
  height: 2px;
  background-color: var(--brand-blue);
  position: relative;
  transition: background-color var(--transition-fast);
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: var(--brand-blue);
  left: 0;
  transition: transform var(--transition-normal);
}

.menu-toggle-icon::before {
  top: -7px;
}

.menu-toggle-icon::after {
  bottom: -7px;
}

/* Mobile Drawer (Accessible off-canvas navigation) */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 48, 109, 0.45);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--surface);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
  overflow-y: auto;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .mobile-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

body.drawer-open .mobile-drawer {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--brand-blue);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--surface-muted);
  color: var(--brand-blue);
  border-left-color: var(--brand-yellow);
  text-decoration: none;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: var(--space-5);
  border-top: 1px solid var(--border);
  background-color: var(--surface-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-12);
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-12);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-yellow);
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-blue);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

.hero-description {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 580px;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: var(--text-lg);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-8);
}

.hero-visual {
  width: 100%;
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Hero Pillars / Key Technical Strengths */
.hero-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .hero-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-item {
  border-left: 2px solid var(--brand-yellow);
  padding-left: var(--space-3);
}

.pillar-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: var(--space-1);
}

.pillar-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #00224E; /* Deep brand blue for structural grounding */
  color: #DDE2E8;
  border-top: 3px solid var(--brand-yellow);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-col-title::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--brand-yellow);
}

.footer-text {
  font-size: var(--text-sm);
  color: #BAC7D5;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: var(--text-sm);
  color: #BAC7D5;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-yellow);
  text-decoration: underline;
}

.footer-contact-item {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: #BAC7D5;
  margin-bottom: var(--space-3);
  line-height: var(--leading-normal);
}

.footer-contact-item strong {
  color: #FFFFFF;
  min-width: 70px;
}

.footer-contact-item a {
  color: #BAC7D5;
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--brand-yellow);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(221, 226, 232, 0.15);
  font-size: var(--text-xs);
  color: #8C9CAE;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-disclaimer {
  max-width: 650px;
  line-height: 1.4;
  margin: 0;
}
