/* ==========================================================================
   HSA IMÓVEIS — v2
   Direção: administradora tradicional e institucional (referência: JHI)
   Paleta: marinho da marca + dourado envelhecido como acento de confiança
   Tipografia: Source Serif 4 (institucional) + Inter (utilitária)
   ========================================================================== */

:root {
  --navy-900: #0a1530;
  --navy-800: #0d1b3e;
  --navy-700: #17305e;
  --teal-600: #1f6b6d;
  --teal-500: #2c7a7b;
  --gold-600: #a9822f;
  --gold-500: #c9a227;
  --gold-100: #f5eed9;
  --paper: #ffffff;
  --paper-dim: #f3f4f7;
  --ink: #172038;
  --ink-soft: #545e78;
  --line: #e3e6ec;
  --white: #ffffff;

  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;

  --shadow-card: 0 10px 26px -16px rgba(10, 21, 48, 0.28);
  --ease: cubic-bezier(0.25, 0.65, 0.32, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-500); }

.section { padding: 88px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: var(--navy-800);
}
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.03rem; }
.section-alt { background: var(--paper-dim); }
.section-navy { background: var(--navy-800); color: var(--white); }
.section-navy .section-head h2 { color: var(--white); }
.section-navy .section-head p { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-600); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy-800);
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-900) !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-btn-gold::after { display: none; }
.nav-links a.nav-btn-gold:hover { background: var(--gold-600); color: var(--white) !important; transform: translateY(-2px); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.whatsapp-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 18px -8px rgba(37,211,102,0.6); }
.whatsapp-btn svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  padding: 88px 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 88% 8%, rgba(201,162,39,0.16), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}
.hero-copy .eyebrow { color: var(--gold-500); }
.hero-copy .eyebrow::before { background: var(--gold-500); }
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--gold-500); }
.hero p.lead {
  margin-top: 20px;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
}
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-figure {
  position: relative;
  border-radius: var(--radius-l);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 34px;
}
.hero-figure-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-figure-stat:last-child { border-bottom: none; }
.hero-figure-stat strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  display: block;
}
.hero-figure-stat > span { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.75); }

/* Quick access bar */
.quick-access {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  margin-top: 10px;
  box-shadow: 0 -8px 30px -18px rgba(10,21,48,0.3);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.quick-item:last-child { border-right: none; }
.quick-item:hover { background: var(--paper-dim); }
.quick-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.quick-item:hover .quick-icon { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.quick-icon svg { width: 22px; height: 22px; }
.quick-item > span:last-child { font-size: 0.86rem; font-weight: 600; color: var(--navy-800); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--ink-soft); font-size: 1.03rem; margin-bottom: 16px; }
.about-text h2 { font-size: clamp(1.7rem,2.8vw,2.3rem); color: var(--navy-800); margin-bottom: 20px; }

.value-list { display: flex; flex-direction: column; gap: 4px; }
.value-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.value-item:first-child { padding-top: 0; }
.value-arrow {
  flex-shrink: 0;
  width: 26px; height: 26px;
  color: var(--gold-600);
  margin-top: 2px;
}
.value-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Pilares (missão/visão/valores) ---------- */
.pillars-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.pillar { padding: 32px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: none; }
.pillar h4 { color: var(--navy-800); font-size: 1.05rem; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Serviços (tabs) ---------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tab-btn:hover { color: var(--navy-800); }
.tab-btn.is-active { color: var(--navy-800); border-color: var(--gold-500); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.tab-intro { max-width: 720px; color: var(--ink-soft); margin-bottom: 30px; font-size: 1rem; }
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
}
.item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.item-row .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.item-row .check svg { width: 12px; height: 12px; }
.item-row span { font-size: 0.94rem; color: var(--ink); }

/* ---------- App / Tecnologia ---------- */
.app-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.app-mock {
  border-radius: var(--radius-l);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.14);
}
.app-mock img {
  width: 100%;
  height: auto;
  display: block;
}
.app-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.app-list li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
}
.app-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex-shrink: 0; }
.app-store-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-s);
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--white);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.store-badge svg { width: 18px; height: 18px; }
.store-badge:hover { border-color: var(--gold-500); color: var(--gold-500); transform: translateY(-2px); }

/* ---------- Depoimentos ---------- */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-quote { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-800); line-height: 1.5; }
.testimonial-stars { color: var(--gold-600); font-size: 0.9rem; letter-spacing: 3px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--navy-800); }
.testimonial-author span { font-size: 0.79rem; color: var(--ink-soft); }
.testimonial-disclaimer { margin-top: 32px; font-size: 0.78rem; color: var(--ink-soft); text-align: center; opacity: 0.75; }

/* ---------- Proposta / Contato ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.contact-info {
  background: var(--navy-800);
  color: var(--white);
  padding: 48px 44px;
}
.contact-info h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 18px; }
.contact-info p { color: rgba(255,255,255,0.72); margin-bottom: 28px; }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-line:first-of-type { border-top: none; }
.contact-line svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.contact-line strong { display: block; font-size: 0.9rem; }
.contact-line span { font-size: 0.86rem; color: rgba(255,255,255,0.68); }
.contact-branch { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-branch strong { display: block; font-size: 0.9rem; font-weight: 500; text-transform: none; letter-spacing: normal; color: var(--white); margin-bottom: 8px; }

.contact-form { background: var(--white); padding: 48px 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.84rem; font-weight: 600; color: var(--navy-800); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-500);
  outline: none;
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; }
.footer-brand img { height: 36px; }
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 4px 7px;
  line-height: 0;
}
.logo-badge img { display: block; }
.footer-col h5 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p, .footer-col li { font-size: 0.9rem; }
.footer-col a { display: flex; align-items: flex-start; gap: 8px; }
.footer-col a svg { width: 14px; height: 14px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.footer-col a:hover { color: var(--gold-500); }
.footer-col ul li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-col ul li svg { width: 15px; height: 15px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--gold-500); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--navy-900); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-item:nth-child(3) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; }
  .pillars-strip { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .item-grid { grid-template-columns: 1fr; }
  .app-section { grid-template-columns: 1fr; }
  .app-mock { margin: 0 auto; }
  .testimonial-track { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 88px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 22px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    z-index: 99;
  }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(3) { border-right: 1px solid var(--line); }
  .quick-item:nth-child(2n) { border-right: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .pillars-strip { grid-template-columns: 1fr; }
  .testimonial-track { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .app-list { grid-template-columns: 1fr; }
}
