/* ZURI Real Estate, site institucional. Sem dependencias externas. */

@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }

:root {
  --pine: #26352F;
  --pine-2: #2F3F36;
  --stone: #E9E6DF;
  --stone-2: #DDD9CF;
  --sand: #C8BBA7;
  --ink: #26352F;
  --ink-soft: #55625B;
  --mist: #CDD2C5;
  --mist-soft: #A9B2A5;
  --line: rgba(38, 53, 47, 0.18);
  --line-light: rgba(205, 210, 197, 0.22);
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 78rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
h1, h2, h3, p, dl, dd, dt, address { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; border-radius: 1px; }
.section--stone :focus-visible, .section--sand :focus-visible { outline-color: var(--pine); }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--stone); color: var(--pine); padding: .6rem 1rem; font-size: .9rem;
}
.skip-link:focus { top: .75rem; }

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

/* Cabecalho ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--gutter);
  color: var(--mist);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wordmark-text { opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.site-header nav a {
  text-decoration: none; font-size: .9rem; letter-spacing: .02em; font-weight: 400;
  padding: .3rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.site-header nav a:hover, .site-header nav a:focus-visible { background-size: 100% 1px; }
body.is-past-hero .site-header {
  background: var(--stone); color: var(--pine); border-bottom-color: var(--line);
}
body.is-past-hero .site-header .wordmark-text { opacity: 1; pointer-events: auto; }
body.is-on-dark .site-header { background: var(--pine); color: var(--mist); border-bottom-color: var(--line-light); }

.wordmark-text {
  font-family: var(--sans); font-weight: 300; font-size: 1.25rem; letter-spacing: .38em;
  text-decoration: none; margin-right: -.38em; line-height: 1;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; background: var(--pine); color: var(--mist);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto;
  align-content: center; justify-items: center;
  padding: 5.5rem var(--gutter) 3rem; overflow: hidden;
}
.stage { width: min(100%, 38rem); height: min(62svh, 40rem); }
.stage svg { width: 100%; height: 100%; overflow: visible; }
.hero__text { width: min(100%, 38rem); margin-top: 1.5rem; }
.hero h1 {
  font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.005em;
  color: var(--stone);
}
.hero__sub { margin-top: 1rem; color: var(--mist-soft); font-size: 1rem; }
.hero__text p:last-child { margin-top: 1.4rem; }

.link-quiet {
  font-weight: 400; color: var(--sand); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .3rem; transition: background-size .5s var(--ease), color .3s var(--ease);
}
.link-quiet:hover, .link-quiet:focus-visible { background-size: 40% 1px; color: var(--stone); }

@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: 1fr; align-content: stretch; align-items: center; justify-items: stretch; column-gap: clamp(2rem, 6vw, 6rem); padding-top: 4.5rem; padding-bottom: 2.5rem; }
  .stage { width: 100%; height: min(86svh, 62rem); justify-self: end; max-width: 46rem; }
  .hero__text { margin-top: 0; width: auto; max-width: 30rem; }
  .hero h1 { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
}

/* Estados do hero: texto revela com a animacao (so com JS) */
.js .hero.is-playing .hero__text > * { opacity: 0; }
.js .hero.is-playing .hero__text h1 { clip-path: inset(0 100% 0 0); opacity: 1; }
.js .hero__text > * { transition: opacity .9s var(--ease); }
.js .hero.is-done .hero__text h1 { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease); }
.js .hero.is-done .hero__text > * { opacity: 1; }
.js .hero.is-done .hero__text .hero__sub { transition-delay: .5s; }
.js .hero.is-done .hero__text p:last-child { transition-delay: .9s; }

.js .hero.is-playing #wordmark { opacity: 0; }

.skip {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 5;
  background: none; border: 0; color: var(--mist-soft); font: inherit; font-size: .85rem; letter-spacing: .02em;
  padding: .5rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px;
  opacity: 0; transition: opacity .6s var(--ease);
}
.js .hero.is-playing .skip { opacity: 1; }
.hero:not(.is-playing) .skip, html:not(.js) .skip { display: none; }
.skip:hover { color: var(--stone); }

/* Seccoes --------------------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 11vw, 9rem); }
.section--tight { padding-top: 0; padding-bottom: clamp(5rem, 11vw, 9rem); }
.section--stone { background: var(--stone); }
.section--pine { background: var(--pine); color: var(--mist); }
.section--sand { background: var(--sand); color: var(--pine); }

.grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .col-statement, .col-head, .col-big, .contact__intro { grid-column: 1 / span 5; }
  .col-text, .values { grid-column: 7 / span 6; }
  .col-big { grid-column: 1 / span 6; }
  .col-text--buy { grid-column: 8 / span 5; align-self: end; }
  .grid--marca .marca__symbol { grid-column: 1 / span 4; }
  .grid--marca .marca__text { grid-column: 6 / span 7; }
  .grid--contact .contact__intro { grid-column: 1 / span 5; }
  .grid--contact .form { grid-column: 7 / span 6; }
}

h2 { font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.statement {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.18; max-width: 16ch;
}
.col-text p + p { margin-top: 1.3rem; }
.col-text p { max-width: 38rem; }
.name-block { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.name-block h3 { font-weight: 500; font-size: .95rem; letter-spacing: .02em; margin-bottom: .6rem; }

/* Valores */
.values { display: block; border-top: 1px solid var(--line); }
.values__row { display: grid; gap: .3rem 2rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .values__row { grid-template-columns: 11rem 1fr; align-items: baseline; } }
.values dt { font-weight: 500; font-size: 1.05rem; }
.values dd { color: var(--ink-soft); }

/* Marca */
.marca__symbol { max-width: 15rem; }
.marca__symbol img { width: 100%; height: auto; }
.marca__text p { max-width: 38rem; margin-top: 1.4rem; color: var(--mist); }
.readings { margin-top: 2.2rem; display: grid; gap: 0; max-width: 38rem; border-top: 1px solid var(--line-light); }
.readings > div { display: grid; gap: .2rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); }
@media (min-width: 40rem) { .readings > div { grid-template-columns: 9rem 1fr; align-items: baseline; } }
.readings dt { font-weight: 500; color: var(--stone); }
.readings dd { color: var(--mist-soft); }

/* Comprar */
.big { font-weight: 300; font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.08; letter-spacing: -.01em; max-width: 14ch; }
.col-text--buy p { color: var(--pine); }

/* Botoes */
.btn {
  display: inline-block; font: inherit; font-weight: 400; font-size: .98rem; letter-spacing: .02em;
  padding: .95rem 1.9rem; background: var(--pine); color: var(--stone); border: 1px solid var(--pine);
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--pine); }
.section--sand .btn:hover { border-color: var(--pine); }
.btn--ghost { background: transparent; color: var(--stone); border-color: var(--mist-soft); margin-top: 2.2rem; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--stone); color: var(--pine); border-color: var(--stone); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Contato */
.contact__intro p { margin-top: 1.2rem; max-width: 26rem; color: var(--ink-soft); }
.contact__intro address { margin-top: 2.2rem; color: var(--ink); line-height: 1.8; }

.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 400; font-size: .92rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-weight: 300; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(38, 53, 47, 0.45); border-radius: 0; padding: .65rem 0;
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--pine); box-shadow: 0 1px 0 var(--pine); }
.field--consent { grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; }
.field--consent input { margin-top: .4rem; width: 1.05rem; height: 1.05rem; accent-color: var(--pine); }
.field--consent label { font-weight: 300; font-size: .92rem; line-height: 1.55; }
.field--consent .err { grid-column: 1 / -1; }
.field--invalid input, .field--invalid textarea { border-bottom-color: #8B3A2E; }
.err { color: #8B3A2E; font-size: .88rem; font-weight: 400; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; font-size: .95rem; }
.form-status.is-ok { color: #2F5A3E; font-weight: 400; }
.form-status.is-error { color: #8B3A2E; font-weight: 400; }
.turnstile { min-height: 65px; }

/* Rodape */
.site-footer { background: var(--pine); color: var(--mist-soft); padding-block: 3.5rem; font-size: .9rem; }
.footer__grid { display: grid; gap: 1.6rem; }
.wordmark-text--footer { color: var(--mist); }
.footer__legal { line-height: 1.7; }
.footer__links a { color: var(--mist); }
@media (min-width: 56rem) { .footer__grid { grid-template-columns: 1fr 2fr auto; align-items: start; } }

/* Paginas simples (privacidade, 404) */
.page-simple { background: var(--stone); min-height: 100svh; }
.page-simple .site-header { background: var(--stone); color: var(--pine); border-bottom-color: var(--line); }
.page-simple .site-header .wordmark-text { opacity: 1; pointer-events: auto; }
.prose { padding-top: 8rem; padding-bottom: 6rem; max-width: 46rem; }
.prose h1 { font-weight: 300; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 2rem; }
.prose h2 { font-size: 1.3rem; font-weight: 400; margin-top: 2.6rem; margin-bottom: .8rem; }
.prose p, .prose li { color: #3C4943; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose .draft-note { border-left: 2px solid var(--sand); padding: .4rem 0 .4rem 1rem; margin-bottom: 2rem; font-size: .95rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
@media (max-width: 40rem) {
  .site-header nav a:first-child { display: none; }
}
