/* ============================================================
   PROCÓPIO FLORES — style.css
   SUBSTITUA: variáveis de cor estão na seção :root abaixo.
   Para trocar a paleta, edite as variáveis --color-*.
   ============================================================ */

/* ── TOKEN SYSTEM ───────────────────────────────────────────── */
:root {
  /* Cores */
  --color-cream:     #F7F4EF;   /* fundo geral */
  --color-off-white: #FDFBF8;   /* seções alternadas */
  --color-sage:      #7A8C72;   /* verde oliva / accent */
  --color-sage-dark: #4E5E49;   /* sage escuro para textos */
  --color-gold:      #B49A6A;   /* dourado discreto */
  --color-ink:       #1C1C1A;   /* texto principal */
  --color-mid:       #5C5850;   /* texto secundário */
  --color-light:     #D8D1C4;   /* bordas, divisores */
  --color-wpp:       #25D366;   /* WhatsApp verde */

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Espaçamentos */
  --section-pad: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  --max-w: 1100px;
  --max-w-narrow: 700px;

  /* Transições */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── UTILITIES ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.container.narrow {
  max-width: var(--max-w-narrow);
}

.text-center { text-align: center; }

.section {
  padding: var(--section-pad);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
}

.eyebrow-light { color: #c8bfb0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-ink);
  margin-bottom: 1.5rem;
}

.body-text {
  color: var(--color-mid);
  margin-bottom: 1.1rem;
  max-width: 62ch;
}

.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .07em;
  border-radius: 3px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .15s;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.btn:active { transform: scale(.98); }

.btn-header {
  padding: .55rem 1.2rem;
  background: transparent;
  border: 1px solid var(--color-sage);
  color: var(--color-sage-dark);
  font-size: .75rem;
}

.btn-header:hover {
  background: var(--color-sage);
  color: #fff;
}

.btn-hero {
  padding: .9rem 1.8rem;
  background: var(--color-sage);
  color: #fff;
  margin-top: 1.8rem;
  font-size: .9rem;
}

.btn-hero:hover { background: var(--color-sage-dark); }

.btn-cta {
  padding: 1rem 2.2rem;
  background: #fff;
  color: var(--color-sage-dark);
  font-size: 1rem;
  margin-top: 1.8rem;
}

.btn-cta:hover { background: var(--color-cream); }

.wpp-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem clamp(1.25rem, 5vw, 3rem);
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 204, 192, 0.4);
}

/* SUBSTITUA: ajuste tamanho da logo aqui */
.logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 60px; /* altura do header */
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem clamp(1.25rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d4c9b0;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin-bottom: .9rem;
}

.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  max-width: 52ch;
}

/* ── AUTORIDADE ──────────────────────────────────────────────── */
.autoridade {
  background: var(--color-off-white);
  text-align: center;
}

.autoridade .container {
  margin-bottom: 3.5rem;
}

.autoridade .body-text {
  margin: 0 auto 1.1rem;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid var(--color-light);
  max-width: var(--max-w);
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2.5rem;
  flex: 1 1 160px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--color-sage);
  line-height: 1;
}

.stat-num sup {
  font-size: .5em;
  vertical-align: super;
}

.stat-label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-top: .4rem;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-light);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .stat-divider { display: none; }
  .stat { flex: 1 1 100%; border-top: 1px solid var(--color-light); }
  .stat:first-child { border-top: none; }
}

/* ── PORTFÓLIO ───────────────────────────────────────────────── */
.portfolio {
  background: var(--color-cream);
}

.portfolio .container { text-align: center; }

.filter-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem;
}

.tab {
  padding: .45rem 1.2rem;
  border: 1px solid var(--color-light);
  background: transparent;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--color-mid);
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}

.tab:hover,
.tab.active {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: #fff;
}

/* Grid de galeria — 2 colunas no mobile, 3 no desktop */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
}

@media (min-width: 1100px) {
  .gallery-grid { gap: 1rem; }
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-light);
  /* efeito: itens pares um pouco mais baixos para dinamismo visual */
}

.gallery-item:nth-child(3n+2) { margin-top: 1.2rem; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

/* Itens ocultos pelo filtro */
.gallery-item.hidden {
  display: none;
}

/* ── O QUE A DECORAÇÃO ENTREGA ───────────────────────────────── */
.entrega {
  background: var(--color-off-white);
}

.entrega .container {
  margin-bottom: 3rem;
}

.entrega .body-text {
  margin: 0 auto 1.1rem;
}

.quote-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-sage-dark);
  line-height: 1.3;
  padding: 2rem 0;
  border-top: 1px solid var(--color-light);
  border-bottom: 1px solid var(--color-light);
}

cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-top: 1rem;
}

/* ── DIFERENCIAIS ────────────────────────────────────────────── */
.diferenciais {
  background: var(--color-cream);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 560px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-off-white);
  border: 1px solid var(--color-light);
  padding: 1.8rem 1.5rem;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.07);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.3rem;
  color: var(--color-sage);
  display: block;
  margin-bottom: .7rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: .5rem;
  color: var(--color-ink);
}

.card p {
  font-size: .88rem;
  color: var(--color-mid);
  line-height: 1.6;
}

/* ── EVENTOS ─────────────────────────────────────────────────── */
.eventos {
  background: var(--color-sage-dark);
  color: #fff;
}

.eventos .eyebrow { color: #a8c4a0; }

.eventos .section-title { color: #fff; }

.eventos .body-text { color: rgba(255,255,255,.75); }

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 1.5rem;
}

@media (min-width: 560px) { .eventos-grid { grid-template-columns: repeat(4, 1fr); } }

.evento-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255,255,255,.15);
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .04em;
  text-align: center;
  color: rgba(255,255,255,.85);
  transition: background .2s;
}

.evento-item:hover { background: rgba(255,255,255,.07); }

.evento-destaque {
  border-color: rgba(180,154,106,.6);
  background: rgba(180,154,106,.12);
}

.evento-icon { font-size: 1.4rem; }

.evento-tag {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--color-gold);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: 2px;
}

/* ── PROCESSO ────────────────────────────────────────────────── */
.processo {
  background: var(--color-off-white);
}

.processo-list {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.processo-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--color-light);
  align-items: flex-start;
}

.processo-item:first-child { border-top: 1px solid var(--color-light); }

.processo-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-light);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
  padding-top: .1rem;
}

.processo-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--color-ink);
}

.processo-item p {
  font-size: .88rem;
  color: var(--color-mid);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq {
  background: var(--color-cream);
}

.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.faq-item {
  border: 1px solid var(--color-light);
  background: var(--color-off-white);
}

.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-ink);
  user-select: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-sage);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.4rem;
  font-size: .9rem;
  color: var(--color-mid);
  line-height: 1.7;
}

/* ── CTA FINAL ───────────────────────────────────────────────── */
.cta-final {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem clamp(1.25rem, 6vw, 5rem);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.7);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(30,38,28,.72) 0%,
    rgba(20,26,18,.82) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.78);
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.7;
}

.instagram-link {
  display: block;
  margin-top: 1.4rem;
  font-size: .8rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  transition: color .2s;
}

.instagram-link:hover { color: rgba(255,255,255,.9); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 3rem clamp(1.25rem, 5vw, 3rem);
  font-size: .82rem;
  line-height: 2;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  opacity: .85;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: .8rem 0;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  margin-top: .8rem;
  font-size: .75rem;
  opacity: .4;
}

/* ── BOTÃO FLUTUANTE WHATSAPP ────────────────────────────────── */
.wpp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--color-wpp);
  color: #fff;
  padding: .75rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  max-width: calc(100vw - 3rem);
}

.wpp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
}

.wpp-float svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
}

/* No mobile, oculta o texto para não cobrir conteúdo */
@media (max-width: 400px) {
  .wpp-float span { display: none; }
  .wpp-float { padding: .9rem; border-radius: 50%; }
  .wpp-float svg { width: 1.5rem; height: 1.5rem; }
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
