@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Família Vende Tudo — Design System
   Modern & clean · mobile-first
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --bg-softer: #fafafa;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --white: #ffffff;

  /* Typography */
  --font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-900: clamp(2rem, 5vw + 1rem, 3.25rem);   /* hero h1 */
  --fs-800: clamp(1.6rem, 3vw + 1rem, 2.4rem);  /* h1 */
  --fs-700: clamp(1.4rem, 2vw + 0.8rem, 2rem);  /* h2 */
  --fs-600: clamp(1.15rem, 1vw + 0.8rem, 1.4rem);/* h3 */
  --fs-500: 1.125rem;
  --fs-400: 1rem;
  --fs-300: 0.9rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 18px 48px rgba(17, 24, 39, 0.14);
  --ring: 0 0 0 3px rgba(22, 163, 74, 0.25);

  --header-h: 104px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { font-family: var(--font); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: var(--fs-400);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--green-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--green); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

::selection { background: var(--green-soft); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); font-weight: 700; }
h3 { font-size: var(--fs-600); font-weight: 600; }
h4 { font-size: var(--fs-500); font-weight: 600; text-align: inherit; margin-bottom: var(--space-3); }
p { margin: 0 0 var(--space-4); }
strong { color: var(--ink); font-weight: 700; }
.lead { font-size: var(--fs-500); color: var(--ink-soft); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2 * var(--space-4), var(--container)); margin-inline: auto; }
.section { padding: var(--space-7) 0; }
@media (min-width: 768px) { .section { padding: var(--space-9) 0; } }
.section-soft { background: var(--bg-soft); }
.section-ink { background: var(--ink); color: #d1d5db; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }
.stack > * + * { margin-top: var(--space-4); }
.measure { max-width: 70ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn,
.whatsapp-big-button,
.btn-dark {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: var(--fs-400);
  line-height: 1.1;
  text-align: center;
  padding: 0.95em 1.6em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover,
.whatsapp-big-button:hover,
.btn-dark:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-whatsapp { --btn-bg: var(--wa); }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-dark { --btn-bg: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn-outline:hover { --btn-fg: var(--ink); border-color: var(--green); background: var(--green-soft); }
.btn-lg { font-size: var(--fs-500); padding: 1.05em 2em; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header / Nav ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top {
  background: var(--ink);
  color: #e5e7eb;
  font-size: var(--fs-300);
  padding: 0.5rem 0;
  gap: 0.5rem;
}
.top div { padding: 0 0.35rem; }
header .container > .row { min-height: 64px; }
header ul { gap: 0.15rem; }
header ul li { list-style: none; }
header ul li a {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
header ul li a:hover { color: var(--green-dark); background: var(--green-soft); }
header .col-md-1 img,
header img[alt*="Logo"] { max-width: 64px; }

/* offset for fixed header (replaces the old .m-t-10 / margin hacks) */
.m-t-10,
.mt-115 { margin-top: 0; }
main, .page-top { padding-top: var(--header-h); }

/* ---------- Hamburger mobile nav (kept, restyled) ---------- */
#menuToggle { display: block; position: relative; z-index: 1; user-select: none; }
#menuToggle a { text-decoration: none; color: var(--ink); transition: color 0.2s var(--ease); }
#menuToggle a:hover { color: var(--green); }
#menuToggle input {
  display: block; width: 40px; height: 32px; position: absolute;
  top: -7px; left: -5px; cursor: pointer; opacity: 0; z-index: 2;
}
#menuToggle span {
  display: block; width: 30px; height: 3px; margin-bottom: 6px; position: relative;
  background: var(--ink); border-radius: 3px; z-index: 1; transform-origin: 4px 0px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s ease;
}
#menuToggle span:first-child { transform-origin: 0% 0%; }
#menuToggle span:nth-last-child(2) { transform-origin: 0% 100%; }
#menuToggle input:checked ~ span { opacity: 1; transform: rotate(45deg) translate(-1px, -1px); background: var(--ink); }
#menuToggle input:checked ~ span:nth-last-child(3) { opacity: 0; transform: rotate(0deg) scale(0.2, 0.2); }
#menuToggle input:checked ~ span:nth-last-child(2) { transform: rotate(-45deg) translate(0, -1px); }
#menu {
  position: absolute; width: 270px; margin: -100px 0 0 -25px; padding: 125px 40px 40px;
  background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius-lg) 0;
  list-style: none; transform-origin: 0% 0%; transform: translate(-115%, 0);
  transition: transform 0.45s var(--ease);
}
#menu li { padding: 0.65rem 0; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); }
#menuToggle input:checked ~ ul { transform: none; }

.mobile { display: none; }
.whatsapp-btn-mobile { width: 3em; }
.mobile.whatsapp-btn-mobile img { max-width: 100%; }
.j-c-s-b { justify-content: space-between; }

/* ---------- Hero ---------- */
.hero,
.hero-section {
  position: relative;
  padding: var(--space-8) 0;
  background: linear-gradient(160deg, #0b1220 0%, #111827 55%, #15803d 140%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::after,
.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(22,163,74,0.35), transparent 70%);
  pointer-events: none;
}
.hero h1,
.hero-section h1 {
  color: #fff;
  font-size: var(--fs-900);
  font-weight: 800;
  margin-bottom: var(--space-4);
  position: relative;
}
.hero p,
.hero-section p { color: #e5e7eb; position: relative; }
.hero .lead,
.hero-section .lead { font-size: var(--fs-500); color: #f3f4f6; }

/* Hero banner (image) variants — restyle old .about-banner* / .imagem */
.about-banner,
.about-banner-work,
.about-banner-store {
  width: 100%;
  min-height: 46vh;
  margin-bottom: var(--space-5);
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  border-radius: 0;
}
.about-banner { background-image: linear-gradient(rgba(17,24,39,0.35), rgba(17,24,39,0.45)), url(../img/familia-vende-tudo-antiquario.jpg); }
.about-banner-work { background-image: linear-gradient(rgba(17,24,39,0.35), rgba(17,24,39,0.45)), url(../img/moveis-antigos.jpg); }
.about-banner-store { background-image: linear-gradient(rgba(17,24,39,0.35), rgba(17,24,39,0.45)), url(../img/loja-familia-vende-tudo-moderno-ao-antigo.jpg); }

.imagem {
  position: relative; width: 100%; min-height: 60vh; max-height: 720px;
  display: flex; align-items: flex-end;
}
.imagem.fist { background: linear-gradient(rgba(17,24,39,.2), rgba(17,24,39,.7)), url(../img/loja-familia-vende-tudo-moderno-ao-antigo.jpg) center/cover; }
.imagem.second { background: linear-gradient(rgba(17,24,39,.2), rgba(17,24,39,.7)), url(../img/compra-e-venda-de-antiguidades-familia-vende-tudo.jpg) center/cover; }
.imagem.third { background: linear-gradient(rgba(17,24,39,.2), rgba(17,24,39,.7)), url(../img/familia-vende-tudo-moderno-ao-antigo.jpg) center/cover; }
.imagem .box-image { width: 100%; height: 100%; display: flex; align-items: flex-end; }
.imagem .box-image .escrita { padding: var(--space-7) 0; width: 100%; }
.imagem .box-image .escrita .title { color: #fff; font-size: var(--fs-800); font-weight: 800; }
.imagem .box-image .escrita .text { color: #f3f4f6; font-size: var(--fs-400); }
.imagem .box-image .container { width: min(100% - 2rem, 720px); }

/* ---------- Cards / panels ---------- */
.card-soft,
.benefits-box,
.testimonial-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.benefits-box { margin: var(--space-5) 0; }
.benefits-box + .benefits-box { margin-top: var(--space-4); }

/* Benefit list with check icons */
.benefit-item {
  display: flex; align-items: flex-start; gap: 0.7em;
  margin: 0.6rem 0; font-size: var(--fs-400); font-weight: 500; color: var(--ink-soft);
}
.benefit-item::before {
  content: "✓";
  flex: 0 0 1.6em;
  height: 1.6em; width: 1.6em;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green-dark);
  border-radius: var(--radius-pill); font-weight: 800; font-size: 0.85em;
}

/* Image feature card (homepage "O que compramos") */
.about-img { margin-bottom: var(--space-5); text-align: center; }
.about-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.about-img:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-img h3 { font-size: var(--fs-500); margin-top: var(--space-4); }

/* ---------- Process steps ---------- */
.process-step { text-align: center; padding: var(--space-5) var(--space-4); }
.process-step h3 {
  width: 64px; height: 64px; margin: 0 auto var(--space-4);
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green-dark);
  border-radius: var(--radius-pill); font-size: 1.75rem; font-weight: 800;
}
.process-step h4 { color: var(--ink); }
.process-step p { color: var(--muted); font-size: var(--fs-300); }

/* ---------- CTA band ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--space-7) 0;
  box-shadow: var(--shadow);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.92); }
.cta-box a:not(.btn):not(.whatsapp-big-button) { color: #fff; }
.cta-box .whatsapp-big-button { --btn-bg: #fff; --btn-fg: var(--green-dark); }
.cta-box .whatsapp-big-button:hover { --btn-fg: var(--green-dark); background: #f0fdf4; }

/* ---------- Testimonials ---------- */
.testimonial-box {
  border-left: 4px solid var(--green);
  margin: var(--space-4) 0;
}
.testimonial-box p:last-child { color: var(--muted); margin-bottom: 0; }

/* ---------- FAQ accordion (progressive: <details>) ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 var(--space-5);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: var(--space-4) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: var(--space-5); margin: 0; color: var(--ink-soft); }

/* ---------- Decorative dividers ---------- */
.divider { width: 64px; height: 4px; border: 0; border-radius: 4px; background: var(--green); margin: var(--space-4) auto; }

/* ---------- Footer ---------- */
footer {
  color: #9ca3af;
  background: var(--ink);
  padding: var(--space-7) 0 var(--space-6);
  font-size: var(--fs-300);
}
footer p { margin: 0 0 var(--space-3); }
footer a { color: #e5e7eb; font-weight: 600; }
footer a:hover { color: var(--green); }

/* ---------- Floating WhatsApp ---------- */
.whats-app-button {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 900;
  padding: 0.85em 1.2em;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: 0.5em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.whats-app-button:hover { transform: translateY(-2px); background: var(--wa-dark); }
.whats-app-button span { font-size: 0.95rem; }

/* ---------- Map iframe ---------- */
iframe { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); display: block; }

/* ---------- Utilities ---------- */
.fx-center { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.shadow-card { box-shadow: var(--shadow); }
.rounded { border-radius: var(--radius); }

/* ============================================================
   Responsive — mobile first, scale up
   ============================================================ */
@media (max-width: 991px) {
  .whats-app-button span { display: none; }
  .whats-app-button::before { content: "💬"; font-size: 1.5rem; }
  .whats-app-button { padding: 0.85em; }
}

/* show mobile-only controls on touch / small screens */
@media (max-width: 767px), (pointer: coarse) {
  .mobile { display: block; }
}

/* the top contact bar is hidden < md, so the fixed header is shorter on mobile */
@media (max-width: 767px) {
  main, .page-top { padding-top: 72px; }
}

@media (min-width: 768px) {
  .hero, .hero-section { padding: var(--space-9) 0; }
  .whats-app-button { right: 1.5rem; bottom: 1.5rem; padding: 0.9em 1.4em; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
