/* ==========================================================================
   Jean Gorscki Imóveis — Design tokens
   Palette: deep navy (institucional/confiança) + latão envelhecido (imóveis)
   Type: Fraunces (display serif, para autoridade) + Inter (corpo, legibilidade)
   ========================================================================== */

:root {
  --navy-950: #0f1b2c;
  --navy-900: #142640;
  --navy-800: #1c3357;
  --navy-700: #2a4570;
  --brass-500: #a9812f;
  --brass-400: #c49a45;
  --brass-100: #f3e9d2;
  --paper-50: #faf8f4;
  --paper-100: #f2efe7;
  --ink-900: #1c1c1a;
  --ink-600: #4a4a46;
  --ink-400: #7a786f;
  --line-200: #e2ded2;
  --ok-line: #d8cfb8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-soft: 0 12px 32px -18px rgba(15, 27, 44, 0.35);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-500);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-500);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.16;
  margin: 0;
}

p { margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy-950);
  letter-spacing: 0.01em;
}

.brand__tagline {
  display: none;
  font-size: 11.5px;
  color: var(--ink-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .brand__tagline { display: inline; }
}

.nav {
  display: none;
  align-items: center;
  gap: 34px;
}

@media (min-width: 900px) {
  .nav { display: flex; }
}

.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-800);
  position: relative;
  padding: 4px 0;
}

.nav a:hover { color: var(--brass-500); }

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 24px 18px;
  border-bottom: 1px solid var(--line-200);
  background: var(--paper-50);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 11px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line-200);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brass-500);
  color: var(--paper-50);
}

.btn-primary:hover { background: var(--brass-400); }

.btn-ghost {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-900);
}

.btn-ghost:hover { border-color: var(--brass-500); color: var(--brass-500); }

.btn-on-dark {
  background: var(--brass-400);
  color: var(--navy-950);
}

.btn-on-dark:hover { background: var(--brass-100); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--paper-50);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(196, 154, 69, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.hero__skyline {
  position: absolute;
  right: -40px;
  bottom: -6px;
  width: 560px;
  max-width: 60vw;
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding: 88px 24px 96px;
}

.hero__eyebrow {
  color: var(--brass-400);
}

.hero__eyebrow::before { background: var(--brass-400); }

.hero h1 {
  color: var(--paper-50);
  font-size: clamp(30px, 4.6vw, 50px);
  max-width: 15ch;
  margin-top: 18px;
}

.hero__lede {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 17px;
  color: #c9d2e0;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(250, 248, 244, 0.14);
  max-width: 640px;
}

.hero__meta-item {
  font-size: 13px;
  color: #a9b4c7;
}

.hero__meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--paper-50);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---------- Generic section ---------- */

.section {
  padding: 84px 0;
}

.section--tight { padding: 64px 0; }

.section--alt {
  background: var(--paper-100);
  border-top: 1px solid var(--line-200);
  border-bottom: 1px solid var(--line-200);
}

.section--navy {
  background: var(--navy-950);
  color: var(--paper-50);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-600);
  font-size: 16px;
}

.section--navy .section-head p { color: #a9b4c7; }

/* ---------- Sobre ---------- */

.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

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

.about-copy p + p { margin-top: 16px; }

.about-copy { color: var(--ink-600); font-size: 15.5px; }

.about-card {
  background: var(--navy-950);
  color: var(--paper-50);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.about-card__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-400);
  font-weight: 600;
}

.about-card__list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.12);
}

.about-card__row:last-child { border-bottom: none; padding-bottom: 0; }

.about-card__row span:first-child { color: #9aa5b8; }

.about-card__row span:last-child {
  color: var(--paper-50);
  font-weight: 500;
  text-align: right;
}

/* ---------- Serviços ---------- */

.services-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--paper-50);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: var(--brass-500);
  transform: translateY(-3px);
}

.service-card__index {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--brass-500);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.service-card h3 {
  margin-top: 14px;
  font-size: 19px;
}

.service-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-600);
}

/* ---------- Processo ---------- */

.process {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-200);
}

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

.process__step {
  padding: 26px 22px;
  border-bottom: 1px solid var(--line-200);
  border-right: 1px solid var(--line-200);
}

@media (min-width: 760px) {
  .process__step:last-child { border-right: none; }
}

.process__num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brass-500);
}

.process__step h4 {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-950);
  margin: 10px 0 6px;
}

.process__step p {
  font-size: 13.5px;
  color: var(--ink-600);
}

/* ---------- Contato ---------- */

.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-200);
}

.contact-item:last-child { border-bottom: none; }

.contact-item__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brass-100);
  color: var(--brass-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 600;
}

.contact-item__value {
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--navy-950);
  font-weight: 500;
}

.contact-panel {
  background: var(--navy-950);
  color: var(--paper-50);
  border-radius: var(--radius-md);
  padding: 38px 34px;
}

.contact-panel h3 {
  color: var(--paper-50);
  font-size: 21px;
}

.contact-panel p {
  margin-top: 12px;
  color: #b9c2d3;
  font-size: 14.5px;
}

.contact-panel .btn { margin-top: 24px; width: 100%; }

/* ---------- Políticas (cards na home) ---------- */

.policy-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .policy-grid { grid-template-columns: 1fr 1fr; }
}

.policy-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  background: var(--paper-50);
}

.policy-card h3 {
  font-size: 16.5px;
}

.policy-card p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-600);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #a9b4c7;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--paper-50);
  font-weight: 600;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 34ch;
  color: #8b96ab;
}

.footer-heading {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c88a0;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: #c3cbdb;
  margin-bottom: 12px;
}

.footer-col a:hover { color: var(--brass-400); }

.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 248, 244, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7c88a0;
}

/* ---------- Utility: policy pages ---------- */

.legal-hero {
  background: var(--navy-950);
  color: var(--paper-50);
  padding: 64px 0 48px;
}

.legal-hero h1 {
  color: var(--paper-50);
  font-size: clamp(26px, 4vw, 38px);
}

.legal-hero p {
  margin-top: 14px;
  color: #b9c2d3;
  font-size: 14.5px;
}

.legal-body {
  padding: 56px 0 96px;
}

.legal-body__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li {
  font-size: 15px;
  color: var(--ink-600);
  margin-bottom: 12px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-body strong { color: var(--navy-950); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brass-400);
  margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .service-card:hover { transform: none; }
}

:focus-visible {
  outline: 2px solid var(--brass-500);
  outline-offset: 2px;
}
