/* ============================================================
   index.css — Estilos principais | CM Serviços & Soluções
   ============================================================ */

/* Fontes: sistema (sem CDN). */

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  /* Paleta principal */
  --blue-950: #060e26;
  --blue-900: #0c1e4a;
  --blue-800: #1035a0;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --green-600: #16a34a;
  --green-500: #22c55e;

  /* Neutros */
  --neutral-950: #020617;
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50:  #f8fafc;
  --white:       #ffffff;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(15,23,42,.08);
  --shadow-md:  0 4px 12px rgba(15,23,42,.10);
  --shadow-lg:  0 10px 28px rgba(15,23,42,.13);
  --shadow-xl:  0 20px 48px rgba(15,23,42,.17);
  --shadow-2xl: 0 32px 64px rgba(15,23,42,.22);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transições */
  --t-fast:   .18s ease;
  --t-normal: .28s ease;
  --t-slow:   .45s ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-500) transparent;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue-500); border-radius: 3px; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, #e8f4ff 0%, #c9e4fd 100%);
  color: var(--neutral-900);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Loading Screen ────────────────────────────────────────── */
html.cm-restore-scroll #loading-screen,
html.cm-welcome-done #loading-screen {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-screen__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  width: min(92vw, 760px);
  padding: 0 20px;
}

.loading-logo-slot {
  flex-shrink: 0;
  transform: translate(0, 0);
  will-change: transform;
}

.loading-logo {
  width: 260px;
  height: 260px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.35));
  animation: loadingLogoIn .75s cubic-bezier(.34,1.56,.64,1) both, loadingFloat 3s ease-in-out 0.75s infinite;
}

#loading-screen.is-float-done .loading-logo {
  animation: loadingLogoIn .75s cubic-bezier(.34,1.56,.64,1) both;
}

.loading-welcome {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(14px);
  max-height: 0;
  overflow: hidden;
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.22,1,.36,1),
    max-height .55s ease;
}

#loading-screen.is-reveal .loading-welcome {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
}

#loading-screen {
  cursor: pointer;
}

.loading-welcome.is-typing::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: .95em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: currentColor;
  animation: loadingCaret .7s steps(1) infinite;
}

@keyframes loadingCaret {
  50% { opacity: 0; }
}

@media (min-width: 641px) {
  .loading-screen__inner {
    flex-direction: row;
    gap: 0;
    transition: gap .9s cubic-bezier(.22,1,.36,1);
  }

  #loading-screen.is-reveal .loading-screen__inner {
    gap: 30px;
  }

  #loading-screen.is-reveal .loading-logo-slot {
    animation: loadingSlotSlideLeft 1.15s cubic-bezier(.33,1,.42,1) forwards;
  }

  .loading-welcome {
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    white-space: nowrap;
    text-align: left;
    transform: translateX(24px);
    max-width: 0;
    transition:
      opacity .75s ease .42s,
      transform .75s cubic-bezier(.22,1,.36,1) .42s,
      max-height .55s ease .35s,
      max-width .75s ease .35s;
  }

  #loading-screen.is-reveal .loading-welcome {
    transform: translateX(0);
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .loading-logo {
    width: 190px;
    height: 190px;
  }

  #loading-screen.is-reveal .loading-screen__inner {
    gap: 0;
    transition: gap .9s cubic-bezier(.22,1,.36,1);
  }

  #loading-screen.is-reveal.is-reveal--open {
    gap: 16px;
  }

  #loading-screen.is-reveal .loading-logo-slot {
    animation: loadingSlotSlideUp 1.15s cubic-bezier(.33,1,.42,1) forwards;
  }

  .loading-welcome {
    font-size: 1.55rem;
    padding: 0 8px;
    transform: translateY(18px);
    transition:
      opacity .75s ease .4s,
      transform .75s cubic-bezier(.22,1,.36,1) .4s,
      max-height .55s ease .35s;
  }
}

@media (max-width: 480px) {
  .loading-logo { width: 170px; height: 170px; }
  .loading-welcome { font-size: 1.35rem; }
}

@keyframes loadingLogoIn {
  from { opacity: 0; transform: scale(.78); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes loadingFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-10px) scale(1.03); }
}
@keyframes loadingSlotSlideLeft {
  0%   { transform: translateX(0); }
  28%  { transform: translateX(-14px); }
  52%  { transform: translateX(-38px); }
  76%  { transform: translateX(-62px); }
  100% { transform: translateX(-82px); }
}
@keyframes loadingSlotSlideUp {
  0%   { transform: translateY(0); }
  28%  { transform: translateY(-12px); }
  52%  { transform: translateY(-28px); }
  76%  { transform: translateY(-44px); }
  100% { transform: translateY(-56px); }
}

/* ── Navbar ────────────────────────────────────────────────── */
#main-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .45s ease, background .3s ease, box-shadow .3s ease;
}

#main-navbar.scrolled,
#main-navbar.navbar-solid {
  background: rgba(16,53,160,.96) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(12,30,74,.4);
}

#main-navbar.navbar-hidden  { transform: translateY(-110%); opacity: 0; pointer-events: none; }
#main-navbar.navbar-reveal  { animation: navbarDrop 1s cubic-bezier(.22,1,.36,1); }

@keyframes navbarDrop {
  from { transform: translateY(-80%); opacity: .2; }
  to   { transform: translateY(0);    opacity: 1;  }
}

/* ── Botão voltar ao topo ──────────────────────────────────── */
.btn-topo {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0);
  opacity: 0;
  transition: all var(--t-slow) cubic-bezier(.4,0,.2,1);
}
.btn-topo.visible { transform: scale(1); opacity: 1; display: flex; }
.btn-topo:hover   { transform: scale(1.12) translateY(-3px); box-shadow: 0 18px 36px rgba(37,99,235,.4); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-container { position: absolute; inset: 0; z-index: 0; }

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-image:url('../../img/site/fundo-futura-sede.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .9;
  filter: blur(2px) brightness(.82);
  will-change: transform;
  transition: transform .1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,30,74,.4) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.5) 100%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 10; width: 100%; }

/* ── Títulos de seção ──────────────────────────────────────── */
.section-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--neutral-900);
  letter-spacing: -.4px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  border-radius: 2px;
}

/* ── Linha expansiva ───────────────────────────────────────── */
.expanding-line {
  position: relative;
  width: 100%; max-width: 400px;
  height: 3px;
  margin: 0 auto;
  background: transparent;
  overflow: hidden;
  border-radius: 2px;
}
.expanding-line::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: translateX(-50%);
  animation: expandLine 2.2s ease-out forwards;
}
@keyframes expandLine { to { width: 100%; left: 0; transform: translateX(0); } }

/* ── Estatísticas ──────────────────────────────────────────── */
.stats-section {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-xl);
  margin: 2rem auto;
  padding: 3rem 2rem;
}

.stats-card {
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.08), transparent);
  transition: left .55s ease;
}
.stats-card:hover::before { left: 100%; }
.stats-card:hover {
  border-color: var(--blue-400);
  background: linear-gradient(135deg, var(--blue-50), #bfdbfe);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.stats-icon {
  font-size: 2.8rem;
  margin-bottom: .8rem;
  display: block;
  animation: floatBounce 2.5s ease-in-out infinite;
}
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.stats-number {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: .4rem;
  letter-spacing: -1px;
}

.stats-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-700);
}

/* ── Seção Sobre ───────────────────────────────────────────── */
.about {
  padding: 90px 20px;
  background: var(--neutral-50);
  text-align: center;
}

.about-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid var(--blue-100);
}

.about h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 10px;
  letter-spacing: -.4px;
}

.about-subtitle {
  color: var(--neutral-500);
  max-width: 560px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.7;
}

.about-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-2xl);
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  object-fit: cover;
  display: block;
}

.about-text { text-align: left; }
.about-text h3 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 18px;
  letter-spacing: -.3px;
}
.about-text p {
  color: var(--neutral-600);
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 15px;
}

.about-list {
  margin-top: 28px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-list span {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(29,78,216,.3);
}
.about-list strong { display: block; color: var(--neutral-900); font-weight: 700; }
.about-list small  { color: var(--neutral-500); font-size: 13px; }

@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-text { text-align: center; }
  .about-list li { justify-content: center; }
}

/* ── Seção Serviços (cards) ────────────────────────────────── */
.services {
  padding: 80px 20px;
  background: var(--neutral-50);
  text-align: center;
}
.services h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.subtitle {
  font-size: 15px;
  color: var(--neutral-500);
  margin-bottom: 50px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Seção Destaques (shell — conteúdo na fase 2) ─────────── */
.destaques {
  padding: 80px 20px;
  background: var(--white);
  text-align: center;
}
.destaques-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--blue-100);
}
.destaques h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.destaques-subtitle {
  font-size: 15px;
  color: var(--neutral-500);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.destaques-shell {
  max-width: 900px;
  margin: 0 auto;
  min-height: 280px;
  border: 2px dashed var(--neutral-200);
  border-radius: var(--r-lg);
  background: var(--neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.destaques-shell__inner {
  max-width: 420px;
  text-align: center;
}
.destaques-shell__icon {
  font-size: 2.25rem;
  color: var(--blue-500);
  margin-bottom: 16px;
  opacity: .85;
}
.destaques-shell__title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin: 0 0 10px;
}
.destaques-shell__text {
  font-size: 14px;
  color: var(--neutral-500);
  line-height: 1.65;
  margin: 0;
}
.destaques-shell__text strong {
  color: var(--blue-700);
  font-weight: 700;
}

.destaques-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}

@media (max-width: 1023px) {
  .destaques-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .destaques-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .destaques-grid::-webkit-scrollbar { height: 6px; }
  .destaques-grid::-webkit-scrollbar-thumb {
    background: var(--blue-300, #93c5fd);
    border-radius: 999px;
  }
}

.destaques-card {
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}

@media (max-width: 639px) {
  .destaques-card {
    flex: 0 0 min(85vw, 320px);
    scroll-snap-align: start;
  }
}

.destaques-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300, #93c5fd);
}

.destaques-card__media {
  aspect-ratio: 16 / 9;
  background: var(--neutral-950);
  overflow: hidden;
}

.destaques-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.destaques-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.destaques-card__body {
  padding: 16px 18px 18px;
  flex: 1;
}

.destaques-card__title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-700);
  margin: 0 0 8px;
  line-height: 1.35;
}

.destaques-card__desc {
  font-size: 13.5px;
  color: var(--neutral-600);
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 641px) {
  .destaques-shell {
    min-height: 320px;
    padding: 40px 32px;
  }
}

.cards {
  display: grid;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 640px) and (max-width: 1199px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  animation: cardFadeUp .5s ease both;
}
a.card.card--clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a.card.card--clickable:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-300, #93c5fd);
}

/* Carrossel de imagens nos cards de serviços */
.services .service-carousel {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--neutral-950);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.services .carousel-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .65s ease, transform .7s cubic-bezier(.22,1,.36,1);
  backface-visibility: hidden;
}
.services .carousel-img.active { opacity: 1; }
.services .card:hover .carousel-img.active { transform: scale(1.06); }
/* Fotos do catálogo integrado (card Fornecedor): área fixa, imagem inteira visível */
.services .card.card--fornecedor-catalogo .service-carousel {
  min-height: 220px;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
}
.services .card.card--fornecedor-catalogo .carousel-img {
  object-fit: contain;
}
.services .card.card--fornecedor-catalogo:hover .carousel-img.active {
  transform: none;
}

.card h3 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-700);
  padding: 16px 18px 6px;
}
.card p {
  font-size: 13.5px;
  color: var(--neutral-600);
  padding: 0 18px 14px;
  line-height: 1.65;
  flex: 1;
}
.card .card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 18px 18px;
  padding: 14px 24px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .32);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), gap var(--t-fast);
  pointer-events: none;
}
.card--clickable:hover .card-btn,
.card .card-btn:hover {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-800) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .42);
  gap: 12px;
}
.card--clickable:active .card-btn,
.card .card-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
}
.card .card-btn i {
  font-size: 13px;
  transition: transform var(--t-fast);
}
.card--clickable:hover .card-btn i,
.card .card-btn:hover i { transform: translateX(3px); }

@media (max-width: 639px) {
  .card .card-btn {
    margin-top: 10px;
    padding: 16px 24px;
    min-height: 52px;
    font-size: 16px;
  }
  .card .card-btn i { font-size: 14px; }
}

/* ── Seção Portfólio ───────────────────────────────────────── */
.portfolio {
  padding: 80px 20px;
  background: var(--white);
  text-align: center;
}
.portfolio-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--blue-100);
}
.portfolio h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 10px;
}
.portfolio-subtitle {
  color: var(--neutral-500);
  font-size: 15px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.portfolio-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.portfolio-card {
  position: relative;
  height: 220px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  cursor: pointer;
  overflow: hidden;
}
.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.portfolio-card:hover { transform: scale(1.05) translateY(-4px); box-shadow: var(--shadow-2xl); }
.portfolio-icon {
  font-size: 56px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.3));
  transition: transform var(--t-normal);
}
.portfolio-card:hover .portfolio-icon { transform: scale(1.18); }

/* ── Contato ───────────────────────────────────────────────── */
.contact {
  padding: 88px 20px;
  background: var(--neutral-50);
  text-align: center;
}
.contact h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.contact > p {
  color: var(--neutral-500);
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.7;
}

#contactForm {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.contact-channel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--neutral-500);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.contact-channel__btn i {
  font-size: 16px;
}

.contact-channel__btn:hover {
  color: var(--neutral-800);
  background: var(--neutral-50);
  transform: none;
  box-shadow: none;
}

.contact-channel__btn.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

#contactForm.is-whatsapp .contact-channel__btn[data-channel="whatsapp"].is-active {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.25);
}

#contactForm textarea {
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--neutral-200);
  font-size: 14.5px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--neutral-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 130px;
  resize: vertical;
}

#contactForm textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

#contactForm.is-whatsapp textarea:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

#contactForm textarea::placeholder { color: var(--neutral-400); }

#contactForm #contactSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 999px;
  font-size: 15px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  margin-top: 4px;
}

#contactForm.is-whatsapp #contactSubmit {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

#contactForm #contactSubmit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(29,78,216,.3);
}

#contactForm.is-whatsapp #contactSubmit:hover {
  box-shadow: 0 14px 28px rgba(21, 128, 61, 0.28);
}

#contactForm #contactSubmit:active { transform: scale(.98); }
#contactForm #contactSubmit:disabled {
  opacity: .75;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Feedback de formulário ────────────────────────────────── */
.feedback-message {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  animation: slideInUp .35s ease-out;
}
.feedback-message[hidden] { display: none !important; }
.feedback-message.success {
  background: rgba(16,185,129,.12);
  color: #059669;
  border: 1px solid rgba(16,185,129,.25);
}
.feedback-message.error {
  background: rgba(239,68,68,.12);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,.25);
}

/* ── Seção Localização ─────────────────────────────────────── */
.location {
  background: var(--white);
}

/* ── Botão WhatsApp flutuante ──────────────────────────────── */
.whatsapp-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 9000;
}
.whatsapp-button {
  width: 62px; height: 62px;
  background: var(--green-600);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(22,163,74,.4);
  position: relative;
  z-index: 2;
  transition: transform var(--t-slow);
}
.whatsapp-button i { font-size: 26px; transition: transform var(--t-slow); }
.whatsapp-button svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: transform var(--t-slow);
}
.trail {
  height: 52px;
  width: 0;
  background: var(--green-600);
  border-radius: 30px;
  margin-right: -52px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  transition: width var(--t-slow);
}
.whatsapp-text {
  color: var(--white);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: all .4s ease .2s;
}
.whatsapp-container:hover .whatsapp-button { transform: translateX(-218px); }
.whatsapp-container:hover .whatsapp-button i { transform: rotate(-360deg); }
.whatsapp-container:hover .whatsapp-button svg { transform: rotate(-360deg); }
.whatsapp-container:hover .trail { width: 248px; }
.whatsapp-container:hover .whatsapp-text { opacity: 1; transform: translateX(0); }
@media (max-width: 768px) { .trail { display: none; } }

/* ── Animações utilitárias ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsividade ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-number { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .hero-section  { padding: 2rem 1rem; }
  .stats-section { padding: 2rem 1rem; }
  .contact       { padding: 56px 1rem; }
  .about         { padding: 56px 1rem; }
}
@media (max-width: 480px) {
  .stats-number { font-size: 2rem; }
  .stats-card   { padding: 1.4rem 1rem; }
}

/* ── AOS: se o script não carregar (CDN/offline), não manter seções invisíveis ── */
html.aos-unavailable [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── Utilitários ───────────────────────────────────────────── */
.hidden { display: none !important; }
.gradient-text {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
