/* ROY Engenharia — Design System */
:root {
  --bg: #0b0f14;
  --bg-elev: #111821;
  --surface: #151e29;
  --line: rgba(255,255,255,.08);
  --text: #e7ecf2;
  --muted: #8b97a8;
  --accent: #d4a24a;       /* dourado sóbrio */
  --accent-2: #f0c674;
  --primary: #1f6feb;
  --max: 1240px;
  --radius: 4px;
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.6);
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { line-height: 1.6; overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ========== Topbar ========== */
.topbar {
  background: #060a0f;
  color: var(--muted);
  font-size: .82rem;
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.topbar a:hover { color: var(--accent-2); }
.topbar .info { display: flex; gap: 22px; flex-wrap: wrap; }

/* ========== Header / Nav ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,20,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center;
}
.brand img {
  height: 44px;
  width: auto;
  display: block;
}
.menu { display: flex; gap: 36px; align-items: center; }
.menu a {
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.menu a:hover, .menu a.active { color: var(--text); }
.menu a.active::after,
.menu a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.menu .cta {
  border: 1px solid var(--accent); color: var(--accent);
  padding: 10px 22px; letter-spacing: .2em;
}
.menu .cta:hover { background: var(--accent); color: #0b0f14; }
.menu .cta::after { display: none; }

.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero .slides { position: absolute; inset: 0; }
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s var(--ease);
  transform: scale(1.05);
  animation: kenburns 14s linear infinite;
}
.hero .slide.active { opacity: 1; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,10,15,.92) 0%, rgba(6,10,15,.55) 55%, rgba(6,10,15,.2) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--accent); font-size: .78rem; letter-spacing: .42em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero .tag::before { content: ""; width: 38px; height: 1px; background: var(--accent); }
.hero h1 { max-width: 880px; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero p {
  max-width: 620px; margin-top: 22px; color: #cfd6e0;
  font-size: 1.05rem;
}
.hero .actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: all .3s var(--ease);
}
.btn-primary { background: var(--accent); color: #0b0f14; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(212,162,74,.6); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-arrows { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hero-arrows button {
  pointer-events: auto;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; font-size: 1.2rem; transition: all .25s;
}
.hero-arrows button:hover { background: var(--accent); color: #0b0f14; border-color: var(--accent); }
.hero-arrows .prev { left: 24px; }
.hero-arrows .next { right: 24px; }

.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots span {
  width: 32px; height: 2px; background: rgba(255,255,255,.25); cursor: pointer; transition: background .3s;
}
.hero-dots span.active { background: var(--accent); }

/* ========== Sections ========== */
section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.eyebrow {
  color: var(--accent); font-size: .78rem; letter-spacing: .42em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* Stats */
.stats { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 60px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat .num { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--accent); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; margin-top: 10px; }

/* Services preview / cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--line); padding: 38px 32px;
  position: relative; transition: transform .4s var(--ease), border-color .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--accent);
  transition: width .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(212,162,74,.4); }
.card:hover::before { width: 100%; }
.card .icon {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 22px; font-size: 1.6rem;
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .95rem; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.split .copy p + p { margin-top: 16px; color: var(--muted); }
.split .copy ul { margin-top: 28px; list-style: none; }
.split .copy ul li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; color: #cfd6e0; }
.split .copy ul li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* CTA Strip */
.cta-strip {
  background:
    linear-gradient(rgba(6,10,15,.85), rgba(6,10,15,.85)),
    url('../img/hero2.jpg') center / cover;
  text-align: center; padding: 90px 0;
}
.cta-strip h2 { max-width: 760px; margin: 0 auto 22px; }
.cta-strip p { color: var(--muted); max-width: 600px; margin: 0 auto 32px; }

/* Footer */
footer { background: #060a0f; border-top: 1px solid var(--line); padding: 70px 0 30px; }
footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
footer h4 { font-family: 'Inter', sans-serif; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
footer p, footer a { color: var(--muted); font-size: .9rem; }
footer a:hover { color: var(--accent-2); }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer .copyright { border-top: 1px solid var(--line); padding-top: 24px; text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; }

/* Inner page hero */
.page-hero {
  position: relative; padding: 140px 0 90px;
  background: linear-gradient(rgba(6,10,15,.85), rgba(6,10,15,.95)), url('../img/hero1.jpg') center / cover fixed;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.page-hero .crumb { color: var(--muted); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero .crumb span { color: var(--accent); }

/* Services list */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.contact-info ul { list-style: none; display: flex; flex-direction: column; gap: 28px; margin-top: 30px; }
.contact-info li { display: flex; gap: 20px; align-items: flex-start; }
.contact-info .ic {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--line); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-info b { display: block; color: var(--text); font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 4px; letter-spacing: .05em; }
.contact-info span { color: var(--muted); font-size: .95rem; }

form.contact-form {
  background: var(--surface); border: 1px solid var(--line); padding: 40px;
  display: flex; flex-direction: column; gap: 18px;
}
form.contact-form label { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
form.contact-form input,
form.contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 14px 16px; font-family: inherit; font-size: .95rem; transition: border-color .25s;
}
form.contact-form input:focus,
form.contact-form textarea:focus { outline: none; border-color: var(--accent); }
form.contact-form textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-msg { color: var(--accent); font-size: .9rem; min-height: 1.2em; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 920px) {
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #060a0f; padding: 30px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .menu.open { transform: translateY(0); }
  .menu a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .menu .cta { margin-top: 14px; text-align: center; width: 100%; justify-content: center; }
  .burger { display: block; }
  .topbar .info { display: none; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .service-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}