*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #0f1f3d; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

:root {
  --blue: #1a65a8;
  --blue-dark: #0f3d6e;
  --blue-light: #e8f2fb;
  --blue-muted: #f0f6fd;
  --gold: #c9a23e;
  --gold-light: #fff7e6;
  --green-wa: #25D366;
  --green-wa-h: #1da851;
  --fg: #0f1f3d;
  --muted: #5a7599;
  --border: rgba(26,101,168,.15);
  --radius: 12px;
  --radius-lg: 18px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.tag--gold { color: var(--gold); }
.section-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.75rem,4vw,2.5rem); line-height: 1.2; margin-top: 8px; }
.section-sub { color: var(--muted); margin-top: 10px; max-width: 520px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter',sans-serif; font-weight: 600; font-size: 15px; padding: 12px 24px; border-radius: var(--radius); cursor: pointer; border: none; transition: background .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--wa   { background: var(--green-wa); color: #fff; }
.btn--wa:hover { background: var(--green-wa-h); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #b0882e; }
.btn--ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.25); }
.btn--lg { font-size: 17px; padding: 16px 32px; border-radius: 14px; }

/* HEADER */
header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
/* .logo-icon { width: 36px; height: 36px; background: var(--blue); border-radius: 9px; display: flex; align-items: center; justify-content: center; } */
/* .logo-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } */
.logo-icon img { width: 100px; }
.logo-text strong { font-family: 'Outfit',sans-serif; font-weight: 700; font-size: 15px; color: var(--blue); display: block; line-height: 1.2; }
.logo-text span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
nav.desktop { display: flex; align-items: center; gap: 24px; }
nav.desktop a { font-size: 14px; font-weight: 500; color: var(--fg); transition: color .2s; }
nav.desktop a:hover { color: var(--blue); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; border-radius: 2px; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: #fff; padding: 16px 24px; flex-direction: column; gap: 14px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--fg); }

/* HERO */
.hero { background: linear-gradient(135deg,#0f1f3d 0%,#1a65a8 60%,#2d8fd4 100%); color: #fff; position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(45deg,transparent,transparent 20px,rgba(255,255,255,.03) 20px,rgba(255,255,255,.03) 40px); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 88px 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 100px; padding: 6px 16px; font-size: 13px; color: rgba(255,255,255,.9); margin-bottom: 20px; }
.hero-badge svg { width: 14px; height: 14px; fill: none; stroke: #f0c94a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero h1 { font-family: 'Outfit',sans-serif; font-weight: 800; font-size: clamp(2rem,5vw,3.2rem); line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: #f0c94a; }
.hero > div > div > p { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 32px; max-width: 440px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { display: flex; justify-content: flex-end; }
.hero-img-wrap { position: relative; width: 400px; height: 300px; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 20px 60px rgba(0,0,0,.3); opacity: .85; }
.hero-badge-float { width: 232px;background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.hero-badge-float svg { width: 18px; height: 18px; fill: #c9a23e; stroke: #c9a23e; }
.hero-badge-float small { font-size: 11px; color: var(--muted); display: block; }
.hero-badge-float strong { font-size: 13px; color: var(--fg); }

/* STRIP */
.strip { background: var(--blue-light); border-bottom: 1px solid var(--border); }
.strip-inner { padding: 40px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.strip-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: box-shadow .2s; }
.strip-card:hover { box-shadow: 0 4px 16px rgba(26,101,168,.12); }
.strip-icon { width: 48px; height: 48px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.strip-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip-card strong { font-family: 'Outfit',sans-serif; font-weight: 600; font-size: 13px; color: var(--fg); }
.strip-card p { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   SEÇÃO: CHAVEIRO AUTOMATIVO EXPANDIDO
   ========================================================================== */

/* 1. Estrutura da Grade de Mídias (Parte Superior) */
/* Nova Estrutura Vertical de Mídias */
.grid-midias-vertical {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Mídia do Topo (Principal/Vídeo) */
.midia-topo {
    width: 100%;
    height: 400px; /* Controla a altura da foto principal */
}

.midia-topo img,
.midia-topo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* Bloco das duas fotos de baixo */
.midias-baixo {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 160px; /* Altura menor para as fotos de apoio */
}

.midia-baixo-direita {
    background-color: #bbdaf3;
}

.midias-baixo img {
    flex: 1; /* Faz as duas fotos dividirem o espaço meio a meio (50% cada) */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agora o cover vai funcionar lindo porque o espaço é horizontal */
    border-radius: 12px;
}

/* 2. Bloco do Upgrade da Chave Canivete (Parte Inferior) */
.upgrade-canivete-block {
    margin-top: 60px;
    background: #f8fafc; /* Um fundo sutil para destacar do resto da página */
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge-upgrade {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.canivete-info h3 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.canivete-info p {
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 3. Container de Antes e Depois (Visual) */
.antes-depois-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 755px;

}

.box-antes, .box-depois {
    text-align: center;
    width: 40%;
}

.box-antes span, .box-depois span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.box-antes span { color: #94a3b8; }
.box-depois span { color: #0284c7; }

.box-antes img, .box-depois img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    background-color: #BBDAF3;
}

.seta-transformacao {
    font-size: 2rem;
    color: #0284c7;
    font-weight: bold;
    animation: pulseSeta 2s infinite;
}




/* SECTIONS */
.section { padding: 72px 0; }
.section--muted { background-color: var(--blue-muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 570px; background: var(--blue-muted); }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
/* .photo-wrap::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(15,31,61,.5),transparent); } */
.photo-label { position: absolute; bottom: 16px; left: 16px; z-index: 1; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; }
.afiac-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.afiac-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg); }
.afiac-item-icon { width: 32px; height: 32px; background: var(--blue-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.afiac-item-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* PANELAS */
.panela-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.panela-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panela-icon { width: 40px; height: 40px; background: var(--gold-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.panela-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panela-list { display: flex; flex-direction: column; gap: 12px; }
.panela-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); }
.panela-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.panela-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* CATEGORIAS */
.cat-header { text-align: center; margin-bottom: 48px; }
.cat-header .section-sub { margin: 10px auto 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: box-shadow .2s, border-color .2s; display: block; }
.cat-card:hover { box-shadow: 0 8px 28px rgba(26,101,168,.14); border-color: rgba(26,101,168,.3); }
.cat-img { position: relative; height: 176px; background: var(--blue-muted); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-img::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(15,31,61,.35),transparent); }
.cat-img-icon { position: absolute; top: 12px; right: 12px; z-index: 1; background: rgba(255,255,255,.9); border-radius: 8px; padding: 6px; }
.cat-img-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat-body { padding: 16px; }
.cat-body strong { font-family: 'Outfit',sans-serif; font-weight: 600; font-size: 14px; color: var(--fg); display: block; margin-bottom: 4px; }
.cat-body p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cat-link { font-size: 12px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.cat-link svg { width: 12px; height: 12px; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* CTA */
.cta-final { background: linear-gradient(90deg,#0f1f3d,#1a65a8); color: #fff; padding: 72px 0; text-align: center; }
.cta-icon { width: 40px; height: 40px; fill: none; stroke: #f0c94a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 16px; display: block; }
.cta-final h2 { font-family: 'Outfit',sans-serif; font-weight: 800; font-size: clamp(1.75rem,4vw,2.5rem); margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 32px; }

/* FOOTER */
footer { background: #0a1628; color: rgba(255,255,255,.55); font-size: 13px; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo svg { width: 16px; height: 16px; fill: none; stroke: #f0c94a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-logo span { font-family: 'Outfit',sans-serif; font-weight: 600; color: rgba(255,255,255,.85); font-size: 14px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.3); }

/* FLOATING WA */
.float-wa { position: fixed; bottom: 24px; right: 24px; z-index: 200; background: var(--green-wa); color: #fff; border-radius: 100px; padding: 14px 18px; display: flex; align-items: center; gap: 0; box-shadow: 0 6px 24px rgba(0,0,0,.2); transition: background .2s, padding .3s, gap .3s; overflow: hidden; white-space: nowrap; }
.float-wa:hover { background: var(--green-wa-h); padding: 14px 22px; gap: 10px; }
.float-wa svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.float-wa-label { max-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; transition: max-width .3s; }
.float-wa:hover .float-wa-label { max-width: 160px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .strip-inner { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  nav.desktop { display: none; }
  .hamburger { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; }
  .hero-img { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .photo-wrap { height: 260px; } /* Mantém a afiação com 260px */
  .cat-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* =======================================
     CORREÇÃO DA SEÇÃO CHAVEIRO AUTOMATIVO 
     ======================================= */
  /* Remove a trava de 260px apenas para o grid vertical do chaveiro */
  .photo-wrap.grid-midias-vertical { 
    height: auto !important; 
  }

  /* Ajusta a altura do vídeo/foto principal no celular */
  .midia-topo video{
    object-position: center 60%;
  }

  /* Mantém o bloco de baixo (antes e depois) bem estruturado */
  .upgrade-canivete-block {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Garante que o container visual não passe da largura do card pai */
  .canivete-visual-wrap {
    width: 100%;
    box-sizing: border-box;
  }

  /* Faz o Antes e Depois virar vertical para dar espaço para as imagens crescerem */
  .antes-depois-container {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Alinha uma chave embaixo da outra no celular */
    align-items: center;
    gap: 12px;
  }

  /* Faz as caixas individuais (Antes e Depois) ocuparem o espaço correto */
  .box-antes, .box-depois {
    width: 100%;
    text-align: center;
  }

  /* O SEGREDO: Força as imagens ampliadas a encolherem proporcionalmente na tela do celular */
  .box-antes img, 
  .box-depois img,
  #imgChaveCanivete {
    max-width: 100% !important; /* Nunca deixa passar da largura do celular */
    height: auto !important;    /* Mantém a proporção e a super nitidez */
    display: block;
    margin: 0 auto;
  }

  /* Gira a seta para apontar para baixo no celular, já que o layout virou vertical */
  .seta-transformacao {
    transform: rotate(90deg) !important;
    margin: 8px 0;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
}

/* Animação simples para dar movimento à seta */
@keyframes pulseSeta {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}
