/* =====================================================
   CONSTRUTORA MENEGUELLI — Folha de estilo principal
   Cores: #2f3d7c (primária) | #fd8a23 (destaque) | #ff7d02 (botão)
   ===================================================== */

:root {
  --primary:    #2f3d7c;
  --primary-dk: #243060;
  --accent:     #fd8a23;
  --btn:        #ff7d02;
  --btn-dk:     #e06e00;
  --bg:         #ffffff;
  --bg-soft:    #f5f6fa;
  --text:       #333333;
  --text-muted: #666666;
  --border:     #e0e4f0;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(47,61,124,.10);
  --shadow-lg:  0 8px 40px rgba(47,61,124,.16);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* ── ACESSIBILIDADE / LEITURA (público mais velho) ── */
p, li { font-size: 1.05rem; line-height: 1.8; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

/* ── LOGO ── */
.navbar-logo {
  height: 74px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 74px;
  width: auto;
  display: block;
}
@media (max-width: 576px) {
  .navbar-logo { height: 58px; }
  .footer-logo { height: 58px; }
}

/* ── TOPBAR DE CONTATO ── */
.topbar-contact {
  background: var(--primary-dk);
  color: rgba(255,255,255,.85);
  font-size: .875rem;
}
.topbar-contact a { color: rgba(255,255,255,.85); }
.topbar-contact a:hover { color: var(--accent); }

/* ── NAVBAR ── */
.navbar-main {
  background: var(--primary);
  padding: .75rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.navbar-main .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: 1rem;
  font-weight: 500;
  padding: .5rem .85rem !important;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
.navbar-main .navbar-toggler {
  border-color: rgba(255,255,255,.4);
}
.navbar-main .navbar-toggler-icon {
  filter: invert(1);
}

/* MARCA */
.brand-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  flex-shrink: 0;
}
.brand-icon-sm { width: 36px; height: 36px; font-size: 1.1rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.brand-sub {
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── BOTÕES ── */
.btn-primary-mn {
  background: var(--btn);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .75rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary-mn:hover {
  background: var(--btn-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,125,2,.35);
  color: #fff;
}
.btn-outline-mn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: .7rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-outline-mn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #16a34a;
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  padding: .65rem 1.4rem;
  font-size: .95rem;
  font-weight: 700;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: .45rem;
}
.btn-whatsapp:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,.35);
}
.btn-accent {
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  padding: .65rem 1.4rem;
  font-size: .95rem;
  font-weight: 700;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: .45rem;
}
.btn-accent:hover {
  background: #e07510;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253,138,35,.35);
}

/* ── SEÇÕES GENÉRICAS ── */
.section-title {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-subtitle {
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.section-divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--btn));
  border-radius: 99px;
  margin: .75rem auto 1.5rem;
}
.section-divider.left { margin-left: 0; }

.bg-soft { background: var(--bg-soft); }
.bg-primary-mn { background: var(--primary); }

/* ── HERO ── */
.hero {
  background:
    linear-gradient(100deg, rgba(23,31,66,.88) 0%, rgba(23,31,66,.72) 55%, rgba(23,31,66,.45) 100%),
    url('/assets/img/hero.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,20,50,.55) 0%, transparent 50%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(253,138,35,.2);
  border: 1px solid rgba(253,138,35,.4);
  color: var(--accent);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero h1 { font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 520px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 2rem; font-weight: 900;
  color: var(--accent); line-height: 1;
}
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

/* ── DIFERENCIAIS ── */
.diferencial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  height: 100%;
}
.diferencial-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.diferencial-icon {
  width: 72px; height: 72px;
  background: rgba(47,61,124,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary);
  margin: 0 auto 1.25rem;
  transition: background .2s;
}
.diferencial-card:hover .diferencial-icon {
  background: rgba(253,138,35,.12);
  color: var(--accent);
}
.diferencial-card h3 { color: var(--primary); font-weight: 700; margin-bottom: .5rem; }

/* ── CARDS DE MODELOS ── */
.modelo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  display: flex; flex-direction: column;
}
.modelo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.modelo-card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.modelo-card-img.placeholder {
  font-size: 3rem; color: var(--border);
}
.modelo-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1; display: flex; flex-direction: column;
}
.modelo-badge {
  display: inline-block;
  background: rgba(47,61,124,.08);
  color: var(--primary);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 99px;
  margin-bottom: .5rem;
}
.modelo-card-body h3 { color: var(--primary); font-weight: 800; margin-bottom: .25rem; }
.modelo-metragem {
  font-size: 1.4rem; font-weight: 900;
  color: var(--accent); line-height: 1; margin-bottom: .75rem;
}
.modelo-metragem small { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.modelo-features { display: flex; gap: 1rem; margin-bottom: .85rem; }
.modelo-features span { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; }
.modelo-card-body p { color: var(--text-muted); font-size: .9rem; flex: 1; margin-bottom: 1rem; }

/* ── GALERIA ── */
.galeria-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer;
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.galeria-item:hover img { transform: scale(1.06); }
.galeria-overlay {
  position: absolute; inset: 0;
  background: rgba(47,61,124,.55);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-empty {
  text-align: center; padding: 4rem 1rem;
  color: var(--text-muted);
}
.galeria-empty i { font-size: 3.5rem; color: var(--border); display: block; margin-bottom: 1rem; }

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  font-size: 2rem; color: #fff; cursor: pointer; line-height: 1;
  background: none; border: none; padding: .25rem .5rem;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2rem; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.12); border: none;
  padding: .5rem .9rem; border-radius: 8px;
  transition: background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── FAIXA CTA ── */
.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff; padding: 3.5rem 0;
}
.cta-strip h2 { font-weight: 800; }
.cta-strip p { color: rgba(255,255,255,.8); font-size: 1.1rem; }

/* ── FORMULÁRIO DE CONTATO ── */
.form-mn .form-control, .form-mn .form-select {
  font-size: 1rem;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.form-mn .form-control:focus, .form-mn .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,61,124,.12);
}
.form-mn label { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: .4rem; }
.form-mn textarea { min-height: 130px; resize: vertical; }

/* ── CAIXA INFO CONTATO ── */
.contact-info-box {
  background: var(--primary);
  border-radius: 14px;
  padding: 2rem;
  color: #fff; height: 100%;
}
.contact-info-box h3 { font-weight: 700; margin-bottom: 1.25rem; color: var(--accent); }
.contact-info-item {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: 1.25rem;
}
.contact-info-item i {
  font-size: 1.3rem; color: var(--accent);
  margin-top: .1rem; flex-shrink: 0;
}
.contact-info-item p { margin: 0; color: rgba(255,255,255,.9); line-height: 1.6; }
.contact-info-item a { color: #fff; text-decoration: none; }
.contact-info-item a:hover { color: var(--accent); }

/* ── QUEM SOMOS ── */
.sobre-number {
  font-size: 2.8rem; font-weight: 900;
  color: var(--accent); line-height: 1;
}
.sobre-number-label {
  font-size: .8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}

/* ── RODAPÉ ── */
.site-footer { background: #1a2040; color: rgba(255,255,255,.75); }
.footer-desc { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-title {
  color: #fff; font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-links { margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { margin: 0; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: .75rem; font-size: .9rem; color: rgba(255,255,255,.65);
}
.footer-contact li i { color: var(--accent); font-size: 1rem; margin-top: .15rem; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4); font-size: .8rem;
}
.footer-admin-link { color: rgba(255,255,255,.25); text-decoration: none; }
.footer-admin-link:hover { color: rgba(255,255,255,.55); }
.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.1rem;
  text-decoration: none; transition: background .2s, transform .2s;
}
.footer-social-link:hover { background: rgba(255,255,255,.25); color: #fff; transform: translateY(-2px); }

/* ── WHATSAPP FLUTUANTE ── */
.whatsapp-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
  width: 58px; height: 58px;
  background: #16a34a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff;
  box-shadow: 0 4px 20px rgba(22,163,74,.5);
  text-decoration: none;
  transition: background .2s, transform .2s;
  animation: pulse-wa 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { background: #15803d; transform: scale(1.08); color: #fff; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(22,163,74,.5); }
  50%      { box-shadow: 0 4px 32px rgba(22,163,74,.85); }
}

/* ── reCAPTCHA badge — mover para canto inferior esquerdo ── */
.grecaptcha-badge {
  right: auto !important;
  left: 14px !important;
}

/* ── ADMIN ── */
.admin-sidebar {
  background: var(--primary);
  min-height: 100vh;
  padding: 1.5rem 0;
  position: sticky; top: 0;
}
.admin-brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1rem;
}
.admin-brand .brand-name { font-size: 1rem; }
.admin-nav-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem 1.5rem;
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  transition: background .18s, color .18s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-nav-link i { font-size: 1.1rem; }
.admin-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
  box-shadow: var(--shadow);
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(253,138,35,.04);
}
.upload-zone i { font-size: 3rem; color: var(--border); display: block; margin-bottom: .75rem; }

/* ── PÁGINA DE LOGIN ── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border-radius: 16px;
  padding: 2.5rem 2rem; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* ── UTILITÁRIOS ── */
.text-primary-mn { color: var(--primary) !important; }
.text-accent     { color: var(--accent) !important; }
.bg-primary-mn   { background-color: var(--primary) !important; }

@media (max-width: 768px) {
  .hero { padding: 4rem 0 3.5rem; }
  .hero-stats { gap: 1rem; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 1.25rem; right: 1.25rem; }
}
