/* =========================================================
   Amaral Rios Engenharia — estilos
   Cores tiradas da logo: azul-marinho, azul royal e vermelho
   ========================================================= */
:root {
  --navy-900: #081227;
  --navy-800: #0b1730;
  --navy-700: #12234a;
  --navy-600: #1a3163;
  --royal: #1f4fbf;
  --royal-light: #3d6fe0;
  --red: #c62828;
  --red-dark: #a51f1f;
  --bg: #ffffff;
  --bg-soft: #f2f4f8;
  --line: #dfe4ee;
  --text: #18213a;
  --muted: #5a6479;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 23, 48, .10);
  --shadow-lg: 0 20px 50px rgba(11, 23, 48, .22);
  --header-h: 76px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-800); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.4em;
  border-radius: 6px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600; font-size: .92rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .9em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(198, 40, 40, .35); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--navy-800); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .8em;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ff8a80; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(11,23,48,.08); border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--navy-700);
  position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav__cta { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: var(--white);
  padding: clamp(80px, 12vw, 150px) 0 0;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,18,39,.96) 0%, rgba(11,23,48,.86) 45%, rgba(18,35,74,.45) 100%),
    linear-gradient(0deg, rgba(8,18,39,1) 0%, rgba(8,18,39,0) 35%);
}
.hero__content { max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { color: #9fbaff; display: block; font-weight: 700; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #d4dcee; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.stats {
  list-style: none; padding: 0; margin: clamp(60px, 9vw, 110px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}
.stats li { padding: 28px 20px 34px; border-left: 1px solid rgba(255,255,255,.14); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--white); line-height: 1.1; }
.stats strong b { font-weight: inherit; }
.stats span { display: block; margin-top: 6px; font-size: .88rem; color: #aab6cf; line-height: 1.4; }

/* ---------- Seções ---------- */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section--light { background: var(--bg-soft); }
.section--dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #d4dcee; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section__head p:last-child { color: var(--muted); }
.section__head .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.section__head--light h2 { color: var(--white); }
.section__head--light p:last-child { color: #aab6cf; }

/* ---------- Quem somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media > img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; right: -18px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--red);
}
.about__badge img { width: 44px; height: auto; }
.about__badge strong { display: block; font-family: var(--font-head); color: var(--navy-800); font-size: .98rem; }
.about__badge span { font-size: .82rem; color: var(--muted); }
.about__text > p { color: #3b4560; }

.rt {
  margin-top: 28px; padding: 26px 28px;
  background: var(--navy-800); color: #d4dcee;
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.rt::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border: 22px solid rgba(61,111,224,.18); transform: rotate(30deg);
}
.rt__tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff8a80; }
.rt h3 { color: var(--white); font-size: 1.25rem; margin: 6px 0 2px; }
.rt__head p { color: #9fbaff; font-size: .9rem; margin: 0 0 14px; }
.rt__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .93rem; position: relative; z-index: 1; }
.rt__list li { padding-left: 22px; position: relative; }
.rt__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
  border-radius: 0 0 var(--radius) var(--radius);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 58px; height: 58px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy-700), var(--royal));
}
.card__icon svg, .feature__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }

.areas {
  margin-top: 48px; padding: 26px 30px;
  border: 1px dashed #c6cfe0; border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
}
.areas h3 { margin: 0; font-size: 1rem; }
.areas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { background: var(--bg-soft); color: var(--navy-700); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 500; }

/* ---------- Projetos ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--navy-700); min-height: 340px;
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
}
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,18,39,.96) 8%, rgba(8,18,39,.35) 55%, rgba(8,18,39,.05) 100%);
}
.project:hover img { transform: scale(1.06); }
.project__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; }
.project__tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--red); padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
}
.project h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.project p { margin: 0; color: #c3cde2; font-size: .9rem; }

.clients { margin-top: 56px; text-align: center; }
.clients p { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8392b2; margin-bottom: 16px; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.clients li { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #e6ecf8; opacity: .8; }

/* ---------- Diferenciais ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 10px 12px; }
.feature__icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.feature__icon svg { stroke: var(--royal); width: 34px; height: 34px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Contato ---------- */
.contact-section {
  background:
    linear-gradient(110deg, rgba(8,18,39,.97) 0%, rgba(11,23,48,.92) 50%, rgba(18,35,74,.85) 100%),
    url("https://images.unsplash.com/photo-1785227988608-b47fb703256f?w=1600&q=60&auto=format&fit=crop") center / cover;
  color: #d4dcee;
}
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__info h2 { color: var(--white); }
.contact__info > p { color: #aab6cf; max-width: 460px; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list svg {
  flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  fill: none; stroke: #9fbaff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact__list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8392b2; }
.contact__list a, .contact__list p { color: var(--white); font-weight: 500; text-decoration: none; margin: 0; word-break: break-word; }
.contact__list a:hover { color: #9fbaff; }

.form {
  background: var(--white); color: var(--text);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--red);
}
.form h3 { font-size: 1.25rem; margin-bottom: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-700); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 400; font-size: .95rem; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--royal); background: var(--white); box-shadow: 0 0 0 3px rgba(31,79,191,.15);
}
.form .is-invalid { border-color: var(--red); }
.form__error { color: var(--red); font-size: .88rem; font-weight: 500; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-900); color: #8f9bb8; font-size: .9rem; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 56px; height: auto; }
.footer__brand strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--white); letter-spacing: .02em; line-height: 1.1; }
.footer__brand span { font-family: var(--font-head); font-size: .74rem; letter-spacing: .38em; color: #9fbaff; }
.footer__col p { margin: 0 0 .5em; }
.footer a { color: #c3cde2; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0 28px; font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 34px; height: 34px; }
.whats-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .whats-float::before { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .services, .projects { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .nav { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 42px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 20px;
    box-shadow: 0 16px 30px rgba(11,23,48,.12);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin: 16px 0 0; }

  .about, .contact { grid-template-columns: 1fr; }
  .about__media > img { aspect-ratio: 16 / 10; }
  .about__badge { right: 12px; bottom: -22px; }
  .about__text { margin-top: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services, .projects, .features { grid-template-columns: 1fr; }
  .project { min-height: 300px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats li { padding: 22px 12px 24px; }
  .areas { padding: 22px 20px; }
  .whats-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
