/* =========================================================
   Garcia Estofados Premium — estilos
   Preto e dourado do logótipo
   ========================================================= */
:root {
  --black: #0C0B0A;
  --onyx: #151311;
  --onyx-2: #1E1B18;
  --line: rgba(226,179,60,.22);
  --gold: #E2B33C;
  --gold-light: #F6D77E;
  --gold-deep: #A97A1E;
  --gold-grad: linear-gradient(100deg, #A97A1E 0%, #F6D77E 45%, #E2B33C 60%, #B8862B 100%);
  --cream: #F4EFE6;
  --muted: #A9A093;
  --wa: #25D366;

  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --wrap: 74rem;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--black);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--gold); color: var(--black); padding: .5rem 1rem; border-radius: 4px; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn__icon { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--small { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--gold {
  background: var(--gold-grad); background-size: 160% 100%; background-position: 0 0;
  color: var(--black);
  box-shadow: 0 6px 24px rgba(226,179,60,.18);
  transition: background-position .5s, transform .2s, box-shadow .2s;
}
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 8px 30px rgba(226,179,60,.32); transform: translateY(-1px); }
.btn--line { color: var(--cream); border-color: rgba(244,239,230,.3); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-light); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--gold-light);
  transition: border-color .2s, background-color .2s;
}
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
.icon-btn:hover { border-color: var(--gold); background: rgba(226,179,60,.08); }

/* ---------------- Cabeçalho ---------------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(12,11,10,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.topbar__brand img { height: 2.6rem; width: auto; }
.topbar__brand span { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; color: var(--gold-light); line-height: 1; }
.topbar__brand small { display: block; font-family: var(--body); font-weight: 500; font-size: .68rem; letter-spacing: .14em; color: var(--muted); margin-top: .25rem; }
.topbar__nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.topbar__nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding-block: .2rem; border-bottom: 1px solid transparent; }
.topbar__nav a:hover { color: var(--cream); border-bottom-color: var(--gold); }
.topbar__actions { display: flex; align-items: center; gap: .6rem; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: radial-gradient(ellipse 60% 70% at 75% 45%, rgba(226,179,60,.13), transparent 70%), var(--black);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: .95rem; margin-bottom: 1.25rem; }
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero__title span { display: block; }
.hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 48ch; margin-bottom: 2rem; }
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--cream); }
.hero__logo img { width: 100%; max-width: 36rem; margin-inline: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,.6)); }

/* Entrada suave do hero */
.js .hero__title span, .js .hero__lead, .js .hero .actions, .js .chips, .js .eyebrow {
  opacity: 0; transform: translateY(14px);
  animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.js .eyebrow { animation-delay: .05s; }
.js .hero__title span:nth-child(1) { animation-delay: .15s; }
.js .hero__title span:nth-child(2) { animation-delay: .3s; }
.js .hero__title span:nth-child(3) { animation-delay: .45s; }
.js .hero__lead { animation-delay: .6s; }
.js .hero .actions { animation-delay: .72s; }
.js .chips { animation-delay: .84s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------- Títulos de secção ---------------- */
.section-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: .75rem;
}
.amp { color: var(--gold); font-weight: 500; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 3rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-intro { color: var(--muted); max-width: 44ch; margin: 0; }

/* ---------------- Antes e depois ---------------- */
.compare-section { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--onyx); border-block: 1px solid var(--line); }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tab {
  padding: .6rem 1.2rem; border-radius: 999px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); font-weight: 600; font-size: .95rem;
  transition: color .2s, border-color .2s, background-color .2s;
}
.tab:hover { color: var(--cream); border-color: var(--gold); }
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }

.compare {
  --pos: 50%;
  position: relative;
  max-width: 54rem; margin-inline: auto;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.compare img { width: 100%; height: auto; pointer-events: none; }
.compare__before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; transform: translateX(-1px);
  background: var(--gold-light);
  box-shadow: 0 0 18px rgba(246,215,126,.6);
  pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%;
  width: 3.2rem; height: 3.2rem; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--black);
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.compare__handle svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 3.2rem; height: 100vh; }
.compare__range::-moz-range-thumb { width: 3.2rem; height: 100vh; border: 0; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 4px; }

/* ---------------- Serviços ---------------- */
.services { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--onyx);
  border: 1px solid rgba(244,239,230,.07);
  border-radius: 12px;
  transition: border-color .3s, transform .3s;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 2px;
  background: var(--gold-grad); transform: scaleX(.25); transform-origin: left; transition: transform .4s;
}
.service:hover { border-color: var(--line); transform: translateY(-3px); }
.service:hover::before { transform: scaleX(1); }
.service__num { font-family: var(--display); color: var(--gold); font-size: 1rem; letter-spacing: .1em; margin-bottom: 1.5rem; }
.service h3 { font-family: var(--display); font-size: 1.6rem; margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: .98rem; margin-bottom: 1.5rem; }
.service__cta { margin-top: auto; color: var(--gold-light); font-weight: 600; text-decoration: none; font-size: .95rem; }
.service__cta span { display: inline-block; transition: transform .2s; }
.service__cta:hover span { transform: translateX(4px); }

/* ---------------- Destaque colchões ---------------- */
.mattress { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--onyx); border-block: 1px solid var(--line); }
.mattress__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.mattress__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mattress__photos figure { margin: 0; position: relative; }
.mattress__photos figure:nth-child(2) { margin-top: 3rem; }
.mattress__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.mattress__photos figcaption {
  position: absolute; top: .75rem; left: .75rem;
  padding: .25rem .75rem; border-radius: 999px;
  background: rgba(12,11,10,.8); color: var(--cream);
  font-family: var(--display); font-size: .85rem; letter-spacing: .08em;
}
.mattress__photos figcaption.is-after { background: var(--gold); color: var(--black); }
.mattress__text > p { color: var(--muted); max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; }
.checks li { display: flex; align-items: center; gap: .75rem; }
.checks li::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0B0A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / .85rem no-repeat;
}

/* ---------------- Como funciona ---------------- */
.steps-section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block; font-family: var(--display); font-size: 3rem; line-height: 1; margin-bottom: 1rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; max-width: 34ch; }

/* ---------------- Contacto ---------------- */
.contact {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(226,179,60,.12), transparent 70%), var(--onyx);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__emblem { width: 7rem; margin-bottom: 1.5rem; }
.contact__title { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; max-width: 18ch; margin-bottom: .75rem; }
.contact__text { color: var(--muted); margin-bottom: 2.25rem; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.big-btn {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  min-width: 17rem; padding: 1.1rem 1.5rem;
  border-radius: 14px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.big-btn:hover { transform: translateY(-2px); }
.big-btn svg { width: 2.2rem; height: 2.2rem; flex: none; }
.big-btn strong { display: block; font-size: 1.15rem; }
.big-btn small { font-size: .9rem; opacity: .85; }
.big-btn--wa { background: var(--wa); color: #05301A; box-shadow: 0 10px 30px rgba(37,211,102,.2); }
.big-btn--ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); color: #fff; box-shadow: 0 10px 30px rgba(221,42,123,.2); }

/* ---------------- Rodapé ---------------- */
.footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }

/* ---------------- Botão flutuante ---------------- */
.fab {
  position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 2rem; height: 2rem; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar__nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { order: -1; }
  .hero__logo img { max-width: 22rem; }
  .mattress__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 560px) {
  .topbar__brand small { display: none; }
  .topbar .btn--small span { display: none; }
  .topbar .btn--small { padding: .6rem; width: 2.6rem; height: 2.6rem; }
  .service-grid { grid-template-columns: 1fr; }
  .big-btn { min-width: 100%; }
  .footer { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__title span, .js .hero__lead, .js .hero .actions, .js .chips, .js .eyebrow { animation: none; opacity: 1; transform: none; }
  .btn, .service, .service::before, .big-btn, .fab { transition: none; }
}
