/* Construtora CMCM — tema verde escuro */
:root {
  --azul:        #0D351B;
  --azul-medio:  #1a5c2e;
  --azul-claro:  #2d8a45;
  --acento:      #76B82A;
  --branco:      #ffffff;
  --cinza-bg:    #eef4ef;
  --cinza-texto: #3a4f3e;
  --sombra:      0 4px 24px rgba(13,53,27,0.10);
}

/* ======== RESET & BASE ======== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--azul);
  background: var(--branco);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======== BOTÕES ======== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--acento);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(118,184,42,0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(118,184,42,0.40); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--branco);
  color: var(--branco);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--branco); color: var(--azul); }

.btn-full { width: 100%; justify-content: center; }

/* ======== LABELS ======== */
.label {
  display: inline-block;
  background: rgba(118,184,42,0.12);
  color: var(--azul-medio);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ======== SECTION HEADER ======== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--azul);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--cinza-texto);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}
.section-header.light h2 { color: var(--branco); }
.section-header.light .label { background: rgba(255,255,255,.15); color: var(--acento); }
.section-header.light p { color: rgba(255,255,255,.75); }

/* ======== NAVBAR ======== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
#navbar.scrolled {
  background: var(--azul);
  box-shadow: 0 2px 16px rgba(13,53,27,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-footer { height: 64px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--branco);
  font-weight: 500;
  font-size: .95rem;
  opacity: .85;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.btn-nav {
  background: var(--acento);
  color: var(--azul) !important;
  font-weight: 700 !important;
  padding: 8px 22px;
  border-radius: 50px;
  opacity: 1 !important;
  transition: transform .2s !important;
}
.btn-nav:hover { transform: translateY(-2px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--branco); border-radius: 2px; transition: .3s; }

/* ======== HERO ======== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* ✏️ EDITAR: Imagem de fundo — substitua "hero.jpg" por uma foto real */
  background: url('../assets/img/hero.jpg') center/cover no-repeat, linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
  background-blend-mode: multiply;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,53,27,.88) 40%, rgba(118,184,42,.22) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--branco);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--acento); }
.hero-content p {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform: translateX(-50%) translateY(0)} 50%{transform: translateX(-50%) translateY(8px)} }

/* ======== SERVIÇOS ======== */
#servicos {
  padding: 100px 0;
  background: var(--cinza-bg);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--branco);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--sombra);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid transparent;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(13,53,27,.14);
  border-top-color: var(--azul-claro);
}
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-claro));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--branco);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--azul); }
.card p { color: var(--cinza-texto); font-size: .95rem; line-height: 1.65; }

/* ======== SOBRE ======== */
#sobre {
  padding: 100px 0;
  background: var(--branco);
}
.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.sobre-img { position: relative; border-radius: 20px; overflow: hidden; min-height: 380px; background: var(--cinza-bg); }
.sobre-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.sobre-img-placeholder {
  position: absolute; inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  padding: 32px;
  background: var(--cinza-bg);
}
.sobre-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.sobre-texto h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 900; margin-bottom: 16px; }
.sobre-texto p { color: var(--cinza-texto); margin-bottom: 24px; font-size: 1rem; }
.diferenciais { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.diferenciais li { display: flex; align-items: center; gap: 10px; color: var(--cinza-texto); font-size: .97rem; }
.diferenciais li i { color: var(--azul-claro); font-size: 1.1rem; flex-shrink: 0; }

/* ======== CARROSSEL DE OBRAS ======== */
#obras {
  padding: 100px 0;
  background: var(--cinza-bg);
}
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--sombra);
  background: var(--branco);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.carousel-viewport.is-dragging {
  cursor: grabbing;
}
.carousel-track {
  display: flex;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.carousel-slide-inner {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8f0ea 0%, #f5f8f6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}
.carousel-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.carousel-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(13,53,27,.88));
  color: var(--branco);
  text-align: left;
  z-index: 1;
}
.carousel-slide-caption h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.carousel-slide-caption p {
  font-size: .9rem;
  opacity: .85;
}
.carousel-slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: var(--azul-medio);
}
.carousel-slide-placeholder i {
  font-size: 3rem;
  opacity: .3;
}
.carousel-slide-placeholder h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--azul);
}
.carousel-slide-placeholder p {
  font-size: .9rem;
  color: var(--cinza-texto);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  background: rgba(13,53,27,.2);
  pointer-events: none;
  transition: background .2s, transform .2s;
}
.carousel-dot.active {
  background: var(--acento);
  transform: scale(1.15);
}

/* ======== NÚMEROS ======== */
#numeros {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
}
.numeros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}
.numero-item .num {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--acento);
  line-height: 1;
}
.num-suffix { font-size: 2rem; font-weight: 900; color: var(--acento); }
.numero-item p { color: rgba(255,255,255,.75); font-size: .95rem; margin-top: 8px; }

/* ======== MERCADO LIVRE ======== */
#mercado-livre {
  padding: 100px 0;
  background: var(--cinza-bg);
}
.mle-inner { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.mle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
}
.mle-card {
  background: var(--branco);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: transform .2s;
}
.mle-card:hover { transform: translateY(-4px); }
.mle-card i { font-size: 2.2rem; color: var(--azul-medio); margin-bottom: 14px; }
.mle-card h4 { font-size: 1rem; font-weight: 700; color: var(--azul); margin-bottom: 8px; }
.mle-card p { color: var(--cinza-texto); font-size: .9rem; }
.mle-cta { text-align: center; }
.mle-cta p { font-size: 1.1rem; color: var(--cinza-texto); margin-bottom: 20px; font-weight: 500; }

/* ======== CONTATO ======== */
#contato {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
}
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contato-form {
  background: var(--branco);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--azul); text-transform: uppercase; letter-spacing: .04em; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #dde3f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .97rem;
  font-family: 'Inter', sans-serif;
  color: var(--azul);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--azul-claro); }
.form-group textarea { resize: vertical; }

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 12px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--branco);
}
.info-item i { font-size: 1.5rem; color: var(--acento); margin-top: 2px; flex-shrink: 0; }
.info-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: 3px; }
.info-item a, .info-item span { font-size: 1.05rem; font-weight: 600; color: var(--branco); }

.social-links { display: flex; gap: 14px; margin-top: 8px; }
.social-links a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--branco);
  font-size: 1.1rem;
  transition: background .2s, border-color .2s;
}
.social-links a:hover { background: var(--acento); border-color: var(--acento); color: var(--azul); }

/* ======== FOOTER ======== */
footer {
  background: #071a0e;
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 32px 0;
  font-size: .88rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }
footer .logo { margin-bottom: 4px; }
.footer-sub { font-size: .8rem; opacity: .5; }

/* ======== BOTÃO FLUTUANTE WHATSAPP ======== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 58px; height: 58px;
  background: var(--acento);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--branco);
  box-shadow: 0 4px 20px rgba(118,184,42,0.5);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(118,184,42,0.6); }

/* ======== MOBILE NAV ======== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--azul);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }

  .sobre-inner { grid-template-columns: 1fr; gap: 36px; }
  .sobre-img { min-height: 250px; }

  .contato-inner { grid-template-columns: 1fr; gap: 36px; }
  .contato-form { padding: 28px 20px; }

  .hero-btns { flex-direction: column; }
  .btn-secondary { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .numeros-grid { grid-template-columns: 1fr 1fr; }
}
