/* =========================================
   GHER Engenharia — Landing Page Styles
   ========================================= */

/* ---- @font-face: STEINEM ---- */
@font-face {
  font-family: 'STEINEM';
  src: url('../assets/fonts/STEINEM_.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-steinem {
  font-family: 'STEINEM', 'Georgia', serif !important;
}

/* ---- CSS Custom Properties ---- */
:root {
  --gher-black: #131212;
  --gher-orange: #E64500;
  --gher-dark: #242424;
  --gradient-start: #E6790C;
  --gradient-end: #E41B1B;
}

/* ---- Base ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gher-black);
  overflow-x: hidden;
  background: #fff;
}

/* ---- Gradient Utility ---- */
.gher-gradient {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.gher-gradient-text {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Hero Radial Gradient ---- */
.hero-gradient-overlay {
  background: radial-gradient(ellipse at 85% 30%, rgba(230, 121, 12, 0.12) 0%, transparent 65%);
}
/* Transição suave: efeito do hero desvanece na seção de baixo */
.hero-gradient-overlay::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25%;
  min-height: 120px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.85) 100%);
  pointer-events: none;
}

/* ---- Hero: focos laranja (Figma) — opacidade baixa, fogem ao hover ---- */
.hero-orange-foci {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-orange-foci::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  min-height: 100px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.9) 100%);
  pointer-events: none;
}
.hero-focus {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, rgba(230, 69, 0, 0.12) 0%, rgba(230, 121, 12, 0.08) 100%);
  filter: blur(24px);
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: heroFocusFloat 12s ease-in-out infinite;
}
.hero-focus-1 { animation-delay: 0s; }
.hero-focus-2 { animation-delay: -3s; }
.hero-focus-3 { animation-delay: -6s; }
.hero-focus-4 { animation-delay: -9s; }
@keyframes heroFocusFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8px, -6px) scale(1.02); }
  66% { transform: translate(-5px, 10px) scale(0.98); }
}
#hero.hero-foci-interactive .hero-focus {
  animation: none;
}
.hero-focus-1 { width: 340px; height: 300px; left: -8%;  top: -5%; }
.hero-focus-2 { width: 220px; height: 220px; right: -6%; top: -3%; }
.hero-focus-3 { width: 300px; height: 260px; left: -5%;  bottom: -8%; }
.hero-focus-4 { width: 180px; height: 200px; right: -5%; bottom: -5%; }
@media (max-width: 640px) {
  .hero-focus-1 { width: 220px; height: 200px; left: -12%;  top: -5%; }
  .hero-focus-2 { width: 160px; height: 160px; right: -10%; top: -3%; }
  .hero-focus-3 { width: 200px; height: 180px; left: -10%;  bottom: -8%; }
  .hero-focus-4 { width: 120px; height: 140px; right: -8%;  bottom: -5%; }
}

.hero-background-mark {
  left: -15vw;
  bottom: -8vw;
  width: 55vw;
  max-width: none;
  opacity: 1;
}

@media (max-width: 640px) {
  .hero-background-mark {
    left: -45vw;
    bottom: -15vw;
    width: 130vw;
    opacity: 0.6;
  }
}

.faq-shell {
  position: relative;
  overflow: hidden;
}

.faq-background-mark {
  position: absolute;
  left: -22vw;
  bottom: -12vw;
  width: 48vw;
  max-width: none;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1024px) {
  .faq-background-mark {
    left: -31vw;
    bottom: -18vw;
    width: 62vw;
  }
}

@media (max-width: 640px) {
  .faq-background-mark {
    left: -39vw;
    bottom: -20vw;
    width: 82vw;
    opacity: 0.5;
  }
}

/* ---- Navbar ---- */
.navbar {
  position: relative;
  border-radius: 0 0 151px 151px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: box-shadow 0.3s ease, background 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
    margin: 1.25rem 1rem 0 1rem !important;
    border: none;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    /* Evita "pular" entre arredondamentos no menu */
    transition: box-shadow 0.3s ease, background 0.3s ease, margin 0.3s ease !important;
  }
  .navbar.menu-open {
    /* Mantém o mesmo arredondamento do estado fechado */
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.9);
  }
  .navbar .flex {
    min-height: 52px;
    align-items: center;
  }

  /* Menu mobile vira "aba" que desce, sem alterar o nav (arredondamentos fixos) */
  #mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 10px;
    max-height: none;
    overflow: visible;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 44px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.08);
    padding: 18px 18px 16px !important;

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  #mobile-menu ul {
    border-top: 0 !important;
    padding-top: 0 !important;
  }
  #mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }

  /* Conteúdo centralizado no eixo vertical (logo + ícone) */
  #navbar > .flex {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  #menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
  }

  /* Transição do ícone: hamburger ↔ X (mobile) */
  #menu-icon {
    position: relative;
    width: 29px;
    height: 21px;
    display: block;
  }
  #menu-icon .menu-icon-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  #menu-icon .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.85);
  }
  #menu-btn.is-open #menu-icon .icon-hamburger {
    opacity: 0;
    transform: rotate(90deg) scale(0.85);
  }
  #menu-btn.is-open #menu-icon .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
  }

  /* Mobile: remove efeito de hover/active dos botões gradientes (toque) */
  .btn-gradient:hover,
  .btn-gradient:active,
  .btn-gradient:focus {
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Mobile menu: "Fale Conosco" sempre com texto branco */
  #mobile-menu a.btn-gradient,
  #mobile-menu a.btn-gradient:hover,
  #mobile-menu a.btn-gradient:active,
  #mobile-menu a.btn-gradient:focus,
  #mobile-menu a.btn-gradient:focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
  }

  /* Serviços: no mobile, cards em coluna (um embaixo do outro) */
  #servicos .services-list {
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 1.25rem; /* mantém sensação do gap-5 */
    padding-bottom: 0;
    margin-left: 0;
    margin-right: 0;
  }
  #servicos .services-list .service-card {
    width: 100% !important;
    max-width: none;
    flex-shrink: 0;
  }

  /* Remove a "linha" entre Serviços e Sobre Nós no mobile
     aproximando levemente o topo da curva branca */
  #sobre-nos .curve-bottom-left-lg {
    margin-top: -6px;
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.5);
    border: none;
  }
}

.nav-link-active {
  color: var(--gher-orange) !important;
  font-weight: 700;
}

.navbar-cta {
  padding: 10px 26px;
  border-radius: 85px 20px 85px 20px !important;
  gap: 10px;
  min-width: 180px;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Marquee ---- */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.cases-scroll-marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: -2rem;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}

/* Texto curvo sobre a faixa (SVG) — posição e tamanho fixos em qualquer monitor */
.cases-marquee-curved {
  top: 1.5rem; /* Ajustado para aparecer no topo da seção no mobile */
  opacity: 0.12;
  width: 100%;
  max-width: 1280px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

@media (min-width: 1024px) {
  .cases-marquee-curved {
    top: -8rem;
  }
}

.marquee-text-svg {
  display: block;
  overflow: visible;
  width: 100%;
  height: auto;
  max-width: 1280px;
}

.marquee-text-svg text {
  font-family: 'STEINEM', 'Georgia', serif;
  font-size: 5.25rem;
  fill: #C2C2C2;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .cases-marquee-curved {
    max-width: 100%;
    top: 0rem; /* Ajustado para compensar o tamanho maior da fonte */
    opacity: 0.15;
  }
  .marquee-text-svg text {
    font-size: 8.5rem; /* Aumentado significativamente para compensar a escala do viewBox do SVG e igualar ao Sobre Nós */
  }
}

/* Logo de fundo da seção Contato — posição e tamanho fixos (como "cases de sucesso") */
.contato-background-logo {
  position: absolute;
  bottom: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.13;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.contato-background-logo img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 380px;
  object-fit: contain;
  object-position: center bottom;
}
@media (min-width: 1024px) {
  .contato-background-logo {
    bottom: -14rem;
    max-width: 1600px;
  }
  .contato-background-logo img {
    max-height: 720px;
  }
}

/* Imagem de fundo do footer — posição e tamanho fixos (como "cases de sucesso") */
.footer-background-logo {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 35%;
  width: 720px;
  max-width: 100%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.05;
  transform: translate(2rem, 50%);
}
.footer-background-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: 100% 100%;
}
@media (min-width: 1024px) {
  .footer-background-logo {
    width: 960px;
    max-width: none;
    transform: translate(4rem, 50%);
  }
}

@media (max-width: 768px) {
  /* Footer: centraliza todo o conteúdo somente no mobile */
  footer .max-w-7xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  footer .grid {
    justify-items: center;
    text-align: center;
  }
  footer .grid > div {
    align-items: center !important;
  }
  footer .grid > div .text-right {
    text-align: center;
  }
  footer .grid > div .items-end {
    align-items: center;
  }
  footer .grid > div .justify-end {
    justify-content: center;
  }
  footer .grid > div .flex {
    justify-content: center;
  }
  footer .grid > div ul {
    align-items: center;
  }
  footer .flex.justify-end {
    justify-content: center;
  }

  /* Footer bottom bar: centraliza e justifica texto apenas no mobile */
  footer .flex.flex-col.lg\\:flex-row.justify-between.items-start.lg\\:items-center {
    align-items: center;
    text-align: center;
  }
  footer .flex.flex-col.lg\\:flex-row.justify-between.items-start.lg\\:items-center > p {
    max-width: 20rem;
    text-align: justify;
    text-justify: inter-word;
  }
  footer .flex.flex-col.lg\\:flex-row.justify-between.items-start.lg\\:items-center > div {
    justify-content: center;
  }
  footer .flex.flex-col.lg\\:flex-row.justify-between.items-start.lg\\:items-center > div a {
    text-align: center;
  }

  /* Força centralização/justificado usando classes específicas do HTML */
  footer p.leading-relaxed.max-w-xl {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    text-justify: inter-word;
    /* Permite que o texto quebre naturalmente para justificar */
    word-break: normal;
    hyphens: auto;
  }
  /* Remove quebras manuais de linha só no mobile para permitir justificação real */
  footer p.leading-relaxed.max-w-xl br {
    display: none;
  }
  footer .flex.gap-6.uppercase {
    justify-content: center;
    width: 100%;
  }
}

/* ---- Section Curves ---- */
.curve-bottom-left {
  border-radius: 0 0 0 80px;
}

.curve-bottom-left-lg {
  border-radius: 0 0 0 150px;
}

.curve-top-right {
  border-radius: 0 80px 0 0;
}

.curve-top-right-lg {
  border-radius: 0 150px 0 0;
}

.curve-top-both {
  border-radius: 40px 40px 0 0;
}

.services-shell {
  position: relative;
  background: var(--gher-black);
  border-radius: 60px;
  overflow: hidden;
}

.services-notch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 3;
  pointer-events: none;
}

.services-notch-arrow {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.services-notch-arrow:hover {
  opacity: 0.7;
}

.services-shell-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .curve-bottom-left {
    border-radius: 0 0 0 40px;
  }

  .curve-bottom-left-lg {
    border-radius: 0 0 0 88px;
  }

  .curve-top-right {
    border-radius: 0 40px 0 0;
  }

  .curve-top-right-lg {
    border-radius: 0 88px 0 0;
  }

  .curve-top-both {
    border-radius: 24px 24px 0 0;
  }

  .services-shell {
    border-radius: 40px;
  }

  .services-notch {
    height: 48px;
    width: 1200px;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ---- Service Cards ---- */

/*
 * Structure:
 *   .service-card          → outer wrapper, positions the button
 *     .card-inner          → image + overlay, masked with concave notch
 *       .img-placeholder   → background image
 *       .card-overlay      → gradient + text
 *     .card-arrow          → circular button in the notch
 *
 * The concave cutout is achieved via CSS mask (radial-gradient)
 * on .card-inner — a transparent circle is "punched out" where
 * the button lives. The section bg (#131212) shows through.
 */

.service-card {
  position: relative;
  transition: transform 0.35s ease;
}

.service-card:hover,
.service-card.is-hovered {
  transform: translateY(-4px);
}

/* ---------- Card Inner (image area with concave notch) ---------- */
.service-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 55px;
  overflow: hidden;
  /* Concave notch via SVG clip-path for perfectly smooth Bézier curves
     (Figma: Rectangle 361×400 r=55 minus Ellipse 152×128 at bottom-right) */
  clip-path: url(#card-mask);
}

.service-card .card-inner .img-placeholder {
  border-radius: 0 !important;
  border: none !important;
}
.service-card .card-inner .img-placeholder.has-bg {
  color: transparent;
  font-size: 0;
  user-select: none;
}
.service-card .card-inner .img-placeholder.has-bg::before {
  content: none;
}

/* ---------- Gradient overlay ---------- */
.service-card .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  padding-bottom: 28px;
  padding-right: 35%;
  z-index: 2;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 51%,
      rgba(0, 0, 0, 1) 99%);
  transition: background 0.35s ease;
}

.service-card:hover .card-overlay,
.service-card.is-hovered .card-overlay {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 35%,
      rgba(230, 69, 0, 0.25) 70%,
      rgba(0, 0, 0, 0.85) 99%);
}

/* ---------- Arrow button (in the notch) ---------- */
.service-card .card-arrow {
  position: absolute;
  z-index: 10;
  /* Positioned in the concave notch area, clear of the clip-path edge */
  bottom: 2%;
  right: 1%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--gher-orange);
  color: var(--gher-orange);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.service-card .card-arrow svg {
  display: block;
  width: 22px;
  height: auto;
  transition: transform 0.3s ease;
}

.service-card:hover .card-arrow,
.service-card.is-hovered .card-arrow {
  background: rgba(230, 69, 0, 0.12);
  border-color: #ff6a1a;
  color: #ff6a1a;
}

.service-card:hover .card-arrow svg,
.service-card.is-hovered .card-arrow svg {
  transform: rotate(-45deg);
}

/* ---------- Description text (hidden, shown on hover) ---------- */
.service-card .card-description {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.35s ease, transform 0.3s ease, margin-top 0.3s ease;
}

.service-card:hover .card-description,
.service-card:focus-within .card-description,
.service-card.is-hovered .card-description {
  opacity: 1;
  max-height: 120px;
  margin-top: 8px;
  transform: translateY(0);
}

/* ---- FAQ Accordion ---- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-answer.active {
  max-height: 400px;
  padding-top: 12px;
  padding-bottom: 20px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate {
  transform: rotate(180deg);
}

/* ---- Scroll Indicator ---- */
@keyframes bounce-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.scroll-indicator {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* ---- Image Placeholders ---- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0e6df;
  border: 2px dashed #E6790C;
  color: #E64500;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
}

.img-placeholder.dark {
  background-color: #2a2424;
  border-color: #555;
  color: #888;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* ---- Button Hover Effects ---- */
.btn-gradient {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230, 69, 0, 0.35);
}

.btn-outline {
  border: 1.5px solid #d1d5db;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-black-outline {
  border: 2px solid #000;
  transition: all 0.3s ease;
}

.btn-black-outline:hover {
  background: #000;
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--gher-orange);
  background: rgba(230, 69, 0, 0.05);
  color: var(--gher-orange);
}

/* ---- Hero Buttons — Mixed Border Radius ---- */
.btn-hero {
  border-radius: 20px 85px 20px 85px;
}

/* ---- Hero (Mobile only): alinhar conteúdo à esquerda ---- */
@media (max-width: 768px) {
  /* O texto do hero vinha centralizado via Tailwind `text-center` no wrapper.
     Restringimos ao #hero para não afetar nenhuma outra seção nem desktop. */
  #hero .text-center {
    text-align: left !important;
  }

  /* Ajuste de espaçamento vertical do conteúdo do hero somente no mobile */
  #hero .hero-inner {
    padding-top: 12rem;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

.hero-project-badge {
  position: relative;
  background-color: rgba(230, 69, 0, 0.08);
  transform-origin: center center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  padding-left: 1.75rem !important;
}

.hero-project-badge__dot {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

.hero-project-badge__text {
  display: inline-block;
  min-width: auto;
  text-align: left;
}

@media (min-width: 641px) {
  .hero-project-badge__text {
    min-width: 23ch;
    text-align: center;
  }
}

.hero-project-badge.is-flipping-out {
  animation: heroBadgeFlipOut 0.42s cubic-bezier(0.55, 0.1, 0.75, 0.35) forwards;
}

.hero-project-badge.is-flipping-in {
  animation: heroBadgeFlipIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes heroBadgeFlipOut {
  from {
    transform: perspective(900px) rotateX(0deg);
    opacity: 1;
  }

  to {
    transform: perspective(900px) rotateX(-90deg) translateY(-4px);
    opacity: 0.4;
  }
}

@keyframes heroBadgeFlipIn {
  from {
    transform: perspective(900px) rotateX(90deg) translateY(4px);
    opacity: 0.4;
  }

  to {
    transform: perspective(900px) rotateX(0deg) translateY(0);
    opacity: 1;
  }
}

/* ---- Deliverable Card ---- */
.deliverable-card {
  border-radius: 14px;
  padding: 1rem 1rem 1rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.deliverable-card:hover {
  background-color: rgba(230, 69, 0, 0.03);
  box-shadow: 0 4px 16px rgba(230, 69, 0, 0.06);
}

.deliverable-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(230, 69, 0, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deliverable-icon svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 1024px) {
  /* Ajuste fino de alinhamento apenas para os blocos da direita no desktop */
  .deliverables-grid .deliverable-card:nth-child(2),
  .deliverables-grid .deliverable-card:nth-child(4) {
    margin-left: -6px;
  }
}

/* ---- Logo Row ---- */
.client-logo {
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ---- Sobre Nós — Imagem com máscara SVG ---- */
.sobre-img-wrap {
  /* Proporção original do path: 769 × 906 */
  width: min(560px, 75vw);
  aspect-ratio: 769 / 906;
  position: relative;
}

.sobre-img-clip {
  width: 100%;
  height: 100%;
  clip-path: url(#gher-mask);
  overflow: hidden;
}

.sobre-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0 !important;
}
.sobre-img-inner.has-bg {
  color: transparent;
  font-size: 0;
  user-select: none;
}
.sobre-img-inner.has-bg::before {
  content: none;
}

.sobre-img-wrap:hover .sobre-img-inner {
  transform: scale(1.05);
}

/* Ícone decorativo GHER — canto inferior esquerdo, fora da máscara */
.sobre-icon-gher {
  position: absolute;
  bottom: -2%;
  left: -4%;
  width: 45%;
  opacity: 0.85;
  pointer-events: none;
  z-index: 10;
}

@media (min-width: 1024px) {
  .sobre-img-wrap {
    width: 100%;
  }
}

/* ---- Lazy Load Fade ---- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ---- Hero INDUSTRIAL gradient text ---- */
/* Gradient text is applied via .gher-gradient-text utility */

/* ---- Section Title Orange Underline ---- */
.title-underline {
  position: relative;
  display: inline-block;
}

.title-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 84px;
  height: 4px;
  background: var(--gher-orange);
  border-radius: 2px;
}

/* ---- Selection Color ---- */
::selection {
  background: rgba(230, 69, 0, 0.15);
  color: var(--gher-black);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gher-orange);
}

/* =========================================
   CARROSSEL DE CASES — Animações + Indicadores
   ========================================= */

/* --- Info esquerda (títulos + descrições) --- */
.projetos-carousel .proj-info {
  width: min(100%, 340px);
}
.projetos-carousel .proj-info #proj-landing-title {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
  min-height: 1.35em;
  line-height: 1.1;
}
.projetos-carousel .proj-info ul {
  margin-top: .75rem;
  padding-left: 8px;
  min-height: 5.6em; /* Keeps the container height fixed for both lines */
}
.projetos-carousel .proj-info #proj-brand,
.projetos-carousel .proj-info #proj-desc {
  min-height: 1.2em;
}

#mobile-current-logo[data-brand="seara"],
#mobile-current-logo[data-brand="misterbeef"],
#mobile-current-logo[data-brand="naturalone"] {
  transform: scale(1.3);
}
.projetos-carousel .proj-info .proj-landing-text,
.projetos-carousel .proj-info .proj-brand-text,
.projetos-carousel .proj-info .proj-desc-text {
  display: block;
  line-height: 1.12;
}
.projetos-carousel .proj-info > div:last-child {
  margin-top: 1.6rem;
}

/* --- Link card (imagem principal) --- */
.proj-link-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.proj-link-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .8);
  outline-offset: 6px;
}

/* --- Overlay colorido sobre a imagem --- */
.proj-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.proj-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: .35;
  transition: background .3s ease, opacity .3s ease;
  z-index: 0;
}
.proj-overlay::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 55%;
  background: transparent;
  transition: background .3s ease, opacity .3s ease;
  opacity: 1;
  z-index: 1;
}
/* Cores do overlay por marca */
.brand-seara .proj-overlay::before      { background: linear-gradient(180deg, rgba(250,204,21,0.35) 0%, rgba(250,204,21,0.6) 52%, rgba(250,204,21,0.8) 100%); }
.brand-seara .proj-overlay::after       { background: linear-gradient(180deg, rgba(250,204,21,0) 0%, rgba(250,204,21,0.35) 48%, rgba(250,204,21,0.6) 100%); }
.brand-misterbeef .proj-overlay::before { background: linear-gradient(180deg, rgba(196,30,46,0.35) 0%, rgba(196,30,46,0.6) 52%, rgba(196,30,46,0.8) 100%); }
.brand-misterbeef .proj-overlay::after  { background: linear-gradient(180deg, rgba(196,30,46,0) 0%, rgba(196,30,46,0.35) 48%, rgba(196,30,46,0.6) 100%); }
.brand-cymco .proj-overlay::before      { background: linear-gradient(180deg, rgba(234,88,12,0.35) 0%, rgba(234,88,12,0.6) 52%, rgba(234,88,12,0.8) 100%); }
.brand-cymco .proj-overlay::after       { background: linear-gradient(180deg, rgba(234,88,12,0) 0%, rgba(234,88,12,0.35) 48%, rgba(234,88,12,0.6) 100%); }
.brand-cvale .proj-overlay::before      { background: linear-gradient(180deg, rgba(30,58,138,0.35) 0%, rgba(30,58,138,0.6) 52%, rgba(30,58,138,0.8) 100%); }
.brand-cvale .proj-overlay::after       { background: linear-gradient(180deg, rgba(30,58,138,0) 0%, rgba(30,58,138,0.35) 48%, rgba(30,58,138,0.6) 100%); }
.brand-progcarnes .proj-overlay::before { background: linear-gradient(180deg, rgba(212,160,23,0.35) 0%, rgba(212,160,23,0.6) 52%, rgba(212,160,23,0.8) 100%); }
.brand-progcarnes .proj-overlay::after  { background: linear-gradient(180deg, rgba(212,160,23,0) 0%, rgba(212,160,23,0.35) 48%, rgba(212,160,23,0.6) 100%); }
.brand-naturalone .proj-overlay::before { background: linear-gradient(180deg, rgba(46,125,50,0.35) 0%, rgba(46,125,50,0.6) 52%, rgba(46,125,50,0.8) 100%); }
.brand-naturalone .proj-overlay::after  { background: linear-gradient(180deg, rgba(46,125,50,0) 0%, rgba(46,125,50,0.35) 48%, rgba(46,125,50,0.6) 100%); }
.brand-indal .proj-overlay::before      { background: linear-gradient(180deg, rgba(127,29,29,0.35) 0%, rgba(127,29,29,0.6) 52%, rgba(127,29,29,0.8) 100%); }
.brand-indal .proj-overlay::after       { background: linear-gradient(180deg, rgba(127,29,29,0) 0%, rgba(127,29,29,0.35) 48%, rgba(127,29,29,0.6) 100%); }
.brand-frigor .proj-overlay::before     { background: linear-gradient(180deg, rgba(220,38,38,0.35) 0%, rgba(220,38,38,0.6) 52%, rgba(220,38,38,0.8) 100%); }
.brand-frigor .proj-overlay::after      { background: linear-gradient(180deg, rgba(220,38,38,0) 0%, rgba(220,38,38,0.35) 48%, rgba(220,38,38,0.6) 100%); }
.brand-jbsseara .proj-overlay::before   { background: linear-gradient(180deg, rgba(30,58,138,0.35) 0%, rgba(30,58,138,0.6) 52%, rgba(30,58,138,0.8) 100%); }
.brand-jbsseara .proj-overlay::after    { background: linear-gradient(180deg, rgba(30,58,138,0) 0%, rgba(30,58,138,0.35) 48%, rgba(30,58,138,0.6) 100%); }
.brand-mbrf .proj-overlay::before       { background: linear-gradient(180deg, rgba(142,36,170,0.35) 0%, rgba(142,36,170,0.6) 52%, rgba(142,36,170,0.8) 100%); }
.brand-mbrf .proj-overlay::after        { background: linear-gradient(180deg, rgba(142,36,170,0) 0%, rgba(142,36,170,0.35) 48%, rgba(142,36,170,0.6) 100%); }

/* Opacidade do overlay */
.brand-seara .proj-overlay::before,
.brand-misterbeef .proj-overlay::before,
.brand-cymco .proj-overlay::before,
.brand-cvale .proj-overlay::before,
.brand-progcarnes .proj-overlay::before,
.brand-naturalone .proj-overlay::before,
.brand-indal .proj-overlay::before,
.brand-frigor .proj-overlay::before,
.brand-mbrf .proj-overlay::before { opacity: .35; }

/* --- Seta do overlay --- */
.proj-overlay-arrow {
  position: absolute;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(13px, 2vw, 22px);
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s cubic-bezier(.22,1,.36,1), transform .28s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  z-index: 999;
}
.proj-overlay-arrow svg {
  display: inline-block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.42));
}
.proj-link-card:hover .proj-overlay-arrow,
.proj-link-card:focus-visible .proj-overlay-arrow { opacity: 1; transform: translateY(0); }

/* --- Barra de logos (botões indicadores) --- */
.proj-logos {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: clamp(16px, 2.6vw, 36px);
  padding: clamp(14px, 2.4vw, 24px) 0 0;
}

/* Setas laterais */
.proj-logos-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: color .18s, border-color .18s, opacity .25s;
  z-index: 2;
}
.proj-logos-arrow:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.proj-logos-arrow.is-hidden { opacity: 0; pointer-events: none; }

/* Viewport e slider */
.proj-logos-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.proj-logos-slider {
  display: flex;
  gap: clamp(4px, 1vw, 12px);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

/* Track pontilhado — alinhado ao viewport dos logos (não ultrapassa as setas) */
.proj-logo-track {
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  width: auto;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 5px, transparent 5px 10px);
  pointer-events: none;
  overflow: hidden;
}

/* Indicador + barra de progresso */
.proj-logo-indicator,
.proj-logo-progress {
  position: absolute;
  top: 0; left: 0;
  height: 1px; width: 0;
  background: transparent;
  transform: translateX(0);
  pointer-events: none;
  z-index: 1;
}
.proj-logo-indicator {
  opacity: .9;
  transition: transform .45s cubic-bezier(.22,1,.36,1), width .45s cubic-bezier(.22,1,.36,1), background-color .2s ease;
}
.proj-logo-indicator.is-muted { opacity: .2; }
.proj-logo-progress {
  opacity: 1;
  transform-origin: left center;
  transform: translateX(var(--proj-progress-x, 0px)) scaleX(0);
  z-index: 2;
}
.proj-logo-progress.is-animating {
  animation: projLogoFill var(--proj-progress-duration, 6500ms) linear forwards;
  animation-delay: var(--proj-progress-delay, .5s);
}
@keyframes projLogoFill {
  from { transform: translateX(var(--proj-progress-x, 0px)) scaleX(0); }
  to   { transform: translateX(var(--proj-progress-x, 0px)) scaleX(1); }
}

/* Botões de logo */
.proj-logo-btn {
  position: relative;
  display: inline-flex;
  flex: 0 0 calc((100% - 4 * clamp(4px, 1vw, 12px)) / 5);
  align-items: center;
  justify-content: center;
  padding: 6px 8px 0;
  height: clamp(54px, 7vw, 84px);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.proj-logo-btn img {
  max-width: 62%;
  max-height: clamp(32px, 5vw, 58px);
  object-fit: contain;
  display: block;
  filter: grayscale(1) contrast(.85);
  opacity: .58;
  transition: filter .16s ease, opacity .16s ease;
}
.proj-logo-btn.active img,
.proj-logo-btn[aria-pressed="true"] img {
  filter: none;
  opacity: 1;
}
.proj-logo-text {
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 600;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  transition: color .16s ease;
}
.proj-logo-btn.active .proj-logo-text,
.proj-logo-btn[aria-pressed="true"] .proj-logo-text {
  color: #fff;
}

/* --- Imagem: transição fade --- */
#proj-image {
  transition: opacity .45s ease;
  display: block;
  position: relative;
  z-index: 1;
}
.proj-image-clone {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.proj-image-clone-fade { animation: projImageFadeOut .45s ease forwards; }
.proj-image-fade-in    { animation: projImageFadeIn .45s ease forwards; }
@keyframes projImageFadeOut { to { opacity: 0; } }
@keyframes projImageFadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* --- Textos: animação slide --- */
.projetos-carousel .proj-info #proj-landing-title,
.projetos-carousel .proj-info #proj-brand,
.projetos-carousel .proj-info #proj-desc { overflow: hidden; }
.is-text-animating { will-change: transform, opacity; }
.text-slide-out-left  { animation: textSlideOutLeft .35s forwards ease; }
.text-slide-out-right { animation: textSlideOutRight .35s forwards ease; }
.text-slide-in-left   { animation: textSlideInLeft .35s forwards ease; }
.text-slide-in-right  { animation: textSlideInRight .35s forwards ease; }
@keyframes textSlideOutLeft  { to   { transform: translateX(0); opacity: 0; } }
@keyframes textSlideOutRight { to   { transform: translateX(0); opacity: 0; } }
@keyframes textSlideInLeft   { from { transform: translateX(0); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes textSlideInRight  { from { transform: translateX(0); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- Responsivo (tablet) --- */
@media (max-width: 1023px) {
  .projetos-carousel .proj-logos { padding-top: 18px; }
  .projetos-carousel .proj-logo-btn { padding: 8px 6px 0; height: 60px; }
  .proj-overlay-arrow { bottom: clamp(0px, 4.2vw, 44px); }
}

/* --- Responsivo (mobile ≤520px): logos viram linhas --- */
@media (max-width: 520px) {
  .proj-logos-arrow { display: none; }
  .proj-logos-viewport { overflow: visible; }
  .proj-logos-slider {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    transform: none !important;
  }
  .proj-logo-btn {
    flex: 0 0 auto; width: 28px; height: 1px;
    min-width: 0; max-width: none; padding: 0;
    border-radius: 1px; background: rgba(255,255,255,0.18);
    border: none; display: inline-block;
    transition: background-color .28s cubic-bezier(.22,1,.36,1), transform .22s ease, box-shadow .22s ease;
  }
  .proj-logo-btn img,
  .proj-logo-text { display: none !important; }
  .proj-logo-btn[aria-pressed="true"],
  .proj-logo-btn.active {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleY(1.6);
    box-shadow: 0 6px 18px rgba(230,69,0,0.18);
  }
  .proj-logo-track { display: none; }
  .proj-logo-indicator,
  .proj-logo-progress { display: none; }
  .proj-overlay-arrow { bottom: clamp(28px, 4vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-project-badge,
  .hero-project-badge.is-flipping-out,
  .hero-project-badge.is-flipping-in {
    animation: none !important;
    transform: none !important;
  }
}