/* =====================================================
   TM Condomínios — Estilos globais
   Paleta:
     --azul     : #163554
     --dourado  : #B79C48
     --branco   : #FFFFFF
     --cinza    : #F5F7FA
     --texto    : #333333
   ===================================================== */

:root {
  --azul: #163554;
  --azul-dark: #0f2740;
  --azul-soft: #1e4670;
  --dourado: #B79C48;
  --dourado-dark: #9a8438;
  --branco: #FFFFFF;
  --cinza: #F5F7FA;
  --cinza-2: #e6ebf1;
  --linha: #dde4ec;
  --texto: #333333;
  --texto-soft: #5b6472;
  --sombra-sm: 0 2px 6px rgba(22, 53, 84, 0.06);
  --sombra-md: 0 10px 30px rgba(22, 53, 84, 0.10);
  --sombra-lg: 0 20px 50px rgba(22, 53, 84, 0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.25s ease;
  --container: 1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Reset básico */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--texto);
  background: var(--branco);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--dourado); }
h1, h2, h3, h4 { color: var(--azul); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-family: var(--font-display); }
h2 { font-size: clamp(1.6rem, 2.4vw + .6rem, 2.4rem); font-family: var(--font-display); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--texto); }
ul { padding-left: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--linha); margin: 2.5rem 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--azul); color: #fff; padding: .6rem 1rem; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--linha);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { max-height: 44px; width: auto; }
.main-nav ul {
  display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  color: var(--azul); font-weight: 500; padding: .5rem .1rem;
  position: relative; font-size: .96rem;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--dourado); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--dourado); }

.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--azul); margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linha);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 20px 1rem; }
  .main-nav li { border-bottom: 1px solid var(--linha); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: .9rem 0; }
  .main-nav.is-open { max-height: 80vh; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: all var(--transition); font-size: 1rem; line-height: 1;
}
.btn-primary { background: var(--dourado); color: #fff; }
.btn-primary:hover { background: var(--dourado-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.btn-outline:hover { background: #fff; color: var(--azul); }
.btn-secondary { background: var(--azul); color: #fff; }
.btn-secondary:hover { background: var(--azul-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-ghost:hover { background: var(--azul); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-soft) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(183,156,72,.25), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) 0;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--sombra-lg);
  aspect-ratio: 4/3; background: rgba(255,255,255,.08);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 44ch; }
.hero .btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .eyebrow {
  display: inline-block; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dourado); font-weight: 600; font-size: .8rem; margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Secções ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--cinza); }
.section-dark { background: var(--azul); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.85); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .eyebrow {
  display: inline-block; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dourado); font-weight: 600; font-size: .8rem; margin-bottom: .6rem;
}
.section-head p { max-width: 60ch; margin: .6rem auto 0; color: var(--texto-soft); }

/* ---------- Cartões ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 2rem; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--sombra-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-md);
  border-color: rgba(183,156,72,.4);
}
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(22,53,84,.08), rgba(183,156,72,.15));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--azul); margin-bottom: 1.2rem;
}
.card h3 { margin-top: 0; }
.card p { color: var(--texto-soft); margin-bottom: 0; }

/* Cartões de serviço */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card ul { color: var(--texto-soft); margin: .8rem 0 0; }
.service-card li { margin-bottom: .3rem; }

/* Modelo de gestão (fluxo) */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem;
}
.flow-step {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.2rem;
  text-align: center; position: relative; border: 1px solid var(--linha);
  box-shadow: var(--sombra-sm);
}
.flow-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--azul); color: var(--dourado);
  font-family: var(--font-display); font-weight: 700; margin-bottom: .8rem;
}
.flow-step h4 { margin: 0 0 .3rem; color: var(--azul); }
.flow-step p { margin: 0; color: var(--texto-soft); font-size: .95rem; }
.flow-step::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--dourado); font-weight: 700; font-size: 1.4rem;
}
.flow-step:last-child::after { content: ""; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(2n)::after { content: ""; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { content: "↓"; right: 50%; transform: translate(50%, 8px); top: 100%; }
}

/* Indicadores (transparência) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.6rem; text-align: center;
}
.stat .n {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--dourado); line-height: 1;
}
.stat p { margin: .4rem 0 0; color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-weight: 600; color: var(--azul);
  margin-bottom: .35rem; font-size: .95rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--linha); border-radius: var(--radius-sm);
  background: #fff; color: var(--texto); transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(183,156,72,.2);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-card {
  background: #fff; padding: 2.2rem; border-radius: var(--radius);
  border: 1px solid var(--linha); box-shadow: var(--sombra-md);
}
.form-note { color: var(--texto-soft); font-size: .9rem; }

/* Alertas */
.alert {
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-success { background: #e8f5ee; color: #14532d; border-color: #bde5c9; }
.alert-error   { background: #fdecec; color: #7f1d1d; border-color: #f5c2c2; }
.alert-info    { background: #e7eef7; color: #163554; border-color: #c9d7e8; }

/* ---------- Two column ---------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col .media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra-md);
  aspect-ratio: 4/3; background: var(--cinza-2);
}
.two-col .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--azul), var(--azul-soft));
  color: #fff; text-align: center; padding: 4rem 1rem; border-radius: var(--radius);
  box-shadow: var(--sombra-md);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 1.6rem; }

/* ---------- Portal / Em breve ---------- */
.coming-soon {
  min-height: 60vh; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(183,156,72,.10), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(22,53,84,.08), transparent 40%),
    var(--cinza);
}
.coming-soon .badge {
  display: inline-block; padding: .4rem 1rem; border-radius: 999px;
  background: var(--dourado); color: #fff; letter-spacing: .1em;
  text-transform: uppercase; font-size: .8rem; font-weight: 600; margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--azul-dark); color: rgba(255,255,255,.85); margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  padding: 3.5rem 20px 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: #fff; font-family: var(--font-display); }
.footer-h { color: var(--dourado); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; }
.footer-list a { color: rgba(255,255,255,.8); }
.footer-list a:hover { color: var(--dourado); }
.footer-text { color: rgba(255,255,255,.75); max-width: 42ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .88rem; color: rgba(255,255,255,.65);
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; padding: 1rem 20px;
  flex-wrap: wrap; gap: .5rem;
}
.muted-link { color: rgba(255,255,255,.7); }
.muted-link:hover { color: var(--dourado); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra-lg);
  transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.05); color: #fff; }

/* Utilitários */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Animações reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
