/* ================================
   GLOBAL.CSS - PREMIUM DESIGN SYSTEM
   ================================ */

/* ================================
   IMPORTS & FONTS
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ================================
   VARIABLES
   ================================ */
:root {
  /* Colors - Premium Dark Theme */
  color-scheme: dark;
  --bg-body: #050505;
  --bg-surface: #0f0f0f;
  --bg-surface-hover: #1a1a1a;

  --text-main: #ffffff;
  --text-muted: #b4b4b4;
  --text-dark: #0c0c0c;

  /* Accents */
  --primary: #de7f56;
  /* Original Orange */
  --primary-hover: #e44b33;
  /* Original Red-Orange */
  --accent: #ffb300;
  /* Gold/Amber for premium touches */

  /* Social Colors */
  --whatsapp: #25D366;
  --x-twitter: #ffffff;
  --instagram: #E1306C;

  /* Functional */
  --success: #00c853;
  --error: #ff3d00;
  --warning: #ffd600;
  --info: #00b0ff;

  /* UI Elements */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(15, 15, 15, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(222, 127, 86, 0.15);

  /* Decorative Lines */
  --line-color: #de7f56;
  --line-glow: rgba(222, 127, 86, 0.6);

  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;

  /* Spacing rhythm — escala vertical entre seções (ver css/READMEcss.md) */
  --space-section-sm: clamp(2.75rem, 5vw, 4rem);
  --space-section-md: clamp(4rem, 7vw, 6rem);
  --space-section-lg: clamp(5rem, 9vw, 7.5rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;
}

/* ================================
   RESET & BASE
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #050505 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit !important;
  -webkit-text-fill-color: inherit;
  transition: color var(--duration-fast) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4;
}

.text-gradient {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.text-highlight {
  color: #de7f56 !important;
  -webkit-text-fill-color: #de7f56 !important;
}

/* ================================
   LAYOUT UTILITIES
   ================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-section-md) 0;
  position: relative;
  z-index: 1;
}

/* Ritmo: seções de transição respiram menos, seções-chave respiram mais */
.section--compact {
  padding: var(--space-section-sm) 0;
}

.section--spacious {
  padding: var(--space-section-lg) 0;
}

.section.hero-servicos {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.contact-hero {
  padding-top: 120px;
}

.grid {
  display: grid;
  gap: 2rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* ================================
   COMPONENTS
   ================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: #de7f56 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 4px 15px rgba(222, 127, 86, 0.3);
}

.btn-primary:hover {
  background: #e44b33;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(222, 127, 86, 0.4);
}

.btn-outline {
  background: transparent !important;
  /* Borda mais forte que --border-light: precisa ser visível como botão em qualquer tela */
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.btn-outline:hover {
  border-color: #de7f56;
  color: #de7f56 !important;
  -webkit-text-fill-color: #de7f56 !important;
  background: rgba(222, 127, 86, 0.05) !important;
  transform: translateY(-2px);
}

/* New Buttons based on feedback */
.btn-whatsapp {
  background: var(--whatsapp) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  /* Pulso limitado: chama atenção na chegada sem competir para sempre */
  animation: pulse-green 2.5s ease-out 3;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Cards */
.card {
  background: #0f0f0f !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  background: #1a1a1a;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #de7f56;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Card estático: conteúdo não clicável não deve "levantar" nem ganhar barra no hover */
.card--static {
  cursor: default;
}

.card--static::before {
  content: none;
}

.card--static:hover {
  transform: none;
  border-color: var(--border-light);
  box-shadow: none;
}

/* Card em destaque: um item por grid pode receber ênfase sem sair da paleta */
.card--feature {
  border-color: rgba(222, 127, 86, 0.28);
  background:
    radial-gradient(circle at top left, rgba(222, 127, 86, 0.12) 0%, rgba(222, 127, 86, 0) 55%),
    #0f0f0f !important;
  box-shadow: var(--shadow-glow);
}

.card--feature.card--static:hover {
  border-color: rgba(222, 127, 86, 0.28);
  box-shadow: var(--shadow-glow);
}

/* Variante animada do destaque: o realce "circula" entre os cards do grid
   em sequência (1→2→3→4→1...), respeitando a regra de que .card--feature
   estático é para um único card. O destaque vive num ::after com opacidade
   animada (gradientes não interpolam). */
.card--feature-cycle::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1; /* atrás do conteúdo, acima do fundo (o .card cria stacking context) */
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 55%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent),
    var(--shadow-glow);
  opacity: 0;
  animation: feature-cycle 12s linear infinite;
}

.card--feature-cycle:nth-child(1)::after { animation-delay: 0s; }
.card--feature-cycle:nth-child(2)::after { animation-delay: 3s; }
.card--feature-cycle:nth-child(3)::after { animation-delay: 6s; }
.card--feature-cycle:nth-child(4)::after { animation-delay: 9s; }

@keyframes feature-cycle {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card--feature-cycle::after {
    animation: none;
  }
}

/* Inputs */
.field {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4 !important;
}

.input,
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #0f0f0f !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-size: 1rem;
  transition: all var(--duration-fast) ease;
}

/* Evita que o tema escuro do SO troque cores dos campos/autofill */
input,
textarea,
button,
select {
  color-scheme: light;
}

input::placeholder,
textarea::placeholder {
  color: #b4b4b4;
  opacity: 1;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  box-shadow: 0 0 0 1000px #0f0f0f inset;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
}

.input:focus,
textarea:focus {
  outline: none;
  border-color: #de7f56;
  background: #1a1a1a;
  box-shadow: 0 0 0 4px rgba(222, 127, 86, 0.1);
}

/* Choice Chips (Segment Selection) */
.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #0f0f0f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  user-select: none;
  font-size: 0.9rem;
  color: #b4b4b4;
}

.choice-chip:hover {
  background: #1a1a1a;
  border-color: var(--border-hover);
}

.choice-chip input {
  display: none;
}

.choice-chip.selected {
  background: rgba(222, 127, 86, 0.15);
  border-color: #de7f56;
  color: #de7f56;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(222, 127, 86, 0.2);
}

/* ================================
   SERVIÇOS / PORTFÓLIO LAYOUTS
   ================================ */
.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3.5rem;
}

/* Hero da home: coluna de texto domina, o glow é coadjuvante */
.hero-home {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2.5rem);
}

.hero-home .hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.hero-home .hero-lead {
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Intro da home: texto levemente dominante sobre o card */
.intro-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem 4rem;
  align-items: center;
}

/* Bloco de CTA centralizado com um único botão primário */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero-home .hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 2rem;
  }
}

.hero-glow {
  width: 100%;
  height: 400px;
  background: radial-gradient(circle, rgba(222,127,86,0.12) 0%, rgba(5,5,5,0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
  max-width: 620px;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.contact-title {
  color: #de7f56;
  margin-bottom: 1rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #de7f56;
  background: rgba(222, 127, 86, 0.12);
}

.contact-icon--whatsapp {
  color: var(--whatsapp);
  background: rgba(37, 211, 102, 0.12);
}

.contact-icon--email {
  color: var(--info);
  background: rgba(0, 176, 255, 0.12);
}

.contact-icon--map {
  color: #de7f56;
  background: rgba(222, 127, 86, 0.12);
}

.contact-row-label {
  font-size: 0.85rem;
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4 !important;
}

.contact-row-value {
  font-weight: 600;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-actions .btn {
  min-width: 200px;
}

.contact-form {
  padding: 2rem;
}

.contact-form-title {
  margin-bottom: 1.5rem;
}

.contact-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: #b4b4b4;
  margin-top: 0.35rem;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.consent-row {
  margin-top: 1rem;
}

.consent-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  color: #b4b4b4;
}

.consent-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #de7f56;
}

.consent-row a {
  color: #de7f56 !important;
  -webkit-text-fill-color: #de7f56 !important;
  text-decoration: underline;
}

.contact-submit {
  width: 100%;
  margin-top: 1rem;
}

.success-alert {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  color: var(--success);
  align-items: center;
  gap: 0.5rem;
}

.error-alert {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 61, 0, 0.12);
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  color: var(--error);
  align-items: center;
  gap: 0.5rem;
}

.hero-contact-info {
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services-grid .card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

/* ================================
   SERVICE CARDS — Redesigned
   ================================ */
.servicos-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.servicos-hero-content .hero-lead {
  max-width: 640px;
  margin: 0 auto;
}

.servicos-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem auto 0;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(222, 127, 86, 0.08);
  border: 1px solid rgba(222, 127, 86, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #de7f56 !important;
  -webkit-text-fill-color: #de7f56 !important;
  transition: all 0.3s ease;
}

.stat-pill:hover {
  background: rgba(222, 127, 86, 0.15);
  border-color: #de7f56;
  transform: translateY(-2px);
}

.stat-pill i {
  font-size: 0.9rem;
}

.servicos-hero-content .hero-contact-info {
  justify-content: center;
  margin-top: 2rem;
}

.servicos-section {
  padding-top: 3rem;
}

.servicos-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.servicos-section-header p {
  font-size: 1.05rem;
}

/* Service Card */
.service-card {
  --card-accent: #de7f56;
  position: relative;
  background: #0f0f0f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px color-mix(in srgb, var(--card-accent) 15%, transparent);
}

.service-card-accent {
  height: 4px;
  background: var(--card-accent);
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-card-accent {
  opacity: 1;
}

.service-card-body {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--card-accent) !important;
  -webkit-text-fill-color: var(--card-accent) !important;
  transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-icon-wrap {
  background: var(--card-accent);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--card-accent) 30%, transparent);
}

.service-step {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.06) !important;
  user-select: none;
  transition: color 0.4s ease, -webkit-text-fill-color 0.4s ease;
}

.service-card:hover .service-step {
  color: color-mix(in srgb, var(--card-accent) 15%, transparent) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--card-accent) 15%, transparent) !important;
}

/* Selo "Novo" — destaque exclusivo para serviços recém-lançados */
.service-badge-new {
  align-self: center;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--card-accent) !important;
  -webkit-text-fill-color: var(--card-accent) !important;
}

.service-subtitle {
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4 !important;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.service-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #b0b0b0;
  line-height: 1.4;
}

.check-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.service-card:hover .check-dot {
  opacity: 1;
  box-shadow: 0 0 8px color-mix(in srgb, var(--card-accent) 40%, transparent);
}

.service-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4 !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  margin-top: auto;
}

.service-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.service-btn:hover {
  background: var(--card-accent);
  border-color: var(--card-accent);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--card-accent) 30%, transparent);
}

.service-btn:hover i {
  transform: translateX(4px);
}

.client-chip {
  min-width: 140px;
  background: #0f0f0f;
  border: 1px solid var(--border-light);
}

.pf-header {
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.pf-filters {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pf-btn {
  padding: 0.55rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border-width: 1px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.pf-btn.is-active {
  background: #de7f56 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #de7f56;
  box-shadow: 0 8px 25px rgba(222, 127, 86, 0.35);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pf-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: var(--shadow-md);
}

.pf-item img {
  transition: transform 0.4s ease;
}

.pf-item:hover img {
  transform: scale(1.03);
}

.pf-item figcaption {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

/* Uniform sizing and centering for portfolio cards */
.pf-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pf-item img {
  object-position: center;
}

.pf-item .pf-caption,
.pf-item figcaption {
  line-height: 1.4;
}

/* Modal base */
.pf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-y: auto;
}

.pf-close,
.pf-prev,
.pf-next {
  position: absolute;
  background: none;
  border: none;
  color: #de7f56;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.pf-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.1rem;
}

.pf-prev,
.pf-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 1rem;
}

.pf-prev { left: 1.5rem; }
.pf-next { right: 1.5rem; }

.pf-video-layout,
.pf-project-layout {
  display: none;
  width: 100%;
  max-width: 1400px;
  height: calc(100vh - 4rem);
  gap: 1.5rem;
}

.pf-video-layout {
  flex-direction: column;
}

.pf-video-frame {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.pf-video-wrapper {
  position: relative;
  display: inline-flex;
}

.pf-modal-iframe {
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background: #000;
  border: 1px solid var(--border-light);
}

.drive-shield {
  position: absolute;
  top: calc(clamp(8px, 3vw, 16px) - 10px);
  right: calc(clamp(8px, 3vw, 16px) - 6px);
  width: 72px;
  height: 72px;
  background: rgba(5, 5, 5, 0.95);
  border-radius: 12px;
  cursor: default;
  z-index: 10002;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(222, 127, 86, 0.3);
}

.drive-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.pf-video-caption {
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 1.25rem 1rem 0.25rem;
  margin: 0 auto;
}

.pf-modal-titulo-video,
.pf-modal-titulo-projeto {
  color: #de7f56 !important;
  -webkit-text-fill-color: #de7f56 !important;
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.pf-modal-descricao-video {
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pf-project-layout {
  display: none;
  flex-direction: row;
  align-items: center;
}

.pf-project-media {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.pf-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
}

.pf-project-copy {
  flex: 0 0 calc(45% - 1.5rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  gap: 0.5rem;
}

.pf-modal-descricao-projeto {
  color: #b4b4b4;
  font-size: 0.95rem;
  line-height: 1.65;
  overflow-y: auto;
  padding-right: 0.75rem;
  flex: 1;
  white-space: pre-line;
}

.pf-modal-links-projeto,
.pf-modal-links-video {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.pf-modal-links-projeto .btn,
.pf-modal-links-video .btn {
  flex: 1 1 180px;
  max-width: 220px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

/* ================================
   SKIP LINK
   ================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-normal) ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.topbar.scrolled {
  height: 70px;
  background: rgba(5, 5, 5, 0.95);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand a {
  display: flex;
  align-items: center;
}

.brand .logo-container {
  display: flex;
  flex-direction: column;
}

.brand .main-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  display: flex;
  align-items: center;
}

.brand .paperclip {
  width: 12px;
  height: 24px;
  background: #de7f56;
  border-radius: 6px;
  margin: 0 4px;
  position: relative;
}

.brand .paperclip::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.brand .paperclip::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: #fff;
  border-radius: 1px;
}

.brand .subtitle-banner {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #de7f56;
  margin-top: -2px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4 !important;
  position: relative;
  padding: 0.5rem 0;
}

.nav a:hover,
.nav a.active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #de7f56;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  /* Alvo de toque confortável (WCAG 2.5.5): a barra do hambúrguer e seus
     pseudo-elementos não expandem a caixa do botão, então garantimos aqui */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Telas grandes: navegação e leads um pouco maiores para não parecerem "miúdos" */
@media (min-width: 1440px) {
  .nav a {
    font-size: 1.15rem;
  }

  .nav {
    gap: 2.5rem;
  }
}

/* Tablet: menu ainda horizontal, mas com menos folga para não colidir com a marca */
@media (max-width: 1024px) {
  .nav {
    gap: 1.25rem;
  }
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
  background: #000;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-contact h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.contact-item-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #b4b4b4 !important;
  -webkit-text-fill-color: #b4b4b4 !important;
  font-size: 0.9rem;
  cursor: default;
  /* Fix cursor */
}

.contact-item-footer i {
  color: #de7f56 !important;
  -webkit-text-fill-color: #de7f56 !important;
}

.social-links-footer {
  display: flex;
  gap: 1rem;
}

.social-links-footer a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--duration-fast) ease;
  border: 1px solid var(--border-light);
}

/* Social Hover Colors */
.social-links-footer a[aria-label="WhatsApp"]:hover {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: white;
  transform: translateY(-3px);
}

.social-links-footer a[aria-label="X (Twitter)"]:hover {
  background: var(--x-twitter);
  border-color: var(--x-twitter);
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  transform: translateY(-3px);
}

.social-links-footer a[aria-label="Instagram"]:hover {
  background: var(--instagram);
  border-color: var(--instagram);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: #b4b4b4;
}

/* ================================
   ANIMATIONS
   ================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="scale-in"] {
  transform: scale(0.9);
}

[data-animate].in-view {
  transform: translate(0) scale(1);
}

/* Stagger delays — fallback sem JS; com JS o stagger automático (script.js)
   aplica transition-delay inline e sobrepõe estas classes */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* ================================
   DECORATIVE ANIMATED LINES
   ================================ */
.decorative-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.decorative-lines .line {
  position: absolute;
  opacity: 0.2;
  /* Performance optimization: filters only on larger screens */
  filter: none;
}

@media (min-width: 768px) {
  .decorative-lines .line {
    filter: drop-shadow(0 0 8px var(--line-glow)) 
            drop-shadow(0 0 15px var(--line-glow));
  }
}

.decorative-lines .line path {
  stroke: var(--line-color);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Line 1 - Horizontal top curva ondulante */
.decorative-lines .line-1 {
  top: 15%;
  left: -100%;
  width: 40%;
  height: 100px;
  animation: flowRight1 25s ease-in-out infinite;
}

/* Line 2 - Vertical/Diagonal curva sinuosa */
.decorative-lines .line-2 {
  top: -20%;
  right: 10%;
  width: 100px;
  height: 60%;
  animation: flowDown1 35s ease-in-out infinite;
}

/* Line 3 - Horizontal middle curva invertida */
.decorative-lines .line-3 {
  top: 50%;
  right: -100%;
  width: 50%;
  height: 100px;
  animation: flowLeft1 35s ease-in-out infinite;
}

/* Line 4 - Vertical left curva pulsante */
.decorative-lines .line-4 {
  top: 20%;
  left: 8%;
  width: 100px;
  height: 40%;
  animation: pulse1 35s ease-in-out infinite;
}

/* Line 5 - Horizontal bottom curva complexa */
.decorative-lines .line-5 {
  bottom: 10%;
  left: -50%;
  width: 70%;
  height: 100px;
  animation: flowRight2 45s ease-in-out infinite;
}

/* Animations - Dança Sinfônica com Curvas Reais */
@keyframes flowRight1 {
  0%, 100% {
    left: -100%;
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  10% {
    opacity: 0.2;
    transform: translateY(-30px) rotate(8deg) scale(1.1);
  }
  25% {
    transform: translateY(40px) rotate(-12deg) scale(0.9);
  }
  40% {
    transform: translateY(-20px) rotate(15deg) scale(1.3);
  }
  50% {
    left: 60%;
    opacity: 0.25;
    transform: translateY(50px) rotate(-8deg) scale(1);
  }
  65% {
    transform: translateY(-35px) rotate(18deg) scale(1.2);
  }
  80% {
    transform: translateY(25px) rotate(-10deg) scale(0.95);
  }
  90% {
    opacity: 0.18;
    transform: translateY(-15px) rotate(5deg) scale(1.05);
  }
  100% {
    left: 120%;
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes flowRight2 {
  0%, 100% {
    left: -50%;
    opacity: 0;
    transform: translateY(0) rotate(-3deg) scale(1);
  }
  15% {
    opacity: 0.22;
    transform: translateY(-45px) rotate(-18deg) scale(1.4);
  }
  30% {
    transform: translateY(55px) rotate(10deg) scale(0.85);
  }
  45% {
    transform: translateY(-30px) rotate(-22deg) scale(1.5);
  }
  50% {
    left: 40%;
    opacity: 0.28;
    transform: translateY(60px) rotate(-12deg) scale(1.1);
  }
  60% {
    transform: translateY(-40px) rotate(14deg) scale(1.35);
  }
  75% {
    transform: translateY(45px) rotate(-16deg) scale(0.9);
  }
  85% {
    opacity: 0.2;
    transform: translateY(-20px) rotate(8deg) scale(1.15);
  }
  100% {
    left: 110%;
    opacity: 0;
    transform: translateY(0) rotate(-3deg) scale(1);
  }
}

@keyframes flowLeft1 {
  0%, 100% {
    right: -100%;
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  12% {
    opacity: 0.2;
    transform: translateY(50px) rotate(-15deg) scale(1.3);
  }
  28% {
    transform: translateY(-40px) rotate(20deg) scale(0.8);
  }
  42% {
    transform: translateY(35px) rotate(-12deg) scale(1.5);
  }
  50% {
    right: 50%;
    opacity: 0.25;
    transform: translateY(-45px) rotate(18deg) scale(1.05);
  }
  64% {
    transform: translateY(55px) rotate(-22deg) scale(1.25);
  }
  78% {
    transform: translateY(-30px) rotate(10deg) scale(0.9);
  }
  88% {
    opacity: 0.18;
    transform: translateY(20px) rotate(-6deg) scale(1.1);
  }
  100% {
    right: 110%;
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes flowDown1 {
  0%, 100% {
    top: -20%;
    opacity: 0;
    transform: translateX(0) rotate(0deg) scale(1);
  }
  15% {
    opacity: 0.22;
    transform: translateX(-50px) rotate(25deg) scale(1.3);
  }
  30% {
    transform: translateX(60px) rotate(-15deg) scale(0.85);
  }
  45% {
    transform: translateX(-40px) rotate(35deg) scale(1.4);
  }
  50% {
    top: 50%;
    opacity: 0.28;
    transform: translateX(55px) rotate(10deg) scale(1.1);
  }
  65% {
    transform: translateX(-45px) rotate(30deg) scale(1.35);
  }
  80% {
    transform: translateX(35px) rotate(-8deg) scale(0.95);
  }
  85% {
    opacity: 0.2;
    transform: translateX(-25px) rotate(20deg) scale(1.15);
  }
  100% {
    top: 120%;
    opacity: 0;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes pulse1 {
  0%, 100% {
    opacity: 0.15;
    transform: translateX(0) rotate(0deg) scale(1);
  }
  20% {
    opacity: 0.22;
    transform: translateX(-35px) rotate(-18deg) scale(1.25);
  }
  35% {
    transform: translateX(40px) rotate(12deg) scale(0.9);
  }
  50% {
    opacity: 0.28;
    transform: translateX(-30px) rotate(-25deg) scale(1.4);
  }
  65% {
    transform: translateX(45px) rotate(8deg) scale(1.15);
  }
  80% {
    opacity: 0.2;
    transform: translateX(-20px) rotate(-15deg) scale(1.3);
  }
}

/* ================================
   MODAL SYSTEM
   ================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #0f0f0f;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #0f0f0f;
  z-index: 10;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: #b4b4b4;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #de7f56;
}

.modal-body {
  padding: 2rem;
  color: #b4b4b4;
  line-height: 1.6;
}

.modal-body h3 {
  color: #ffffff;
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  text-align: right;
  background: #0f0f0f;
  display: flex;
  justify-content: flex-end;
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #050505;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #de7f56;
}

/* ================================
   LIGHTBOX DA GALERIA DE FOTOS
   (seção #fotos de servicos.html — criado por script.js)
   ================================ */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.img-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.img-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #de7f56;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
}

.img-lightbox-close:hover {
  transform: scale(1.1);
}

.img-lightbox-close:focus-visible {
  outline: 2px solid rgba(240, 176, 146, 0.95);
  outline-offset: 3px;
}

/* Fade + scale: o backdrop esmaece enquanto o conteúdo cresce até o tamanho final */
.img-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  max-width: min(92vw, 900px);
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-out);
}

.img-lightbox.active .img-lightbox-figure {
  transform: scale(1);
}

.img-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(88vw, 820px);
  max-height: min(68vh, 640px);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.img-lightbox-caption {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  max-width: min(88vw, 640px);
}

@media (prefers-reduced-motion: reduce) {
  .img-lightbox,
  .img-lightbox-figure {
    transition: none;
  }
}

/* ================================
   FOUNDER SECTION - SOBRE PAGE
   ================================ */
.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Variante espelhada: alterna foto/texto entre perfis consecutivos */
.founder-grid--flip {
  grid-template-columns: 1fr 380px;
}

.founder-grid--flip .founder-image-wrapper {
  order: 2;
}

.founder-image-wrapper {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.founder-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.hero-contact-flex {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.founder-role {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
}

.founder-bio {
  max-width: 720px;
  cursor: default;
}

.founder-bio p,
.founder-bio .bio-list {
  max-width: 62ch;
}

/* Bios longas: medida mais curta e respiro entre blocos para leitura confortável */
.founder-bio p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.founder-bio .bio-list li {
  line-height: 1.65;
}

.founder-bio .profile-heading {
  margin-bottom: 0.85rem;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.profile-heading i {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  font-size: 1rem;
}

.bio-list {
  color: var(--text-muted);
  margin: 1rem 0;
  display: grid;
  gap: 0.75rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
  cursor: default;
}

.stat-card i {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-card h5 {
  margin-bottom: 0.25rem;
}

.stat-card p {
  font-size: 0.85rem;
  margin: 0;
}

.icon-circle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(222, 127, 86, 0.12);
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.icon-circle--sm {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.founder-quote {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(222, 127, 86, 0.2);
  background: rgba(222, 127, 86, 0.06);
}

.founder-quote i {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  font-size: 1.4rem;
  margin-top: 0.2rem;
}

.founder-quote p {
  margin: 0;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 5 diferenciais em 2 + 3: quebra a monotonia e elimina a linha órfã */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.diff-card {
  position: relative;
  grid-column: span 2;
}

.diff-grid .diff-card:nth-child(-n+2) {
  grid-column: span 3;
}

.diff-index {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(222, 127, 86, 0.35);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(222, 127, 86, 0.18);
  background: rgba(222, 127, 86, 0.08);
  color: #f0b092 !important;
  -webkit-text-fill-color: #f0b092 !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Variante à esquerda para alternar o eixo entre seções consecutivas */
.section-heading--left {
  margin: 0 0 3rem;
  text-align: left;
}

.section-heading p {
  margin-bottom: 0;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.content-flow p:last-child {
  margin-bottom: 0;
}

.side-highlight {
  position: sticky;
  top: 100px;
}

/* Aside recua um plano em relação ao conteúdo principal */
.side-highlight.card {
  background: #0a0a0a !important;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.feature-list strong,
.value-grid strong,
.numbered-list strong {
  color: #ffffff;
}

.feature-list span {
  color: var(--text-muted);
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.values-panel {
  margin-top: 1.5rem;
}

/* 5 valores em 2 + 3, mesmo racional do diff-grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.value-grid > div {
  grid-column: span 2;
}

.value-grid > div:nth-child(-n+2) {
  grid-column: span 3;
}

.value-grid div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.value-grid p,
.numbered-list li {
  margin-bottom: 0;
}

.differential-panel {
  margin-top: 1.5rem;
}

.numbered-list {
  list-style: decimal;
  padding-left: 1.4rem;
  display: grid;
  gap: 1rem;
  color: var(--text-muted);
}

.inline-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  border-radius: 0.75rem;
  background: rgba(222, 127, 86, 0.12);
  color: #ffffff;
}

.inline-note strong {
  color: #ffffff;
}

.inline-note p {
  margin: 0;
  font-weight: 600;
}

.inline-note i {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  margin-right: 0.5rem;
}

/* Jornada em 5 passos lado a lado no desktop; 2+3 em telas médias */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.process-card {
  min-height: 100%;
  padding: 1.75rem 1.4rem;
}

/* Índices da jornada padronizados: todos preenchidos como o 5º passo */
.process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  font-weight: 700;
}

.founder-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  cursor: default;
}

/* O primeiro stat (o mais forte) ganha ênfase sutil */
.founder-stats-grid .stat-card:first-child {
  border-color: rgba(222, 127, 86, 0.3);
  background:
    linear-gradient(180deg, rgba(222, 127, 86, 0.12) 0%, rgba(222, 127, 86, 0) 70%),
    #0f0f0f !important;
}

/* Formation Timeline */
.formation-timeline {
  margin: 1.5rem 0;
  padding-left: 0;
  border-left: 2px solid #de7f56;
  margin-left: 0.5rem;
  cursor: default;
}

.formation-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: default;
}

.formation-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1rem;
  width: 12px;
  height: 12px;
  background: #0f0f0f;
  border: 2px solid #de7f56;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.formation-item:hover::before {
  background: #de7f56;
  box-shadow: 0 0 10px #de7f56;
}

.formation-year {
  min-width: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #de7f56;
}

.formation-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.formation-content strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.formation-content span {
  color: #b4b4b4;
  font-size: 0.85rem;
}

.oab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #de7f56, #e44b33);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
  cursor: default;
}

.oab-badge i {
  font-size: 1.1rem;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1200px) {
  .founder-grid {
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
  }

  .founder-grid--flip {
    grid-template-columns: 1fr 320px;
  }

  /* 5 passos viram 3 + 2 em telas médias */
  .process-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .process-card {
    grid-column: span 2;
  }

  .process-grid .process-card:nth-child(4),
  .process-grid .process-card:nth-child(5) {
    grid-column: span 3;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-width: 100%;
  }

  .content-split {
    grid-template-columns: 1fr;
  }

  .founder-grid {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }

  .founder-grid--flip {
    grid-template-columns: 1fr 280px;
  }

  .diff-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-card,
  .diff-grid .diff-card:nth-child(-n+2),
  .value-grid > div,
  .value-grid > div:nth-child(-n+2) {
    grid-column: auto;
  }

  .diff-card:last-child,
  .value-grid > div:last-child {
    grid-column: 1 / -1;
  }
  
  .founder-image-wrapper {
    position: relative;
    top: 0;
  }

  .side-highlight {
    position: relative;
    top: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* O padding das seções já escala via clamp() nas variáveis --space-section-* */
  .container {
    padding: 0 1.25rem;
  }

  .founder-grid,
  .founder-grid--flip {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* No empilhamento, a foto volta a abrir o bloco */
  .founder-grid--flip .founder-image-wrapper {
    order: -1;
  }
  
  .founder-image-wrapper {
    position: relative;
    top: 0;
    max-width: 320px;
    margin: 0 auto 1rem;
  }
  
  .founder-image {
    max-height: 400px;
    object-fit: cover;
    object-position: top center;
  }
  
  .hero-contact-flex {
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }
  
  .founder-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid,
  .process-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .diff-card,
  .diff-grid .diff-card:nth-child(-n+2),
  .diff-card:last-child,
  .value-grid > div,
  .value-grid > div:nth-child(-n+2),
  .value-grid > div:last-child,
  .process-card,
  .process-grid .process-card:nth-child(4),
  .process-grid .process-card:nth-child(5) {
    grid-column: auto;
  }

  .formation-item {
    padding: 0.5rem 0 0.5rem 1rem;
  }
  
  .formation-year {
    min-width: 45px;
    font-size: 0.8rem;
  }
  
  .formation-content strong {
    font-size: 0.9rem;
  }
  
  .formation-content span {
    font-size: 0.8rem;
  }
  
  .oab-badge {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    /* dvh acompanha a barra de endereço dinâmica no mobile; vh é o fallback */
    height: 100vh;
    height: 100dvh;
    background: #050505;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    z-index: 1001;
  }

  .nav.active {
    transform: translateX(0);
  }

  /* Alvos de toque generosos e feedback visível no menu mobile */
  .nav a {
    font-size: 1.5rem;
    padding: 0.75rem 2rem;
    text-align: center;
  }

  .nav a.active {
    color: var(--primary) !important;
    -webkit-text-fill-color: var(--primary) !important;
  }

  /* CTAs empilhados em largura total: sem botões cortados ou desalinhados */
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hamburger {
    width: 24px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: all var(--duration-fast) ease;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: all var(--duration-fast) ease;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  .menu-open .hamburger {
    background: transparent;
  }

  .menu-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Decorative Lines Mobile */
  .decorative-lines .line {
    opacity: 0.1;
  }
  
  .decorative-lines .line-1,
  .decorative-lines .line-3 {
    width: 60%;
  }
  
  .decorative-lines .line-2,
  .decorative-lines .line-4 {
    height: 40%;
  }
  
  .decorative-lines .line-5 {
    width: 90%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-contact-info {
    gap: 0.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-card {
    margin-bottom: 1rem;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pf-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-filters {
    width: 100%;
  }

  .pf-filters .pf-btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    min-width: calc(50% - 0.5rem);
  }

  .portfolio-grid {
    justify-items: center;
  }

  .pf-item figcaption {
    font-size: 0.9rem;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .service-step {
    font-size: 1.8rem;
  }

  .service-title {
    font-size: 1.15rem;
  }

  .servicos-hero-stats {
    gap: 0.5rem;
  }

  .stat-pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }

  .servicos-section-header {
    margin-bottom: 2.5rem;
  }

  .pf-modal {
    padding: max(1rem, env(safe-area-inset-top));
    align-items: flex-start;
  }

  .pf-prev,
  .pf-next {
    font-size: 2.2rem;
    padding: 0.75rem;
  }

  .pf-video-layout,
  .pf-project-layout {
    height: auto;
    max-height: none;
    gap: 1rem;
  }

  .pf-modal-iframe {
    width: 100%;
    max-width: 100%;
    max-height: 58vh;
  }

  .drive-shield {
    width: 56px;
    height: 56px;
    top: 8px;
    right: 8px;
    border-radius: 10px;
  }

  .drive-shield img {
    padding: 10px;
  }

  .pf-project-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .pf-project-media,
  .pf-project-copy {
    flex: 1 1 auto;
    width: 100%;
  }

  .pf-modal-descricao-projeto {
    max-height: 40vh;
  }

  .pf-modal-links-projeto,
  .pf-modal-links-video {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.25rem 0.5rem 0.75rem;
    max-width: 320px;
  }

  .pf-modal-links-projeto .btn,
  .pf-modal-links-video .btn {
    max-width: 100%;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .founder-image-wrapper {
    max-width: 100%;
  }
  
  .founder-image {
    max-height: 350px;
  }
  
  .founder-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .founder-stats-grid .card {
    padding: 1rem;
  }
  
  .founder-stats-grid h5 {
    font-size: 1rem;
  }
  
  .founder-stats-grid p {
    font-size: 0.75rem;
  }

  .pf-close {
    top: 1rem;
    right: 1rem;
  }

  .pf-prev,
  .pf-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .pf-prev { left: 1rem; }
  .pf-next { right: 1rem; }

  .pf-modal-iframe {
    max-height: 50vh;
  }

  .drive-shield {
    width: 48px;
    height: 48px;
    top: 6px;
    right: 6px;
    border-radius: 10px;
  }

  .drive-shield img {
    padding: 9px;
  }

  .pf-video-caption {
    padding-top: 0.75rem;
    padding-inline: 0.5rem;
    font-size: 0.95rem;
  }

  .pf-modal-titulo-video,
  .pf-modal-titulo-projeto {
    font-size: 1.1rem;
  }

  .pf-video-caption {
    font-size: 0.9rem;
  }

  .contact-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}