/* =========================================================
   MATREX INSTALAÇÕES — cores da marca
   Para ajustar a identidade, mude só estas variáveis.
   ========================================================= */
:root {
  --red: #c4161c;
  --red-dark: #9e1015;
  --graphite: #3a3a3a;
  --graphite-dark: #242424;
  --cream: #f2f0ea;
  --cream-2: #e9e6dd;
  --white: #ffffff;
  --text: #2b2b2b;
  --muted: #666;

  --font: "Inter", system-ui, sans-serif;
  --font-title: "Roboto Condensed", "Arial Narrow", sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0 0 .5em; color: var(--graphite-dark); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px; border: 2px solid transparent;
  font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: .2s;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--dark { background: var(--graphite); color: var(--white); }
.btn--dark:hover { background: var(--graphite-dark); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 18px 32px; font-size: 1.2rem; width: 100%; text-align: center; }

.tag {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 12px;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 100;
  background: rgba(242, 240, 234, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: .2s;
}
.header.is-scrolled { border-color: var(--cream-2); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__icon { width: 46px; height: 46px; object-fit: contain; }
.logo__text {
  font-family: var(--font-title); font-weight: 900; font-size: 1.7rem; line-height: .9;
  color: var(--graphite); display: flex; flex-direction: column;
}
.logo__text span { color: var(--red); font-weight: 800; font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--graphite); }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--graphite); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 80px; display: flex; align-items: center;
}
/* Padrão de pontos (halftone) igual à arte da marca */
.hero__dots { position: absolute; pointer-events: none; }
.hero__dots--red {
  top: -10%; right: -8%; width: 65%; height: 75%;
  background: radial-gradient(circle, var(--red) 42%, transparent 44%) 0 0 / 26px 26px;
  -webkit-mask: radial-gradient(ellipse at top right, #000 10%, transparent 68%);
          mask: radial-gradient(ellipse at top right, #000 10%, transparent 68%);
}
.hero__dots--gray {
  bottom: -18%; left: -10%; width: 48%; height: 52%; opacity: .85;
  background: radial-gradient(circle, var(--graphite) 42%, transparent 44%) 0 0 / 24px 24px;
  -webkit-mask: radial-gradient(ellipse at bottom left, #000 5%, transparent 62%);
          mask: radial-gradient(ellipse at bottom left, #000 5%, transparent 62%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); text-transform: uppercase; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__content p { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__actions { margin-top: 28px; }
.hero__card {
  background: var(--white); border-radius: 14px; padding: 40px 36px; text-align: center;
  box-shadow: var(--shadow);
}
.hero__card h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 900; }
.hero__card p { font-size: 1.3rem; color: var(--graphite); }
.hero__contacts { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; font-size: .95rem; }
.hero__contacts a { text-decoration: none; color: var(--graphite); }
.hero__contacts a:hover { color: var(--red); }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section--light { background: var(--white); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cards de diferenciais */
.card { padding: 36px 30px; border-radius: var(--radius); background: var(--cream); border-top: 4px solid var(--red); }
.card__icon, .service__icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red); margin-bottom: 20px;
}
.card__icon svg, .service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Serviços */
.service {
  background: var(--white); padding: 34px 30px; border-radius: var(--radius);
  border: 1px solid var(--cream-2); transition: .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service .service__icon { background: var(--graphite); transition: .25s; }
.service:hover .service__icon { background: var(--red); }
.service p { color: var(--muted); margin: 0; }

/* Números */
.stats { background: var(--graphite-dark); color: var(--white); padding: 64px 0; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-title); font-size: 3rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat span { color: #ccc; font-weight: 500; }

/* Cases */
.case { border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.case__img { aspect-ratio: 16/9; background: var(--graphite) center / cover; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 28px; }
.case__client { font-size: .85rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.case__metrics { display: flex; gap: 24px; list-style: none; padding: 0; margin: 16px 0 0; }
.case__metrics strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--graphite-dark); }

/* Clientes */
.clients__track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.client {
  height: 90px; display: grid; place-items: center; background: var(--white);
  border-radius: var(--radius); color: #aaa; font-weight: 600; filter: grayscale(1); transition: .2s;
}
.client:hover { filter: none; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__text p { color: var(--muted); }
.about__img { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--cream) url("../assets/img/logo-completo.png?v=2") center / auto 60% no-repeat; }

/* Contato */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact__info a { color: var(--red); text-decoration: none; font-weight: 600; }
.form { background: var(--white); padding: 36px; border-radius: 14px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--graphite); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d6d3ca; border-radius: 8px; background: var(--cream);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); border-color: transparent; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .7; cursor: wait; transform: none; }
.form__status { margin: 0; padding: 14px 16px; border-radius: 8px; font-weight: 500; }
.form__status--ok { background: #e7f6ec; color: #1d6b38; }
.form__status--erro { background: #fdecec; color: var(--red-dark); }
.form__status a { color: inherit; font-weight: 700; }

/* Footer */
.footer { background: var(--graphite-dark); color: #bbb; padding: 56px 0 24px; }
.footer .logo__text { color: var(--white); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid #3d3d3d; }
.footer__inner p { margin-top: 12px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.footer__copy { padding-top: 20px; font-size: .85rem; text-align: center; }

/* WhatsApp flutuante */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: .2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 32px; height: 32px; fill: var(--white); }

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

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .clients__track { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: 12px 16px 24px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
    transform: translateY(-120%); transition: .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--cream-2); }
  .nav .btn { margin-top: 16px; width: 100%; text-align: center; }
  .grid--2, .grid--3, .form__row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero__dots { opacity: .35; }
  .hero__card { padding: 32px 22px; }
  .form { padding: 24px; }
}

/* Página 404 */
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 32px 16px; }
.notfound p { color: var(--muted); }
