/* =========================================================
   VTOR Engenharia — site institucional
   Design system (tema escuro, marca oficial)
   ========================================================= */

:root {
  --gold: #EFC45C;
  --gold-dim: #d9a93f;
  --gold-soft: rgba(239, 196, 92, 0.12);
  --silver: #939598;
  --bg: #0b0b0d;
  --bg-2: #131317;
  --bg-3: #1a1a1f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2f4;
  --muted: #9a9aa2;
  --maxw: 1120px;
  --radius: 14px;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* faixa de canteiro (motivo de marca) */
.stripe {
  height: 5px; width: 100%;
  background: repeating-linear-gradient(45deg, var(--gold) 0 20px, #1a1a1e 20px 40px);
  opacity: 0.9;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--muted); font-size: 0.93rem; font-weight: 600; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__portal { display: inline-flex; align-items: center; gap: 6px; }
.nav__portal svg { width: 14px; height: 14px; }
.nav__cta {
  background: var(--gold); color: #17130a; padding: 9px 16px; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(239,196,92,0.28); }
.nav__cta svg { width: 16px; height: 16px; }
.nav__burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700; transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--gold); color: #17130a; box-shadow: 0 8px 24px rgba(239,196,92,0.22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(239,196,92,0.34); }
.btn--ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(239,196,92,0.5); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--alt { background: var(--bg-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; padding: 96px 0 104px;
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(239,196,92,0.10), transparent 60%),
    radial-gradient(760px 420px at 50% 118%, rgba(239,196,92,0.05), transparent 60%),
    var(--bg);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; margin-bottom: 26px;
  border: 1px solid rgba(239,196,92,0.32); border-radius: 999px; background: var(--gold-soft);
  color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; max-width: 15ch; margin: 0 auto; }
.hero h1 .accent { color: var(--gold); }
.hero__lead { max-width: 60ch; margin: 22px auto 34px; color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin-top: 64px; }
.hero__stat b { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--gold); }
.hero__stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s, border-color .18s;
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); border-color: rgba(239,196,92,0.5); }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card__tag { display: inline-block; margin-bottom: 12px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }

/* pilares G.A.P. */
.pillar { position: relative; }
.pillar__letter { font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; }

/* jornada (4 estágios) */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; counter-reset: step; }
.journey__step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.section--alt .journey__step { background: var(--bg-2); }
.journey__step::before {
  counter-increment: step; content: "0" counter(step);
  color: var(--gold); font-weight: 800; font-size: 1.4rem; display: block; margin-bottom: 10px;
}
.journey__step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.journey__step p { color: var(--muted); font-size: 0.9rem; }

/* portal highlight */
.portal-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  background: linear-gradient(120deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(239,196,92,0.28); border-radius: var(--radius); padding: 26px 30px; margin-top: 34px;
}
.portal-cta div { max-width: 62ch; }
.portal-cta h4 { font-size: 1.15rem; margin-bottom: 4px; }
.portal-cta p { color: var(--muted); font-size: 0.95rem; }

/* obras */
.obra { overflow: hidden; padding: 0; }
.obra__thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #1e1e24, #0f0f13); display: grid; place-items: center; color: #3a3a42; position: relative; }
.obra__thumb svg { width: 46px; height: 46px; opacity: 0.5; }
.obra__badge { position: absolute; top: 12px; left: 12px; background: rgba(11,11,13,0.8); color: var(--gold);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; }
.obra__body { padding: 22px 24px 26px; }
.obra__body h3 { font-size: 1.12rem; margin-bottom: 4px; }
.obra__meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.obra__link { color: var(--gold); font-size: 0.88rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.obra__link svg { width: 14px; height: 14px; }

/* sobre */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__values { display: grid; gap: 14px; margin-top: 24px; }
.about__value { display: flex; gap: 12px; }
.about__value svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.about__value b { display: block; }
.about__value span { color: var(--muted); font-size: 0.92rem; }
.about__photo { aspect-ratio: 4/5; background: linear-gradient(135deg, #1e1e24, #0f0f13); border: 1px solid var(--line);
  border-radius: var(--radius); display: grid; place-items: center; color: #3a3a42; }

/* contato */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.contact__list { display: grid; gap: 14px; margin: 24px 0; }
.contact__item { display: flex; gap: 14px; align-items: center; }
.contact__item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.contact__item b { display: block; font-size: 0.95rem; }
.contact__item span { color: var(--muted); font-size: 0.88rem; }
.contact__client { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact__client h4 { margin-bottom: 6px; }
.contact__client p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 34px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer__logo img { height: 46px; margin-bottom: 12px; }
.footer__logo p { color: var(--muted); font-size: 0.88rem; max-width: 34ch; }
.footer__col h5 { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer__col a { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 8px; transition: color .15s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--muted); font-size: 0.84rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px; transform: translateY(-140%); transition: transform .3s; z-index: 40;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { justify-content: center; margin-top: 10px; }
  .nav__burger { display: flex; }
  .hero__stats { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
