/*
Theme Name: Paiva V2
Description: Tema customizado pra Paiva - Arquitetura de Lojas. Feito a mao, sem page builder.
Author: Creatyze
Version: 1.0
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  /* avisa o navegador que o site e so modo claro - evita "escurecimento
     automatico" nativo do Chrome/Android (nao impede extensoes manuais
     tipo Dark Reader, que reescrevem o CSS por fora) */
  color-scheme: light only;

  --ink: #2A2622;
  --body: #5C5750;
  --accent: #D89A6E;
  --accent-deep: #B87A4E;
  --accent-soft: #EFD9C4;
  --bg: #FFFFFF;
  --bg-soft: #FBF8F4;
  --bg-warm: #F2E8DC;
  --dark: #201C19;
  --dark-2: #2A2521;
  --cream: #F1EAE1;
  --cream-muted: #C9BFB2;
  --line: rgba(42, 38, 34, 0.1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --space-3xs: clamp(0.5rem, 0.5rem, 0.5rem);
  --space-xs: clamp(0.75rem, 0.6rem + 0.5vw, 1.25rem);
  --space-sm: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-md: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --space-lg: clamp(3rem, 2rem + 4vw, 6rem);
  --space-xl: clamp(4rem, 3rem + 5vw, 8rem);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 1.5rem 3rem rgba(42, 38, 34, 0.08), 0 0.25rem 0.75rem rgba(42, 38, 34, 0.04);
  --shadow-card-hover: 0 2rem 4rem rgba(42, 38, 34, 0.12), 0 0.5rem 1rem rgba(42, 38, 34, 0.06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body) !important;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display) !important;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600 !important;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.9rem + 2.2vw, 4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.6rem + 1.4vw, 2.85rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
p { text-wrap: pretty; }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--space-xl);
}
.section--tight { padding-block: var(--space-lg); }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--dark); color: var(--cream-muted); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--cream-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-xs);
}
.section--dark .eyebrow { color: var(--accent); }

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-md);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; margin-top: var(--space-xs); }

.lede {
  font-size: 1.15rem;
  color: var(--body);
}

/* ==========================================================================
   BOTAO
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 1.05rem 2.2rem;
  border-radius: 999px;
  box-shadow: 0 1rem 2rem rgba(216, 154, 110, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible {
  background: var(--accent-deep);
  transform: translateY(-3px);
  box-shadow: 0 1.5rem 2.5rem rgba(184, 122, 78, 0.4);
}
.btn--lg { padding: 1.25rem 2.75rem; font-size: 1.02rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--accent); transform: none; box-shadow: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 4vw, 5rem) var(--space-xl);
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(180deg, rgba(251, 248, 244, 0.93) 0%, rgba(255, 255, 255, 0.97) 100%),
    var(--bg-photo, none);
  background-size: cover;
  background-position: center;
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  grid-template-columns: 1fr;
  max-width: 760px;
}
.hero__eyebrow { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-sm); }
.hero__eyebrow img { width: 132px; }
.hero h1 { margin-bottom: var(--space-sm); }
.hero__lede { font-size: 1.2rem; margin-bottom: var(--space-sm); max-width: 46ch; }
.hero__price {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: inline-block;
}
.hero__price strong { display: block; font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.2rem; }
.hero__note { margin-top: var(--space-sm); font-size: 0.95rem; font-style: italic; color: var(--cream-muted); max-width: 42ch; }
.hero__note { color: var(--body); opacity: 0.8; }

/* ==========================================================================
   SECAO COM FOTO DE FUNDO (transparente atras do texto)
   ========================================================================== */
.section--photobg {
  position: relative;
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(180deg, rgba(251, 248, 244, 0.92) 0%, rgba(251, 248, 244, 0.96) 100%),
    var(--bg-photo, none);
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   MOLDURA AO REDOR DO CHECKLIST (sensacao de agrupamento)
   ========================================================================== */
.check-frame {
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

/* ==========================================================================
   LISTAS DE VERIFICACAO
   ========================================================================== */
.check-grid {
  display: grid;
  gap: var(--space-sm) var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .check-grid--2 { grid-template-columns: 1fr 1fr; }
}
.check-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1.02rem;
  color: var(--ink);
}
.check-item svg { flex: none; width: 22px; height: 22px; margin-top: 0.2rem; color: var(--accent); }
.section--dark .check-item { color: var(--cream); }

/* ==========================================================================
   CARDS / GRID
   ========================================================================== */
.card-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--accent-deep);
  color: #fff;
  margin-bottom: var(--space-sm);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p { font-size: 0.98rem; }

.step-card { position: relative; padding-top: calc(var(--space-sm) + 0.5rem); }
.step-card__num {
  position: absolute; top: -14px; left: var(--space-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 0.5rem 1rem rgba(216,154,110,0.4);
}

/* ==========================================================================
   DUPLA (foto + texto)
   ========================================================================== */
.duo {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .duo { grid-template-columns: 0.8fr 1.2fr; }
  .duo--reverse { grid-template-columns: 1.2fr 0.8fr; }
  .duo--reverse .duo__media { order: 2; }
}
.duo__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* ==========================================================================
   CARROSSEL (scroll-snap nativo)
   ========================================================================== */
.carousel-wrap {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.carousel {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-block: var(--space-3xs) var(--space-sm);
  padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 8px; }
.carousel__item {
  flex: 0 0 min(78vw, 340px);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3/4;
}
.carousel__item img { width: 100%; height: 100%; object-fit: cover; }

.carousel-fade {
  position: absolute;
  top: 0; bottom: var(--space-sm);
  width: clamp(2rem, 6vw, 5rem);
  pointer-events: none;
  z-index: 2;
}
.carousel-fade--left { left: 0; background: linear-gradient(90deg, var(--bg-soft) 0%, transparent 100%); }
.carousel-fade--right { right: 0; background: linear-gradient(270deg, var(--bg-soft) 0%, transparent 100%); }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-nav svg { width: 20px; height: 20px; }
.carousel-nav:hover { background: var(--accent); color: #fff; }
.carousel-nav--prev { left: clamp(0.5rem, 3vw, 1.5rem); }
.carousel-nav--next { right: clamp(0.5rem, 3vw, 1.5rem); }
@media (max-width: 640px) {
  .carousel-nav { width: 38px; height: 38px; }
  .carousel-fade { display: none; }
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.testimonial {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial__quote { font-size: 1.4rem; color: var(--accent-soft); font-family: var(--font-display); line-height: 1; margin-bottom: var(--space-xs); }
.testimonial p.testimonial__text { font-size: 1rem; flex: 1; margin-bottom: var(--space-sm); }
.testimonial__name { font-weight: 700; color: var(--ink); }
.testimonial__role { font-size: 0.88rem; color: var(--accent-deep); }

/* ==========================================================================
   FAQ (details/summary nativo)
   ========================================================================== */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-sm);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: currentColor;
}
.faq summary .plus::before { width: 12px; height: 2px; }
.faq summary .plus::after { width: 2px; height: 12px; transition: opacity 0.2s var(--ease); }
.faq details[open] summary .plus { background: var(--accent); color: #fff; }
.faq details[open] summary .plus::after { opacity: 0; }
.faq__answer { padding-top: var(--space-xs); max-width: 68ch; }

/* ==========================================================================
   CTA FLUTUANTE WHATSAPP
   ========================================================================== */
.float-cta {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  background: #25D366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1rem 2rem rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}
.float-cta:hover { transform: scale(1.08); }
.float-cta svg { width: 30px; height: 30px; }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   FOOTER SIMPLES
   ========================================================================== */
.site-footer {
  background: var(--dark-2);
  color: var(--cream-muted);
  padding-block: var(--space-md);
  text-align: center;
  font-size: 0.9rem;
}
.site-footer img { width: 100px; margin-inline: auto; margin-bottom: var(--space-xs); opacity: 0.9; }

/* ==========================================================================
   TOPBAR MINIMA
   ========================================================================== */
.topbar {
  padding-block: var(--space-xs);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.topbar img { width: 120px; }
