/* ============================================================
   KZ3 AUDIOVISUAL — Design System Global
   Wireframe funcional — escala de cinza
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:            #f0f0f0;
  --bg-alt:        #e8e8e8;
  --surface:       #e0e0e0;
  --surface-dark:  #c8c8c8;
  --nav-bg:        #d8d8d8;
  --footer-bg:     #d0d0d0;
  --border:        #b0b0b0;
  --placeholder:   #ccc;
  --text-primary:  #1a1a1a;
  --text-secondary:#555;
  --text-muted:    #888;

  --section-pad: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 96px);
  --nav-h: 64px;

  --font: Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── Typography ─────────────────────────────────────────── */
h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
}

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  margin-bottom: 20px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn,
.btn-filled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn {
  border: 2px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg);
}

.btn-filled {
  border: 2px solid var(--text-primary);
  background: var(--text-primary);
  color: var(--bg);
}

.btn-filled:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Image Placeholder ──────────────────────────────────── */
.img-block {
  background: var(--placeholder);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 100%;
}

/* ── Section structure ──────────────────────────────────── */
section {
  padding: var(--section-pad);
  border-bottom: 2px solid var(--border);
}

section:nth-child(odd)  { background: var(--bg); }
section:nth-child(even) { background: var(--bg-alt); }

.section-header {
  margin-bottom: 48px;
}

.section-header p {
  margin-top: 16px;
}

/* ── Grid utilities ─────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
}

.nav-logo {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  font-weight: 700;
  color: var(--text-primary);
}

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-bottom: 2px solid var(--border);
  padding: 20px clamp(20px, 5vw, 64px) 28px;
  z-index: 99;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  font-weight: 700;
  color: var(--text-primary);
}

.nav-mobile .btn-filled {
  margin-top: 16px;
  align-self: flex-start;
}

/* Hamburger open state */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-top: 2px solid var(--border);
  padding: 32px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--text-primary);
}

/* ── LOGO CAROUSEL ──────────────────────────────────────── */
.carousel-section {
  padding: 32px 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}

.carousel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  max-width: none;
  width: 100%;
}

.carousel-track-wrapper {
  position: relative;
  overflow: hidden;
  /* fade mask on edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-left 20s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.logo-box {
  flex-shrink: 0;
  width: 160px;
  height: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 16px;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PAGE HERO ──────────────────────────────────────────── */
section.page-hero {
  background: #e4e4e4;
  border-bottom: 2px solid var(--border);
  padding: clamp(64px, 10vw, 120px) clamp(24px, 6vw, 96px);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* ── HOME HERO ──────────────────────────────────────────── */
.hero {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: var(--section-pad);
}

.hero-content h1 {
  margin-top: 8px;
}

.hero-content > p {
  margin-top: 16px;
  font-size: 17px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ── STATS / NUMBERS STRIP ──────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item strong {
  display: block;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.stat-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── SOLUTION CARDS ─────────────────────────────────────── */
.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
}

.solution-icon {
  width: 32px;
  height: 32px;
  background: var(--placeholder);
  border: 1px dashed var(--border);
  margin-bottom: 20px;
}

.solution-card h3 {
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 14px;
}

/* ── CASES GRID ─────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
}

.case-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.case-card:first-child {
  grid-row: span 2;
}

.case-card .img-block {
  aspect-ratio: 4/3;
  transition: background 0.2s;
}

.case-card:first-child .img-block {
  aspect-ratio: unset;
  height: 100%;
  min-height: 300px;
}

.case-card:hover .img-block {
  background: #b8b8b8;
}

.case-info {
  padding: 14px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.case-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.case-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Cases full grid (cases.html) */
.cases-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── BLOG CARDS ─────────────────────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.blog-card p {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.blog-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
}

.blog-link:hover {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

/* ── TEAM CARDS ─────────────────────────────────────────── */
.team-card {
  text-align: center;
}

.team-card .img-block {
  aspect-ratio: 1/1;
  margin-bottom: 16px;
}

.team-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.team-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── BADGE (quem somos) ─────────────────────────────────── */
.img-badge-wrapper {
  position: relative;
}

.img-badge {
  position: absolute;
  bottom: -1px;
  left: -1px;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
}

/* ── DIFERENCIAIS (solucoes) ────────────────────────────── */
.diferencial-item {
  padding: 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.diferencial-item:last-child {
  border-right: none;
}

.diferencial-item h3 {
  margin-bottom: 8px;
}

.diferencial-item p {
  font-size: 14px;
  margin: 0 auto;
  text-align: center;
}

/* ── CONTACT FORM SECTION ───────────────────────────────── */
section.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 14px;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
}

.contact-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--text-primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── WIREFRAME BADGE ────────────────────────────────────── */
.wf-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  pointer-events: none;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-2.reverse-mobile > *:first-child {
    order: 2;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

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

  .case-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .case-card:first-child .img-block {
    height: auto;
    min-height: unset;
    aspect-ratio: 16/9;
  }

  .cases-full-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .diferencial-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .diferencial-item:last-child {
    border-bottom: none;
  }

  .grid-3.diferenciais {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  h1 {
    font-size: clamp(28px, 8vw, 48px);
  }

  h2 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .hero-stats {
    gap: 20px;
  }

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

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

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .case-card:first-child {
    grid-column: span 1;
  }

  .cases-full-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-social {
    justify-content: center;
  }

  .case-list-item {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 11px clamp(20px, 5vw, 64px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb-sep {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--text-primary);
}

/* ── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: var(--text-primary);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: default;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* ── CASES LIST (cases.html) ────────────────────────────── */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.case-list-item .img-block {
  height: 100%;
  min-height: 260px;
  aspect-ratio: unset;
}

.case-list-info {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-list-info h2 {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 900;
  margin-top: 8px;
  margin-bottom: 12px;
}

.case-list-info > p {
  font-size: 14px;
  max-width: none;
}

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.78);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}

.modal-body {
  padding: clamp(24px, 4vw, 48px);
}

.modal-body > p {
  max-width: none;
  margin-top: 12px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

/* ── BLOG CARD WITH IMAGE ───────────────────────────────── */
.blog-article-img {
  aspect-ratio: 16/9;
  border-bottom: none;
}
