/* ============================================================
   GROW EMPREENDIMENTOS — style.css
   Mobile-first. Importa os tokens de brand.css.
   Princípio visual: NAVY domina; lavanda com parcimônia;
   DOURADO só em detalhes finos (linhas, ícone, um número).
   ============================================================ */

/* -------------------- 1. Fontes locais (woff2) -------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700.woff2") format("woff2");
}

/* -------------------- 2. Reset enxuto -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--grow-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--grow-ink);
  background: var(--grow-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--grow-font-head); line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Acessibilidade: foco visível */
:focus-visible { outline: 3px solid var(--grow-gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--grow-navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------- 3. Layout base -------------------- */
.container { width: 100%; max-width: var(--grow-max); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--navy  { background: var(--grow-navy-900); color: #fff; }
.section--paper { background: var(--grow-paper); }

.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: var(--grow-navy); }
.section-title--light { color: #fff; }
.section-lead { font-size: 1.05rem; color: var(--grow-muted); }
.section--navy .section-lead { color: var(--grow-lavender-200); }

/* Sobrescritas (eyebrow): rótulo curto em lavanda/dourado */
.eyebrow {
  font-family: var(--grow-font-head);
  font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grow-lavender); margin: 0 0 .5em;
}
.eyebrow--light { color: var(--grow-lavender-200); }
/* Detalhe dourado discreto: pequena régua sob o eyebrow */
.eyebrow::after {
  content: ""; display: block; width: 28px; height: 2px;
  background: var(--grow-gold); margin: 8px auto 0;
}
.section-head[style] .eyebrow::after { margin-left: 0; }

/* Destaque pontual em dourado (números/palavras curtas) */
.gold { color: var(--grow-gold); font-weight: 600; }

/* -------------------- 4. Botões -------------------- */
.btn {
  display: inline-block; font-family: var(--grow-font-head); font-weight: 600;
  font-size: .98rem; padding: 13px 26px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 2px solid transparent; transition: all .2s ease;
}
.btn-primary { background: var(--grow-navy); color: #fff; }
.btn-primary:hover { background: var(--grow-navy-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
/* Botão com fio dourado fino (detalhe discreto) */
.btn-gold-edge { background: var(--grow-navy); color: #fff; border-color: var(--grow-gold); }
.btn-gold-edge:hover { background: var(--grow-navy-700); }

/* -------------------- 5. Header / Nav -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--grow-navy); color: #fff;
  box-shadow: 0 2px 18px -8px rgba(0,0,0,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand img { height: 44px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  display: block; text-decoration: none; font-family: var(--grow-font-head);
  font-weight: 500; font-size: .98rem; color: #fff; padding: 10px 14px; border-radius: 8px;
}
.nav-menu a:hover { background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--grow-gold); color: var(--grow-navy-900) !important; font-weight: 600;
}
.nav-cta:hover { background: var(--grow-gold-soft) !important; }

/* Nav colapsado no mobile */
@media (max-width: 860px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--grow-navy-700); padding: 8px 12px 16px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px; border-radius: 10px; }
  .nav-cta { margin-top: 6px; text-align: center; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* -------------------- 6. Hero -------------------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  /* Arte de fundo: fachada de vidro à direita + gradiente navy→transparente p/ legibilidade.
     Para usar a versão vetorial, troque o .png pelo .svg (mesmo nome) nesta linha. */
  background:
    linear-gradient(90deg, rgba(22,26,61,.90) 0%, rgba(22,26,61,.35) 55%, rgba(22,26,61,.10) 100%),
    url("img/hero.webp") center right / cover no-repeat,
    var(--grow-navy-900);
}
/* camada extra opcional — leve escurecimento na base p/ os botões */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(22,26,61,.35) 100%); }

/* Mobile: reduz a presença da arte — gradiente mais opaco cobre mais da imagem,
   garantindo leitura do texto branco em telas pequenas. */
@media (max-width: 700px) {
  .hero-media {
    background:
      linear-gradient(180deg, rgba(22,26,61,.86) 0%, rgba(22,26,61,.60) 60%, rgba(22,26,61,.80) 100%),
      url("img/hero.webp") center center / cover no-repeat,
      var(--grow-navy-900);
  }
}
.hero-content { position: relative; padding: 96px 20px 88px; max-width: 820px; }
.eyebrow.eyebrow--light, .hero .eyebrow { color: var(--grow-lavender-200); }
.hero-title { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 700; max-width: 16ch; }

.hero-rotator { position: relative; min-height: 3.2em; margin: 14px 0 30px; }
.rotator-item {
  position: absolute; left: 0; right: 0; margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: var(--grow-lavender-200);
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s;
}
.rotator-item.is-active { opacity: 1; transform: none; }
/* fallback se o JS não rodar: empilha as frases */
.no-js .hero-rotator { min-height: 0; }
.no-js .rotator-item { position: static; opacity: 1; transform: none; margin-bottom: .3em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------- 7. Desenvolvimento -------------------- */
.dev-grid { display: grid; gap: 32px; align-items: center; }
.dev-text { display: flex; flex-direction: column; justify-content: center; }
.dev-text p { color: var(--grow-lavender-200); font-size: 1.08rem; margin: 0; }
.masterplan { margin: 0; }
.masterplan-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; aspect-ratio: 16 / 9; padding: 24px;
  border: 1px dashed rgba(191,161,90,.6); /* moldura dourada fininha */
  border-radius: var(--grow-radius);
  background: linear-gradient(160deg, var(--grow-navy-700), var(--grow-navy-900));
}
.masterplan-placeholder span { font-family: var(--grow-font-head); font-weight: 600; font-size: 1.2rem; color: #fff; }
.masterplan-placeholder small { color: var(--grow-lavender-200); max-width: 32ch; }
/* imagem real do masterplan preenchendo o card, cantos arredondados */
.masterplan-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--grow-radius);
  border: 1px solid rgba(191,161,90,.45); /* fio dourado fininho */
  box-shadow: var(--grow-shadow);
}
.masterplan figcaption { margin-top: 10px; font-size: .85rem; color: var(--grow-lavender); text-align: center; }

@media (min-width: 820px) {
  .dev-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; }
}

/* -------------------- 8. Solução -------------------- */
/* bloco visual (imagem) ao lado do gráfico/conteúdo */
.solucao-split { display: grid; gap: 28px; align-items: center; margin-bottom: 40px; }
.solucao-media { margin: 0; }
.solucao-media img {
  display: block; width: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--grow-radius); box-shadow: var(--grow-shadow);
}
.valorizacao { margin: 0 auto; width: 100%; max-width: 560px; }
@media (min-width: 880px) {
  .solucao-split { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .solucao-media img { max-height: 320px; }
}
.valorizacao-chart { width: 100%; height: auto; }
.valorizacao-chart .axis { stroke: var(--grow-line); stroke-width: 1.5; }
.valorizacao-chart .area { fill: rgba(38,43,99,.08); }
.valorizacao-chart .curve { fill: none; stroke: var(--grow-navy); stroke-width: 3.5; stroke-linecap: round; }
.valorizacao-chart .peak { fill: var(--grow-gold); stroke: #fff; stroke-width: 2; } /* único detalhe dourado */
.valorizacao-chart .peak-label { fill: var(--grow-navy); font: 600 13px var(--grow-font-head); }
.valorizacao-chart .axis-label { fill: var(--grow-muted); font: 500 12px var(--grow-font-body); }
.valorizacao figcaption { margin-top: 12px; text-align: center; font-size: .88rem; color: var(--grow-muted); }

.value-grid { display: grid; gap: 18px; }
.value-card {
  background: #fff; border: 1px solid var(--grow-line); border-radius: var(--grow-radius);
  padding: 26px 22px; box-shadow: var(--grow-shadow);
  border-top: 3px solid var(--grow-gold); /* fio dourado fino no topo (detalhe) */
}
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(38,43,99,.07); color: var(--grow-navy); margin-bottom: 14px;
}
.value-icon svg { width: 26px; height: 26px; }
/* itens geradores de valor: fonte/cor DESTACADA do texto comum */
.value-title {
  font-size: 1.18rem; color: var(--grow-navy); font-weight: 700; letter-spacing: .01em;
}
.value-card p { margin: 0; color: var(--grow-muted); font-size: .98rem; }
.todo-flag { font-size: .7rem; color: var(--grow-lavender); font-weight: 500; }

@media (min-width: 680px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }

/* -------------------- 9. Quem somos -------------------- */
.about-grid { display: grid; gap: 36px; }
.about-lead { font-size: 1.15rem; color: var(--grow-ink); }
.about-lead strong { color: var(--grow-navy); }
/* imagem de apoio da seção Quem somos */
.about-media { margin: 18px 0 0; }
.about-media img {
  display: block; width: 100%; max-height: 520px; object-fit: cover;
  border-radius: var(--grow-radius); box-shadow: var(--grow-shadow);
}
@media (max-width: 700px) { .about-media img { max-height: 320px; } }

.mv-grid { display: grid; gap: 18px; }
.mv-card {
  background: #fff; border: 1px solid var(--grow-line); border-radius: var(--grow-radius);
  padding: 24px; box-shadow: var(--grow-shadow);
}
.mv-title { display: flex; align-items: center; gap: 10px; color: var(--grow-navy); font-size: 1.25rem; }
.mv-rule { width: 22px; height: 2px; background: var(--grow-gold); display: inline-block; } /* detalhe dourado */
.mv-card p { color: var(--grow-muted); margin: 0; }
.placeholder-text { font-style: italic; color: var(--grow-lavender); }

@media (min-width: 880px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .mv-grid { grid-template-columns: 1fr; }
}

/* -------------------- 10. Contato -------------------- */
.contato-intro { color: var(--grow-lavender-200); max-width: 720px; }
.contact-link { color: #fff; text-decoration: underline; text-decoration-color: var(--grow-gold); text-underline-offset: 3px; }
.contact-link:hover { color: var(--grow-gold-soft); }

/* Skyline isométrico como textura de apoio (bem discreto), atrás do conteúdo.
   Para usar a versão vetorial, troque o .png pelo .svg (mesmo nome). */
.contato { position: relative; overflow: hidden; }
.contato::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* foto de fundo mesclada com véu navy ~50% p/ legibilidade do título/card */
  background:
    linear-gradient(rgba(22,26,61,.55), rgba(22,26,61,.55)),
    url("img/contato-bg.webp") center center / cover no-repeat;
}
/* mantém todo o conteúdo (título, canais e card do formulário) acima da textura */
.contato > .container { position: relative; z-index: 1; }
/* Mobile: reduz a presença do fundo (véu navy mais denso) */
@media (max-width: 700px) {
  .contato::before {
    background:
      linear-gradient(rgba(22,26,61,.74), rgba(22,26,61,.74)),
      url("img/contato-bg.webp") center center / cover no-repeat;
  }
}

.contato-grid { display: grid; gap: 28px; }
.contato-canais { display: grid; gap: 14px; align-content: start; }
.canal {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 16px 18px; transition: .2s; word-break: break-word;
}
.canal:hover { background: rgba(255,255,255,.12); }
.canal-icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; background: rgba(191,161,90,.18); color: var(--grow-gold);
}
.canal-icon svg { width: 24px; height: 24px; }
.canal strong { font-family: var(--grow-font-head); }
.canal--whatsapp .canal-icon { background: rgba(37,211,102,.18); color: #25D366; }

/* Formulário */
.contato-form-wrap {
  background: #fff; color: var(--grow-ink);
  border-radius: var(--grow-radius); padding: 26px; box-shadow: var(--grow-shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--grow-font-head); font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--grow-navy); }
.field label span { color: var(--grow-gold); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--grow-ink);
  padding: 12px 14px; border: 1.5px solid var(--grow-line); border-radius: 10px;
  background: var(--grow-paper); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--grow-navy); box-shadow: 0 0 0 3px rgba(38,43,99,.12); background: #fff;
}
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error { display: block; min-height: 0; color: #c0392b; font-size: .82rem; margin-top: 5px; }

/* honeypot escondido de humanos, visível a bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 12px 14px; border-radius: 10px; font-weight: 500; margin: 0 0 16px; }
.form-status.is-ok { background: #e8f5ee; color: #1d7a46; border: 1px solid #b6e0c7; }
.form-status.is-error { background: #fdecea; color: #b3271b; border: 1px solid #f5c6c0; }
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.contato-frase {
  text-align: center; max-width: 720px; margin: 40px auto 0;
  font-family: var(--grow-font-head); font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.5rem); color: #fff;
}

@media (min-width: 880px) {
  .contato-grid { grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
}

/* -------------------- 11. Rodapé -------------------- */
.site-footer { background: var(--grow-navy-900); color: var(--grow-lavender-200); padding: 44px 0; text-align: center; }
.footer-logo { height: 40px; width: auto; margin: 0 auto 14px; }
.footer-tagline { color: #fff; font-family: var(--grow-font-head); margin-bottom: 8px; }
.footer-contact a { color: var(--grow-lavender-200); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-copy { font-size: .82rem; margin: 14px 0 0; color: var(--grow-lavender); }

/* -------------------- 12. WhatsApp flutuante -------------------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 24px -6px rgba(0,0,0,.45);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* -------------------- 13. Movimento reduzido -------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rotator-item { position: static; opacity: 1; transform: none; margin-bottom: .3em; }
  .hero-rotator { min-height: 0; }
}
