/* ─────────────────────────────────────────────────────────────────────────
   Aurora Residencial — CSS principal
   Paleta editorial off-white + grafite escuro.
   ───────────────────────────────────────────────────────────────────────── */

:root {
    --bg: #F4F1EC;
    --fg: #1B1B1B;
    --muted: #7a7367;
    --hairline: #d8d1c7;
    --dark: #111716;
    --dark-fg: #EAE6DD;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 300; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
img { display:block; max-width:100%; height:auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; font: inherit; color: inherit; padding: 0; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
@media (min-width:768px) { .container { padding: 0 48px; } }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.italic { font-style: italic; }
.muted { color: var(--muted); }
.muted-on-dark { color: rgba(234,230,221,.7); }
.on-dark { color: var(--dark-fg); }
.center { text-align: center; }
.center-x { margin-left: auto; margin-right: auto; }
.max-2xl { max-width: 640px; margin: 0 auto; }
.max-3xl { max-width: 768px; }
.mb-3 { margin-bottom: 32px; }
.mb-4 { margin-bottom: 56px; }
.dim { opacity: .4; }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline; } }

.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.eyebrow-light { color: rgba(234,230,221,.85); }
.eyebrow-dim { color: rgba(234,230,221,.6); }
.hairline-sm { height: 1px; width: 48px; background: var(--fg); margin: 24px 0; }

.h-md { font-size: clamp(22px, 2.4vw, 30px); }
.h-lg { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; }
.h-xl { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; }
.big  { font-size: clamp(26px, 3vw, 36px); }
.big-text { font-size: 17px; line-height: 1.7; max-width: 560px; }

.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.section-dark { background: var(--dark); color: var(--dark-fg); }

.grid-12 { display: grid; gap: 40px; grid-template-columns: repeat(12, 1fr); }
.col-5 { grid-column: span 12; }
.col-7 { grid-column: span 12; }
@media (min-width: 992px) {
    .col-5 { grid-column: span 5; }
    .col-7 { grid-column: span 7; }
    .reverse .col-5 { order: 1; }
    .reverse .col-7 { order: 2; }
}
.align-center { align-items: center; }

.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.kv { display:flex; flex-direction:column; gap:4px; margin-top:32px; text-transform:uppercase; font-size:12px; letter-spacing:.2em; color:var(--muted); }
.kv strong { color: var(--fg); font-weight: 500; }
.kv-stack { display:flex; flex-direction:column; gap:24px; margin-top:32px; }
.caption-meta { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }

.ratio-169 { position: relative; aspect-ratio: 16/9; width: 100%; overflow: hidden; background: #e6e2d8; border-radius: 2px; }
.ratio-169 img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; transition: transform 1.2s ease; }
.card:hover .ratio-169 img { transform: scale(1.04); }

/* ── Site chrome ─────────────────────────────────────────────────────── */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header-inner { display:flex; justify-content:space-between; align-items:center; height: 76px; }
.brand { font-size: 22px; letter-spacing: .03em; }
.site-nav { display: none; gap: 32px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a:hover { opacity: .6; }
.site-footer { background: var(--dark); color: rgba(234,230,221,.7); }
.site-footer-inner { display:flex; flex-direction: column; gap: 8px; padding: 40px 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
@media (min-width: 768px) { .site-footer-inner { flex-direction: row; justify-content: space-between; } }

/* ── Botões ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; transition: all .3s ease; border: 1px solid transparent; }
.btn-light { background: #f4f1ec; color: #111716; }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost-light { color: var(--dark-fg); border-color: rgba(234,230,221,.55); }
.btn-ghost-light:hover { background: rgba(234,230,221,.08); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-outline { border: 1px solid var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-lg { margin-top: 40px; padding: 18px 36px; }
.link-arrow { display: inline-block; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-top: 20px; }
.link-arrow:hover { opacity: .6; }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; background: var(--dark); color: var(--dark-fg); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.35) 50%, rgba(0,0,0,.8)); }
.hero-content { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 60px; }
.hero-title { font-size: clamp(48px, 8vw, 112px); line-height: 1.02; max-width: 14ch; margin: 24px 0 0; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(234,230,221,.75); }
.hero-slogan { margin-top: 40px; font-size: clamp(20px, 2.4vw, 28px); max-width: 720px; color: rgba(234,230,221,.92); }
.hero-ctas { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Ficha ───────────────────────────────────────────────────────────── */
.ficha-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(234,230,221,.15); margin-top: 48px; }
@media (min-width: 768px) { .ficha-grid { grid-template-columns: repeat(5, 1fr); } }
.ficha-cell { background: var(--dark); padding: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.ficha-valor { font-size: clamp(32px, 4vw, 48px); }
.ficha-label { margin-top: 16px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(234,230,221,.6); }

/* ── Galeria ─────────────────────────────────────────────────────────── */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { padding: 10px 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--hairline); color: var(--muted); transition: all .2s; }
.filtro:hover { color: var(--fg); }
.filtro.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.galeria-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .galeria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .galeria-grid { grid-template-columns: repeat(3, 1fr); } }
.card { text-align: left; display: block; width: 100%; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; gap: 8px; }
.card-meta .eyebrow { font-size: 10px; }
.card[hidden] { display: none !important; }

/* ── Lightbox ────────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 100; display: none !important; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex !important; }
.lightbox[hidden]:not(.is-open) { display: none !important; }
.lb-close, .lb-prev, .lb-next { background: transparent; border: 0; cursor: pointer; z-index: 2; }
.lightbox figure { max-width: 1100px; margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 16px; }
.lb-close,.lb-prev,.lb-next { position: absolute; color: rgba(255,255,255,.8); font-size: 36px; padding: 12px; }
.lb-close { top: 16px; right: 16px; font-size: 28px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Ambientes ───────────────────────────────────────────────────────── */
.amb-title { margin: 20px 0 0; max-width: 18ch; }
.amb-rule { width: 40px; height: 1px; background: rgba(0,0,0,.4); margin: 24px 0; }
.amb-rule.on-dark { background: rgba(234,230,221,.4); }
.amb-text { font-size: 17px; line-height: 1.7; max-width: 440px; color: var(--muted); }
.amb-text.on-dark { color: rgba(234,230,221,.75); }

/* ── Planta ──────────────────────────────────────────────────────────── */
.planta-box { aspect-ratio: 16/9; background: #fafafa; border: 1px solid var(--hairline); margin-top: 56px; }
.planta-box img { width: 100%; height: 100%; object-fit: contain; }
.ficha-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); margin-top: 48px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .ficha-row { grid-template-columns: repeat(5, 1fr); } }
.ficha-row > div { background: var(--bg); padding: 32px 8px; text-align: center; }

/* ── Experiência ─────────────────────────────────────────────────────── */
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(234,230,221,.15); }
@media (min-width: 768px) {
  .exp-grid-1 { grid-template-columns: 1fr; }
  .exp-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .exp-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .exp-grid    { grid-template-columns: repeat(3, 1fr); }
}

.exp-card { background: var(--dark); padding: 40px; display: flex; flex-direction: column; min-height: 360px; }
.exp-spacer { flex: 1; }
.exp-card h3 { margin: 12px 0 16px; font-size: 28px; }
.exp-card p { font-size: 14px; color: rgba(234,230,221,.7); line-height: 1.65; }
.exp-card .link-arrow { color: var(--dark-fg); border-color: rgba(234,230,221,.4); }

/* ── Contato split ───────────────────────────────────────────────────── */
.contato-split { display: grid; grid-template-columns: 1fr; min-height: 80vh; background: var(--dark); color: var(--dark-fg); }
@media (min-width: 992px) { .contato-split { grid-template-columns: 1fr 1fr; } }
.contato-img { position: relative; min-height: 50vh; }
.contato-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.contato-content { padding: 80px 32px; display: flex; flex-direction: column; justify-content: center; max-width: 540px; }
@media (min-width: 992px) { .contato-content { padding: 80px; } }
.ig-link { color: rgba(234,230,221,.85); font-size: 13px; }

/* ── WhatsApp float ──────────────────────────────────────────────────── */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 40; font-size: 24px; }
.wa-float:hover { transform: scale(1.05); }

/* ── HOME — Capa ─────────────────────────────────────────────────────── */
.home-cover { padding: 180px 0 100px; border-bottom: 1px solid var(--hairline); }
.home-headline { font-size: clamp(40px, 6vw, 96px); line-height: 1.02; margin: 24px 0 0; max-width: 16ch; }
.home-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 40px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.home-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ── HOME — Grid de projetos ─────────────────────────────────────────── */
.projetos-grid { display: grid; grid-template-columns: 1fr; gap: 64px 32px; }
@media (min-width: 768px) { .projetos-grid { grid-template-columns: repeat(2, 1fr); } }
.proj-card { display: block; }
.proj-cover { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #e6e2d8; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.proj-card:hover .proj-cover img { transform: scale(1.04); }
.proj-selo { position: absolute; top: 20px; left: 20px; background: rgba(244,241,236,.92); padding: 4px 12px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.proj-num { position: absolute; bottom: 20px; right: 20px; color: #fff; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; mix-blend-mode: difference; }
.proj-body { margin-top: 24px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.proj-loc { margin-top: 8px; }
.proj-slogan { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 28rem; }

.empty-state { border: 1px dashed var(--hairline); padding: 64px; text-align: center; }
.empty-state em { font-style: italic; }

.editor-content { margin-top: 24px; color: var(--muted); line-height: 1.7; }
.editor-content p + p { margin-top: 16px; }
