/* ==========================================================================
   GRUPO CAPRICHO VEÍCULOS - ESTILOS PRINCIPAIS
   Fidelidade visual, estética automotiva premium e micro-interações fluidas
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* --- VARIÁVEIS DO TEMA --- */
:root {
  --bg-main: #080808;
  --bg-surface: #0d0d0d;
  --bg-card: #141414;
  --bg-card-hover: #181818;
  
  --text-primary: #ffffff;
  --text-secondary: #c8c8c8;
  --text-muted: #999999;
  --text-dark: #000000;

  --accent-blue: #009be6;
  --accent-blue-glow: rgba(0, 155, 230, 0.4);
  --accent-cyan: #38bdf8;
  --accent-neon: #e0f2fe;

  --border-line: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-card: rgba(255, 255, 255, 0.08);

  --font-display: 'Raleway', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max-width: 1180px;
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    linear-gradient(135deg, #090909 0%, #101010 42%, #080808 100%),
    radial-gradient(circle at 50% 0%, rgba(30, 30, 35, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 40%, rgba(20, 25, 35, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(25, 25, 30, 0.2) 0%, transparent 50%);
  background-attachment: fixed;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- CONTAINER CENTRALIZADO --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
}

/* --- CABEÇALHO / LOGO INTEGRADO AO HERO --- */
.site-header {
  position: relative;
  width: 100%;
  padding: clamp(36px, 6vh, 64px) 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.brand-logo-link {
  display: inline-block;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.brand-logo-link:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

.header-logo {
  height: clamp(135px, 15vw, 215px);
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
}

/* --- SEÇÃO HERO FULL SCREEN (100vh) --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-main);
  /* Progresso de rolagem do efeito "Scroll Expand" (0 = enquadrado, 1 = tela cheia) */
  --hp: 0;
}

/* Imagem dos 3 carros: começa em tela cheia e ganha enquadramento conforme o scroll.
   Usamos clip-path (composto na GPU) em vez de animar width/height, para performance. */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  clip-path: inset(
    calc(11vh * var(--hp))
    calc(7% * var(--hp))
    calc(11vh * var(--hp))
    calc(7% * var(--hp))
    round calc(28px * var(--hp))
  );
  transform: scale(calc(1.06 - 0.06 * var(--hp)));
  transition: clip-path 0.05s linear;
  will-change: clip-path;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media {
    transition: none;
  }

  .blur-text-word {
    transition: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: contrast(1.04) brightness(0.96);
  display: block;
}

/* Degradê natural sobre a imagem: garante contraste no topo para a logo e suaviza a base */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Degradê superior suave na região da logo */
    linear-gradient(to bottom,
      rgba(10, 10, 10, 0.85) 0%,
      rgba(10, 10, 10, 0.45) 26%,
      rgba(10, 10, 10, 0.1) 48%,
      transparent 68%
    ),
    /* Vinheta radial sutil mantendo foco nos 3 carros */
    radial-gradient(ellipse at 50% 64%, transparent 46%, rgba(10, 10, 10, 0.42) 100%),
    /* Fusão suave no piso com o restante da página */
    linear-gradient(to top,
      var(--bg-main) 0%,
      rgba(10, 10, 10, 0.75) 8%,
      transparent 28%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 3.5vh, 34px);
}

/* --- TÍTULO DO HERO: some suavemente conforme a imagem se expande --- */
.hero-title-block {
  padding: 0 20px;
  margin-top: clamp(28px, 5vh, 58px);
  opacity: calc(1 - var(--hp) * 1.6);
  transform: translateY(calc(var(--hp) * -18px));
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
}

.blur-text {
  overflow: hidden;
}

.blur-text-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  transition: opacity 0.55s ease, filter 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--blur-index) * 100ms);
}

.blur-text.is-blurred-in .blur-text-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hero-title-sub {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-scroll-indicator {
  position: relative;
  z-index: 5;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  padding: 16px 24px;
  margin-bottom: clamp(16px, 3vh, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: calc(1 - var(--hp) * 2.2);
}

.hero-scroll-indicator:hover {
  color: #ffffff;
  transform: translateY(3px);
}

.chevron-down {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  animation: bounceSoft 2.4s ease-in-out infinite;
}

@keyframes bounceSoft {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* --- TÍTULOS COM ESTILO RALEWAY DISCRETO E NOBRE --- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* --- MOLDURA ARQUITETURAL: OBJETIVOS E TÍTULO 40 ANOS --- */
.objectives-bracket-wrapper {
  position: relative;
  margin-top: 50px;
  margin-bottom: 24px;
  /* Isola o contexto de empilhamento local: garante que as linhas decorativas
     e o conteúdo da seção sejam comparados apenas entre si, de forma previsível
     em qualquer navegador (evita que imagens/containers cubram as linhas). */
  isolation: isolate;
}

.bracket-objectives-frame {
  position: absolute;
  top: -24px;
  left: 20px;
  right: 20px;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
}

/* Linha horizontal superior */
.bracket-objectives-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.2px;
  background: var(--border-line);
}

/* Linha vertical lateral direita */
.bracket-objectives-frame::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1.2px;
  background: var(--border-line);
}

/* Linha horizontal virando à esquerda logo abaixo do título 40 anos */
.bracket-objectives-turn-left {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  height: 1.2px;
  background: var(--border-line);
  pointer-events: none;
  z-index: 3;
}

/* --- SEÇÃO: ESCOLHA O SEU OBJETIVO --- */
.objectives-section {
  position: relative;
  padding: 30px 0 20px;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto 30px;
}

.objective-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.objective-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.objective-card:hover .objective-card-inner {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
}

.objective-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.objective-card:hover .objective-card-inner img {
  transform: scale(1.04);
}

/* Efeito Neon Bowtie da Chevrolet no Card 1 (Veículos) */
.neon-overlay-chevrolet {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 48%;
  pointer-events: none;
  z-index: 3;
}

.neon-bowtie-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 18px rgba(180, 220, 255, 0.6));
  animation: neonGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes neonGlowPulse {
  0% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 14px rgba(180, 220, 255, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 24px rgba(200, 235, 255, 0.75));
  }
}

.objective-card-label {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  transition: color var(--transition-fast), letter-spacing var(--transition-fast);
}

.objective-card:hover .objective-card-label {
  color: #ffffff;
  letter-spacing: 0.22em;
}

/* --- SEÇÃO: 40 ANOS (EXPERIÊNCIA, MOBILIDADE E EXCELÊNCIA) --- */
.history-section {
  position: relative;
  padding: 10px 0 65px;
}

.history-title-wrapper {
  margin-top: 48px;
  margin-bottom: 24px;
  text-align: center;
}

.history-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-primary);
}

.history-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  border: 1.2px solid var(--border-line);
  background-color: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1;
  overflow: hidden;
}

.history-text-col {
  padding: 36px 36px 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.history-headline {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e5e5;
  margin-bottom: 18px;
  line-height: 1.45;
}

.history-paragraph {
  font-size: 0.88rem;
  color: #b5b5b5;
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 400;
}

.history-paragraph:last-child {
  margin-bottom: 0;
  color: #b5b5b5;
  font-weight: 500;
}

.history-image-col {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.history-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.history-box:hover .history-image-col img {
  transform: scale(1.03);
}

/* --- SEÇÃO: OS CAMINHOS DO GRUPO (ACCORDION GALLERY) --- */
.paths-section {
  position: relative;
  padding: 20px 0 70px;
}

.paths-intro {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #bdbdbd;
}

.paths-accordion {
  display: flex;
  gap: 4px;
  height: 440px;
}

.path-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: block;
  border: 1px solid var(--border-card);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: flex-grow var(--transition-slow);
}

.paths-accordion:has(.path-panel:hover) .path-panel:not(:hover),
.paths-accordion:has(.path-panel:focus-within) .path-panel:not(:focus-within) {
  flex-grow: 0.65;
}

.path-panel:hover,
.path-panel:focus-within,
.path-panel.is-expanded {
  flex-grow: 1.7;
}

.path-panel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.path-panel:hover .path-panel-img,
.path-panel.is-expanded .path-panel-img {
  transform: scale(1.04);
}

.path-panel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 6, 6, 0.92) 0%, rgba(6, 6, 6, 0.55) 32%, rgba(6, 6, 6, 0.15) 60%, rgba(6, 6, 6, 0.35) 100%);
  transition: background var(--transition-smooth);
}

.path-panel-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.path-panel-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  white-space: nowrap;
}

.path-panel-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 10px;
  white-space: nowrap;
}

.path-panel-text {
  font-size: 0.86rem;
  line-height: 1.65;
  color: #eeeeee;
  max-width: 340px;
  margin-bottom: 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-smooth), max-height var(--transition-smooth), margin var(--transition-smooth);
}

.path-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-fast);
}

.path-panel:hover .path-panel-text,
.path-panel:focus-within .path-panel-text,
.path-panel.is-expanded .path-panel-text {
  opacity: 1;
  max-height: 100px;
  margin-bottom: 16px;
}

.path-panel:hover .path-panel-cta,
.path-panel:focus-within .path-panel-cta,
.path-panel.is-expanded .path-panel-cta {
  opacity: 1;
  transform: translateY(0);
}

.path-panel-cta:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* --- SEÇÃO: NOSSOS SERVIÇOS --- */
.services-section {
  position: relative;
  padding: 60px 0 70px;
}

/* Moldura decorativa assimétrica em Nossos Serviços */
.services-bracket-wrapper {
  position: relative;
  /* Contexto de empilhamento isolado, igual ao bloco de Objetivos */
  isolation: isolate;
}

/* Linha Única Superior Direita sobre Nossos Serviços */
.services-bracket-top-right {
  position: absolute;
  top: -24px;
  right: 20px;
  width: 48%;
  height: 1.2px;
  background: var(--border-line);
  pointer-events: none;
  z-index: 3;
}

.services-bracket-top-right::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1.2px;
  height: 220px;
  background: var(--border-line);
}

.services-bracket-bottom-left {
  position: absolute;
  bottom: -24px;
  left: 20px;
  width: 44%;
  height: 1.2px;
  background: var(--border-line);
  pointer-events: none;
  z-index: 3;
}

.services-bracket-bottom-left::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.2px;
  height: 160px;
  background: var(--border-line);
}

.services-grid-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

/* --- CARDS DE SERVIÇOS ESTÁTICOS AO PASSAR O MOUSE (SEM HOVER) --- */
.service-card {
  position: relative;
  z-index: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.service-card-text {
  font-size: 0.86rem;
  color: #b5b5b5;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8c8c8c;
  cursor: pointer;
}

/* Card Inferior Largo: Locadora (Totalmente Estático, sem hover) */
.service-card-wide {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
}

.service-card-wide .service-card-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 220px;
}

.service-card-wide .service-card-body {
  padding: 30px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-wide .service-card-title {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.service-card-wide .service-card-text {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-saiba-mais {
  align-self: flex-end;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a0a0a0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.btn-saiba-mais:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.04);
}

/* --- SEÇÃO: FALE COM NOSSA EQUIPE! --- */
.contact-section {
  position: relative;
  padding: 80px 0 90px;
  isolation: isolate;
}

/* Moldura geométrica da seção de contato */
.contact-bracket-top-right {
  position: absolute;
  top: -24px;
  right: 20px;
  width: 42%;
  height: 1.2px;
  background: var(--border-line);
  pointer-events: none;
  z-index: 3;
}

.contact-bracket-top-right::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1.2px;
  height: 140px;
  background: var(--border-line);
}

.contact-bracket-bottom-left {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 38%;
  height: 1.2px;
  background: var(--border-line);
  pointer-events: none;
  z-index: 3;
}

.contact-bracket-bottom-left::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.2px;
  height: 120px;
  background: var(--border-line);
}

.contact-banner {
  position: relative;
  border: 1.2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(16, 16, 16, 0.85);
  backdrop-filter: blur(10px);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  z-index: 1;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.contact-banner:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.contact-banner-text-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.contact-banner-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #e0e0e0;
  font-weight: 400;
}

.contact-phone-link {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

.contact-phone-link:hover {
  color: var(--accent-cyan);
}

.contact-arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  max-width: 140px;
}

.contact-flow-arrow {
  width: 58px;
  height: auto;
  stroke: var(--accent-blue);
  fill: none;
  filter: drop-shadow(0 0 6px rgba(0, 155, 230, 0.5));
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.contact-banner:hover .contact-flow-arrow {
  transform: translateX(8px);
  filter: drop-shadow(0 0 10px rgba(0, 155, 230, 0.8));
}

.btn-pill-contact {
  display: inline-block;
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 13px 42px;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-pill-contact:hover {
  background-color: #f0f0f0;
  color: #000000;
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}

.btn-pill-contact:active {
  transform: scale(0.98);
}

/* --- RODAPÉ --- */
.site-footer {
  position: relative;
  padding: 68px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 70%);
}

.footer-top-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.25fr) minmax(130px, 0.8fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 46px;
}

.footer-brand-copy {
  min-width: 220px;
}

.footer-eyebrow {
  display: block;
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-brand-copy p {
  max-width: 230px;
  color: #999999;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-link-title {
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-link-group a {
  color: #b0b0b0;
  font-size: 0.8rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-link-group a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  grid-column: 4;
  grid-row: 1;
  justify-self: center;
}

.social-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a0a0a0;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-icon-btn::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  color: #888888;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.social-icon-btn:hover::after {
  color: #ffffff;
}

.social-icon-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-logo {
  height: clamp(100px, 11vw, 145px);
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo-wrapper {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
}

.footer-phone {
  font-size: 0.82rem;
  color: #b0b0b0;
  font-weight: 400;
  margin-bottom: 8px;
}

.footer-phone a {
  color: #cfcfcf;
  font-weight: 600;
}

.footer-phone a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.76rem;
  color: #858585;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 5px rgba(37, 211, 102, 0.16);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  background: #20bd5b;
  color: #ffffff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(37, 211, 102, 0.2);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8a8a8a;
  font-size: 0.72rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-top-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-top-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* --- MODAL DE CONTATO INTERATIVO --- */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  padding: 20px;
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-smooth);
}

.contact-modal-overlay.active .contact-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #999999;
  padding: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ffffff;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: #8e8e8e;
  margin-bottom: 24px;
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cccccc;
  margin-bottom: 6px;
  font-weight: 500;
}

.modal-form-input,
.modal-form-select,
.modal-form-textarea {
  width: 100%;
  background-color: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-form-input:focus,
.modal-form-select:focus,
.modal-form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(0, 155, 230, 0.2);
}

.modal-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-submit-btn {
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px;
  border-radius: 9999px;
  margin-top: 10px;
  transition: all var(--transition-fast);
}

.modal-submit-btn:hover {
  background-color: #e6e6e6;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.modal-success-state {
  display: none;
  text-align: center;
  padding: 24px 10px;
}

.modal-success-state.show {
  display: block;
}

.modal-success-icon {
  width: 48px;
  height: 48px;
  color: #10b981;
  margin: 0 auto 16px;
}

/* --- ANIMAÇÕES DE SCROLL REVEAL SUAVES (IntersectionObserver) --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Efeito sequencial em cascata */
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* --- RESPONSIVIDADE COMPLETA --- */

/* Laptops e Telas Médias (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --container-max-width: 900px;
  }
  
  .section-title {
    font-size: 1.45rem;
    letter-spacing: 0.24em;
  }
  
  .history-title {
    font-size: 1.3rem;
  }

  .history-box {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .history-text-col {
    padding: 28px 24px;
  }

  .objectives-grid {
    max-width: 700px;
  }

  .paths-accordion {
    height: 400px;
  }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.3rem;
    letter-spacing: 0.16em;
    margin-bottom: 1.8rem;
  }

  /* Bracket adaptado para mobile */
  .bracket-line-top-right,
  .services-bracket-top-right,
  .services-bracket-bottom-left,
  .contact-bracket-top-right,
  .contact-bracket-bottom-left {
    opacity: 0.5;
  }

  /* Objetivos em 1 coluna ou carrossel fluido */
  .objectives-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    gap: 26px;
  }

  .objective-card-inner {
    aspect-ratio: 16 / 11;
  }

  .history-box {
    grid-template-columns: 1fr;
  }

  .history-image-col {
    height: 240px;
  }

  /* Hero: enquadramento inicial mais discreto em telas menores */
  .hero-media {
    clip-path: inset(
      calc(7vh * var(--hp))
      calc(4% * var(--hp))
      calc(7vh * var(--hp))
      calc(4% * var(--hp))
      round calc(18px * var(--hp))
    );
  }

  .hero-bg-img {
    object-position: 50% 58%;
    transform: scale(1.4);
    transform-origin: center center;
  }

  .hero-title-main {
    letter-spacing: 0.05em;
  }

  /* Accordion Gallery: empilha verticalmente no mobile */
  .paths-accordion {
    flex-direction: column;
    height: auto;
  }

  .path-panel {
    flex: none;
    height: 130px;
    transition: height var(--transition-slow);
  }

  .paths-accordion:has(.path-panel:hover) .path-panel:not(:hover),
  .paths-accordion:has(.path-panel:focus-within) .path-panel:not(:focus-within) {
    flex-grow: 0;
  }

  .path-panel:hover,
  .path-panel:focus-within,
  .path-panel.is-expanded {
    height: 320px;
  }

  .path-panel-title {
    font-size: 1.1rem;
  }

  .services-grid-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card-wide {
    grid-template-columns: 1fr;
  }

  .service-card-wide .service-card-media {
    height: 200px;
  }

  .contact-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }

  .contact-banner-text-col {
    max-width: 100%;
    align-items: center;
  }

  .contact-phone-link {
    align-self: center;
  }

  .contact-arrow-wrapper {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .footer-top-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-brand-copy {
    min-width: 0;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .footer-brand-copy p {
    margin: 0 auto;
  }

  .footer-link-group {
    align-items: center;
  }

  .footer-social-links,
  .footer-logo-wrapper {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
  }
}

/* Smartphones Pequenos (<= 480px) */
@media (max-width: 480px) {
  .footer-top-row {
    grid-template-columns: 1fr;
  }

  .footer-link-group {
    grid-column: 1;
  }

  .header-logo {
    height: clamp(145px, 38vw, 220px);
    max-width: 96vw;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 29px;
    height: 29px;
  }

  .hero-title-main {
    font-size: 1.2rem;
  }

  .hero-title-sub {
    font-size: 0.78rem;
  }

  .section-title {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
  }

  .history-title {
    font-size: 1.05rem;
    letter-spacing: 0.15em;
  }

  .history-text-col {
    padding: 20px 16px;
  }

  .history-headline {
    font-size: 0.9rem;
  }

  .history-paragraph {
    font-size: 0.82rem;
  }

  .service-card-body {
    padding: 18px 16px;
  }

  .btn-pill-contact {
    width: 100%;
    padding: 13px 20px;
  }
}
