/* ==========================================================================
   METRIC — Home & Office Furniture
   style.css
   ========================================================================== */

:root {
  --blue: #1e88e5;
  --blue-dark: #0d47a1;
  --cyan: #4fc3f7;
  --graphite: #243746;
  --ink: #1c2b36;
  --muted: #5b6b7d;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 70, .06);
  --shadow-md: 0 12px 34px rgba(20, 40, 70, .12);
  --maxw: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.2; color: var(--graphite); margin: 0 0 .5em; letter-spacing: -0.02em;
}
button, input, select, textarea { font-family: inherit; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: clamp(56px, 8vw, 96px) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 .8rem;
}
.eyebrow-light { color: var(--cyan); }

.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); margin: 0; }
.section-head-light h2, .section-head-light p { color: #eef4fb; }

/* --------------------------- BUTTONS --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: .6rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30, 136, 229, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: var(--bg-soft); color: var(--graphite); border-color: var(--line); }
.btn-ghost:hover { background: #e8eef4; }

/* --------------------------- HEADER --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: block; line-height: 0; border-radius: 8px; overflow: hidden; }
.brand img { height: 46px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--graphite); font-weight: 500; font-size: .96rem; padding: 6px 0; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-quote-toggle { padding: .5rem .9rem; font-size: .9rem; }
.btn-quote-toggle.pulse { animation: pulse .5s ease; }
@keyframes pulse { 0%,100% { transform: scale(1); } 40% { transform: scale(1.12); } }

.nav-toggle { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--graphite); border-radius: 2px; margin: 4px 0; transition: .25s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------- HERO --------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f4f8fc, #ffffff); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-text .lead { font-size: 1.15rem; color: var(--muted); max-width: 30ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-shapes .shape { position: absolute; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; opacity: .5; filter: blur(2px); }
.shape-1 { width: 320px; height: 320px; background: #dcecfb; top: -80px; right: -60px; }
.shape-2 { width: 200px; height: 200px; background: #e9f4ff; bottom: -40px; left: -50px; border-radius: 50%; }
.shape-3 { width: 140px; height: 140px; border: 2px solid #cfe3f7; top: 40%; left: 46%; border-radius: 24px; transform: rotate(18deg); opacity: .6; }

.hero-collage { position: relative; height: 420px; }
.hero-collage .hc {
  position: absolute; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.hc-a { width: 62%; left: 0; top: 8%; z-index: 2; }
.hc-b { width: 46%; right: 4%; top: 0; z-index: 3; }
.hc-c { width: 54%; right: 0; bottom: 0; z-index: 1; }

/* --------------------------- BENEFÍCIOS --------------------------- */
.benefits { padding: clamp(40px, 6vw, 64px) 0; background: var(--bg-soft); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.benefit-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #e8f2fe; color: var(--blue); margin-bottom: 14px;
}
.benefit h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .96rem; }

/* --------------------------- CATEGORIAS --------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.category-card > img[src*="product-14"] { transform: scale(1.22); }
.category-body { padding: 22px; }
.category-body h3 { font-size: 1.18rem; }
.category-body p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }

/* --------------------------- PRODUTOS --------------------------- */
.products { background: var(--bg-soft); }
.products-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: center; margin-bottom: 32px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--graphite); font: inherit; font-weight: 600; cursor: pointer;
  transition: .2s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.search input {
  padding: .62rem 1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; min-width: 240px;
}
.search input:focus { outline: none; border-color: var(--blue); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-media { background: var(--bg-soft); }
.product-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* Fotos de mesas têm muita margem branca — aproximar o enquadramento */
.product-card[data-category="mesa"] .product-media { overflow: hidden; }
.product-card[data-category="mesa"] .product-media img { transform: scale(1.28); }
.product-card[data-category="mesa"] .product-body { padding: 9px; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); font-weight: 700; }
.product-name { font-size: 1.05rem; margin: .3rem 0 .2rem; }
.product-price { font-weight: 700; color: var(--graphite); margin: 0 0 .5rem; font-size: 1.05rem; }
.product-desc {
  color: var(--muted); font-size: .9rem; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-actions .btn { flex: 1; padding: .6rem .5rem; font-size: .88rem; }

.no-results { text-align: center; color: var(--muted); padding: 30px 0; }

/* --------------------------- GAMER --------------------------- */
.gamer-zone { background: radial-gradient(circle at 20% 0%, #2b3a4a, #16202a 60%); color: #eef4fb; }
.gamer-zone .product-card { background: #1e2a35; border-color: #33434f; }
.gamer-zone .product-name, .gamer-zone .product-price { color: #fff; }
.gamer-zone .product-desc { color: #a9bccc; }
.gamer-zone .product-media { background: #172029; }
.gamer-zone .btn-outline { border-color: var(--cyan); color: var(--cyan); }
.gamer-zone .btn-outline:hover { background: var(--cyan); color: #16202a; }
.gamer-zone .btn-ghost { background: #263441; color: #cfe0ee; border-color: #38495731; }

/* --------------------------- SOBRE --------------------------- */
.about-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: center; }
.about-text p { color: var(--muted); }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about-list li {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; font-weight: 600; color: var(--graphite);
}
.about-list li::before { content: "✓ "; color: var(--blue); font-weight: 800; }

/* --------------------------- CTA BAND --------------------------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #dcecfb; max-width: 52ch; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef4fb; }

/* --------------------------- CONTACTO --------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto 26px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); text-align: center;
}
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.contact-card a { font-size: 1.05rem; font-weight: 600; word-break: break-word; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------- FOOTER --------------------------- */
.site-footer { background: var(--graphite); color: #c7d3de; padding-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding-bottom: 32px; }
.footer-brand .logo-wrap { display: inline-block; line-height: 0; border-radius: 8px; overflow: hidden; }
.footer-brand .logo-wrap img { height: 52px; width: auto; display: block; }
.footer-brand p { letter-spacing: 2px; font-size: .74rem; margin: 10px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-contact a { color: #c7d3de; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid #35495a; padding: 18px 0; text-align: center; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* --------------------------- WHATSAPP FAB --------------------------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* --------------------------- MODAIS --------------------------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 30, 40, .55); backdrop-filter: blur(2px); }
.modal-dialog {
  position: relative; background: #fff; border-radius: var(--radius); max-width: 900px; width: 100%;
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow-md); animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: #f0f3f7; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--graphite);
}
.modal-close:hover { background: #e2e8ef; }
.modal-content { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: var(--bg-soft); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.modal-media img { transform: scale(1.06); }
.modal-info { padding: 30px; }
.badge { display: inline-block; background: #e8f2fe; color: var(--blue); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; }
.modal-info h3 { margin: 12px 0 6px; font-size: 1.4rem; }
.modal-price { font-weight: 700; font-size: 1.2rem; color: var(--graphite); margin: 0 0 12px; }
.modal-info h4 { margin: 16px 0 8px; font-size: 1rem; }
.modal-info ul { margin: 0 0 20px; padding-left: 18px; color: var(--muted); }
.modal-info li { margin-bottom: 4px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------- PAINEL COTAÇÃO --------------------------- */
.quote-panel {
  position: relative; margin-left: auto; height: 100%; width: min(440px, 100%);
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-md);
  animation: slideIn .22s ease;
}
#quoteModal { padding: 0; align-items: stretch; justify-content: flex-end; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.quote-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.quote-header h3 { margin: 0; }
.quote-header .modal-close { position: static; }
.quote-body { flex: 1; overflow: auto; padding: 16px 20px; }
.quote-empty { padding: 0 20px 20px; color: var(--muted); }
.quote-row { display: grid; grid-template-columns: 54px 1fr auto; grid-template-areas: "img info remove" "img qty sub"; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.quote-row img { grid-area: img; width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.quote-row-info { grid-area: info; display: flex; flex-direction: column; }
.quote-row-info strong { font-size: .92rem; }
.quote-row-info span { font-size: .82rem; color: var(--muted); }
.quote-row-qty { grid-area: qty; display: flex; align-items: center; gap: 4px; }
.quote-row-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; }
.quote-row-qty input { width: 44px; height: 26px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.quote-row-sub { grid-area: sub; font-weight: 700; font-size: .9rem; text-align: right; }
.quote-remove { grid-area: remove; justify-self: end; width: 26px; height: 26px; border: 0; background: #fbeaea; color: #c0392b; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; }
.quote-footer { border-top: 1px solid var(--line); padding: 18px 20px; }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.quote-total strong { font-size: 1.3rem; color: var(--graphite); }
.quote-fields { display: grid; gap: 8px; margin-bottom: 12px; }
.quote-fields input { padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.quote-fields input:focus { outline: none; border-color: var(--blue); }
.quote-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* --------------------------- REVEAL ANIM --------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 1024px) {
  .hero-inner { gap: 32px; }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .28s ease; margin: 0;
  }
  body.nav-open .main-nav { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-toggle { display: block; }
  .btn-cta-header { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-collage { height: 340px; max-width: 460px; margin: 0 auto; }
  .benefits-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-media { padding: 16px; }
}
@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .brand img { height: 38px; }
  .btn-quote-toggle { padding: .45rem .7rem; font-size: .82rem; }
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; min-width: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
