/* ===================================================================
   Residencial La Coline — Landing de cadastro (corretor Guilherme Prado)
   Estética: imobiliário refinado · Fraunces + Manrope · acento magenta
   =================================================================== */

:root {
  --magenta: #e11383;
  --magenta-deep: #b00063;
  --plum: #2c1530;
  --ink: #20141f;
  --cream: #faf6f2;
  --sand: #f2ebe3;
  --sand-deep: #e8ded2;
  --line: #e3d8cc;
  --muted: #7a6e72;
  --white: #ffffff;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 4px 18px rgba(44, 21, 48, 0.07);
  --shadow-md: 0 18px 50px rgba(44, 21, 48, 0.13);
  --shadow-lg: 0 30px 80px rgba(44, 21, 48, 0.22);

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

  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.2rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }

/* Evita que filhos de grid/flex (com min-width:auto) estourem a largura no mobile */
.hero-copy, .form-card, .split-copy, .split-media, .loc-points, .loc-map, .header-inner, .footer-inner { min-width: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--magenta); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--magenta); }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--magenta-deep); margin-bottom: 1rem;
}
.eyebrow--light { color: #ffc7e6; }

.section-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.section-sub { color: var(--muted); max-width: 56ch; margin-top: .9rem; font-size: 1.05rem; }
.lead { font-size: 1.12rem; color: #4a3f44; margin-top: 1.1rem; max-width: 52ch; }
.muted { color: var(--muted); font-size: .92rem; margin-top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--magenta);
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: #fff; font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1.05rem 1.6rem; border: none; border-radius: 100px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(225, 19, 131, 0.32);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  margin-top: 1.6rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(225, 19, 131, 0.42); background: var(--magenta-deep); }
.btn:active { transform: translateY(0); }
.btn-arrow { transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--full { width: 100%; justify-content: center; margin-top: .4rem; }
.btn--sm { padding: .7rem 1.1rem; font-size: .9rem; margin-top: 0; box-shadow: 0 6px 16px rgba(225,19,131,.28); }
.btn--lg { padding: 1.2rem 2rem; font-size: 1.08rem; }
.btn--invert { background: #fff; color: var(--magenta-deep); box-shadow: 0 14px 36px rgba(0,0,0,.25); }
.btn--invert:hover { background: var(--cream); color: var(--magenta-deep); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { position: relative; width: 26px; height: 34px; flex: none; }
.brand-mark__dot, .brand-mark__bar { position: absolute; left: 0; width: 13px; background: var(--magenta); border-radius: 4px; }
.brand-mark__dot { top: 0; height: 11px; }
.brand-mark__bar { top: 14px; height: 20px; background: var(--plum); }
.brand-mark--light .brand-mark__dot { background: var(--magenta); }
.brand-mark--light .brand-mark__bar { background: #fff; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-kicker { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 242, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.header-nav { display: flex; gap: 1.7rem; margin-left: auto; }
.header-nav a { font-weight: 600; font-size: .95rem; color: #5a4d52; position: relative; padding: .3rem 0; }
.header-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--magenta); transition: width .25s; }
.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after { width: 100%; }
.header-cta { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../fotos/portaria.webp") center 35% / cover no-repeat;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(32,20,31,.86) 0%, rgba(32,20,31,.62) 42%, rgba(32,20,31,.18) 72%, rgba(32,20,31,.05) 100%),
    linear-gradient(0deg, rgba(32,20,31,.45), transparent 40%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy { color: #fff; }
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; padding: .5rem 1rem; border-radius: 100px; backdrop-filter: blur(4px);
}
.tag--launch { color: #ffd9ee; }
.tag--launch::first-letter { color: var(--magenta); }
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.7rem); color: #fff; margin-top: 1.3rem; font-weight: 500;
  text-shadow: 0 2px 30px rgba(0,0,0,.3); overflow-wrap: break-word;
}
.hero-title em { color: #ff9bd2; }
.hero-sub { margin-top: 1.4rem; font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 46ch; }
.hero-sub strong { color: #fff; }

.hero-facts { list-style: none; display: flex; gap: clamp(1rem,3vw,2.2rem); margin-top: 1.8rem; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.hero-facts span { font-size: .82rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .06em; }

.hero-price {
  margin-top: 2rem; display: inline-flex; flex-direction: column; gap: .15rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-left: 4px solid var(--magenta);
  padding: 1rem 1.4rem; border-radius: 0 var(--r-md) var(--r-md) 0; backdrop-filter: blur(6px);
}
.hero-price__from { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.hero-price__value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: #fff; line-height: 1; }
.hero-price__sub { font-size: .85rem; color: #ffd9ee; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--white); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg); position: relative;
}
.form-card__head h2 { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.015em; }
.form-card__head p { color: var(--muted); font-size: .96rem; margin-top: .4rem; margin-bottom: 1.4rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: #3c3035; }
.field input, .select-wrap select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fdfbf9; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #b3a6ab; }
.field input:focus, .select-wrap select:focus {
  outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(225,19,131,.14);
}
.field input[aria-invalid="true"] { border-color: #d6336c; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--magenta-deep); font-size: .9rem;
}
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field-error { display: block; color: #d6336c; font-size: .8rem; min-height: 1em; margin-top: .3rem; }

.form-feedback { font-size: .9rem; margin-top: .7rem; min-height: 1em; }
.form-feedback.is-error { color: #d6336c; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* sucesso */
.form-done { text-align: center; padding: 1rem 0; animation: fadeUp .5s ease both; }
.form-done__check svg { width: 64px; height: 64px; margin: 0 auto 1rem; display: block; }
.form-done__check circle { fill: none; stroke: var(--magenta); stroke-width: 3; }
.form-done__check path { fill: none; stroke: var(--magenta); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 1.5rem; font-weight: 600; }
.form-done p { color: var(--muted); margin: .6rem 0 1.3rem; }

/* ---------- Strip ---------- */
.strip { background: var(--plum); color: #fff; }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem); text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: .35rem; }
.strip-num { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; color: #ff9bd2; }
.strip-label { font-size: .85rem; color: rgba(255,255,255,.78); max-width: 22ch; margin-inline: auto; }
.strip-item + .strip-item { border-left: 1px solid rgba(255,255,255,.14); }

/* ---------- Seções genéricas ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--sand); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; align-items: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
#empreendimento .split-media img { aspect-ratio: 1/1; object-fit: cover; }

.check-list { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.check-list--2col { grid-template-columns: 1fr 1fr; }
.check-list li { position: relative; padding-left: 1.9rem; font-weight: 500; color: #3c3035; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.25rem; height: 1.25rem;
  background: var(--magenta); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
}

.spec-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.6rem; }
.spec-grid li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1.1rem; font-size: .95rem; color: #4a3f44; }
.section--alt .spec-grid li { background: #fff; }
.spec-grid strong { font-family: var(--font-display); color: var(--magenta-deep); font-size: 1.2rem; font-weight: 600; display: block; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.gallery-item { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery-item--lg { grid-column: span 2; }
.gallery-item--lg img { aspect-ratio: 21/9; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.2rem .9rem;
  color: #fff; font-weight: 600; font-size: .98rem;
  background: linear-gradient(0deg, rgba(32,20,31,.78), transparent);
}
.gallery-foot { text-align: center; color: var(--muted); margin-top: 1.6rem; max-width: 70ch; margin-inline: auto; }

/* ---------- Localização ---------- */
.loc-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.loc-map img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.loc-points { list-style: none; display: grid; gap: .9rem; }
.loc-points li {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .9rem 1.1rem; font-weight: 600; color: #3c3035; box-shadow: var(--shadow-sm);
}
.loc-points li span { font-size: 1.3rem; flex: none; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; color: #fff; isolation: isolate; }
.cta-final__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(225,19,131,.55), transparent 55%),
    linear-gradient(135deg, var(--plum), var(--ink));
}
.cta-final__inner { text-align: center; max-width: 64ch; margin-inline: auto; }
.cta-final__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; }
.cta-final__title em { color: #ff9bd2; }
.cta-final__sub { margin-top: 1.2rem; font-size: 1.12rem; color: rgba(255,255,255,.85); }
.cta-final__note { margin-top: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 2.6rem 1.6rem; }
.footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.footer-brand span { font-size: .85rem; }
.footer-corretor { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.footer-corretor__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.5); }
.footer-corretor strong { color: #fff; font-size: 1.05rem; }
.footer-corretor span { font-size: .85rem; }
.footer-legal { margin-top: 1.6rem; }
.footer-legal p { font-size: .78rem; color: rgba(255,255,255,.5); max-width: 80ch; }
.footer-copy { margin-top: .8rem; }

/* ---------- Barra fixa mobile ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--magenta); color: #fff; text-align: center; font-weight: 700; font-size: .95rem;
  padding: 1rem; box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}

/* ---------- Reveal (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .05s; }
.hero-copy .reveal:nth-child(2) { transition-delay: .1s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .gallery-item img { transition: none; }
}

/* ===================================================================
   Responsivo
   =================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .form-card { order: -1; max-width: 460px; }
  .split, .loc-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .strip-item:nth-child(odd) { border-left: none; }
  .strip-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem; }
  .strip-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem; }
}

@media (max-width: 760px) {
  .header-nav { display: none; }
  .header-cta { margin-left: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item--lg, .gallery-item { grid-column: auto; }
  .gallery-item img, .gallery-item--lg img { aspect-ratio: 3/2; }
  .footer-corretor { margin-left: 0; text-align: left; width: 100%; }
  .mobile-cta { display: block; }
  body { padding-bottom: 60px; }
  .check-list--2col { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .hero-facts { gap: 1.2rem; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item, .strip-item + .strip-item { border: none !important; padding-top: 0 !important; }
}
