:root {
  --navy: #0b2447;
  --navy-dark: #071a34;
  --blue: #1861c9;
  --blue-light: #eaf1fb;
  --ink: #1c2530;
  --muted: #5b6675;
  --border: #e3e8ef;
  --bg-alt: #f8f9fa;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe59;
  --radius: 14px;
  --shadow: 0 4px 12px rgba(11, 36, 71, 0.06);
  --shadow-hover: 0 8px 24px rgba(11, 36, 71, 0.12);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }

.btn-outline { border-color: var(--border); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-block { width: 100%; }

.header-cta { padding: 10px 18px; font-size: 0.9rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(24, 97, 201, 0.18), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 90px 0 70px;
}

.hero-inner { max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 12px;
}
.hero .eyebrow { color: #7db3ff; }
.eyebrow.center, h2.center, .section-lead.center { text-align: center; }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #cdd9ec;
  margin: 0 0 32px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.hero .btn-outline:hover { border-color: #fff; }

/* Stats */
.stats { background: var(--blue-light); padding: 28px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--navy);
}
.stat span {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section:nth-child(odd):not(.hero):not(.stats) { background: #fff; }
.section:nth-child(even):not(.hero):not(.stats) { background: var(--bg-alt); }

.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; color: var(--navy); }
.section-lead { color: var(--muted); max-width: 600px; margin: 0 auto 40px; }

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.section-grid-reverse .section-media { order: 2; }

.section-text p { color: var(--muted); }

.media-block {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  box-shadow: var(--shadow);
}
.media-block-alt { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }

figure.section-media {
  margin: 0;
}
figure.section-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
figure.section-media figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Foto histórica da fachada: presença discreta, não protagonista */
#sobre .section-grid {
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
#sobre figure.section-media { max-width: 240px; }
#sobre figure.section-media img { box-shadow: none; }
#sobre figure.section-media figcaption {
  font-size: 0.74rem;
  text-align: left;
  line-height: 1.4;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--whatsapp-dark);
  font-weight: 700;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { margin: 0 0 12px; font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

.card-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Contratos */
.contract-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.contract-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.contract-card h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--navy);
}
.contract-for {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.contract-card > p { color: var(--muted); }
.contract-card .check-list { margin-top: 6px; }
.contract-card .btn { margin-top: auto; align-self: flex-start; }

/* Brands */
.brands-grid {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.brands-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.brands-grid img {
  max-height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.4);
  opacity: 0.9;
  mix-blend-mode: multiply;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.brands-grid li:hover img {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}

/* Contato */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contato-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.contact-list strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 6px;
  font-weight: 700;
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.contact-list a:hover { color: var(--blue); }
.contact-list a.whatsapp-link {
  color: var(--whatsapp);
  font-weight: 600;
}
.contact-list a.whatsapp-link:hover { color: var(--whatsapp-dark); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
}
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }

.contato-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.contato-form label { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contato-form input::placeholder,
.contato-form textarea::placeholder {
  color: var(--muted);
}
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 97, 201, 0.1);
}
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 4px 0 0; }
.form-note a { color: var(--blue); }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b9c6dc;
  padding: 28px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-inner p { margin: 0; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-float::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 80px;
  right: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float::after {
  content: '';
  position: absolute;
  bottom: 76px;
  right: -4px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 0;
  border-top: 6px solid #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .contract-grid,
  .section-grid,
  #sobre .section-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-grid-reverse .section-media { order: 0; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}
