/* Geremia Tecnologia e Serviços — style.css */
:root {
  --primary:    #0d1b2a;
  --secondary:  #1e3a5f;
  --accent:     #0077cc;
  --accent-h:   #005fa3;
  --green:      #25D366;
  --green-h:    #1da851;
  --text:       #1a1a2e;
  --text-light: #5a6a7e;
  --bg:         #f7f9fc;
  --card:       #ffffff;
  --border:     #dde3eb;
  --shadow:     0 2px 10px rgba(0,0,0,.08);
  --shadow-h:   0 8px 24px rgba(0,0,0,.14);
  --radius:     8px;
  --w:          1100px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- UTILIDADES ---- */
.container { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }

/* ---- BOTÕES ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none; transition: background .2s, transform .1s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }
.btn-whatsapp  { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: var(--green-h); }
.btn-outline   { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline-w { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline-w:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- HEADER ---- */
header {
  background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 20px; max-width: var(--w); margin: 0 auto; gap: 1rem;
}
.logo { font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.2; }
.logo span { color: #4db8ff; }
.logo small { display: block; font-size: .7rem; font-weight: 400; opacity: .8; letter-spacing: .05em; }

nav { display: flex; align-items: center; gap: .25rem; }
nav a {
  color: rgba(255,255,255,.85); font-size: .88rem; padding: .4rem .7rem;
  border-radius: 4px; transition: background .18s, color .18s;
}
nav a:hover, nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-whatsapp {
  background: var(--green); color: #fff !important; font-weight: 600;
  padding: .4rem .9rem !important; border-radius: 20px !important;
}
.nav-whatsapp:hover { background: var(--green-h) !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.5rem; }
@media(max-width:768px){
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--primary); flex-direction: column; align-items: flex-start;
        padding: .5rem 20px 1rem; border-top: 1px solid rgba(255,255,255,.1); }
  nav.open { display: flex; }
  nav a { padding: .6rem .5rem; width: 100%; }
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; padding: 4rem 20px 3.5rem; text-align: center;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: #4db8ff; }
.hero p { font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .88; max-width: 620px; margin: 0 auto 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---- SECTION GENÉRICA ---- */
section { padding: 3.5rem 20px; }
section:nth-child(even) { background: var(--card); }
.section-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: .5rem; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; }

/* ---- CARDS DE SERVIÇOS ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; max-width: var(--w); margin: 0 auto;
}
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.service-icon { font-size: 2rem; margin-bottom: .75rem; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.service-card p { font-size: .88rem; color: var(--text-light); }

/* ---- CATÁLOGO DE PRODUTOS ---- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem; max-width: var(--w); margin: 0 auto;
}
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.product-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef2f7; }
.product-img-placeholder {
  width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #eef2f7, #dde3eb);
  display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #aab;
}
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.product-badge {
  display: inline-block; font-size: .72rem; font-weight: 600; padding: .18rem .55rem;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}
.badge-novo      { background: #dcfce7; color: #16a34a; }
.badge-usado     { background: #fef9c3; color: #b45309; }
.badge-revisado  { background: #dbeafe; color: #1d4ed8; }
.product-body h3 { font-size: .98rem; font-weight: 700; }
.product-body p  { font-size: .83rem; color: var(--text-light); flex: 1; }
.product-price   { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.product-id      { font-size: .72rem; color: #aab; }
.product-btns    { display: flex; gap: .5rem; flex-wrap: wrap; padding: .75rem 1rem 1rem; }
.product-btns .btn { flex: 1; min-width: 120px; }

/* ---- FILTROS EQUIPAMENTOS ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  padding: .4rem 1rem; border-radius: 20px; font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 2px solid var(--accent); background: transparent; color: var(--accent); transition: .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #fff; }

/* ---- FORMULÁRIO ---- */
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .88rem; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem; background: var(--card); color: var(--text);
  transition: border-color .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,119,204,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:500px){ .form-row { grid-template-columns: 1fr; } }
.radio-group { display: flex; gap: 1.5rem; }
.radio-group label { display: flex; align-items: center; gap: .4rem; font-weight: normal; cursor: pointer; }

/* ---- CONTATO ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  max-width: var(--w); margin: 0 auto;
}
@media(max-width:680px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; font-size: .95rem; }
.contact-item .icon { font-size: 1.3rem; min-width: 1.6rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--primary); color: rgba(255,255,255,.8);
  padding: 2.5rem 20px 1.5rem;
}
.footer-inner {
  max-width: var(--w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
footer p, footer a { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.8; }
footer a:hover { color: #4db8ff; }
.footer-bottom {
  max-width: var(--w); margin: 1.5rem auto 0; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---- WHATSAPP FLUTUANTE ---- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--green); color: #fff; border-radius: 50%;
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  text-decoration: none !important; transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(37,211,102,.5); }

/* ---- ALERTA/TOAST ---- */
.alert { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: .9rem; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* ---- PÁGINA INTERNA ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; padding: 2.5rem 20px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; }
.page-hero p { opacity: .85; margin-top: .5rem; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.prose h3 { font-size: 1rem; margin: 1.5rem 0 .35rem; }
.prose p, .prose li { font-size: .93rem; color: #3a4a5e; margin-bottom: .5rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }

/* ---- LOADING / EMPTY ---- */
.loading { text-align: center; padding: 3rem; color: var(--text-light); font-size: .95rem; }
.empty { text-align: center; padding: 3rem; color: var(--text-light); }

/* ---- DESTAQUE (seção featured) ---- */
.featured-banner {
  background: linear-gradient(90deg, #0d1b2a, #1e3a5f);
  color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.featured-banner span { font-size: 1.5rem; }
.featured-banner p { font-size: .88rem; opacity: .85; }

/* ================================================================
   DRAWER DE PRODUTO — v2
   Desktop: painel lateral direito | Mobile: bottom-sheet
   ================================================================ */
body.drawer-open { overflow: hidden; }

.drawer {
  position: fixed; inset: 0; z-index: 1000;
  visibility: hidden; pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }

.drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity .3s ease;
  cursor: pointer;
}
.drawer.open .drawer-overlay { opacity: 1; }

/* Painel lateral — desktop */
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(500px, 100vw);
  background: #fff;
  box-shadow: -4px 0 32px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open .drawer-panel { transform: translateX(0); }

/* Bottom-sheet — mobile */
@media (max-width: 640px) {
  .drawer-panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 93vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,.22);
    transform: translateY(100%);
  }
  .drawer.open .drawer-panel { transform: translateY(0); }
}

/* Header */
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--primary); color: #fff;
  flex-shrink: 0; gap: .75rem;
}
.drawer-header-nome {
  font-weight: 700; font-size: .98rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.drawer-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .18s;
}
.drawer-close:hover { background: rgba(255,255,255,.3); }

/* Body scroll */
.drawer-body { flex: 1; overflow-y: auto; }

/* Galeria */
.drawer-img-wrap {
  width: 100%; aspect-ratio: 4/3; background: #eef2f7; overflow: hidden;
}
.drawer-img-main { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #bbc;
  background: linear-gradient(135deg, #eef2f7, #dde3eb);
}
.drawer-thumbs {
  display: flex; gap: .45rem; padding: .55rem .8rem;
  overflow-x: auto; background: #f7f9fc;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.drawer-thumbs:empty { display: none; }
.drawer-thumb {
  flex-shrink: 0; width: 54px; height: 54px;
  border-radius: 6px; border: 2px solid transparent;
  overflow: hidden; cursor: pointer; padding: 0;
  background: #dde3eb; transition: border-color .15s;
}
.drawer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer-thumb.active, .drawer-thumb:hover { border-color: var(--accent); }

/* Info */
.drawer-info { padding: 1rem 1.1rem .5rem; }
.drawer-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.drawer-cat {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 20px;
  background: #eef2f7; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .04em;
}
.drawer-price { font-size: 1.45rem; font-weight: 700; color: var(--accent); margin-bottom: .15rem; }
.drawer-code  { font-size: .72rem; color: #aab; margin-bottom: .75rem; }
.drawer-desc p { font-size: .9rem; color: var(--text-light); margin-bottom: .6rem; }
.drawer-desc-longa-inner {
  font-size: .85rem; color: var(--text);
  background: #f7f9fc; border-radius: var(--radius);
  padding: .75rem .9rem; margin-bottom: .75rem;
  border: 1px solid var(--border);
  line-height: 1.75; white-space: pre-line;
}
.drawer-extras { padding-bottom: .5rem; }
.drawer-extra-item { font-size: .83rem; margin-bottom: .35rem; color: var(--text-light); }
.drawer-obs {
  color: #92400e; background: #fef3c7;
  padding: .45rem .7rem; border-radius: var(--radius);
  margin-top: .25rem;
}

/* Footer de ações */
.drawer-footer {
  display: flex; gap: .55rem; flex-wrap: wrap;
  padding: .75rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
  background: #f7f9fc; flex-shrink: 0;
}
.drawer-footer .btn { flex: 1; min-width: 140px; justify-content: center; }

/* Card clicável */
.product-card { cursor: default; }
.product-card .product-body { cursor: pointer; user-select: none; }
.product-card .product-img { cursor: pointer; }
.product-card .product-img-placeholder { cursor: pointer; }

/* CTA catálogo */
.cta-catalogo {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; text-align: center; padding: 2.25rem 20px;
}
.cta-catalogo h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.cta-catalogo p { opacity: .85; font-size: .92rem; margin-bottom: 1.25rem; }
