/* CondoFacilite: estilos do site institucional (mobile first) */

:root {
  --navy: #223444;
  --navy-2: #2C4256;
  --navy-deep: #17232F;
  --gold: #A3803A;
  --gold-text: #7D5F23;
  --gold-light: #D4AF5F;
  --cream: #F5EFE6;
  --sand: #EBE2D6;
  --white: #FFFFFF;
  --line: #DDD2C3;
  --line-strong: #C9BBA6;
  --text: #223444;
  --text-muted: #55616D;
  --text-on-dark: #C9D2DA;
  --alert: #A5483A;
  --photo-border: #5B6F83;

  --font-title: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
  --font-brand: "Cormorant Garamond", Georgia, serif;

  --gutter: 16px;
  --section-y: 72px;
  --radius: 4px;
  --radius-lg: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(38px, 7vw, 58px); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.6vw, 40px); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.bg-navy :focus-visible,
.hero :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-light); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Elementos comuns ---------- */

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.bg-navy .eyebrow,
.hero .eyebrow { color: var(--gold-light); }

.section { padding: var(--section-y) 0; scroll-margin-top: 72px; }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--text-on-dark); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: 48px; }

.num,
.step-num {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--gold-text);
  font-variant-numeric: lining-nums;
}

.gold-quote {
  margin: 56px auto 0;
  max-width: 760px;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--gold-text);
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-check { stroke: var(--gold-light); }
.icon-x { stroke: var(--alert); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold-light); color: var(--navy); }
.btn-gold:hover { background: #DDBD75; }
.btn-outline-light { border-color: var(--text-on-dark); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Barra superior ---------- */

.topbar {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 24px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar-place { margin: 0; display: none; }
.topbar-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}
.topbar a:hover { color: var(--gold-light); }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand-icon { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.04em;
}
.brand-tagline {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.main-nav.is-open { display: block; }
.main-nav ul { margin-bottom: 16px; }
.main-nav li + li { border-top: 1px solid var(--line); }
.main-nav ul a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}
.main-nav ul a:hover { color: var(--gold-text); }
.nav-cta { width: 100%; white-space: nowrap; }

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

.hero {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero-lead { font-size: 19px; max-width: 34em; margin-bottom: 36px; }
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 210, 218, .25);
  font-size: 15px;
  color: var(--cream);
}
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }

.hero-figure {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
}
.hero-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--photo-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -28px;
  padding: 16px 20px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--navy);
  line-height: 1.35;
}
.hero-card strong { display: block; font-family: var(--font-title); font-size: 19px; font-weight: 600; }
.hero-card span { font-size: 14px; color: var(--text-muted); }

/* ---------- Números ---------- */

.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stats-grid li { padding: 36px 16px 36px 0; border-top: 1px solid var(--line); }
.stats-grid li:nth-child(-n+2) { border-top: 0; }
.stats-grid li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-value {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.stat-value span { color: var(--gold-text); }
.stat-label { font-size: 15px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Economia ---------- */

.compare { display: grid; gap: 24px; }
.compare-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
}
.compare-card h3 { margin-bottom: 24px; font-size: 22px; }
.compare-old { background: var(--white); border: 1px solid var(--line); }
.compare-new { background: var(--navy); color: var(--cream); }
.compare-new h3 { color: var(--white); }

.mark-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.mark-list li:last-child { border-bottom: 1px solid var(--line); }
.mark-list .icon { margin-top: 4px; }
.compare-new .mark-list li { border-color: rgba(201, 210, 218, .22); }

.compare-note {
  margin-top: 24px;
  font-style: italic;
  color: var(--text-muted);
}
.compare-footer {
  margin-top: 24px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold-light);
}

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

.services { display: grid; column-gap: 64px; }
.services li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
}
.services .num { font-size: 26px; line-height: 1.1; }
.services h3 { margin-bottom: 8px; }
.services p { color: var(--text-muted); }

/* ---------- Transparência ---------- */

.pillars { display: grid; gap: 40px 32px; }
.pillars li { padding-top: 24px; border-top: 2px solid var(--navy); }
.pillars .num { display: block; margin-bottom: 12px; font-size: 28px; line-height: 1; }
.pillars h3 { margin-bottom: 10px; }
.pillars p { color: var(--text-muted); font-size: 16px; }

.transparency-foot { text-align: center; }
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.tags li {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Compliance e segurança ---------- */

.rules { display: grid; gap: 40px 40px; }
.rules li { padding-top: 22px; border-top: 2px solid var(--gold-light); }
.rules h3 { margin-bottom: 10px; }
.rules p { font-size: 16px; }

/* ---------- Como funciona ---------- */

.steps { display: grid; gap: 40px 32px; counter-reset: none; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.step-num { display: block; margin-bottom: 14px; font-size: 48px; font-weight: 700; line-height: 1; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--text-muted); font-size: 16px; }

/* ---------- Quem está à frente ---------- */

.about { display: grid; gap: 48px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy > p:not(.eyebrow):not(.signature) { color: #3D4955; }
.signature {
  margin-top: 32px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.signature strong { display: block; font-family: var(--font-title); font-size: 19px; font-weight: 600; color: var(--navy); }
.signature span { font-size: 15px; color: var(--text-muted); }

/* ---------- Referências ---------- */

.condos { display: grid; column-gap: 40px; }
.condos li { padding: 20px 0; border-top: 1px solid var(--line); }
.condo-name { display: block; font-family: var(--font-title); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.condo-place { display: block; margin-top: 4px; font-size: 15px; color: var(--text-muted); }
.condos-more {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
  color: var(--gold-text);
}
.condos-note { margin-top: 32px; font-style: italic; color: var(--text-muted); font-size: 16px; }

/* ---------- Depoimentos ---------- */

.testimonials { display: grid; gap: 40px 40px; }
.testimonials li {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  border-top: 2px solid var(--gold);
}
.testimonials blockquote {
  flex: 1;
  margin: 0 0 24px;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
}
.testimonial-name { display: block; font-weight: 700; color: var(--navy); }
.testimonial-role { display: block; font-size: 15px; color: var(--text-muted); }

/* ---------- Dúvidas ---------- */

.faq-wrap { max-width: calc(860px + 2 * var(--gutter)); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 22px 44px 22px 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--gold-text);
  transition: transform .2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--gold-text); }
.faq details p { padding: 0 44px 24px 0; color: var(--text-muted); }

/* ---------- Proposta ---------- */

.contact { display: grid; gap: 48px; align-items: start; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-list { margin: 36px 0 0; }
.contact-list div { padding: 16px 0; border-top: 1px solid rgba(201, 210, 218, .22); }
.contact-list dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.contact-list dd { margin: 4px 0 0; color: var(--cream); overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); text-decoration: underline; }

.form-card {
  padding: 32px 20px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  color: var(--navy);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}
.optional { font-weight: 400; color: var(--text-muted); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  color: var(--navy);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--alert); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 14px 0 0; font-size: 15px; font-weight: 700; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-success { color: #2F5D3A; }
.form-status.is-error { color: var(--alert); }
.form-status.is-sending { color: var(--text-muted); }
.form-lgpd { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  font-size: 15px;
  padding-top: 64px;
}
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
.brand-light { color: var(--cream); margin-bottom: 20px; }
.brand-light .brand-icon { width: 30px; }
.brand-light .brand-name { font-size: 22px; }
.footer-brand p { line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.site-footer a { text-decoration: none; }
.footer-links a,
.footer-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:hover { color: var(--gold-light); }
.footer-contacts a { overflow-wrap: anywhere; }
.footer-bottom {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(201, 210, 218, .18);
  font-size: 13px;
}

/* ================= 640px ================= */

@media (min-width: 640px) {
  :root { --gutter: 32px; --section-y: 96px; }

  .topbar-inner { justify-content: space-between; }
  .topbar-place { display: block; }

  .stats-grid li { padding-left: 24px; padding-right: 24px; }
  .stats-grid li:nth-child(odd) { padding-left: 0; }
  .stat-value { font-size: 28px; }

  .services { grid-template-columns: 1fr 1fr; }
  .pillars,
  .steps { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .condos { grid-template-columns: 1fr 1fr; }

  .field-row { grid-template-columns: 1.6fr 1fr; }
  .form-card { padding: 40px 36px; }
  .compare-card { padding: 44px 40px; }

  .hero-card { left: -20px; right: auto; min-width: 270px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= 960px ================= */

@media (min-width: 960px) {
  :root { --section-y: 120px; }

  .section { scroll-margin-top: 80px; }
  .header-inner { min-height: 80px; }
  .brand-icon { width: 38px; }

  .hero { padding: 96px 0 120px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .hero-figure { max-width: none; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid li { padding: 44px 28px; border-top: 0; }
  .stats-grid li:nth-child(odd) { padding-left: 28px; }
  .stats-grid li:first-child { padding-left: 0; }
  .stats-grid li + li { border-left: 1px solid var(--line); }
  .stat-value { font-size: 30px; }

  .compare { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pillars,
  .steps { grid-template-columns: repeat(4, 1fr); }
  .rules { grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
  .condos { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }

  .about { grid-template-columns: 5fr 7fr; gap: 80px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 72px; }
  .form-card { padding: 44px 44px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ================= 1200px ================= */

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
  }
  .main-nav ul { display: flex; gap: 26px; margin: 0; }
  .main-nav li + li { border: 0; }
  .main-nav ul a { min-height: 44px; font-size: 15px; }
  .nav-cta { width: auto; padding: 10px 20px; min-height: 44px; font-size: 15px; }

  .hero-grid { gap: 96px; }
  .services { column-gap: 96px; }
}
