/* ============================================================
   WR Corporate — Estilos
   Cores da marca em :root (abaixo). Para reestilizar, altere aqui.
   ============================================================ */

:root {
  /* Paleta da marca */
  --color-graphite: #1F2933;   /* primary  — header, footer, textos fortes */
  --color-graphite-dark: #141b21;
  --color-steel: #2B4C6F;      /* secondary — obra civil, links, botões 2º */
  --color-steel-dark: #223d59;
  --color-concrete: #AEB4B8;   /* neutral  — bordas, textos secundários */
  --color-accent: #D9782B;     /* accent   — CTAs, telecom/segurança */
  --color-accent-dark: #b8621f;
  --color-white: #ffffff;

  /* Papéis semânticos */
  --color-text: #22272e;
  --color-muted: #667079;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f6;
  --color-border: #e3e6e8;
  --color-whatsapp: #25d366;

  --maxw: 1140px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
  --transition: 0.25s ease;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* --------------------------- Base --------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-steel); text-decoration: none; }

h1, h2, h3 { line-height: 1.15; color: var(--color-graphite); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

/* --------------------------- Botões --------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 120, 43, 0.3);
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; margin-top: 0.5rem; }

/* --------------------------- Logo --------------------------- */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--color-graphite);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
/* barra âmbar na base do monograma (conceito da marca) */
.logo-mark::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 6px;
  height: 3px; border-radius: 2px;
  background: var(--color-accent);
}
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--color-graphite); letter-spacing: -0.02em; }
.logo-text span { color: var(--color-accent-dark); }

/* --------------------------- Cabeçalho --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-weight: 500;
  color: var(--color-text);
  padding: 0.25rem 0;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav-list a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--color-graphite);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --------------------------- Hero --------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  /* EDITAR: imagem de fundo do hero. Troque a URL por url("img/hero.jpg") */
  background:
    linear-gradient(120deg, rgba(20,27,33,0.88), rgba(31,41,51,0.6)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
}
.hero-content { max-width: 740px; padding: 5rem 1.25rem; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 600px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* --------------------------- Seções --------------------------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 660px; margin: 0 auto 3rem; text-align: center; }
.section-lead { color: var(--color-muted); font-size: 1.1rem; }

/* Frentes de atuação (pilares) */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pillar {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar > p { color: var(--color-muted); }
.pillar-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.pillar-icon svg { width: 28px; height: 28px; }
/* obra civil → aço; telecom/segurança → âmbar (conforme identidade) */
.pillar-icon--civil { background: rgba(43, 76, 111, 0.12); color: var(--color-steel); }
.pillar-icon--telecom,
.pillar-icon--seg { background: rgba(217, 120, 43, 0.12); color: var(--color-accent-dark); }

.pillar-items {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pillar-items li {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--color-steel-dark);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Clientes / prova social */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.client-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client-icon {
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(31, 41, 51, 0.06);
  color: var(--color-graphite);
}
.client-icon svg { width: 26px; height: 26px; }
.client-card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* Sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.media-tall {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.75rem;
}
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-steel);
  line-height: 1;
}
.stat span { color: var(--color-muted); font-size: 0.9rem; }

/* Contato */
.contato-single {
  max-width: 560px;
  text-align: center;
}
.contato-single .contact-list { text-align: left; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}
.contact-list a { font-weight: 600; color: var(--color-accent-dark); }
.contact-list a:hover { text-decoration: underline; }

/* --------------------------- Rodapé --------------------------- */
.site-footer { background: var(--color-graphite); color: #cdd3d8; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding: 3rem 1.25rem 2rem;
}
.logo-footer .logo-text { color: #fff; }
.footer-tagline { color: var(--color-concrete); margin: 0.75rem 0 0; max-width: 340px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 0; }
.footer-links a { color: #cdd3d8; font-weight: 500; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-concrete);
}
.footer-bottom p { margin: 0; }

/* --------------------------- WhatsApp flutuante --------------------------- */
.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* --------------------------- Animação de entrada --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------- Responsivo --------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: 0.9rem 0; }

  .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .hero { min-height: 80vh; }
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .pillar:hover, .client-card:hover, .whatsapp-float:hover { transform: none; }
}
