/* =========================================================
   GMCOND – Administração de Condomínios
   CSS único, sem frameworks.
   ========================================================= */

:root {
  --azul: #265cdc;
  --azul-esc: #1d4bbd;
  --verde: #84b15c;
  --verde-esc: #729c4d;
  --navy: #0b1424;
  --navy-2: #0f1d33;
  --texto: #414042;
  --texto-suave: #6b6b70;
  --titulo: #2f2f33;
  --cinza: #f7f9fb;
  --borda: #e9ecf1;
  --branco: #fff;
  --raio: 6px;
  --sombra: 0 10px 35px rgba(22, 40, 80, .08);
  --fonte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.7;
  color: var(--texto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; transition: color .2s; }
a:hover { color: var(--azul-esc); }
h1, h2, h3, h4, h5, h6 { color: var(--titulo); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
.ico { width: 1em; height: 1em; flex: none; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--texto-suave); }
.sec { padding: 100px 0; }
.sec--gray { background: var(--cinza); }

.h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }

.eyebrow {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 18px;
  color: var(--azul);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.eyebrow--center { justify-content: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 34px;
  border: 0; border-radius: 50px;
  font: 700 .78rem/1 var(--fonte); letter-spacing: .03em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn .ico { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-2px); }
.btn--blue  { background: var(--azul); color: #fff; box-shadow: 0 10px 25px rgba(38, 92, 220, .3); }
.btn--blue:hover { background: var(--azul-esc); color: #fff; }
.btn--green { background: var(--verde); color: #fff; border-radius: 2px; padding: 20px 44px; }
.btn--green:hover { background: var(--verde-esc); color: #fff; }
.btn--white { background: #fff; color: var(--azul); box-shadow: var(--sombra); }
.btn--ghost { background: #fff; color: var(--azul); box-shadow: 0 6px 25px rgba(0, 0, 0, .1); }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 16px; }
.topbar a { color: #fff; white-space: nowrap; }
.topbar__tel { display: inline-flex; align-items: center; gap: 10px; }
.topbar__tel .ico { width: 15px; height: 15px; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__btn { background: rgba(255, 255, 255, .12); padding: 3px 10px; border-radius: 3px; }
.topbar__btn:hover { background: var(--verde); }

.header { position: relative; z-index: 20; background: transparent; }
.page-home .header { position: absolute; left: 0; right: 0; }
.page-interna .header, .page-contato .header, .page-blog .header { background: #fff; box-shadow: 0 1px 0 var(--borda); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 110px; }
.logo img { width: 300px; height: auto; }

.nav { display: flex; gap: 32px; }
.nav a {
  position: relative; color: var(--titulo); font-weight: 700; font-size: .92rem; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 0; height: 2px;
  background: var(--verde); transform: translateX(-50%); transition: width .25s;
}
.nav a:hover::after, .nav a.is-active::after { width: 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--titulo); }
.nav-toggle .ico { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; background: #e9eef4; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 35%, rgba(255,255,255,0) 60%);
}
.hero__in { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 200px; }
.hero__title {
  font-size: clamp(2.8rem, 6.5vw, 4.9rem); font-weight: 800; line-height: 1.05;
  color: #3a3a3e; margin-bottom: 26px; letter-spacing: -.01em;
}
.hero__title span { color: var(--azul); }
.hero__text { max-width: 540px; font-size: 1.15rem; color: #3a3a3e; margin-bottom: 34px; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 190px; z-index: 3; }

/* ---------- Acesso ---------- */
.acesso { background: var(--azul); color: #fff; padding: 64px 0; }
.acesso__in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.acesso h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.acesso__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.acesso__cta small { font-size: .9rem; }

/* ---------- Soluções ---------- */
.solucoes__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.solucoes__intro p { font-size: 1.08rem; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.card {
  background: #fff; border-radius: 4px; padding: 50px 34px 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.card--down { margin-top: -30px; }
.card__ico { display: block; color: var(--azul); margin-bottom: 22px; }
.card__ico .ico { width: 42px; height: 42px; }
.card h3 { font-size: 1.12rem; }
.card p { font-size: .9rem; color: var(--texto-suave); margin: 0; }

/* ---------- App ---------- */
.app { position: relative; background: var(--azul); color: #fff; overflow: hidden; padding: 90px 0; }
.app::after {
  content: ""; position: absolute; right: -120px; top: 40px; width: 420px; height: 420px;
  background: url("../img/gm.webp") center/contain no-repeat; opacity: .05; filter: brightness(10);
}
.app__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.app p { opacity: .92; max-width: 470px; }
.stores { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 34px; }
.stores img { width: 174px; border-radius: 25px; transition: transform .2s; }
.stores a:hover img { transform: translateY(-3px); }
.app__phones { width: 100%; max-width: 640px; margin-left: auto; }

/* ---------- Nós vamos além ---------- */
.alem { display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; overflow: hidden; }
.alem::after {
  content: ""; position: absolute; right: -60px; top: 20px; width: 420px; height: 420px;
  background: url("../img/gm.webp") center/contain no-repeat; z-index: 0;
}
.alem__img img { width: 100%; height: 100%; object-fit: cover; max-height: 700px; }
.alem__text { position: relative; z-index: 1; padding: 80px 7% 80px 9%; max-width: 680px; }
.alem__text p:not(.eyebrow) { color: var(--texto-suave); }
.alem__text .btn { margin-top: 18px; }

/* ---------- Passos ---------- */
.passos { background: var(--cinza); }
.passos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.passo__n { display: block; font-size: 4.6rem; font-weight: 800; line-height: 1; color: #ccc; margin-bottom: 28px; transition: color .3s; }
.passo:first-child .passo__n, .passo:hover .passo__n { color: var(--azul); }
.passo h2 { font-size: 1.35rem; }
.passo p { font-size: .92rem; color: var(--texto-suave); }
.passo p::after { content: ""; display: block; width: 60px; height: 1px; background: var(--titulo); margin-top: 26px; }

/* ---------- Administração ---------- */
.admin {
  padding: 110px 0;
  background: var(--navy-2) url("../img/back-sec2_04.webp") center/cover no-repeat;
  color: #fff; text-align: center;
}
.admin__title { color: var(--verde); font-size: clamp(1.3rem, 2.4vw, 1.75rem); text-transform: uppercase; }
.admin__sub { font-size: 1.15rem; margin-bottom: 70px; }
.admin__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.admin__item .ico { width: 64px; height: 64px; color: var(--verde); margin: 0 auto 16px; }
.admin__item h3 { color: #fff; font-size: 1.85rem; margin-bottom: 10px; }
.admin__item p { font-size: .92rem; max-width: 300px; margin: 0 auto; }

/* ---------- Depoimentos ---------- */
.depo { background: #f2f2f2; }
.depo__in { text-align: center; max-width: 960px; }
.depo__slider { position: relative; padding: 0 70px; margin-top: 30px; }
.depo__track { display: grid; }
.depo__item {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .45s, transform .45s, visibility .45s;
}
.depo__item.is-active { opacity: 1; visibility: visible; transform: none; }
.depo__item p { font-size: 1.15rem; color: var(--texto-suave); margin-bottom: 28px; }
.depo__item cite { font-style: normal; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.depo__item cite::before { content: ""; width: 22px; height: 2px; background: var(--titulo); margin-right: 12px; }
.depo__item cite strong { color: var(--titulo); }
.depo__nav {
  position: absolute; top: 40px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid #9a9a9a; background: none; color: #8a8a8a; cursor: pointer;
  display: grid; place-items: center; transition: all .2s;
}
.depo__nav:hover { border-color: var(--azul); color: var(--azul); }
.depo__nav .ico { width: 16px; height: 16px; }
.depo__nav--prev { left: 0; }
.depo__nav--next { right: 0; }
.depo__avatars { display: flex; justify-content: center; gap: 14px; margin-top: 50px; }
.depo__avatars button {
  width: 70px; height: 70px; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 3px solid transparent; background: var(--azul); opacity: .55; transition: all .25s;
}
.depo__avatars button.is-active { opacity: 1; border-color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); transform: scale(1.06); }
.depo__avatars img { width: 100%; height: 100%; object-fit: cover; }
.depo__avatars span { color: #fff; font-weight: 800; font-size: 1.5rem; }

/* ---------- Blog ---------- */
.blog-home__title { max-width: 720px; margin-bottom: 50px; }
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }
.post-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 5px 30px rgba(0,0,0,.07); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.post-card__img { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 28px 30px 32px; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: var(--titulo); }
.post-card h3 a:hover { color: var(--azul); }
.post-meta { display: flex; gap: 14px; align-items: center; font-size: .8rem; color: var(--texto-suave); margin-bottom: 10px; }
.post-meta a { background: var(--azul); color: #fff; padding: 2px 12px; border-radius: 20px; font-weight: 600; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; }
.link-more .ico { width: 12px; height: 12px; }

/* ---------- Páginas internas ---------- */
.page-head { background: var(--navy-2) url("../img/back-sec2_04.webp") center/cover; color: #fff; padding: 80px 0 70px; text-align: center; }
.page-head h1, .page-head .h1-like { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 0 0 8px; line-height: 1.2; }
.crumbs { margin: 0; font-size: .9rem; opacity: .9; }
.crumbs a { color: var(--verde); }
.crumbs span { margin: 0 6px; opacity: .6; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info { text-align: center; padding: 46px 30px; border-radius: 4px; box-shadow: 0 5px 30px rgba(0,0,0,.07); }
.info__ico { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: rgba(38, 92, 220, .1); color: var(--azul); margin-bottom: 20px; }
.info__ico .ico { width: 28px; height: 28px; }
.info p { color: var(--texto-suave); font-size: .92rem; }
.info h5 { font-size: 1rem; margin: 0; }

.form-wrap { max-width: 820px; }
.form { margin-top: 40px; background: #fff; padding: 44px; border-radius: 6px; box-shadow: var(--sombra); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: block; margin-bottom: 22px; }
.field span { display: block; font-weight: 600; font-size: .88rem; color: var(--titulo); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #dfe3ea; border-radius: var(--raio);
  font: inherit; color: var(--texto); background: #fbfcfd; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(38, 92, 220, .15); background: #fff; }
.field textarea { resize: vertical; }
.field__erro { color: #c62828; font-size: .82rem; }
.hp { position: absolute; left: -9999px; }
.alert { margin-top: 30px; padding: 16px 20px; border-radius: var(--raio); font-weight: 600; }
.alert--ok { background: #e8f5e1; color: #3d6b1f; }
.alert--erro { background: #fdecea; color: #a12622; }

.mapa iframe { width: 100%; height: 420px; border: 0; border-radius: 6px; margin-top: 20px; }

/* Post */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.post__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 25%; border-radius: 6px; margin-bottom: 26px; }
.post h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.post__body { font-size: 1.02rem; }
.post__body h3 { margin-top: 1.6em; font-size: 1.4rem; }
.post__body ul { padding-left: 22px; }
.post__body li { margin-bottom: 6px; }
.sidebar { position: sticky; top: 30px; }
.sidebar h2 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 2px solid var(--borda); }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 30px; }
.sidebar li a { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--borda); color: var(--titulo); }
.sidebar li img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.sidebar li strong { display: block; font-size: .92rem; line-height: 1.35; }
.sidebar li small { color: var(--texto-suave); font-size: .78rem; }
.sidebar li a:hover strong { color: var(--azul); }
.sidebar__cta { background: var(--azul); color: #fff; padding: 30px; border-radius: 6px; }
.sidebar__cta h3 { color: #fff; font-size: 1.15rem; }

.notfound__code { font-size: 7rem; font-weight: 800; color: var(--azul); line-height: 1; margin: 0 0 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.75); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding: 80px 20px 60px; }
.footer__brand img { width: 200px; margin-bottom: 24px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--verde); }
.footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 22px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--verde); color: #fff; }
.social .ico { width: 17px; height: 17px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .82rem; }

/* WhatsApp flutuante */
.whats {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: #22c15e; color: #fff; padding: 10px 18px; border-radius: 30px;
  font-weight: 600; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: transform .2s;
}
.whats:hover { color: #fff; transform: translateY(-3px); }
.whats .ico { width: 20px; height: 20px; }

/* Animação de entrada (ativada via JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .solucoes__grid, .app__grid { grid-template-columns: 1fr; }
  .app__phones { margin: 0 auto; }
  .alem { grid-template-columns: 1fr; }
  .alem__text { padding: 60px 20px; max-width: none; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 860px) {
  .sec { padding: 70px 0; }
  .header__in { min-height: 84px; }
  .logo img { width: 210px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 8px 20px 18px;
    box-shadow: 0 12px 25px rgba(0,0,0,.1);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--borda); }
  .nav a::after { display: none; }
  .hero { min-height: 600px; }
  .hero::before { background: rgba(255,255,255,.75); }
  .hero__in { padding-top: 130px; padding-bottom: 150px; }
  .hero__wave { height: 90px; }
  .acesso__in { justify-content: center; text-align: center; }
  .passos__grid, .admin__grid, .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .topbar { font-size: .74rem; }
  .topbar__links > a:first-child { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card--down { margin-top: 0; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .depo__slider { padding: 0 0 0; }
  .depo__nav { top: auto; bottom: 18px; }
  .whats span { display: none; }
  .whats { padding: 14px; }
}
