/* ==========================================================================
   JFM ENGENHARIA E SERVIÇOS - ESTILOS PRINCIPAIS
   Código Nativo, Ultrarrápido e Otimizado
   ========================================================================== */

/* --- Importação de Fontes Google --- */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variáveis do Sistema --- */
:root {
  --color-primary: #DA1111;
  --color-primary-dark: #B50D0D;
  --color-primary-hover: #E51515;
  --color-dark: #0A0A0A;
  --color-dark-surface: #121212;
  --color-dark-card: #181818;
  --color-gray-dark: #222222;
  --color-gray: #666666;
  --color-gray-light: #9CA3AF;
  --color-gray-border: #E5E7EB;
  --color-bg-light: #F9FAFB;
  --color-white: #FFFFFF;
  --color-text-main: #111827;
  --color-text-muted: #4B5563;

  --font-heading: 'Chakra Petch', sans-serif;
  --font-body: 'Chakra Petch', sans-serif;
  --font-sans: 'Inter', sans-serif;

  --container-max-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
}

/* --- Reset e Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

body {
  color-scheme: light;
  line-height: 1.5;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-red {
  color: var(--color-primary) !important;
}

.text-white {
  color: var(--color-white) !important;
}

/* ==========================================================================
   TELA DE CARREGAMENTO (PRELOADER)
   ========================================================================== */
.loading-screen {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.counter {
  position: fixed;
  left: 10vw;
  bottom: 10vh;
  display: flex;
  height: 100px;
  font-size: 100px;
  line-height: 100px;
  clip-path: polygon(0 0, 100% 0, 100% 100px, 0 100px);
  font-weight: 700;
  color: #3B3B3B;
  font-family: var(--font-heading);
  overflow: hidden;
}

.counter-1, .counter-2, .counter-3, .counter-4 {
  position: relative;
  top: 0px;
}

.counter .num {
  height: 100px;
  line-height: 100px;
  display: block;
  text-align: center;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 10px;
  transform: translate(-50%, -50%);
  display: flex;
  background: #3B3B3B;
}

.loader-1 {
  position: relative;
  background: var(--color-primary);
  width: 100%;
  overflow: hidden;
}

.bar {
  height: 10px;
}

@media (max-width: 768px) {
  .counter {
    left: 5vw;
    bottom: 5vh;
    font-size: 60px;
    height: 60px;
    line-height: 60px;
    clip-path: polygon(0 0, 100% 0, 100% 60px, 0 60px);
  }

  .counter .num {
    height: 60px;
    line-height: 60px;
  }
}

/* ==========================================================================
   CABEÇALHO & NAVBAR FLUTUANTE
   ========================================================================== */
.site-header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  background: transparent;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled .nav-link {
  color: var(--color-text-main);
}

.site-header.scrolled .mobile-toggle {
  color: var(--color-text-main);
}

.site-header.scrolled .nav-pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.site-logo {
  display: flex;
  align-items: center;
  margin-left: 0;
  position: relative;
}

/* Custom Notch Shape (All devices) */
.hero-notch-block, .hero-notch-curve-left, .hero-notch-curve-right {
  display: block;
  position: absolute;
  background: #ffffff;
  z-index: 5;
  pointer-events: none;
}

.hero-notch-block {
  top: -1px;
  left: -1px;
  width: calc(min(100px, max(0px, 50vw - 600px)) + 211px); 
  height: 90px; 
  border-bottom-right-radius: 32px;
}

.hero-notch-curve-left {
  top: 89px;
  left: -1px;
  width: 32px;
  height: 32px;
  background: transparent;
  border-top-left-radius: 32px;
  box-shadow: -16px -16px 0 16px #ffffff;
}

.hero-notch-curve-right {
  top: -1px;
  left: calc(min(100px, max(0px, 50vw - 600px)) + 209px);
  width: 32px;
  height: 32px;
  background: transparent;
  border-top-left-radius: 32px;
  box-shadow: -16px -16px 0 16px #ffffff;
}

@media (min-width: 993px) {
  .hero-notch-block {
    height: 101px;
    border-bottom-right-radius: 40px;
  }
  .hero-notch-curve-left {
    top: 99px;
    width: 40px;
    height: 40px;
    border-top-left-radius: 40px;
    box-shadow: -20px -20px 0 20px #ffffff;
  }
  .hero-notch-curve-right {
    width: 40px;
    height: 40px;
    border-top-left-radius: 40px;
    box-shadow: -20px -20px 0 20px #ffffff;
  }
}

.site-logo img {
  height: 48px;
  width: auto;
}

/* Pílula de navegação central translúcida */
.nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.nav-pill:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.07) 100%);
  transform: translateX(-50%) scale(1.02);
}

.nav-link {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

/* Botão Orçamento JFM */
.btn-jfm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 54px 0 24px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(218, 17, 17, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-jfm::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: var(--color-white);
  border-radius: 50%;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23D31212' d='M19 6c0-1.104-.896-2-2-2H8v2.5h6.719L4.469 16.75l1.781 1.781L16.5 8.281V15H19V6z'/></svg>");
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-jfm:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(218, 17, 17, 0.45);
}

.btn-jfm:hover::after {
  transform: translateY(-50%) scale(1.08);
}

.header-btn {
  margin-right: 0;
}

/* Botão Hamburger Mobile */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.site-header.scrolled .lang-switch {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.site-header.scrolled .lang-btn {
  color: var(--color-text-main);
}

.lang-btn:hover, .lang-btn.active {
  opacity: 1;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.site-header.scrolled .lang-sep {
  color: rgba(0, 0, 0, 0.2);
}

/* Esconder a barra superior e balões do Google Translate */
body { top: 0 !important; position: static !important; }
.goog-te-banner-frame, 
iframe.goog-te-banner-frame, 
.goog-te-gadget, 
.goog-tooltip,
#goog-gt-tt,
.goog-te-balloon-frame { 
  display: none !important; 
  visibility: hidden !important;
  opacity: 0 !important;
}
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }
body.translated-ltr { margin-top: 0 !important; padding-top: 0 !important; }


.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.mobile-toggle svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Menu Gaveta Mobile Premium */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 24px 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: hidden;
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mobile-drawer-logo {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-drawer-close:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
}

.mobile-drawer-close svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin-top: 40px;
  width: 100%;
}

.mobile-nav-links .nav-link,
.mobile-nav-links .mobile-orcamento-btn {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  text-transform: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mobile-drawer.active .mobile-nav-links .nav-link,
.mobile-drawer.active .mobile-nav-links .mobile-orcamento-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.mobile-nav-links .nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-links .nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-links .nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-links .nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-links .nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-links .mobile-orcamento-btn { transition-delay: 0.35s; }

.mobile-nav-links .nav-num {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-top: 10px;
  font-family: var(--font-mono, monospace);
}

.mobile-nav-links .nav-link:active {
  color: var(--color-primary);
}

.mobile-orcamento-btn {
  font-size: 1.1rem !important;
  margin-top: 20px !important;
  padding: 16px 32px;
  background: var(--color-primary);
  border-radius: 100px;
  justify-content: center;
  align-items: center !important;
  gap: 0 !important;
}

.mobile-drawer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.mobile-drawer.active .mobile-drawer-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-lang {
  margin: 0 !important;
}

.mobile-socials {
  display: flex;
  gap: 16px;
}

.mobile-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.mobile-social-icon:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.mobile-social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   HERO SECTION (CARD MASCARADO NOTCHED)
   ========================================================================== */
.hero-wrapper {
  padding: 20px 24px 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.hero-card {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: clamp(620px, 82vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
  border-radius: 36px;
  border-top-left-radius: 0;
  
  /* Safari/Chrome fixes for clipping videos with border-radius */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero-video-desktop {
  display: block;
}

.hero-video-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-video-desktop {
    display: none !important;
  }
  .hero-video-mobile {
    display: block !important;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  box-sizing: border-box;
}

.hero-inner {
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 36px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  animation: bounceDown 2s infinite ease-in-out;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes bounceDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ==========================================================================
   TIPOGRAFIA & CABEÇALHOS DE SEÇÃO
   ========================================================================== */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-main);
  margin-bottom: 18px;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray);
  max-width: 720px;
}

/* ==========================================================================
   01 // SEÇÃO SERVIÇOS (CARDS GRID)
   ========================================================================== */
.section-servicos {
  padding: 110px 0;
  background-color: var(--color-white);
}

@media (max-width: 640px) {
  .section-servicos {
    padding: 60px 0 40px;
  }

  .section-servicos .container {
    padding-left: 0;
    padding-right: 0;
  }

  .section-servicos .section-header-flex {
    padding: 0 20px;
  }
}

.section-header {
  margin-bottom: 50px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}

.section-header-flex .header-left {
  max-width: 650px;
}

.section-header-flex .header-right {
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
}

.nav-arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-arrow-btn:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

.nav-arrow-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cards-grid-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  width: 100%;
  padding: 0 20px 24px;
  box-sizing: border-box;
  scrollbar-width: none;
}

.cards-grid-wrapper::-webkit-scrollbar {
  display: none;
}

.awwwards-card {
  position: relative;
  flex: 0 0 85vw;
  max-width: 320px;
  scroll-snap-align: start;
  border-radius: 32px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 641px) {
  .cards-grid-wrapper {
    padding: 0 0 24px;
    gap: 24px;
  }
  .awwwards-card {
    flex: 0 0 clamp(300px, 30vw, 340px);
    max-width: none;
    border-radius: 40px;
  }
}

.awwwards-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.awwwards-card .card-image-wrapper {
  width: 100%;
  height: 380px;
  position: relative;
  margin-bottom: 0;
}

.awwwards-card .card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.awwwards-card:hover .card-bg {
  transform: scale(1.08);
}

.awwwards-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  text-align: left;
  box-sizing: border-box;
  pointer-events: none;
}

.cards-grid-wrapper .awwwards-card .card-content {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 100%);
  padding-top: 100px;
}

.awwwards-card .card-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.8px;
  margin: 0 0 12px 0;
}

.awwwards-card .card-description {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}

.awwwards-card .card-title,
.awwwards-card .card-description {
  transition: transform 0.4s ease;
}

.awwwards-card:hover .card-title,
.awwwards-card:hover .card-description {
  transform: translateY(-6px);
}

/* ==========================================================================
   SEÇÃO ISO 9001 (GSAP SCROLL PIN REVEAL)
   ========================================================================== */
.jfm-pin-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  box-sizing: border-box;
  overflow: hidden;
  padding: 80px 24px;
}

.jfm-reveal-wrapper {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.jfm-reveal-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.4;
  margin: 0;
  padding: 0;
  text-align: left;
}

.jfm-reveal-text .word {
  display: inline;
  color: #D1D5DB;
  transition: color 0.1s ease;
}

@media (max-width: 768px) {
  .jfm-pin-section {
    min-height: 80vh;
    padding: 30px 20px;
  }
  .jfm-reveal-text {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    line-height: 1.35;
  }
}

/* ==========================================================================
   02 // SEÇÃO SOBRE NÓS
   ========================================================================== */
.section-sobre {
  padding: 110px 0;
  background-color: var(--color-bg-light);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sobre-image-wrapper {
  position: relative;
  display: flex;
}

.sobre-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.sobre-image-wrapper:hover img {
  transform: scale(1.02);
}

.sobre-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-border);
}

.counter-box {
  display: flex;
  flex-direction: column;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.counter-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   03 // SEÇÃO METODOLOGIA (TIMELINE)
   ========================================================================== */
.section-metodologia {
  padding: 110px 0;
  background-color: var(--color-white);
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  box-sizing: border-box;
}

.timeline-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-line {
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--color-primary);
  z-index: 1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-wrapper.active .timeline-line {
  transform: scaleX(1);
}

.timeline-item {
  flex: 1;
  padding: 0 25px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.timeline-item:first-child { padding-left: 0; }
.timeline-item:last-child { padding-right: 0; }

.timeline-dot-wrapper {
  height: 33px;
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 3;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 3.5px solid var(--color-primary);
  border-radius: 50%;
  box-sizing: border-box;
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-wrapper.active .timeline-dot {
  transform: scale(1);
}

.timeline-content {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-wrapper.active .timeline-content {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.timeline-content p {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-gray);
  margin: 0;
  font-weight: 400;
}

.timeline-wrapper.active .timeline-item:nth-child(1) .timeline-dot { transition-delay: 0.1s; }
.timeline-wrapper.active .timeline-item:nth-child(1) .timeline-content { transition-delay: 0.25s; }
.timeline-wrapper.active .timeline-item:nth-child(2) .timeline-dot { transition-delay: 0.45s; }
.timeline-wrapper.active .timeline-item:nth-child(2) .timeline-content { transition-delay: 0.6s; }
.timeline-wrapper.active .timeline-item:nth-child(3) .timeline-dot { transition-delay: 0.8s; }
.timeline-wrapper.active .timeline-item:nth-child(3) .timeline-content { transition-delay: 0.95s; }

/* ==========================================================================
   04 // SEÇÃO CASES (BENTO GRID + LIGHTBOX)
   ========================================================================== */
.section-cases {
  padding: 110px 0;
  background-color: var(--color-bg-light);
}

.bento-grid-wrapper {
  width: 100%;
  margin-top: 48px;
}

.bento-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: #f2f2f2;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-card:hover img {
  transform: scale(1.08);
}

.bento-main-card   { grid-column: 1 / 9;   grid-row: 1; aspect-ratio: 16 / 10; }
.item-top          { grid-column: 9 / 13;  grid-row: 1; aspect-ratio: 4 / 5; }
.item-cyl-a        { grid-column: 1 / 5;   grid-row: 2; aspect-ratio: 1 / 1; }
.item-cyl-b        { grid-column: 5 / 9;   grid-row: 2; aspect-ratio: 1 / 1; }
.item-prata        { grid-column: 9 / 13;  grid-row: 2; aspect-ratio: 1 / 1; }
.item-bottom-left  { grid-column: 1 / 5;   grid-row: 3; aspect-ratio: 9 / 10; }
.item-wheel        { grid-column: 5 / 13;  grid-row: 3; aspect-ratio: 18 / 10; }

.bento-layout-mirrored .bento-main-card   { grid-column: 5 / 13; grid-row: 1; aspect-ratio: 16 / 10; }
.bento-layout-mirrored .item-top          { grid-column: 1 / 5;  grid-row: 1; aspect-ratio: 4 / 5; }
.bento-layout-mirrored .item-cyl-a        { grid-column: 9 / 13; grid-row: 2; aspect-ratio: 1 / 1; }
.bento-layout-mirrored .item-cyl-b        { grid-column: 5 / 9;  grid-row: 2; aspect-ratio: 1 / 1; }
.bento-layout-mirrored .item-prata        { grid-column: 1 / 5;  grid-row: 2; aspect-ratio: 1 / 1; }
.bento-layout-mirrored .item-bottom-left  { grid-column: 9 / 13; grid-row: 3; aspect-ratio: 9 / 10; }
.bento-layout-mirrored .item-wheel        { grid-column: 1 / 9;  grid-row: 3; aspect-ratio: 18 / 10; }

/* Lightbox Modal */
.bento-lightbox {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-lightbox.active {
  display: flex;
  opacity: 1;
}

.bento-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.bento-lightbox.active .bento-lightbox-img {
  transform: scale(1);
}

.bento-lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #ffffff;
  font-size: 44px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

.bento-lightbox-close:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

/* ==========================================================================
   05 // SEÇÃO CLIENTES (MARQUEE INFINITO)
   ========================================================================== */
.section-clientes {
  padding: 90px 0;
  background-color: var(--color-white);
}

.jfm-marquee-section {
  position: relative;
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.jfm-marquee-section::before,
.jfm-marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15vw;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.jfm-marquee-section::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.jfm-marquee-section::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.jfm-marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.jfm-marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  will-change: transform;
  animation: jfmPureLoop 35s linear infinite;
}

.jfm-marquee-section:hover .jfm-marquee-track {
  animation-play-state: paused;
}

.servicos-track {
  animation: jfmPureLoop 40s linear infinite;
}

.servicos-track .awwwards-card {
  opacity: 1 !important;
  transform: none !important;
  /* keep transition for hover */
}

.jfm-logo-card {
  flex: 0 0 auto;
  width: 250px;
}

.jfm-card-inner {
  position: relative;
  height: 110px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.jfm-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.jfm-card-inner:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.12);
}

.jfm-card-inner:hover img {
  transform: scale(1.06);
}

@keyframes jfmPureLoop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-50% - 16px), 0, 0); }
}

/* ==========================================================================
   SEÇÃO CONTATO (EXATO AO FIGMA)
   ========================================================================== */
.section-contato {
  padding: 140px 0 90px;
  background-color: #FFFFFF;
  position: relative;
}

.contato-figma-card {
  background-color: var(--color-primary);
  border-radius: 36px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 25px;
  align-items: stretch;
  box-shadow: 0 20px 50px rgba(218, 17, 17, 0.22);
}

.contato-engineer-col {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  padding-left: 20px;
  overflow: visible;
}

.contato-engineer-img {
  width: 100%;
  max-width: 565px;
  height: auto;
  object-fit: contain;
  object-position: bottom left;
  display: block;
  margin-left: -10px;
  margin-bottom: 0;
  border-bottom-left-radius: 36px;
  position: relative;
  z-index: 5;
  filter: none;
  transform: none;
}

.contato-form-col {
  height: 100%;
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.contato-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.1vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  color: #FFFFFF;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
  text-wrap: balance;
  width: 100%;
  max-width: 460px;
}

.contato-card-title strong,
.contato-card-title .title-dark-word {
  font-weight: 800;
  color: #111111 !important;
}

.contato-card-sub {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 22px 0;
  font-weight: 400;
}

.contato-figma-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}

.figma-input,
.figma-textarea {
  width: 100%;
  background-color: #FFFFFF;
  color: #111111;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0 16px;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.figma-input {
  height: 42px;
}

.figma-textarea {
  padding: 10px 16px;
  min-height: 76px;
  resize: vertical;
}

.figma-input::placeholder,
.figma-textarea::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.figma-input:focus,
.figma-textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.btn-figma-enviar {
  background-color: #262626;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  padding: 12px 34px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-figma-enviar:hover {
  background-color: #0F0F0F;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-figma-enviar:active {
  transform: translateY(0);
}

.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.form-feedback.success {
  background: #ffffff;
  color: #065F46;
  font-weight: 600;
}

.form-feedback.error {
  background: #ffffff;
  color: #991B1B;
  font-weight: 600;
}

/* ==========================================================================
   RODAPÉ (FOOTER - EXATO AO FIGMA)
   ========================================================================== */
.site-footer {
  padding: 30px 0 36px;
  background-color: #333333;
  color: #E5E7EB;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  flex-wrap: nowrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-left p {
  margin: 0;
  color: #E5E7EB;
  font-size: 0.92rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-link {
  color: var(--color-gray-light);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link-underline {
  text-decoration: underline;
}

.footer-dev-wrapper {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--color-gray-light);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap !important;
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.footer-dev-wrapper span {
  white-space: nowrap !important;
  display: inline-block;
  line-height: 1;
}

.footer-dev-wrapper:hover {
  color: #ffffff;
}

.footer-dev-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1;
}

.footer-dev-logo img {
  height: 22px;
  width: auto;
  filter: brightness(0.95);
  transition: transform 0.3s ease, filter 0.3s ease;
  vertical-align: middle;
  display: block;
}

.footer-dev-wrapper:hover .footer-dev-logo img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* ==========================================================================
   ANIMAÇÕES CHIC (AWWARDS TEXT BLUR REVEAL)
   ========================================================================== */
.awwwards-title-chic:not(.gsap-ready) {
  opacity: 0;
}

.awwwards-word {
  display: inline-block;
  white-space: nowrap;
}

.awwwards-char {
  display: inline-block;
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
  color: inherit;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .page-sobre .hero-notch-curve-left {
    top: 100px;
    left: -1px;
    width: 40px;
    height: 40px;
    border-radius: 0;
    box-shadow: none;
    background: radial-gradient(circle at bottom right, transparent 40px, #ffffff 40px);
    display: block !important;
  }

  
  .bento-layout {
    grid-template-columns: repeat(6, 1fr);
    height: auto;
    gap: 16px;
  }
  
  .bento-main-card,
  .item-top, .item-cyl-a, .item-cyl-b, .item-prata,
  .item-bottom-left, .item-wheel,
  .bento-layout-mirrored .bento-main-card,
  .bento-layout-mirrored .item-top, 
  .bento-layout-mirrored .item-cyl-a, 
  .bento-layout-mirrored .item-cyl-b, 
  .bento-layout-mirrored .item-prata,
  .bento-layout-mirrored .item-bottom-left, 
  .bento-layout-mirrored .item-wheel {
    grid-column: 1 / 7;
    grid-row: auto;
  }
  
  .bento-main-card,
  .item-top, 
  .item-cyl-a, .item-cyl-b, .item-prata, 
  .item-bottom-left, .item-wheel,
  .bento-layout-mirrored .bento-main-card,
  .bento-layout-mirrored .item-top, 
  .bento-layout-mirrored .item-cyl-a, 
  .bento-layout-mirrored .item-cyl-b, 
  .bento-layout-mirrored .item-prata, 
  .bento-layout-mirrored .item-bottom-left, 
  .bento-layout-mirrored .item-wheel { 
    height: 320px !important; 
    grid-column: 1 / 7 !important; 
    aspect-ratio: auto !important; 
  }
}

@media (max-width: 860px) {
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .site-header {
    top: 10px;
    padding: 10px 0;
  }

  .header-container {
    padding: 0 16px;
  }

  .hero-wrapper {
    padding: 10px 12px 16px;
    border-radius: 28px;
  }

  .hero-card {
    clip-path: none;
    height: auto;
    min-height: 800px;
    border-radius: 20px;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.85) 100%);
  }

  .hero-content {
    padding: 70px 16px 36px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 28px;
  }

  .nav-pill, .btn-jfm.header-btn {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contato-figma-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
    align-items: flex-end; /* Ensure items align to the bottom */
    overflow: hidden; /* Prevent image from breaking bottom rounded corners */
  }

  .contato-form-col {
    order: 1; /* Form on top */
    padding: 40px 24px 0px; /* Padding only on top/sides */
  }

  .contato-engineer-col {
    order: 2; /* Engineer on bottom */
    padding-left: 0;
    margin-top: 20px; /* Space between form and image */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .contato-engineer-img {
    max-height: 400px;
    width: 100%; /* Fit inside container */
    margin-left: 0;
    margin-top: 0;
    margin-bottom: -5px; /* Pull down slightly to ensure flush with bottom */
    transform: none;
    filter: none;
    -webkit-mask-image: none;
    mask-image: none;
    display: block;
  }

  .contato-figma-form {
    max-width: 100%;
  }

  .timeline-container {
    flex-direction: column;
    gap: 40px;
  }

  .timeline-line {
    width: 2px;
    height: 100%;
    left: 28px;
    top: 0;
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .timeline-wrapper.active .timeline-line {
    transform: scaleY(1);
  }

  .timeline-item {
    flex-direction: row;
    gap: 20px;
    padding: 0 !important;
  }

  .timeline-dot-wrapper {
    margin-bottom: 0;
    width: 20px;
    justify-content: center;
  }

  .timeline-content {
    transform: translateX(20px);
  }

  .timeline-wrapper.active .timeline-content {
    transform: translateX(0);
  }

  .timeline-wrapper.active .timeline-item:nth-child(1) .timeline-content { transition-delay: 0.25s; }
  .timeline-wrapper.active .timeline-item:nth-child(2) .timeline-content { transition-delay: 0.6s; }
  .timeline-wrapper.active .timeline-item:nth-child(3) .timeline-content { transition-delay: 0.95s; }
}

@media (max-width: 640px) {

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

  .counter-value {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  }

  .counter-label {
    font-size: 0.72rem;
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }

  .item-cyl-a, .item-cyl-b, .item-prata {
    grid-column: 1 / 7;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 10px;
    white-space: normal;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    white-space: normal;
  }
}

/* ==========================================================================
   PÁGINA: SOBRE NÓS (sobre.html)
   ========================================================================== */
.page-sobre {
  background-color: #ffffff;
  padding-top: 0;
}

.page-sobre .site-header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 14px 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 100;
  transition: background 0.3s ease, padding 0.3s ease, border 0.3s ease;
}

.page-sobre .site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Removed margin-left to align perfectly with index.html */

.page-sobre .sobre-hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 20px auto 60px;
  padding: 0 24px;
  box-sizing: border-box;
}

.page-sobre .sobre-team-banner {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  height: 320px;
}

.page-sobre .sobre-team-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 65%;
  border-radius: 20px;
}

.mobile-only-notch {
  display: block;
}

@media (max-width: 992px) {
  .page-sobre .sobre-hero-wrapper {
    padding: 10px 12px 16px;
    margin-top: 0;
  }
  
  .page-sobre .sobre-team-banner {
    border-radius: 20px;
    border-top-left-radius: 0;
    overflow: hidden;
    height: 400px;
  }
  
  .page-sobre .sobre-team-banner img {
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 0;
  }
  
  .mobile-only-notch {
    display: block !important;
  }
}

.sobre-quem-somos {
  margin-bottom: 80px;
}

.sobre-quem-somos .section-tag {
  color: var(--color-primary);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.sobre-quem-somos .section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.sobre-quem-somos .section-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: #3B3B3B;
  max-width: 100%;
}

/* Grid de Cards: Missão, Visão, Valores */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 100px;
}

.mvv-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(218, 17, 17, 0.15);
  background-color: var(--color-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 80px 32px 30px;
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 32px;
  background-image: url('data:image/svg+xml;utf8,<svg width="160" height="32" viewBox="0 0 160 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0C25 0 30 32 50 32H110C130 32 135 0 160 0Z" fill="%23ffffff"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(218, 17, 17, 0.28);
}

.mvv-card-content {
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.mvv-card-content p {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.mvv-card-title {
  position: absolute;
  bottom: -15px;
  right: -5px;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
  z-index: 2;
}

/* Seção Pilares & Diretrizes (Box Vermelho) */
.pilares-box {
  background-color: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 70px 60px;
  color: #ffffff;
  margin-bottom: 100px;
  box-shadow: 0 24px 60px rgba(218, 17, 17, 0.25);
}

.pilares-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: flex-start;
}

.pilares-info .section-tag {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.pilares-info .section-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #000000;
  margin-bottom: 18px;
}

.pilares-info .section-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: #ffffff;
}

/* Sanfona / Acordeão */
.pilares-accordion {
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.accordion-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease, padding-left 0.3s ease;
}

.accordion-header:hover {
  transform: translateX(6px);
}

.accordion-header.active {
  padding-left: 8px;
  font-weight: 600;
}

.accordion-arrow {
  font-size: 1.4rem;
  font-weight: 300;
  color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.accordion-header.active .accordion-arrow {
  transform: rotate(90deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.accordion-content {
  padding-bottom: 24px;
  padding-left: 8px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.65;
}

.accordion-content p {
  margin-bottom: 12px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PÁGINA: POLÍTICA DE PRIVACIDADE (politica-de-privacidade.html)
   ========================================================================== */



.page-privacidade {
  background-color: #fbfbfb;
  padding-top: 130px;
}

.page-privacidade main {
  padding-bottom: 100px;
}

.privacidade-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 60px 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.privacidade-header {
  border-bottom: 1px solid var(--color-gray-border);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.privacidade-header .section-tag {
  color: var(--color-primary);
}

.privacidade-header .section-title {
  margin-bottom: 10px;
}

.privacidade-meta {
  font-size: 0.92rem;
  color: var(--color-gray);
  font-family: var(--font-sans);
}

.privacidade-content {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.8;
  color: #374151;
}

.privacidade-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 36px;
  margin-bottom: 14px;
}

.privacidade-content p {
  margin-bottom: 16px;
}

.privacidade-content ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.privacidade-content li {
  margin-bottom: 8px;
}

/* Responsividade específica para Sobre e Privacidade */
@media (max-width: 991px) {
  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .mvv-card-content {
    top: 22%;
    padding: 0 24px;
  }

  .pilares-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pilares-box {
    padding: 40px 30px;
  }

  .privacidade-box {
    padding: 40px 24px;
  }
}

@media (max-width: 992px) {
  .hero-card {
    border-top-left-radius: 36px;
  }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: auto;
  right: 24px;
  transform: none;
  width: 90%;
  max-width: 500px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  bottom: 24px;
  opacity: 1;
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.cookie-content p {
  color: var(--color-white);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.btn-cookie {
  padding: 0 54px 0 24px; /* Restaura o padding direito para a seta */
  height: 48px;
  font-size: 0.9rem;
  border-radius: 8px;
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  .cookie-banner {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
  .cookie-banner.show {
    bottom: 16px;
  }
}

/* Ajustes Header Política de Privacidade */
.page-privacidade .site-header {
  position: fixed !important;
  top: 0 !important;
  background: rgba(10, 10, 10, 0.95) !important;
  padding: 14px 0 !important;
}

.page-privacidade .site-header .nav-link {
  color: var(--color-white) !important;
}

.page-privacidade .site-header .lang-btn {
  color: var(--color-white) !important;
}

.page-privacidade .nav-pill {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  /* Centraliza perfeitamente o menu no header fixed */
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.page-privacidade .nav-pill:hover {
  transform: translate(-50%, -50%) scale(1.02) !important;
}

/* ==========================================================================
   SEÇÃO ISO 9001
   ========================================================================== */
.section-iso9001 {
  padding: 100px 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.iso-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.iso-content {
  flex: 1;
}

.iso-image {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iso-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
  transition: transform 0.5s ease;
}

.iso-image:hover img {
  transform: translateY(-10px);
}

@media (max-width: 992px) {
  .section-iso9001 {
    padding: 60px 0;
  }
  .iso-grid {
    flex-direction: column;
    text-align: left;
    gap: 40px;
  }
  .iso-image {
    flex: 0 0 auto;
    width: 100%;
    order: -1; /* Coloca a imagem em cima no mobile se quiser, mas o padrão é manter embaixo: order não definido. */
  }
  .iso-image img {
    max-width: 250px;
  }
}


@media (max-width: 1024px) {
  .page-sobre .hero-notch-block {
    width: 220px;
    height: 101px;
    top: -1px;
    left: -1px;
    border-bottom-right-radius: 40px;
  }
  
  .page-sobre .hero-notch-curve-right {
    top: -1px;
    left: 219px;
    width: 40px;
    height: 40px;
    border-radius: 0;
    box-shadow: none;
    background: radial-gradient(circle at bottom right, transparent 40px, #ffffff 40px);
  }
}
/* ==========================================================================
   SELO ISO 9001 ANIMADO
   ========================================================================== */
.badge { width: min(78vw, 360px); cursor: pointer; margin: 0 auto; }
.badge svg { width: 100%; height: auto; display: block; overflow: visible; }
.badge svg * { transform-box: fill-box; transform-origin: center; }
.badge .spin { transform-box: view-box; transform-origin: 200px 200px; }
.badge .arc { font-family: 'Chivo', Arial, sans-serif; font-weight: 400; font-size: 21px; letter-spacing: 5px; fill: #F4301F; }
.badge .iso { font-family: 'Chivo', Impact, sans-serif; font-weight: 900; font-size: 92px; fill: #fff; letter-spacing: 1px; }
.badge .num { font-family: 'Chivo', Impact, sans-serif; font-weight: 700; font-size: 44px; fill: #fff; letter-spacing: 1px; }

.badge.play .disc   { animation: pop .7s cubic-bezier(.2,.9,.3,1.2) both; }
.badge.play .core   { animation: stamp .75s cubic-bezier(.2,1.4,.4,1) .25s both; }
.badge.play .ring   { stroke-dasharray: 580; animation: draw 1.1s ease-out .7s both; }
.badge.play .t-iso  { animation: rise .55s ease-out .85s both; }
.badge.play .t-num  { animation: rise .55s ease-out 1.05s both; }
.badge.play .top    { animation: swing-top .9s cubic-bezier(.2,.8,.2,1) 1.1s both; }
.badge.play .bottom { animation: swing-bot .9s cubic-bezier(.2,.8,.2,1) 1.1s both; }
.badge.play .star   { animation: star-pop .5s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(1.6s + var(--i) * .09s); }

.badge.play .shine  { animation: sweep 5s ease-in-out 2.6s infinite; }
.badge.play .float  { animation: float 5s ease-in-out 2.2s infinite; }

@keyframes pop       { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes stamp     { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes draw      { from { stroke-dashoffset: 580; } to { stroke-dashoffset: 0; } }
@keyframes rise      { from { transform: translateY(14px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swing-top { from { transform: rotate(-35deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes swing-bot { from { transform: rotate(35deg);  opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes star-pop  { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes sweep     { 0%, 55% { transform: translateX(-260px); } 85%, 100% { transform: translateX(260px); } }
@keyframes float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .badge.play * { animation: none !important; }
}
