:root {
  --navy: #0f2a3a;
  --navy-light: #16384c;
  --blue: #2f7fb0;
  --blue-light: #5fa8d3;
  --cream: #f7f5f1;
  --white: #ffffff;
  --text: #223140;
  --muted: #5b6b78;
  --shadow: 0 20px 45px -20px rgba(15, 42, 58, 0.25);
  --shadow-sm: 0 10px 25px -12px rgba(15, 42, 58, 0.2);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 90%; max-width: 1200px; margin: auto; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15, 42, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.navbar-brand {
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .5px;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  color: #d7e4ec;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  transition: color .2s ease;
}

.navbar-links a:hover { color: var(--white); }

.navbar-actions .btn.small {
  margin-top: 0;
  padding: 10px 22px;
  font-size: .88rem;
}

.btn.outline-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn.outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
}

.navbar-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 5% 20px;
  background: rgba(15, 42, 58, 0.98);
}

.navbar-mobile a {
  color: #d7e4ec;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-mobile .btn {
  margin-top: 12px;
  text-align: center;
}

.navbar-mobile.aberto { display: flex; }

@media (max-width: 860px) {
  .navbar-links, .navbar-actions { display: none; }
  .navbar-toggle { display: flex; }
}

/* HERO */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 42, 58, 0.72), rgba(15, 42, 58, 0.5) 55%, rgba(15, 42, 58, 0.8)),
    url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?q=80&w=1200');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 120px 20px 110px;
}

.empresa {
  display: inline-block;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ffffff 0%, #d8ecf7 40%, #7fc4e8 75%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  line-height: 1.15;
}

.empresa::after {
  content: '';
  display: block;
  width: 110px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue-light), var(--white), var(--blue-light), transparent);
}

.subtitulo {
  margin: 18px auto 22px;
  max-width: 640px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: #e7f0f6;
}

.hero p {
  max-width: 520px;
  margin: 0 auto;
  color: #d7e4ec;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 15px 30px -10px rgba(47, 127, 176, 0.6);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -10px rgba(47, 127, 176, 0.75);
}

.btn.white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.25);
}

.btn.outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hidden { display: none !important; }

/* PORTAL DO CLIENTE */
.portal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 58, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.portal-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.portal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.portal-close:hover { background: #e6e1d8; }

#portalBusca h3, #portalResultado h3 {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 4px 0 12px;
}

.portal-texto {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 22px;
}

.portal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 42, 58, 0.15);
  font-family: inherit;
  font-size: .95rem;
}

.portal-form input:focus {
  outline: none;
  border-color: var(--blue);
}

.portal-form .btn {
  margin-top: 0;
  padding: 14px 28px;
}

.portal-erro {
  color: #c0392b;
  font-size: .88rem;
  margin-top: 12px;
}

.portal-codigo {
  display: inline-block;
  background: rgba(47, 127, 176, 0.1);
  color: var(--blue);
  font-weight: 600;
  font-size: .85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.portal-voltar {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

.portal-imovel {
  border-top: 1px solid rgba(15, 42, 58, 0.08);
  padding-top: 20px;
  margin-top: 20px;
}

.portal-imovel h4 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.muted-light {
  color: var(--muted);
  font-size: .88rem;
}

.portal-secao {
  margin-top: 14px;
}

.portal-secao strong {
  display: block;
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: 8px;
}

.portal-secao ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-historico-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .92rem;
  color: var(--text);
}

.portal-badge {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
}

.portal-badge.feito { background: #16a34a; }
.portal-badge.pendente { background: #d97706; }

.portal-fotos-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 127, 176, 0.35);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.portal-fotos-link:hover {
  background: rgba(47, 127, 176, 0.08);
  border-color: var(--blue);
}

/* GALERIA */
.galeria { padding: 90px 20px; background: var(--white); }

.galeria h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
}

.carousel-container { position: relative; max-width: 1200px; margin: auto; }

.carousel {
  display: flex;
  overflow: hidden;
  gap: 24px;
  scroll-behavior: smooth;
}

.carousel img {
  min-width: 360px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease;
}

.carousel img:hover { transform: scale(1.02); }

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}

.nav:hover { background: var(--blue); color: var(--white); transform: translateY(-50%) scale(1.06); }

.prev { left: -14px; }
.next { right: -14px; }

/* PLANOS */
.section { padding: 90px 20px; }

.section h2 {
  text-align: center;
  margin: 0 auto 16px;
  max-width: 640px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
}

.eyebrow {
  display: block;
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 50px;
  color: var(--muted);
  font-size: 1rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.plan-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 42, 58, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border: 1px solid rgba(47, 127, 176, 0.35);
  box-shadow: 0 25px 50px -22px rgba(47, 127, 176, 0.45);
}

.plan-card.featured::before {
  height: 6px;
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(47, 127, 176, 0.55);
}

.plan-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.plan-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-price {
  display: inline-block;
  align-self: flex-start;
  background: rgba(47, 127, 176, 0.1);
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.plan-price strong { font-size: .95rem; }

.plan-desc {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 22px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--text);
}

.plan-list li span {
  flex-shrink: 0;
}

/* QUEM SOMOS */
.quemsomos { background: var(--cream); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  padding: 30px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 42, 58, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-icon { font-size: 1.9rem; margin-bottom: 12px; }

.value-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--muted);
  font-size: .92rem;
}

/* FAQ */
.faq { background: var(--white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--cream);
  border: 1px solid rgba(15, 42, 58, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 127, 176, 0.12);
  color: var(--blue);
  font-size: 1.1rem;
  transition: transform .25s ease;
}

.faq-item.aberto .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.aberto .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: .92rem;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 100px 20px;
}

.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 10px; }
.cta p { color: #cfe0ea; margin-bottom: 6px; }

/* FOOTER */
.footer {
  text-align: center;
  background: #0b1f2b;
  color: #9fb4c1;
  padding: 26px 20px;
  font-size: .9rem;
  letter-spacing: .3px;
}

@media (max-width: 768px) {
  .hero { padding: 90px 20px 70px; }
  .carousel img { min-width: 280px; height: 220px; }
  .prev { left: 4px; }
  .next { right: 4px; }
  .plans { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
