/* =========================================
   PREDIALTECH – style.css
   Tokens Figma: Oswald + Inter | #FFC107 | #1A1A1A
   ========================================= */

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

/* ---- Design Tokens ---- */
:root {
  --yellow:       #FFC107;
  --yellow-dk:    #302A18;
  --yellow-hover: #E6AC00;
  --grafite:      #1A1A1A;
  --grafite-cl:   #252525;
  --grafite-cl2:  #AFAFAF;
  --cinza-cl:     #D8D8D8;
  --branco:       #FFFFFF;
  --bg:         var(--grafite);
  --bg-2:       var(--grafite-cl);
  --bg-3:       #2E2E2E;
  --text:       var(--branco);
  --text-muted: var(--cinza-cl);
  --border:     rgba(255,255,255,0.08);
  --container:  1440px;
  --transition: 0.25s ease;
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;
  --fs-64: 64px;
  --fs-38: 38px;
  --fs-20: 20px;
  --fs-18: 18px;
  --fs-16: 16px;
  --fs-14: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.accent { color: var(--yellow); }

.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--yellow);
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 16px;
  width: auto;
}

.label--outlined {
  background-color: var(--yellow-dk);
  border: 1px solid var(--yellow);
}

.section          { padding: 88px 0; }
.section--lighter { background-color: var(--bg-2); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* Animação de entrada — estado inicial */
.section-header .label,
.section-header .section-title,
.section-header .divider {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Delays em cascata */
.section-header .label        { transition-delay: 0s; }
.section-header .section-title { transition-delay: 0.1s; }
.section-header .divider       { transition-delay: 0.22s; }

/* Estado visível */
.section-header.is-visible .label,
.section-header.is-visible .section-title,
.section-header.is-visible .divider {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-38);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.15;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  margin: 16px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 56px;
  padding: 0 36px;
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  width: auto;
}

.btn--primary {
  background: var(--yellow);
  color: #1A1A1A;
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: #1A1A1A;
  border-color: var(--yellow);
  color: var(--yellow);
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo__img--footer {
  height: 42px;
}

.nav__list {
  display: flex;
  gap: 60px;
  align-items: center;
  position: relative;
}
.nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__link:hover,
.nav__link--active { color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------
   Desktop submenu for Serviços
   ----------------------- */
.nav__item--has-submenu {
  position: static;
}

.nav__item--has-submenu .submenu {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  display: flex;
  position: absolute;
  top: 54px;            /* posição Y */
  right: 0;
  left: auto;
  background: rgba(26,26,26,0.98);
  border: 1px solid var(--border);
  border-top: none;     /* triângulo cobre o topo */
  padding: 0;
  width: 635px;         /* largura total */
  max-width: 90vw;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  align-items: stretch;
  z-index: 1000;
  overflow: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Triângulo apontando para cima acima do submenu */
.submenu__arrow {
  position: absolute;
  top: -20px;
  right: 245px;
  width: 50px;
  height: 20px;
  z-index: 1001;
  pointer-events: none;
}

.submenu__arrow svg {
  display: block;
}

/* Overlay escuro quando submenu está aberto */
.submenu-overlay {
  position: fixed;
  top: 80px;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.70);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
 backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.05);
}

body.submenu-open .submenu-overlay {
  opacity: 1;
}

.nav__item--has-submenu .submenu::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: calc((100% - 320px) / 2);
  background: linear-gradient(180deg, #F7B607 0%, #806001 100%);
  z-index: 0;
  pointer-events: none;
}

/* Quadradinho amarelo — posicionado livremente sobre a preview */
.nav__item--has-submenu .submenu::after {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 276px;
  width: 52px;
  height: 52px;
  background: rgba(255,193,7,0.20);
  border: 2px solid rgba(255,193,7,0.50);
  z-index: 1002;
  pointer-events: none;
}

.nav__item--has-submenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 24px;
  background: transparent;
  z-index: 999;
}

.nav__item--has-submenu:hover .submenu,
.nav__item--has-submenu:focus-within .submenu,
.nav__item--has-submenu.submenu-open .submenu,
.nav__item--has-submenu .submenu:hover {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.submenu__list {
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 0;
  background: rgba(26,26,26,0.98);
  position: relative;
}

/* Left gray accent strip */
.submenu__list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: rgba(216,216,216,0.10);
  display: none;

}

.submenu__item {
  padding: 14px 20px 14px 20px;
  position: relative;
}

/* Separador alinhado ao início do texto */
.submenu__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;   /* alinha com o padding-left do texto */
  right: 24px;  /* mesmo espaço à direita, afasta da foto */
  height: 0.8px;
  background: rgba(216,216,216,0.10);
}

.submenu__item:last-child::after {
  display: none;
}

.submenu__item a {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grafite-cl2);
  transition: color var(--transition);
}

.submenu__item a::before {
  content: '❯';
  margin-right: 10px;
  font-size: 10px;
  color: var(--yellow);
  opacity: 0.6;
}

.submenu__item:hover a,
.submenu__item:focus-within a { 
  color: var(--yellow); 
}

.submenu__preview {
  flex: 1;
  min-height: 220px;
  margin: 30px 30px 30px 0;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0px 0px 8px rgba(0,0,0,0.3));
}

.submenu__preview::after { display: none; }
.submenu__preview::before { display: none; }

/* MOBILE submenu */
@media (max-width: 768px) {
  .nav__item--has-submenu::after               { display: none; }
  .submenu-overlay                             { display: none; }
  .submenu__arrow                              { display: none; }

  /* O item com submenu não centraliza — alinha ao topo com padding */
  .nav__list > li.nav__item--has-submenu {
    justify-content: flex-start;
    padding: clamp(6px, 1.5dvh, 12px) 0 0 0;
    flex: 2.5;
    border-bottom: none;
  }

  .nav__item--has-submenu > .nav__link {
    padding-bottom: clamp(3px, 0.5dvh, 5px);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, #ffffff 0%, #FFC107 100%) 1;
  }

  .nav__item--has-submenu .submenu {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    display: block;
    width: 100%;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    overflow: visible;
    transition: none;
  }

  .submenu__preview                            { display: none; }
  .nav__item--has-submenu .submenu::before     { display: none; }
  .nav__item--has-submenu .submenu::after      { display: none; }

  .submenu__list {
    flex-direction: column;
    background: none;
    padding: 0 0 2px 14px;
  }

  .submenu__item {
    padding: clamp(6px, 1.6dvh, 22px) 0;
    border-bottom: 1px solid var(--border);
  }

  .submenu__item:last-child::after { display: none; }

  .submenu__item a {
    font-size: clamp(13px, 2.3dvh, 18px);
    color: var(--grafite-cl2);
  }

  .submenu__item a::before {
    content: '❯';
    margin-right: 10px;
    color: var(--yellow);
    font-size: 10px;
    opacity: 0.6;
  }
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: url('img/img_hero_home.jpg') center -400% / cover no-repeat;
  padding-top: 80px;
}

/* Hero bg img — oculto no desktop, visível só no mobile via media query */
.hero__bg-img {
  display: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,26,26,0.93) 40%,
    rgba(26,26,26,0.30) 100%
  );
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__content {
  max-width: 1070px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Animação de entrada do hero */
.hero__content .label,
.hero__content .hero__title,
.hero__content .hero__text,
.hero__content .btn {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__content.is-visible .label        { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.hero__content.is-visible .hero__title  { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.hero__content.is-visible .hero__text   { opacity: 1; transform: translateY(0); transition-delay: 0.42s; }
.hero__content.is-visible .btn          { opacity: 1; transform: translateY(0); transition-delay: 0.58s; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, var(--fs-64));
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__text {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  color: var(--text-muted);
  line-height: 1.60;
  margin-bottom: 32px;
  max-width: 90%;
}

/* =========================================
   SERVIÇOS
   ========================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.service-card {
  background: var(--grafite);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.50);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  /* Animação de entrada */
  opacity: 0;
  transform: translateY(28px);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--transition),
    box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  background: var(--yellow-dk);
  box-shadow: 0 4px 15px rgba(0,0,0,0.50), 0 0 20px 4px rgba(255,193,7,0.45);
}

.service-card__img {
  height: 220px;
  background-color: var(--bg-3);
  background-size: cover;
  background-position: center top;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.03);
  filter: grayscale(80%) sepia(60%) hue-rotate(5deg) brightness(0.85) blur(1.35px);
}

.service-card__body { padding: 24px; }

.service-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.service-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(255,193,7,0.12);
  border: 1px solid rgba(255,193,7,0.25);
  color: var(--yellow);
  flex-shrink: 0;
}

.service-card__icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color var(--transition);
}

.service-card:hover .service-card__title {
  color: var(--yellow);
}

.service-card__body p {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  color: var(--text-muted);
  line-height: 1.4;
}

/* -----------------------------------------
   Compact 3-cards grid
   ----------------------------------------- */
.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-compact {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.32s var(--transition), box-shadow 0.32s var(--transition), border-color 0.32s var(--transition);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.card-compact__media { margin-bottom: 18px; }
.card-compact__media img { display: inline-block; filter: grayscale(10%); transition: transform 0.32s ease, filter 0.32s ease; }
.card-compact__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.card-compact__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
}

.card-compact:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--yellow);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55), 0 0 24px 6px rgba(255,193,7,0.12);
}
.card-compact:hover .card-compact__media img {
  transform: translateY(-6px) scale(1.06);
  filter: none;
}

@media (max-width: 900px) {
  .three-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .three-cards { grid-template-columns: 1fr; }
}

/* =========================================
   SEGMENTOS
   ========================================= */
.segments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
}

.segment-card {
  background: var(--grafite);
  border: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.50);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
  /* Animação de entrada */
  opacity: 0;
  transform: translateY(28px);
}

.segment-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}
.segment-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  background: var(--yellow-dk);
  box-shadow: 0 4px 15px rgba(0,0,0,0.50), 0 0 20px 4px rgba(255,193,7,0.45);
}

.segment-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
}

.segment-card__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.segment-card p {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--transition);
}

.segment-card:hover p {
  color: var(--yellow);
}

/* =========================================
   CLIENTES
   ========================================= */
.clients {
  background-color: #FFFFFF;
  overflow: hidden;
}

.clients .section-title { color: #595959; }
.clients .label { color: var(--yellow); }
.clients .divider { background: var(--yellow); }

/* ── DESKTOP / TABLET: grid normal ── */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

/* Wrapper do slider — escondido fora do mobile */
.clients__slider { display: none; }

/* ── Estilos do SLIDER MOBILE (4×2 por slide) ── */
.clients__slider {
  position: relative;
  overflow: hidden;
  padding: 0 0 40px; /* espaço para os dots */
}

.clients__slides-track {
  display: flex;
  width: 200%; /* 2 slides × 100% */
  transition: transform 1.5s ease-in;
}

.clients__slide {
  width: 50%; /* cada slide = 100% do container */
  flex-shrink: 0;
  padding: 0 24px;
}

.clients__slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}

/* Dots */
.clients__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
}

.clients__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C0C0C0;
  transition: background 0.3s ease;
  cursor: pointer;
}

.clients__dot--active {
  background: #595959;
}

/* ── client-logo base (desktop + mobile) ── */
.client-logo {
  height: 112px;
  background: #FFFFFF;
  border: none;
  box-shadow: 0 1px 15px rgba(12,12,13,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.client-logo:hover {
  box-shadow: 0 4px 20px rgba(12,12,13,0.25);
  transform: translateY(-2px);
}

.client-logo img {
  max-height: 49px;
  max-width: 75%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.5);
  transition: filter var(--transition);
}
.client-logo:hover img { filter: none; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #0A0A0A;
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.footer__brand { padding-right: 24px; }
.footer__col   { padding: 0; }

.footer__slogan {
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1.35;
}

.footer__desc {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--text-muted);
  line-height: 1.8;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.footer__col ul li {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  margin-bottom: 12px;
  line-height: 1.7;
}

.footer__col ul li a {
  color: var(--yellow);
  font-size: var(--fs-14);
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--branco); }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.footer__contact li img {
  flex-shrink: 0;
  margin-top: 2px;
  display: block;
}
.footer__contact li svg {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer__contact li span {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--text-muted);
  line-height: 1.7;
}
.footer__contact li span a { color: var(--text-muted); }
.footer__contact li span a:hover { color: var(--branco); }

.footer__bottom { border-top: 1px solid var(--border); }
.footer__bottom-inner {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__bottom p,
.footer__credit {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--text-muted);
  opacity: 0.75;
}

/* =========================================
   ZAP FLUTUANTE
   ========================================= */
.zap-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 72px;
  height: 72px;
  background: var(--grafite);
  border: 1px solid rgba(255,193,7,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.50);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.zap-float:hover {
  transform: scale(1.1);
  border-color: var(--yellow);
  box-shadow: 0 0 20px 6px rgba(255,193,7,0.45), 0 4px 15px rgba(0,0,0,0.50);
}

/* =========================================
   AJUSTES RESPONSIVOS ADICIONAIS
   ========================================= */
@media (max-width: 1024px) {
  .container      { padding: 0 32px; }
  .hero__title    { font-size: 52px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .segments__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__grid  { grid-template-columns: repeat(4, 1fr); }
  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav__item--has-submenu .submenu {
    width: min(635px, 90vw);
  }
}

@media (max-width: 900px) {
  .service-card__img { height: 180px; }
}

/* TABLET ONLY (769px – 1024px): segmentos em grid 2 colunas como desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .segments__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .segment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 28px;
    gap: 0;
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .segment-card__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    margin: 0 auto 16px;
  }

  .segment-card__icon img {
    width: 44px;
    height: 44px;
  }

  .segment-card p {
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
    letter-spacing: 0;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    bottom: 0;
    height: 100dvh;
    background: rgba(26,26,26,0.99);
    padding: clamp(44px, 8dvh, 54px) 24px clamp(12px, 3dvh, 24px) 24px;
    display: flex;
    flex-direction: column;
    border-bottom: none;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 1001;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }

  .nav__list {
    flex: 1;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  /* Cada item principal ocupa espaço proporcional */
  .nav__list > li {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    padding-bottom: clamp(3px, 0.5dvh, 5px);
    /* 1) Degradê branco → amarelo nas linhas separadoras */
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, #ffffff 0%, #FFC107 100%) 1;
  }



  .nav__link {
    display: block;
    padding: 0;
    border-bottom: none;
    width: 100%;
    font-size: clamp(13px, 3.2dvh, 21px);
  }

  /* Serviços fica acima de Cases — sem linha separadora abaixo do bloco inteiro */

  .hero              { min-height: 100svh; background: none; }
  .hero__bg-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% center;
    transform: translateY(60px); /* ← positivo desce, negativo sobe */
    z-index: 0;
  }
  .hero::before      { background: linear-gradient(to bottom, rgba(26,26,26,0.45) 0%, rgba(26,26,26,0.65) 100%); z-index: 1; }
  .hero > .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
  .hero__content     { max-width: 100%; }
  .hero__content .label--outlined { display: none; }
  .hero__title       { font-size: 34px; margin-bottom: 16px; }
  .hero__text        { font-size: var(--fs-16); margin-bottom: 24px; }

  .section           { padding: 40px 0; }
  .section-title     { font-size: 22px; }

  /* Section headers ainda mais compactos — ganhar espaço de rolagem */
  .section-header    { margin-bottom: 20px; }
  .label             { margin-bottom: 4px; font-size: 11px; padding: 3px 8px; }
  .divider           { margin-top: 6px; width: 36px; height: 2px; }

  .services__grid    { grid-template-columns: 1fr; }

  /* SEGMENTOS MOBILE — layout + animação cascade unificados */
  .segments__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-top: none;
  }

  .segment-card {
    /* Layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: calc((100dvh - 80px) / 4 * 0.6);
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    box-shadow: none;
    background: var(--grafite);
    border-radius: 0;
    /* Animação — começa invisível e deslocado */
    opacity: 0;
    transform: translateX(-20px);
    /* Transition unificada: fade suave + movimento + hover */
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.25s ease,
      background 0.25s ease;
  }

  .segment-card:first-child {
    border-top: 1px solid var(--border);
  }

  /* Estado visível após scroll */
  .segment-card.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .segment-card:hover {
    border-left-color: var(--yellow);
    background: var(--yellow-dk);
    transform: translateX(0);
    box-shadow: none;
  }

  .segment-card__icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .segment-card__icon img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
  }

  .segment-card p {
    font-size: clamp(8px, 2.8vw, 11px);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  /* Wrapping border around the whole list */
  .segments__grid {
    border: 1px solid var(--border);
    border-top: none; /* first-child handles top */
  }
  .segment-card:first-child {
    border-top: 1px solid var(--border);
  }

  /* Mobile: esconde o grid e mostra o slider */
  .clients__grid   { display: none; }
  .clients__slider {
    display: block;
    padding-bottom: 40px;
  }

  /* Ajusta tamanho dos logos no slider mobile — 20% menor, proporção quadrada */
  .clients__slide-grid .client-logo {
    height: 0;
    padding-bottom: 80%; /* quadrado -20% */
    position: relative;
  }
  .clients__slide-grid .client-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 50%;
    max-width: 65%;
  }

  .footer__grid      { grid-template-columns: 1fr; gap: 32px; }

  .footer__bottom p,
  .footer__credit { font-size: calc(var(--fs-14) * 0.75); }

  .footer__bottom {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero__title    { font-size: 34px; }
  .clients__slide { padding: 0 16px; }
}

@media (max-width: 1440px) {
  .service-card__img { height: 150px; }
}

@media (max-height: 780px) {
  .segments__grid { column-gap: 63px; }
  .segment-card   { padding: 32px 16px 28px; }
  .segment-card__icon { width: 50px; height: 50px; margin-bottom: 16px; }
  .segment-card__icon img { width: 38px; height: 38px; }
  .segment-card p { font-size: 16px; }
}

@media (min-width: 1920px) {
  .hero { background-position: center 80px; }
}

@media (min-width: 2560px) {
  .hero { background-position: center 80px; }
}
/* =========================================
   HERO – variações por página
   ========================================= */
.hero--sobre {
  background-image: url('/img/img_hero_sobre.jpg');
  background-position: center center;
  min-height: 70vh;
}
.hero--sobre .hero__bg-img {
  display: none;
}

/* =========================================
   HERO – variações por página
   ========================================= */
.hero--sobre {
  background-color: var(--grafite);
  background-image: url('/img/img_hero_sobre.jpg');
  background-position: center center;
  min-height: 70vh;
}
.hero--sobre .hero__bg-img {
  display: none;
}

/* Hero content sempre visível no SSR */
.hero__content { opacity: 1 !important; transform: none !important; }

/* =========================================
   SOBRE – estilos específicos
   ========================================= */
.hero__content { opacity: 1 !important; transform: none !important; }

.hero--sobre {
  background-color: var(--grafite);
  background-image: url('/img/img_hero_sobre.jpg');
  background-size: cover;
  background-position: center center;
  min-height: 70vh;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-split__media { position: relative; }
.about-split__img { width: 100%; height: 460px; object-fit: cover; display: block; }
.about-split__deco {
  position: absolute; bottom: -20px; right: -20px;
  width: 64px; height: 64px;
  background: rgba(255,193,7,0.20); border: 2px solid rgba(255,193,7,0.50);
  pointer-events: none;
}
.about-split__label {
  font-family: var(--font-display); font-size: var(--fs-14); font-weight: 400;
  color: var(--yellow); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px;
}
.about-split__title {
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  text-transform: uppercase; line-height: 1.15; margin-bottom: 28px;
}
.about-split__body p {
  font-family: var(--font-body); font-size: var(--fs-16);
  color: var(--text-muted); line-height: 1.75; margin-bottom: 20px;
}
.about-split__body p:last-child { margin-bottom: 0; }

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.principle-card {
  text-align: center; padding: 48px 32px 40px;
  border: 1px solid var(--border); background: var(--grafite);
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.principle-card:hover {
  border-color: var(--yellow); background: var(--yellow-dk);
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.50), 0 0 20px 4px rgba(255,193,7,0.20);
}
.principle-card__icon {
  width: 80px; height: 80px; margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
}
.principle-card__icon img { width: 64px; height: 64px; object-fit: contain; }
.principle-card__title {
  font-family: var(--font-display); font-size: var(--fs-20); font-weight: 600;
  text-transform: uppercase; margin-bottom: 16px; transition: color var(--transition);
}
.principle-card:hover .principle-card__title { color: var(--yellow); }
.principle-card__text {
  font-family: var(--font-body); font-size: var(--fs-16);
  color: var(--text-muted); line-height: 1.65;
}

.capabilities { background-color: var(--bg-2); }
.capabilities__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.capabilities__label {
  font-family: var(--font-display); font-size: var(--fs-14);
  color: var(--yellow); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px;
}
.capabilities__title {
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  text-transform: uppercase; line-height: 1.15; margin-bottom: 20px;
}
.capabilities__intro {
  font-family: var(--font-body); font-size: var(--fs-16);
  color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; font-weight: 600;
}
.capabilities__list { display: flex; flex-direction: column; gap: 14px; }
.capabilities__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-body); font-size: var(--fs-16); color: var(--text-muted); line-height: 1.5;
}
.capabilities__list li::before {
  content: ''; display: block; flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 2px;
  background: var(--yellow);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.capabilities__media { position: relative; }
.capabilities__img { width: 100%; height: 500px; object-fit: cover; display: block; }
.capabilities__deco {
  position: absolute; bottom: -20px; left: -20px;
  width: 64px; height: 64px;
  background: rgba(255,193,7,0.20); border: 2px solid rgba(255,193,7,0.50);
  pointer-events: none;
}

/* Força visibilidade do hero sem JS */
.hero__content .label,
.hero__content .hero__title,
.hero__content .hero__text,
.hero__content .btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
ENDOFFILE.

cat >> /var/www/predialtech/public/style.css << 'ENDOFFILE'

/* Força visibilidade do hero sem JS */
.hero__content .label,
.hero__content .hero__title,
.hero__content .hero__text,
.hero__content .btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Placeholder de imagem com altura definida */
.about-split__img:not(img) {
  height: 460px;
}
.capabilities__img:not(img) {
  height: 500px;
}

/* Hero centralizado verticalmente */
.hero--sobre {
  display: flex;
  align-items: center;
}
.hero--sobre .container {
  width: 100%;
}

/* CTA Banner */
.cta-banner {
  background: var(--grafite);
}
.cta-banner__inner {
  text-align: center;
  padding: 40px 0;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-banner__sub {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* CTA Banner - cor fixa para ignorar tema do Payload */
.cta-banner {
  background: #1A1A1A !important;
}

/* Placeholder de imagem - roxo luminoso */
.about-split__img:not(img),
.capabilities__img:not(img),
.hero--sobre .hero__bg:not(img),
[class*="__img"]:not(img):not([src]),
[class*="__media"] div:not([class*="deco"]):not([class*="overlay"]) {
  background: #7C3AED !important;
}

/* Hero /sobre - placeholder de background */
.hero--sobre {
  background: #3B0764 !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Segment cards - força visibilidade sem JS */
.segment-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Fix: segment-card__icon tamanho correto em mobile */
@media (max-width: 768px) {
  .segment-card__icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    margin: 0 auto 16px !important;
  }
  .segment-card__icon img {
    width: 56px !important;
    height: 56px !important;
  }
}

/* Fix segment-card__icon direto como img */
img.segment-card__icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 24px !important;
  display: block !important;
}

/* Fix segment-card__icon — ajuste para 50px igual ao local */
img.segment-card__icon {
  width: 50px !important;
  height: 50px !important;
  margin: 0 auto 20px !important;
  display: block !important;
}

/* Fix segment-card__name — Oswald uppercase igual ao local */
.segment-card__name {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: var(--text) !important;
  line-height: 1.4 !important;
}
.segment-card:hover .segment-card__name {
  color: var(--yellow) !important;
}

/* Mobile segment-cards — layout vertical centralizado igual ao local */
@media (max-width: 768px) {
  .segments__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    flex-direction: unset !important;
    gap: 12px !important;
    border: none !important;
  }
  .segment-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 32px 16px 24px !important;
    height: auto !important;
    border: 1px solid var(--border) !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 0 !important;
    gap: 0 !important;
    transform: translateY(28px) !important;
  }
  .segment-card.is-visible {
    transform: translateY(0) !important;
  }
  .segment-card:hover {
    border-color: var(--yellow) !important;
    border-left-color: var(--yellow) !important;
    transform: translateY(-4px) !important;
  }
  img.segment-card__icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 16px !important;
    display: block !important;
  }
  .segment-card__icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 16px !important;
  }
  .segment-card__icon img {
    width: 38px !important;
    height: 38px !important;
  }
  .segment-card__name,
  .segment-card p {
    font-size: 14px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

/* Mobile segment-cards — reverter para layout horizontal, corrigir fonte */
@media (max-width: 768px) {
  .segments__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 1px solid var(--border) !important;
    border-top: none !important;
  }
  .segment-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    flex-direction: row !important;
    padding: 0 16px !important;
    height: 88px !important;
    border-radius: 0 !important;
    gap: 12px !important;
    transform: translateX(-20px) !important;
  }
  .segment-card.is-visible {
    transform: translateX(0) !important;
  }
  .segment-card:hover {
    transform: translateX(0) !important;
  }
  img.segment-card__icon,
  .segment-card__icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .segment-card__icon img {
    width: 20px !important;
    height: 20px !important;
  }
  .segment-card__name,
  .segment-card p {
    font-family: var(--font-display) !important;
    font-size: clamp(11px, 3vw, 14px) !important;
    text-transform: uppercase !important;
    text-align: left !important;
    white-space: normal !important;
    letter-spacing: 0.03em !important;
  }
}

/* ===== MOBILE SEGMENT-CARDS — FIX DEFINITIVO ===== */
@media (max-width: 768px) {
  .segments__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 1px solid var(--border) !important;
    border-top: none !important;
    grid-template-columns: unset !important;
  }
  .segment-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0 16px !important;
    height: 88px !important;
    text-align: left !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-left: 3px solid transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: translateX(-20px) !important;
  }
  .segment-card.is-visible {
    transform: translateX(0) !important;
  }
  .segment-card:first-child {
    border-top: 1px solid var(--border) !important;
  }
  .segment-card:hover {
    border-left-color: var(--yellow) !important;
    background: var(--yellow-dk) !important;
    transform: translateX(0) !important;
    box-shadow: none !important;
  }
  img.segment-card__icon,
  .segment-card__icon,
  .segment-card__icon img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: block !important;
  }
  .segment-card__name,
  .segment-card p {
    font-family: var(--font-display) !important;
    font-size: clamp(12px, 3.2vw, 15px) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    text-align: left !important;
    white-space: normal !important;
    letter-spacing: 0.03em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
}
/* ===== FIM FIX DEFINITIVO ===== */

/* ===== MOBILE SEGMENT — OVERRIDE FINAL v2 ===== */
@media (max-width: 768px) {
  img.segment-card__icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
  }
}

/* ===== MOBILE SEGMENT — ALINHAMENTO ESQUERDA v3 ===== */
@media (max-width: 768px) {
  .segment-card {
    justify-content: flex-start !important;
    padding-left: 20px !important;
  }
}

/* ===== MOBILE SEGMENT — ALTURA E PADDING CORRETOS ===== */
@media (max-width: 768px) {
  .segment-card {
    height: 88px !important;
    padding: 0 16px !important;
    min-height: unset !important;
  }
}

/* ===== MOBILE SEGMENT — GRID FULL-WIDTH (sai do container) ===== */
@media (max-width: 768px) {
  .segments__grid {
    margin-left: -24px !important;
    margin-right: -24px !important;
  }
}

/* ===== MOBILE SEGMENT — CORRIGIR OVERFLOW ===== */
@media (max-width: 768px) {
  .segments.section {
    overflow: hidden !important;
  }
}

/* Prevenir scroll horizontal global */
html, body {
  overflow-x: hidden;
}

/* ===== MOBILE SEGMENT — RESET TOTAL + CSS EXATO DO LOCAL ===== */
@media (max-width: 768px) {
  .segments__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 1px solid var(--border) !important;
    border-top: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: unset !important;
  }
  .segment-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
    height: calc((100dvh - 80px) / 4 * 0.6) !important;
    text-align: left !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-left: 3px solid transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    justify-content: flex-start !important;
    transform: translateX(-20px) !important;
  }
  .segment-card:first-child {
    border-top: 1px solid var(--border) !important;
  }
  .segment-card.is-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  .segment-card:hover {
    border-left-color: var(--yellow) !important;
    background: var(--yellow-dk) !important;
    transform: translateX(0) !important;
    box-shadow: none !important;
  }
  img.segment-card__icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
  }
  .segment-card__name {
    font-size: clamp(11px, 2.8vw, 13px) !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    letter-spacing: 0.01em !important;
  }
  html, body {
    overflow-x: unset !important;
  }
  .segments.section {
    overflow: unset !important;
  }
}
