/* ============================================================
   NINJACODER.COM.BR — DESIGN SYSTEM GLOBAL v4.0 (Digital Luxury)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Cores - Clean Luxury Palette */
  --bg:              #FFFFFF; /* Branco dominante */
  --bg-alt:          #FAFAFA; /* Off-white para seções alternadas */
  --bg-card:         #FFFFFF; /* Fundo de cards puro */
  --color-void:      #FFFFFF;
  --color-obsidian:  #FAFAFA;
  --color-charcoal:  #EAEAEA;
  --color-graphite:  #D5D5D5;
  
  /* Acentos */
  --acento:          #FF4D00; /* Laranja Elétrico */
  --acento-hover:    #CC3D00; /* Laranja mais escuro */
  --color-katana:    #FF4D00;
  --color-blade:     #CC3D00;
  --color-forest:    #FFF0EB; /* Fundo laranja sutil */
  --color-forest-bd: #FFC2A6; /* Borda de destaque */
  
  /* Texto */
  --color-rice:      #0A0A0A; /* Preto absoluto para contraste editorial */
  --color-ash:       #4A4A4A; /* Cinza escuro para corpo de texto legível */
  --color-ember:     #7A7A7A; /* Cinza médio para textos de apoio */
  --color-smoke:     #9A9A9A;
  --color-coal:      #D5D5D5;
  --color-pit:       #EAEAEA;
  
  /* Estados */
  --erro:            #D32F2F;
  --aviso:           #F57C00;
  --sucesso:         #388E3C;
  
  /* Tipografia */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
  
  /* Estrutura */
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       12px;
  --radius-pill:     999px;
  --radius:          8px;
  
  --border-subtle:   1px solid #EAEAEA;
  --border-default:  1px solid #EAEAEA;
  --border-strong:   1px solid #D5D5D5;
  --border-accent:   1px solid var(--color-forest-bd);
  --border-katana:   2px solid var(--color-katana);
  --borda:           #EAEAEA;
  --borda2:          #D5D5D5;
  
  /* Sombras */
  --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md:       0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover:    0 12px 40px rgba(0, 0, 0, 0.08);
  
  --nav-h:           72px;
  --transition:      all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--color-rice);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Custom Selection */
::selection {
  background-color: var(--color-forest);
  color: var(--acento);
}

/* Noise overlay sutil para textura digital luxury */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
}

/* ── CUSTOM CURSOR (Luxury Interaction) ───────────────────── */
@media (pointer: fine) {
  body.cursor-active {
    cursor: none !important;
  }
  body.cursor-active a, 
  body.cursor-active button, 
  body.cursor-active input, 
  body.cursor-active select, 
  body.cursor-active textarea,
  body.cursor-active .clickable {
    cursor: none !important;
  }
  .custom-cursor {
    width: 6px;
    height: 6px;
    background-color: var(--acento);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }
  .custom-cursor-ring {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 77, 0, 0.3);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
  }
  body.cursor-hover .custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--acento-hover);
  }
  body.cursor-hover .custom-cursor-ring {
    width: 38px;
    height: 38px;
    border-color: var(--acento);
    background-color: rgba(255, 77, 0, 0.05);
  }
}

.custom-cursor, .custom-cursor-ring {
  display: none;
}
@media (pointer: fine) {
  .custom-cursor, .custom-cursor-ring {
    display: block;
  }
}

/* ── LAYOUT E CONTÊINERES ────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-alt {
  padding: 120px 0;
  background-color: var(--bg-alt);
}

.section-sm {
  padding: 80px 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── TIPOGRAFIA EDITORIAL ────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-rice);
  line-height: 1.15;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.01em;
}

p {
  font-family: var(--font-body);
  color: var(--color-ash);
  font-size: 16px;
  line-height: 1.6;
}

.mono {
  font-family: var(--font-mono);
}

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

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--color-ash);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow, .section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--acento);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-subtle);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-rice);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--acento);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ash);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 1.5px;
  background-color: var(--acento);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-rice);
}

/* 🍔 Burger Menu Button */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav-burger {
    display: none;
  }
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-rice);
  transition: var(--transition);
}

/* Burger Animation states */
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu container */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; width: 100%; height: 100vh;
  background-color: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-link {
  font-size: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-rice);
}

.mobile-link:hover, .mobile-link.active {
  color: var(--acento);
}

/* Hide theme toggler since we're exclusively light theme */
.theme-toggle-btn {
  display: none !important;
}

/* ── BOTÕES PREMIUM ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  height: 48px; /* Touch-friendly size */
  text-align: center;
  white-space: nowrap;
}

.btn-primary, .mobile-cta, .nav-cta {
  background-color: var(--color-rice);
  color: var(--bg);
  border: 1px solid var(--color-rice);
}

/* Efeito Shimmer sutil no hover */
.btn-primary:hover, .mobile-cta:hover, .nav-cta:hover {
  background-color: var(--acento);
  border-color: var(--acento);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 77, 0, 0.2);
}

.btn-ghost {
  border: 1px solid var(--color-charcoal);
  color: var(--color-rice);
  background-color: transparent;
}

.btn-ghost:hover {
  border-color: var(--color-rice);
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  height: 52px;
}

/* 🟢 Availability Badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #F0FAF0;
  border: 1px solid #D2ECD2;
  color: #1E661E;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  background-color: #2EAE2E;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 174, 46, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 174, 46, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 174, 46, 0); }
}

/* ── HERO SECTION ────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--acento);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-ash);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

/* 3 Pilares Visuais */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  border-top: var(--border-subtle);
  padding-top: 40px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
}

.pillar-icon {
  width: 20px;
  height: 20px;
  color: var(--acento);
  flex-shrink: 0;
}

.pillar-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-rice);
}

/* ── SEÇÃO PROBLEMA ──────────────────────────────────────── */
.problem-card {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: left;
}

.problem-card:hover {
  border-color: var(--color-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-forest);
  color: var(--acento);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.problem-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.problem-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
}

.problem-card p {
  font-size: 15px;
}

/* ── SEÇÃO SOLUÇÃO (Asymmetric Grid) ───────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .solution-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .solution-grid .solution-item:nth-child(1) { grid-column: span 3; }
  .solution-grid .solution-item:nth-child(2) { grid-column: span 3; }
  .solution-grid .solution-item:nth-child(3) { grid-column: span 2; }
  .solution-grid .solution-item:nth-child(4) { grid-column: span 4; }
  .solution-grid .solution-item:nth-child(5) { grid-column: span 4; }
  .solution-grid .solution-item:nth-child(6) { grid-column: span 2; }
}

.solution-item {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  text-align: left;
}

.solution-item:hover {
  border-color: var(--color-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.solution-icon {
  width: 36px;
  height: 36px;
  color: var(--acento);
  margin-bottom: 20px;
}

.solution-item h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-item p {
  font-size: 15px;
  color: var(--color-ash);
}

/* ── SEÇÃO MODELOS (Premium Horizontal Carousel) ────────────── */
.carousel-outer {
  position: relative;
  width: 100%;
}

.carousel-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 4px 40px 4px;
  scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-item {
  flex: 0 0 85%;
  scroll-snap-align: start;
  max-width: 360px;
}

@media (min-width: 640px) {
  .carousel-item {
    flex: 0 0 45%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 31%;
  }
}

/* Portfolio Card Style */
.portfolio-card {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  border-color: var(--color-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.portfolio-card-img-box {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--bg-alt);
  border-bottom: var(--border-subtle);
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.05);
}

.portfolio-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.portfolio-card-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--acento);
  background-color: var(--color-forest);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.portfolio-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.portfolio-card-desc {
  font-size: 14px;
  color: var(--color-ash);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

/* Resource chips/tags inside cards */
.portfolio-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-ash);
  background-color: var(--bg-alt);
  border: var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.portfolio-card-actions {
  display: flex;
  gap: 12px;
}

/* Carousel controls (Scroll Buttons) */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-rice);
}

.carousel-btn:hover {
  background-color: var(--color-rice);
  color: var(--bg);
  border-color: var(--color-rice);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* ── COMO FUNCIONA (Timeline Horizontal) ─────────────────────── */
.timeline-outer {
  position: relative;
  padding: 40px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.timeline-outer::-webkit-scrollbar {
  display: none;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  min-width: 768px; /* garante integridade no mobile */
}

/* Linha conectora da timeline */
.timeline-row::before {
  content: '';
  position: absolute;
  top: 24px; left: 0; width: 100%; height: 2px;
  background-color: var(--color-charcoal);
  z-index: 1;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.timeline-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 2px solid var(--color-charcoal);
  color: var(--color-rice);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  transition: var(--transition);
}

.timeline-step:hover .timeline-node {
  border-color: var(--acento);
  background-color: var(--acento);
  color: var(--bg);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.3);
}

.timeline-step h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 14px;
  color: var(--color-ash);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

/* ── CARDS EXPANSÍVEIS DE SERVIÇOS ────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card-expanded {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.service-card-expanded:hover {
  border-color: var(--color-strong);
  box-shadow: var(--shadow-md);
}

.service-card-header {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

.service-card-header-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.service-header-icon {
  width: 40px;
  height: 40px;
  color: var(--acento);
  flex-shrink: 0;
}

.service-header-title h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-header-title p {
  font-size: 14px;
  color: var(--color-ash);
}

.service-toggle-icon {
  width: 24px;
  height: 24px;
  color: var(--color-smoke);
  transition: transform 0.3s ease;
}

/* Expand-collapse behavior using CSS class toggle */
.service-card-expanded.open .service-toggle-icon {
  transform: rotate(180deg);
}

.service-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 32px;
}

.service-card-expanded.open .service-card-content {
  max-height: 1000px; /* high value to allow expansion */
  padding: 0 32px 40px 32px;
  border-top: var(--border-subtle);
  padding-top: 32px;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .service-content-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.service-deliverables h4 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-rice);
  margin-bottom: 16px;
}

.service-deliverables ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-deliverables li {
  font-size: 14px;
  color: var(--color-ash);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-deliverables li svg {
  width: 16px;
  height: 16px;
  color: var(--acento);
  flex-shrink: 0;
}

.service-tech h4 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-rice);
  margin-bottom: 16px;
}

.service-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background-color: var(--bg-alt);
  border: var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-rice);
}

/* Grayscale logos section */
.tech-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  border-top: var(--border-subtle);
  padding-top: 40px;
}

.tech-logo-item {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-smoke);
  opacity: 0.6;
  transition: var(--transition);
}

.tech-logo-item:hover {
  opacity: 1;
  color: var(--acento);
}

/* ── FILTROS DE CATEGORIA (Pills) ─────────────────────────── */
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-pill {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border: var(--border-default);
  background-color: transparent;
  border-radius: var(--radius-pill);
  color: var(--color-ash);
  transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
  border-color: var(--color-rice);
  background-color: var(--color-rice);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ── FORMULÁRIOS DE CONTATO ───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-form-box {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-rice);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  background-color: var(--bg-alt);
  border: var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--color-rice);
  transition: var(--transition);
  height: 48px;
}

.form-textarea {
  height: 140px;
  resize: vertical;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--acento);
  background-color: var(--bg);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.contact-info-panel {
  text-align: left;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--acento);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--color-ash);
}

.map-container {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-subtle);
  margin-top: 32px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── INTERACTIVE DEVELOPER TERMINAL (Easter Egg Section) ───── */
#terminal-section {
  background-color: #0A0A0A; /* terminal is naturally dark */
  color: #FFFFFF;
}

#terminal-section .section-title {
  color: #FFFFFF;
}

#terminal-section .section-title em {
  color: var(--acento);
  font-style: italic;
  font-weight: 400;
}

#terminal-section .section-sub {
  color: #888888;
}

.terminal-window {
  background-color: #121212;
  border: 1px solid #222222;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.terminal-header {
  background-color: #1C1C1C;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222222;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot-red { background-color: #FF5F56; }
.terminal-dot-yellow { background-color: #FFBD2E; }
.terminal-dot-green { background-color: #27C93F; }

.terminal-title {
  color: #888888;
  font-family: var(--font-mono);
  font-size: 12px;
}

.terminal-body {
  padding: 24px;
  height: 280px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #E0E0E0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-line {
  line-height: 1.6;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  background-color: #121212;
  padding: 0 24px 24px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.terminal-prompt {
  color: var(--acento);
  margin-right: 8px;
  font-weight: 700;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: inherit;
  flex-grow: 1;
  caret-color: var(--acento);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 80px 0 40px 0;
  background-color: var(--bg-alt);
  border-top: var(--border-subtle);
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-rice);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.footer-logo span {
  color: var(--acento);
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-ash);
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--color-rice);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-ash);
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--acento);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ash);
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--acento);
  color: var(--acento);
  background-color: var(--color-forest);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: var(--border-subtle);
  padding-top: 30px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-ember);
}

.footer-credit {
  font-size: 12px;
  color: var(--color-ember);
}

.footer-credit a {
  color: var(--acento);
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* ── SCROLL REVEAL ANIMATIONS ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible, .fade-in-left.visible {
  opacity: 1;
  transform: none;
}
