/* ============================================================
   AME Marcenaria — Prévia de Demonstração
   Estilos responsivos (mobile-first)
   ============================================================ */

:root {
  --ink:        #2f2a24;
  --ink-soft:   #6b6157;
  --wood-dark:  #47372b;
  --wood:       #6f5440;
  --wood-mid:   #a88461;
  --wood-light: #c9a97f;
  --cream:      #faf6ef;
  --sand:       #f3ead9;
  --line:       #e6d9c4;
  --accent:     #b08a4f;
  --white:      #ffffff;
  --shadow:     0 14px 40px rgba(71, 55, 43, .12);
  --radius:     16px;
  --heading:    'Playfair Display', Georgia, serif;
  --body:       'Inter', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Faixa de prévia ---------- */
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 16px;
  background: #f0e8da;
  border-bottom: 1px solid #e2d5c0;
  color: #7a6d5c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
}
.preview-banner .banner-icon {
  width: 14px;
  height: 14px;
  fill: #a29179;
  flex: none;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--wood-dark);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(71, 55, 43, .20);
}
.btn-primary:hover { background: var(--wood); box-shadow: 0 12px 24px rgba(71, 55, 43, .28); }

.btn-outline {
  background: transparent;
  color: var(--wood-dark);
  border-color: var(--wood-light);
}
.btn-outline:hover { background: var(--sand); border-color: var(--wood-mid); }

.btn-accent {
  background: var(--wood-light);
  color: var(--wood-dark);
  box-shadow: 0 8px 18px rgba(71, 55, 43, .18);
}
.btn-accent:hover { background: #d8bc94; }

.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 239, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 42px; height: 42px; display: block; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--heading);
  font-size: 17px;
  color: var(--wood-dark);
  white-space: nowrap;
}
.brand-text small { font-size: 10px; color: var(--ink-soft); letter-spacing: .02em; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--wood); }
.btn-header { display: none; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--wood-dark);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 10px; width: 100%; }

/* ---------- Capa ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 44px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -110px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 169, 127, .28), transparent 68%);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; gap: 34px; position: relative; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--wood);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--heading);
  font-size: clamp(34px, 8.5vw, 54px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--wood-dark);
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--wood-mid);
}
.hero-lead {
  max-width: 530px;
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 200px; }

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--wood-dark);
}
.hero-highlights li { display: flex; align-items: center; gap: 8px; }
.hero-highlights li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--wood);
  font-size: 11px;
  font-weight: 700;
}

.hero-art { position: relative; display: flex; justify-content: center; }
.art-shadow {
  position: absolute;
  inset: 8% 5% 10% 5%;
  background: var(--sand);
  border-radius: 48% 52% 45% 55% / 52% 45% 55% 48%;
  transform: rotate(5deg);
}
.art-card {
  position: relative;
  width: min(100%, 370px);
  padding: 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.cabinet-illustration { display: block; width: 100%; height: auto; }
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 210px;
  padding: 9px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(71, 55, 43, .12);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wood-dark);
}
.float-chip svg { width: 15px; height: 15px; fill: var(--wood); flex: none; }
.chip-one { top: 2%; right: -3%; }
.chip-two { bottom: 4%; left: -3%; }

/* ---------- Faixa de diferenciais ---------- */
.trust-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.trust-item:last-child { border-bottom: none; }
.trust-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--sand);
  color: var(--wood);
}
.trust-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-item div { display: flex; flex-direction: column; min-width: 0; }
.trust-item strong { font-size: 14px; color: var(--wood-dark); }
.trust-item span { font-size: 12px; color: var(--ink-soft); }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section-heading { max-width: 640px; margin-bottom: 34px; }
.section-heading--split { max-width: none; display: flex; flex-direction: column; gap: 18px; }
.section-heading--split > div { max-width: 620px; }
.section-heading h2,
.location-copy h2,
.cta-inner h2 {
  margin: 0 0 12px;
  font-family: var(--heading);
  font-size: clamp(27px, 6vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--wood-dark);
}
.section-heading p,
.location-copy p,
.cta-inner p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Serviços ---------- */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--wood-light);
  box-shadow: var(--shadow);
}
.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--heading);
  font-size: 13px;
  color: var(--wood-light);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--wood);
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  margin: 0 0 8px;
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wood-dark);
}
.service-card p { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 4px 0;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--wood);
  font-size: 14px;
  font-weight: 600;
}
.link-button span { transition: transform .18s ease; }
.link-button:hover span { transform: translateX(4px); }

/* ---------- Projetos ---------- */
.projects { background: var(--sand); border-block: 1px solid var(--line); }
.projects .btn-outline { background: var(--white); }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.project-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 2px, transparent 2px 26px);
}
.project-1 { background: linear-gradient(135deg, #b28b62, #7d5d40); }
.project-2 { background: linear-gradient(135deg, #d3b58c, #a88461); }
.project-3 { background: linear-gradient(135deg, #8f6c4c, #5b4533); }
.project-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 30px 16px 16px;
  background: linear-gradient(0deg, rgba(47, 42, 36, .78), transparent);
  color: var(--white);
}
.project-label small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.project-label strong { font-family: var(--heading); font-size: 17px; font-weight: 600; }

/* ---------- Localização ---------- */
.location { background: var(--white); }
.location-inner { display: flex; flex-direction: column; gap: 34px; align-items: center; }
.location-map {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f6efe2, #eadbc0);
  border: 1px solid var(--line);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 84, 64, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 84, 64, .14) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-grid::after {
  content: "";
  position: absolute;
  top: 30%; left: -10%;
  width: 130%; height: 12px;
  background: rgba(255, 255, 255, .78);
  transform: rotate(-16deg);
}
.map-pin {
  position: absolute;
  top: 44%; left: 46%;
  width: 48px;
  height: 48px;
  color: var(--wood);
  filter: drop-shadow(0 6px 8px rgba(71, 55, 43, .3));
}
.map-pin svg { width: 100%; height: 100%; stroke: #fff; stroke-width: .6; }
.map-label {
  position: absolute;
  top: calc(44% + 50px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--wood-dark);
  box-shadow: 0 4px 10px rgba(71, 55, 43, .10);
  white-space: nowrap;
}

.location-copy { max-width: 520px; }
.contact-list { list-style: none; margin: 26px 0 18px; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--sand);
  color: var(--wood);
}
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact-list div { display: flex; flex-direction: column; min-width: 0; }
.contact-list strong { font-size: 15px; color: var(--wood-dark); }
.contact-list span { font-size: 12px; color: var(--ink-soft); }

.hours-card {
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.hours-card h3 {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-size: 17px;
  color: var(--wood-dark);
}
.hours-card ul { list-style: none; margin: 0; padding: 0; }
.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.hours-card li:last-child { border-bottom: none; }
.hours-card li span { color: var(--ink-soft); }
.hours-card li strong { color: var(--wood-dark); font-weight: 600; white-space: nowrap; }
.hours-note { margin: 10px 0 0 !important; font-size: 11px !important; color: var(--ink-soft) !important; }

.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.location-actions .btn { flex: 1 1 200px; }
.maps-note {
  margin: 16px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.5;
  color: var(--ink-soft) !important;
}

/* ---------- Faixa final ---------- */
.cta-band { background: var(--wood-dark); color: var(--white); padding: 46px 0; }
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
}
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(255, 255, 255, .76); }
.cta-inner .btn { flex: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #c9bfb3; padding: 44px 0 0; }
.footer-inner { display: flex; flex-direction: column; gap: 28px; padding-bottom: 36px; }
.footer-brand strong { font-family: var(--heading); font-size: 18px; color: var(--white); }
.footer-brand p { margin: 10px 0 0; font-size: 13px; max-width: 360px; color: #a99e91; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.footer-nav a { font-size: 13px; transition: color .18s ease; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 11px;
  color: #9c9185;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(47, 42, 36, .62);
  backdrop-filter: blur(4px);
  animation: fadeIn .18s ease;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 34px 26px 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(47, 42, 36, .32);
  text-align: center;
  animation: popIn .22s ease;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1;
}
.modal-close:hover { background: var(--wood-light); color: var(--white); }
.modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--wood);
}
.modal-icon svg { width: 32px; height: 32px; }
.modal h2 {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-size: 21px;
  color: var(--wood-dark);
}
.modal p { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.modal .modal-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 22px; }
.modal .btn { width: 100%; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

body.modal-open { overflow: hidden; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .container { padding-inline: 32px; }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 0; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .trust-item { border-bottom: none; border-right: 1px solid var(--line); padding: 18px 16px; }
  .trust-item:last-child { border-right: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-heading--split { flex-direction: row; align-items: center; justify-content: space-between; gap: 26px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .location-inner { flex-direction: row; align-items: center; gap: 48px; }
  .location-map, .location-copy { flex: 1 1 50%; max-width: none; }
  .cta-inner { flex-direction: row; align-items: center; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .btn-header { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .hero-inner { flex-direction: row; align-items: center; gap: 56px; }
  .hero-copy { flex: 1 1 54%; }
  .hero-art { flex: 1 1 46%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 359px) {
  .brand-text small { display: none; }
  .hero-actions .btn, .location-actions .btn { flex-basis: 100%; }
  .chip-one { right: 0; }
  .chip-two { left: 0; }
}
