/* ==========================================================================
   JC SOLUTIONS | ULTRA-CLEAN MINIMALIST CORPORATE DESIGN SYSTEM
   Palette:
   --bg: #000814
   --surface: #0a1424
   --blue: #003566
   --accent: #ffc300
   Text: #ffffff (primary) | rgba(255,255,255,.55) (secondary)
   Border: rgba(255,255,255,.08)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --bg: #000814;
  --surface: #0a1424;
  --surface-hover: #0d1b30;
  --blue: #003566;
  --accent: #ffc300;
  --accent-hover: #ffd033;
  --accent-dark: #000814;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-focus: #ffc300;

  --font-sans: 'Geist', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1200px;
  --section-padding: 130px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--accent);
  color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   3. LAYOUT & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  position: relative;
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
  position: relative;
}

#servicos.section {
  padding-top: clamp(40px, 5vw, 72px);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 780px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
}

.title-muted {
  color: rgba(255, 255, 255, 0.45);
  display: block;
}

.title-white {
  color: #ffffff;
  display: block;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
}

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. BOTÕES (PILL STYLE)
   -------------------------------------------------------------------------- */
/* Botão Primário: Pílula amarela com círculo escuro e seta branca */
.btn-pill-primary, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem 0.55rem 1.45rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
  border: none;
  text-decoration: none;
}

.btn-pill-primary:hover, .btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-pill-arrow-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--accent-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.btn-pill-primary:hover .btn-pill-arrow-circle,
.btn-primary:hover .btn-pill-arrow-circle {
  transform: translateX(3px);
}

/* Botão Secundário: Pílula com borda branca fina */
.btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.65rem;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-secondary:hover, .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.65rem 0.75rem 0.65rem 1.75rem;
  font-size: 1.025rem;
}

.btn-lg .btn-pill-arrow-circle {
  width: 38px;
  height: 38px;
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVEGAÇÃO
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 5rem;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo: Caixa alta, espaçado, minimalista */
.brand-logo {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: rgba(255, 255, 255, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Trava a rolagem da página com o menu aberto */
body.menu-open {
  overflow: hidden;
}

/* ==========================================
   MOBILE (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    transform: none;
  }

  .mobile-toggle {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #fff;
    border: 0;
    align-items: center;
    cursor: pointer;
    padding: 0;
  }

  .mobile-toggle .hamburger-bar {
    width: 18px;
    height: 2px;
    background: #000814;
    border-radius: 2px;
    transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s;
  }

  .mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 96px 24px 40px;
    background: #000814;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }

  .main-nav.is-open,
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .45s ease;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-link {
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 500;
    letter-spacing: -.02em;
    color: rgba(255,255,255,.55);
    padding: 8px 0;
    display: inline-block;
    transition: color 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #fff;
  }

  .nav-indicator-line {
    display: none;
  }

  .main-nav .nav-list li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1);
  }

  .main-nav.is-open .nav-list li,
  .main-nav.open .nav-list li {
    opacity: 1;
    transform: none;
  }

  .main-nav.is-open .nav-list li:nth-child(1),
  .main-nav.open .nav-list li:nth-child(1) { transition-delay: .05s; }

  .main-nav.is-open .nav-list li:nth-child(2),
  .main-nav.open .nav-list li:nth-child(2) { transition-delay: .1s; }

  .main-nav.is-open .nav-list li:nth-child(3),
  .main-nav.open .nav-list li:nth-child(3) { transition-delay: .15s; }

  .main-nav.is-open .nav-list li:nth-child(4),
  .main-nav.open .nav-list li:nth-child(4) { transition-delay: .2s; }

  .main-nav.is-open .nav-list li:nth-child(5),
  .main-nav.open .nav-list li:nth-child(5) { transition-delay: .25s; }

  .main-nav.is-open .nav-list li:nth-child(6),
  .main-nav.open .nav-list li:nth-child(6) { transition-delay: .3s; }

  .main-nav.is-open .nav-list li:nth-child(7),
  .main-nav.open .nav-list li:nth-child(7) { transition-delay: .35s; }

  .main-nav.is-open .nav-list li:nth-child(8),
  .main-nav.open .nav-list li:nth-child(8) { transition-delay: .4s; }

  .main-nav.is-open .nav-list li:nth-child(9),
  .main-nav.open .nav-list li:nth-child(9) { transition-delay: .45s; }

  .main-nav.is-open .nav-list li:nth-child(10),
  .main-nav.open .nav-list li:nth-child(10) { transition-delay: .5s; }

  /* CTA: só dentro do menu, sem duplicar */
  .header-cta-desktop {
    display: none;
  }

  .mobile-nav-cta-item {
    margin-top: 24px;
  }
}

/* ==========================================
   DESKTOP (min-width: 1025px)
   ========================================== */
@media (min-width: 1025px) {
  .mobile-toggle,
  .mobile-nav-cta-item,
  .header-actions {
    display: none;
  }

  .main-nav {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.65);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: color 0.2s ease, background-color 0.2s ease;
    display: inline-block;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
  }

  .main-nav .nav-list li {
    opacity: 1;
    transform: none;
  }

  .header-cta-desktop {
    display: none;
  }
}

/* Ocultar barra de progresso conforme instrução */
.scroll-progress-container {
  display: none !important;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION (CENTRALIZADO, UMA COLUNA)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  isolation: isolate;
  padding-top: 10.5rem;
  padding-bottom: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  text-align: center;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(1440px, 100%);
}

.hero-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

/* ==========================================================================
   ANIMAÇÃO DE CARREGAMENTO / ENTRADA DINÂMICA DO HERO
   ========================================================================== */
@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(10px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroShineSweep {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@keyframes heroBtnReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Título em duas linhas com duas tonalidades */
.hero-title {
  font-size: clamp(44px, 6.8vw, 84px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-line-muted {
  color: rgba(255, 255, 255, 0.45);
  display: block;
  opacity: 0;
  animation: heroTextReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  will-change: transform, opacity, filter;
}

.hero-line-white {
  color: #ffffff;
  display: block;
  opacity: 0;
  animation: heroTextReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
  will-change: transform, opacity, filter;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-line-white {
    background: linear-gradient(
      115deg,
      #ffffff 0%,
      #ffffff 38%,
      #ffdd77 50%,
      #ffffff 62%,
      #ffffff 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: 
      heroTextReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both,
      heroShineSweep 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s 1 normal forwards;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.25rem;
  opacity: 0;
  animation: heroTextReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
  will-change: transform, opacity, filter;
}

.hero-cta-wrapper {
  margin-bottom: 4rem;
  opacity: 0;
  animation: heroBtnReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
  will-change: transform, opacity;
}

/* STACK 3D DE PROJETOS NO HERO */
.hero-stack-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.hero-mockup-glow {
  display: none !important;
}

.hero-stack {
  position: relative;
  z-index: 1;
  width: min(1320px, 96vw);
  height: clamp(300px, 42vw, 560px);
  margin: 56px auto 0;
  margin-bottom: 0;
  perspective: 2400px;
  perspective-origin: 50% 35%;
  clip-path: inset(-300px -300px 0 -300px); /* corta só a base, nunca topo/laterais */
}

/* Glow atrás do stack */
.hero-stack::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 195, 0, 0.16), rgba(0, 53, 102, 0.22) 55%, transparent 75%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* Fade na base */
.hero-stack::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to top, #000814 20%, transparent);
  pointer-events: none;
  z-index: 10;
}

.stack-scene {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 66%;
  transform-style: preserve-3d;
  transform: translateX(-69%) rotateX(calc(10deg + var(--rx, 0deg))) rotateY(calc(-38deg + var(--ry, 0deg))) rotateZ(3deg);
  will-change: transform;
  pointer-events: none;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0a1424;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  --s: 1;
  transform: var(--t) scale(var(--s));
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter 0.95s ease, box-shadow .7s ease;
  cursor: pointer;
  will-change: transform;
  animation: stackIn 0.95s cubic-bezier(.22, .8, .24, 1) both, stackFloat 5.75s ease-in-out infinite;
  pointer-events: auto;
}

/* Linha de luz no topo de cada card */
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

/* Chips com o nome de cada projeto */
.stack-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  color: rgba(255, 255, 255, .85);
  background: rgba(10, 20, 36, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: chipIn .8s ease 1.4s forwards;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.stack-chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ffc300;
  vertical-align: 1px;
}

.stack-card--2 .stack-chip {
  animation-delay: 1.6s;
}

.stack-card--3 .stack-chip {
  animation-delay: 1.8s;
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stack-card img {
  display: block;
  width: 100%;
  height: auto;
}

.stack-card--1 {
  position: relative;
  --t: translate3d(0, 0, 0);
  animation-delay: 0.65s, 1.8s;
}

.stack-card--2 {
  position: absolute;
  top: 0;
  left: 0;
  --t: translate3d(16%, -5%, -140px);
  animation-delay: 0.8s, 2.0s;
  animation-duration: 0.95s, 7.0s;
}

.stack-card--3 {
  position: absolute;
  top: 0;
  left: 0;
  --t: translate3d(32%, -10%, -280px);
  animation-delay: 0.95s, 2.2s;
  animation-duration: 0.95s, 8.3s;
}

.stack-card[data-pos="1"] { --t: translate3d(0, 0, 0);          z-index: 3; filter: brightness(1); }
.stack-card[data-pos="2"] { --t: translate3d(16%, -5%, -140px); z-index: 2; filter: brightness(.82); }
.stack-card[data-pos="3"] { --t: translate3d(32%, -10%, -280px); z-index: 1; filter: brightness(.65); }

@keyframes stackIn {
  from { opacity: 0; scale: 0.96; }
  to { opacity: 1; scale: 1; }
}

@keyframes stackFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (hover: hover) {
  .stack-card:hover { --s: 1.06; filter: brightness(1); box-shadow: 0 60px 110px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,195,0,.35); }
}

.stack-card:focus-visible { outline: 2px solid #ffc300; outline-offset: 4px; }

@media (max-width: 768px) {
  .stack-chip {
    top: 8px;
    right: 8px;
    padding: 4px 9px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line-muted,
  .hero-line-white,
  .hero-subtitle,
  .hero-cta-wrapper {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .hero-line-white {
    color: #ffffff !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
  }

  /* Stack: mantém a posição 3D dos cards, desliga só movimento */
  .stack-card {
    animation: none !important;
    transition: none !important;
    opacity: 1;
  }
  .stack-scene {
    --rx: 0deg;
    --ry: 0deg;
  }
  .stack-chip {
    animation: none;
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   7. CARDS PADRONIZADOS (SERVIÇOS, DIFERENCIAIS, ETC.)
   -------------------------------------------------------------------------- */
.services-grid, .diferenciais-grid, .workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Estrutura Limpa de Card: var(--surface), borda 1px, raio 20px */
.service-card, .diferencial-card, .workflow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.service-card:hover, .diferencial-card:hover, .workflow-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.service-number, .workflow-step-num {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.service-title, .diferencial-title, .workflow-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Títulos dos cards em amarelo corporativo (--accent) */
.service-card h3,
.diferencial-card h3,
.project-card h3,
.workflow-card h3,
.channel-card .channel-value {
  color: var(--accent);
}

.service-desc, .diferencial-text, .workflow-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.service-tag-pill {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   LISTA DE ETAPAS DO PROCESSO (COMO FUNCIONA)
   -------------------------------------------------------------------------- */
.workflow-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.workflow-step-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  cursor: default;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
  outline: none;
}

.workflow-step-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.workflow-step-badge .workflow-step-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.workflow-step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workflow-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 0;
  transition: color var(--transition-fast);
}

.workflow-step-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Hover limpo e sutil (sem sombreamento nem ofuscamento dos demais) */
.workflow-step-item:hover,
.workflow-step-item:focus-visible {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--surface);
}

.workflow-step-item:hover .workflow-step-badge,
.workflow-step-item:focus-visible .workflow-step-badge {
  background: rgba(255, 195, 0, 0.08);
  border-color: var(--accent);
}

.workflow-step-item:hover .workflow-step-title,
.workflow-step-item:focus-visible .workflow-step-title {
  color: #ffc300;
}

/* Responsivo Mobile */
@media (max-width: 680px) {
  .workflow-step-item {
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 1.25rem 1.25rem;
  }

  .workflow-step-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .workflow-step-badge .workflow-step-num {
    font-size: 1rem;
  }

  .workflow-step-title {
    font-size: 1.1rem;
  }

  .workflow-step-text {
    font-size: 0.885rem;
  }

  .workflow-step-item:hover,
  .workflow-step-item:focus-visible {
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   8. SEÇÃO DE PROJETOS
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface, #0a1424);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  border-color: rgba(255, 195, 0, 0.35);
  transform: translateY(-4px);
}

/* Mockup de Janela Simples e Escura nos Projetos (imagem em cima, largura total, proporção fixa) */
.project-mockup-wrapper {
  width: 100%;
  margin: 0 0 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #000814;
  border: 1px solid var(--border);
}

.project-mockup-img-wrap {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform var(--transition-normal);
}

.project-mockup-img-wrap:hover .project-mockup-img {
  transform: scale(1.02);
}

.zoom-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-mockup-img-wrap:hover .zoom-overlay-hint,
.modal-project-img-box:hover .zoom-overlay-hint {
  opacity: 1;
}

.zoom-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #000814;
  background-color: var(--accent);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
}

/* Informações do Projeto (texto embaixo, compacto) */
.project-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 8px 8px;
}

.project-meta-top {
  margin-bottom: 0.5rem;
}

.project-category {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-title {
  font-size: 20px;
  line-height: 1.25;
  color: var(--accent, #ffc300);
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project-lead {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px;
}

.project-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.benefit-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.tech-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.project-footer {
  margin-top: auto;
  padding-top: 20px; /* botão sempre alinhado na base */
}

.btn-view-project {
  width: 100%;
  justify-content: center;
}

/* Responsivo de Projetos */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   9. SEÇÃO SOBRE A JC SOLUTIONS
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-card-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.about-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.about-avatar-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(160, 220, 255, 0.5);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #ffffff;
  position: relative;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 16%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.about-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -16px;
  padding: 6px 16px;
  background: #000814;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 2;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  flex-shrink: 0;
}

.about-quick-specs {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.875rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-name {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.spec-val {
  color: #ffffff;
  font-weight: 500;
  text-align: right;
}

.spec-val--highlight {
  font-weight: 600;
}

.about-lead-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.about-body-text {
  font-size: 0.985rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   10. CONTATO & FORMULÁRIO
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast);
}

.channel-card:hover {
  border-color: var(--border-hover);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.channel-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.channel-value {
  font-size: 0.985rem;
  font-weight: 500;
  color: var(--accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Formulário de Contato */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

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

input, select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  color: #ffffff;
  font-size: 16px; /* Evita 100% o bug de zoom automático no iOS Safari */
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus); /* #ffc300 */
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 14px;
  padding-right: 2.85rem;
}

select option {
  background: #000814;
  color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 110px;
  font-size: 16px;
}

.form-error {
  font-size: 0.775rem;
  color: #f87171;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444;
}

.form-submit-row {
  margin-top: 1.5rem;
}

.form-submit-row .btn-primary {
  width: 100%;
  justify-content: space-between;
}

.form-success-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 195, 0, 0.08);
  border: 1px solid var(--accent);
}

.success-content {
  text-align: center;
}

.success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.success-content h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.success-content p {
  font-size: 0.8875rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. RODAPÉ MINIMALISTA
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  padding-bottom: 3.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-logo {
  display: block;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.8875rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-bottom strong {
  color: #ffffff;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. MODAL DE DETALHES DO PROJETO & LIGHTBOX
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 8, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: #ffffff;
  color: #000814;
}

.modal-header {
  padding: 2.25rem 2.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-badge {
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.modal-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-project-img-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1424;
  position: relative;
  cursor: zoom-in;
  line-height: 0;
}

.modal-project-img-box img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.modal-section-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-section-title {
  font-size: 0.785rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.modal-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.modal-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8875rem;
  color: var(--text-secondary);
}

.bullet-check {
  color: var(--accent);
}

.modal-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modal-footer {
  padding: 1.25rem 2.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

/* Visualizador de Zoom (Lightbox) */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 8, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  user-select: none;
}

.image-zoom-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-zoom-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.image-zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(0, 8, 20, 0.8);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.zoom-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zoom-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.zoom-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zoom-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zoom-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.zoom-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.zoom-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.image-zoom-viewport {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  touch-action: none; /* Garante que o gesto de pinça no lightbox não dê zoom na página inteira */
}

.image-zoom-viewport.is-dragging {
  cursor: grabbing;
}

.image-zoom-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.image-zoom-target {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.image-zoom-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 8, 20, 0.8);
  border-top: 1px solid var(--border);
  text-align: center;
}

.zoom-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVIDADE (MOBILE-FIRST ADAPTATIVO)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-card-frame {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-header {
    height: 4.5rem;
  }

  .hero-section {
    padding-top: 7.5rem;
  }

  .hero-title {
    font-size: clamp(28px, 8.2vw, 42px);
    line-height: 1.15;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.985rem;
    line-height: 1.6;
    padding: 0 0.5rem;
    margin-bottom: 2rem;
  }

  .hero-cta-wrapper {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-stack { 
    height: clamp(220px, 60vw, 320px); 
    margin-bottom: 0; 
  }

  #servicos.section { 
    padding-top: 32px; 
  }

  .stack-scene { 
    width: 66%; 
    transform: translateX(-64%) rotateX(8deg) rotateY(-32deg) rotateZ(3deg); 
  }

  .stack-card[data-pos="2"] { --t: translate3d(20%, -5%, -100px); }
  .stack-card[data-pos="3"] { --t: translate3d(40%, -10%, -200px); }

  .services-grid, .diferenciais-grid, .workflow-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-social-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .about-social-row .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .contact-form-card {
    padding: 2rem 1.5rem;
  }

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

  /* Modal de Projetos no Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-container {
    max-height: 94vh;
    border-radius: 20px;
  }

  .modal-header {
    padding: 1.5rem 1.25rem 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
    padding-right: 2.25rem;
  }

  .modal-body {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .modal-footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .service-card, .diferencial-card {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }

  .contact-form-card {
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }

  .about-card-frame {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 22px;
  }

  .about-avatar-photo {
    width: 160px;
    height: 160px;
  }

  .about-status-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* Suporte a Safe Area (iPhone com Notch e Android com barra de gestos) */
@supports (padding-top: env(safe-area-inset-top)) {
  .site-header {
    padding-top: env(safe-area-inset-top, 0);
  }

  .main-nav {
    padding-top: calc(96px + env(safe-area-inset-top, 0));
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0));
    padding-left: calc(24px + env(safe-area-inset-left, 0));
    padding-right: calc(24px + env(safe-area-inset-right, 0));
  }

  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
  }
}

.is-hidden {
  display: none !important;
}
