/* ===== Gabivivi — identidade visual =====
   Vermelho #F90000 | Off-white #FFFBF7 | Azul marinho #00104C | Preto #000000
   Títulos: Brasika (fallback Playfair Display) | Textos: Montserrat        */

@font-face {
  font-family: "Brasika";
  src: url("../fonts/Brasika.woff2") format("woff2"),
       url("../fonts/Brasika.otf") format("opentype");
  font-display: swap;
}

:root {
  --red: #f90000;
  --red-dark: #c60000;
  --cream: #fffbf7;
  --navy: #00104c;
  --black: #000000;
  --ink: #12131a;
  --muted: #5f6472;
  --line: #e8e1da;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(0, 16, 76, 0.09);
  --font-display: "Brasika", "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: .6rem;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .93rem;
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); color: var(--red); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,251,247,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { font-weight: 600; font-size: .94rem; color: var(--navy); }
.site-nav a.is-active { color: var(--red); }
.nav-cta { padding: .6rem 1.1rem; color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #001a73 55%, #000d3a 100%); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; background: var(--red); opacity: .18; border-radius: 40px; transform: rotate(18deg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,251,247,.86); font-size: 1.1rem; max-width: 52ch; }
.hero-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art img { max-width: 320px; margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

/* Faixa de números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats div strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--red); }
.stats div span { font-size: .86rem; color: var(--muted); }

/* Grids e cards */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 1/1; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img.is-placeholder { width: 55%; height: auto; object-fit: contain; opacity: .5; }
.card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.card-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0; }
.card-meta { font-size: .8rem; color: var(--muted); }
.price { font-family: var(--font-display); font-size: 1.3rem; color: var(--red); }
.price small { font-family: var(--font-body); font-size: .78rem; color: var(--muted); display: block; }
.tag { display: inline-block; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; }
.tag-navy { background: var(--navy); }

/* Categorias */
.cat-chip { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 600; }
.cat-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }

/* Formulários */
.field { margin-bottom: 1rem; }
label { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(249,0,0,.25); border-color: var(--red); }
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .92rem; }
.alert-ok { background: #e7f6ec; color: #14622f; }
.alert-err { background: #fde8e8; color: #9b0000; }

/* Sobre — seções */
.about-block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.about-block:last-child { border-bottom: 0; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.about-highlight { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.4rem; }
.about-highlight h2, .about-highlight h3 { color: #fff; }
.embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Galeria */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery-item { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.gallery-item img, .gallery-item video { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(0,10,40,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 4vh 4vw; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video, .lightbox iframe { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; }

/* Produto */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; }
.product-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.product-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.product-thumbs img.is-active { border-color: var(--red); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,251,247,.82); margin-top: 60px; padding: 54px 0 24px; font-size: .92rem; }
.site-footer a { color: rgba(255,251,247,.82); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.4rem; }
.footer-logo { max-width: 190px; }
.footer-tag { max-width: 40ch; margin-top: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.4rem; padding-top: 1.2rem; font-size: .8rem; }

/* Paginação */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .5rem .85rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .88rem; }
.pagination .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #fff; border-radius: 999px; padding: .8rem 1.2rem; font-weight: 700; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.wa-float:hover { color: #fff; }

@media (max-width: 960px) {
  .hero-grid, .about-split, .product-layout, .footer-grid { grid-template-columns: 1fr; }
  .grid-4, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1rem 4%; border-bottom: 1px solid var(--line); }
  body.nav-open .site-nav { display: flex; }
  .hero-art { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
}

/* ===== Transições de entrada (reveal) ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.68,.35,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .07s; }
.reveal-delay-2 { transition-delay: .14s; }
.reveal-delay-3 { transition-delay: .21s; }
.reveal-delay-4 { transition-delay: .28s; }
.card, .gallery-item, .cat-chip, .btn { transition: transform .22s ease, box-shadow .22s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover, .gallery-item:hover { transform: none; }
}

/* ===== Upload estilizado ===== */
.file-field input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-field { position: relative; }
.file-drop {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  border: 1px dashed var(--line); border-radius: 12px; padding: .8rem 1rem; background: #fff;
  transition: .18s ease; cursor: pointer;
}
.file-drop:hover, .file-field input[type=file]:focus + .file-drop { border-color: var(--red); background: #fffaf8; }
.file-drop .btn { pointer-events: none; }
.file-name { font-size: .82rem; color: var(--muted); }

/* ===== Carrinho de orçamento ===== */
.card-foot { display: flex; align-items: center; gap: .5rem; padding: 0 1.1rem 1.1rem; }
.card-foot input[type=number] { width: 74px; padding: .5rem .6rem; text-align: center; }
.card-link { display: flex; flex-direction: column; flex: 1; }
.quote-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 70; display: none; align-items: center; gap: .6rem;
  background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.3rem;
  font-weight: 700; font-size: .9rem; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.quote-fab.is-on { display: inline-flex; animation: quote-pop .3s ease; }
.quote-fab .quote-count { background: var(--red); border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; }
@keyframes quote-pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.quote-backdrop { position: fixed; inset: 0; background: rgba(0,10,40,.5); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 80; }
.quote-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); background: var(--cream); z-index: 90;
  transform: translateX(105%); transition: transform .35s cubic-bezier(.22,.68,.35,1);
  display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(0,0,0,.2);
}
body.quote-open .quote-panel { transform: none; }
body.quote-open .quote-backdrop { opacity: 1; pointer-events: auto; }
.quote-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.quote-head h3 { margin: 0; font-size: 1.1rem; }
.quote-close { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--navy); }
.quote-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; }
.quote-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: grid; grid-template-columns: 1fr auto; gap: .4rem; animation: fade-up .25s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quote-item strong { font-size: .9rem; }
.quote-item .card-meta { grid-column: 1 / -1; }
.quote-item-actions { display: flex; align-items: center; gap: .4rem; grid-column: 1 / -1; }
.quote-item-actions input { width: 70px; padding: .4rem; text-align: center; }
.quote-remove { background: none; border: 0; color: var(--red); font-weight: 700; font-size: .8rem; cursor: pointer; }
.quote-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; background: #fff; }
.quote-total { display: flex; justify-content: space-between; font-weight: 700; color: var(--navy); }
.quote-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 2rem 0; }

/* ===== Hero animado (v5) ===== */
.hero { padding: 100px 0 120px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(46% 46% at 22% 28%, rgba(249,0,0,.30), transparent 62%),
              radial-gradient(40% 40% at 78% 70%, rgba(0,88,255,.32), transparent 66%);
  animation: hero-drift 18s ease-in-out infinite alternate;
  z-index: -2;
}
@keyframes hero-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
.hero-orb { position: absolute; border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; filter: blur(2px); opacity: .22; z-index: -1; }
.hero-orb-1 { width: 260px; height: 260px; background: var(--red); top: -60px; left: 8%; animation: hero-float 12s ease-in-out infinite; }
.hero-orb-2 { width: 180px; height: 180px; background: #fff; bottom: 40px; left: 42%; opacity: .10; animation: hero-float 16s ease-in-out infinite reverse; }
.hero-orb-3 { width: 320px; height: 320px; background: #3f6bff; right: -70px; top: 30%; animation: hero-float 20s ease-in-out infinite; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(12deg); }
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
}
.hero h1 em { font-style: normal; color: #fff; background: linear-gradient(100deg, #fff 0%, #ffd9d1 42%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-art { position: relative; }
.hero-art img { position: relative; z-index: 1; animation: hero-bob 6s ease-in-out infinite; }
@keyframes hero-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-art-glow {
  position: absolute; inset: 6% 12%; border-radius: 50%; background: var(--red);
  filter: blur(60px); opacity: .45; animation: hero-pulse 5s ease-in-out infinite;
}
@keyframes hero-pulse { 0%,100% { opacity: .32; transform: scale(.95); } 50% { opacity: .55; transform: scale(1.06); } }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: var(--cream);
  clip-path: ellipse(72% 100% at 50% 100%);
}
.hero-in { opacity: 0; transform: translateY(22px); animation: hero-rise .8s cubic-bezier(.22,.68,.35,1) forwards; }
.hero-in-1 { animation-delay: .05s; }
.hero-in-2 { animation-delay: .18s; }
.hero-in-3 { animation-delay: .32s; }
.hero-in-4 { animation-delay: .46s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-orb, .hero-art img, .hero-art-glow { animation: none; }
  .hero-in { opacity: 1; transform: none; animation: none; }
}

/* ===== Card do catálogo minimalista (v5) ===== */
.card-media img { transition: transform .5s cubic-bezier(.22,.68,.35,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body h3 { font-size: 1.02rem; line-height: 1.35; }
.price { font-size: 1.18rem; font-weight: 700; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem 1.1rem 1rem; border-top: 1px solid var(--line); margin-top: auto;
}
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-stepper button {
  width: 30px; height: 32px; border: 0; background: none; color: var(--navy);
  font-size: 1rem; line-height: 1; cursor: pointer; transition: color .15s ease;
}
.qty-stepper button:hover { color: var(--red); }
.qty-stepper input[type=number] {
  width: 38px; border: 0; text-align: center; padding: 0; height: 32px; font-size: .85rem;
  font-weight: 700; color: var(--navy); background: none; -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-quote {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--navy); background: #fff;
  color: var(--navy); font-size: 1.25rem; line-height: 1; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; transition: .2s ease; flex: 0 0 auto;
}
.add-quote:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.add-quote.is-added { background: var(--red); border-color: var(--red); color: #fff; }

/* ===== v6 — Vermelho predominante, azul como destaque ===== */
.hero { background: linear-gradient(135deg, var(--red) 0%, #d40000 55%, #8f0000 100%); }
.hero::after { background: var(--navy); opacity: .28; }
.hero::before {
  background: radial-gradient(46% 46% at 22% 28%, rgba(0,16,76,.42), transparent 62%),
              radial-gradient(40% 40% at 78% 70%, rgba(0,0,0,.35), transparent 66%);
}
.hero-badge { background: var(--navy); color: #fff; }
.section-navy { background: var(--red); }
.about-highlight { background: var(--red); }
.site-footer { background: var(--red); color: rgba(255,251,247,.9); }
.site-footer a { color: rgba(255,251,247,.9); }
.eyebrow { color: var(--navy); }
.stats div strong { color: var(--navy); }
.cat-chip.is-active { background: var(--red); border-color: var(--red); }
.pagination .is-current { background: var(--red); border-color: var(--red); }
.quote-fab { background: var(--red); }
.quote-fab .quote-count { background: var(--navy); }
.add-quote { border-color: var(--red); color: var(--red); }
.add-quote:hover { background: var(--red); color: #fff; }
.add-quote.is-added { background: var(--navy); border-color: var(--navy); }
.qty-stepper button:hover { color: var(--red); }
.btn-light:hover { color: var(--red); }
.tag { background: var(--red); }
.tag-navy { background: var(--navy); }

/* ===== v7 — degradê do slogan legível sobre vermelho ===== */
.hero h1 em {
  background: linear-gradient(100deg, #fff 0%, #fff2e8 45%, #ffd9d1 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
