/* ============================================================
   Cobra Engenharia — styles.css
   Site institucional (ProsperSites / Jonnpo Tecnologia)
   ============================================================ */

:root {
  --brand:        #0e7d64;   /* verde-petróleo principal */
  --brand-dark:   #0a5f4b;   /* hover / detalhes          */
  --brand-2:      #14b08a;   /* destaque (3º card)        */
  --footer-bg:    #093b2e;   /* rodapé escuro             */
  --accent:       #ec8b1f;   /* laranja (newsletter)      */
  --ink:          #16302a;   /* texto principal           */
  --muted:        #5d716b;   /* texto secundário          */
  --line:         #e3e9e6;   /* bordas                    */
  --bg:           #ffffff;
  --bg-soft:      #f4f6f5;   /* seções claras             */
  --star:         #f5a623;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 10px 30px rgba(9, 59, 46, .08);
  --shadow-lg:    0 24px 60px rgba(9, 59, 46, .16);
  --maxw:         1180px;
  --header-h:     76px;
  --font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(14, 125, 100, .1);
  padding: 6px 16px;
  border-radius: 999px;
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin: 14px 0 8px; letter-spacing: -.02em; }
.section__title em { color: var(--brand); font-style: normal; }
.section__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #d97a13; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--block { width: 100%; justify-content: center; }
.link-more { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-more svg { transition: transform .2s ease; }
.link-more:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER  (template — injetado por site.js)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: var(--ink); }
.brand__tag { font-size: .6rem; letter-spacing: .34em; color: var(--brand); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); transition: width .25s ease; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--brand); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; background: #fff;
    padding: 12px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; align-items: stretch;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header__cta .btn { display: none; }
}

/* ============================================================
   HERO — vídeo sincronizado com scroll
   ============================================================ */
.hero { position: relative; height: 520vh; }            /* trilho de scroll (quanto maior, mais lento o vídeo) */
.hero__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__video, .hero__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.hero__fallback { background: #16302a center/cover no-repeat; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(9,59,46,.15) 0%, rgba(9,59,46,.45) 60%, rgba(9,59,46,.7) 100%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 24px;
}
.hero__line {
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.hero__line.is-in { opacity: 1; transform: translateY(0); }
.hero__kicker { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 18px; opacity: .85; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.05; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.4rem); margin-top: 20px; max-width: 620px; opacity: .92; }
.hero__cta { margin-top: 34px; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: #fff; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .8;
}
.hero__scroll span { width: 1px; height: 36px; background: #fff; animation: scrollPulse 1.8s ease-in-out infinite; }
.hero__scroll { transition: opacity .3s ease; }
@keyframes scrollPulse { 0%,100%{opacity:.2;transform:scaleY(.5);} 50%{opacity:1;transform:scaleY(1);} }

/* ============================================================
   FINANCIAMENTO — cards (seção verde arredondada)
   ============================================================ */
.finance { background: var(--brand); color: #fff; border-radius: 0 0 56px 56px; padding: 84px 0; }
.finance .eyebrow { background: rgba(255,255,255,.15); color: #fff; }
.finance .section__title, .finance .section__sub { color: #fff; }
.finance .section__sub { opacity: .85; }
.finance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 30px 26px; transition: transform .2s ease, background .2s ease;
}
.fcard:hover { transform: translateY(-6px); background: rgba(255,255,255,.14); }
.fcard--hi { background: var(--brand-2); border-color: var(--brand-2); }
.fcard__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); margin-bottom: 18px;
}
.fcard__icon svg { width: 24px; height: 24px; stroke: #fff; }
.fcard h3 { font-size: 1.15rem; margin: 0 0 10px; }
.fcard p { font-size: .95rem; opacity: .88; margin: 0 0 18px; }
.fcard .link-more { color: #fff; }

/* ============================================================
   IMÓVEIS EM DESTAQUE
   ============================================================ */
.props__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; aspect-ratio: 4/3; background: #d7e0dc center/cover no-repeat; }
.pcard__badge {
  position: absolute; top: 14px; left: 14px; background: #fff; color: var(--brand);
  border-radius: 10px; padding: 8px 12px; font-size: .72rem; box-shadow: var(--shadow); line-height: 1.2;
}
.pcard__badge strong { display: block; font-size: 1rem; }
.pcard__body { padding: 20px 22px 24px; }
.pcard__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.pcard__loc { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.pcard__specs { display: flex; gap: 16px; color: var(--muted); font-size: .85rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pcard__specs span { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.tcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 920px; margin: 0 auto; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.tcard__quote-mark { font-size: 3rem; line-height: 0; color: var(--line); font-family: Georgia, serif; }
.tcard__stars { color: var(--star); letter-spacing: 2px; margin: 8px 0 14px; }
.tcard__text { font-style: italic; color: var(--ink); margin: 0 0 22px; }
.tcard__author { display: flex; align-items: center; gap: 12px; }
.tcard__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.tcard__name { font-weight: 700; font-size: .95rem; }
.tcard__role { color: var(--muted); font-size: .82rem; }

/* ============================================================
   AGENDE UMA VISITA (CTA verde + formulário)
   ============================================================ */
.visit { background: var(--brand); position: relative; }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.visit__media { background: #16302a center/cover no-repeat; border-radius: var(--radius); min-height: 420px; }
.visit__card { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.visit__card h2 { font-size: 1.6rem; margin: 0 0 6px; }
.visit__card p { color: var(--muted); margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fafbfb; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,125,100,.12); }
.field textarea { resize: vertical; min-height: 92px; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form__status { font-size: .9rem; margin-top: 10px; min-height: 1.2em; color: var(--brand); }

/* ============================================================
   FOOTER (template — injetado por site.js)
   ============================================================ */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand__name { color: #fff; }
.footer__about { margin: 18px 0 20px; font-size: .92rem; max-width: 280px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin: 0 0 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; font-size: .92rem; margin-bottom: 12px; }
.footer__news input { width: 100%; padding: 12px 14px; border: 0; border-radius: var(--radius-sm); margin: 10px 0; font: inherit; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s ease; }
.footer__social a:hover { background: var(--brand); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.footer__bottom a { color: #fff; }

/* ============================================================
   FLOATERS — WhatsApp + Back to top
   ============================================================ */
.wa-float, .to-top {
  position: fixed; right: 22px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  cursor: pointer; border: 0; transition: transform .2s ease, opacity .3s ease;
}
.wa-float { bottom: 22px; background: #25d366; }
.wa-float:hover, .to-top:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.to-top { bottom: 86px; background: var(--brand); opacity: 0; pointer-events: none; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; stroke: #fff; }

/* ============================================================
   COOKIE MODAL
   ============================================================ */
.cookie {
  position: fixed; left: 22px; bottom: 22px; z-index: 80; max-width: 380px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px; transform: translateY(160%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie.is-visible { transform: translateY(0); }
.cookie h4 { margin: 0 0 8px; font-size: 1.05rem; }
.cookie p { margin: 0 0 16px; font-size: .88rem; color: var(--muted); }
.cookie p a { color: var(--brand); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; }
.cookie__actions .btn { flex: 1; padding: 10px 14px; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Page hero (internal pages) ---------- */
.page-hero { background: var(--brand); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; }
.page-hero p { opacity: .9; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .finance__grid, .props__grid, .tcards, .visit__grid, .footer__grid { grid-template-columns: 1fr; }
  .visit__media { min-height: 240px; }
  .hero { height: 360vh; }
}
