/* ============================================================
   REPORT Engenharia — tokens
   ============================================================ */
:root {
  --bg:          #0A1626;
  --bg-panel:    #0F1F35;
  --bg-panel-2:  #132842;
  --line:        #21395A;
  --line-soft:   #182C48;
  --accent:      #F0803C;
  --accent-dim:  #C9672E;
  --text:        #EAF1F8;
  --text-muted:  #93A8C2;
  --text-faint:  #5D7495;

  --font-display: "Oswald", sans-serif;
  --font-body:    "Work Sans", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* subtle blueprint grid, fixed behind everything */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

main, header, footer { position: relative; z-index: 1; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 38, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-mark {
  height: 34px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 700px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #14100b;
}
.btn-primary:hover { background: #ff9457; }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 44px; max-width: 640px; }

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(26px, 3vw, 36px); }

.section-note {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 15px;
}

/* Sobre */
.about-grid { max-width: 780px; }
.about-text { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }
.about-text strong { color: var(--text); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-muted);
}

/* Serviços */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 30px 26px;
  transition: background 0.2s ease;
}
.section-alt .service-card { background: var(--bg-panel); }

.service-card:hover { background: var(--bg-panel-2); }

.service-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 18px;
  border-radius: 2px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

.service-card-highlight { position: relative; }
.service-card-highlight::before {
  content: "NBR 9077 / 14880";
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* Projetos */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}
.project-card:hover { border-color: var(--accent-dim); }

.project-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 16.5px;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.project-cta { margin-top: 36px; }

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-list { list-style: none; margin: 30px 0 0; padding: 0; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  gap: 16px;
  flex-wrap: wrap;
}
.contact-list a:hover { color: var(--accent); }

.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0;
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-mark { height: 22px; opacity: 0.85; }

.footer-inner p {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0;
}

.footer-inner a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-inner a:hover { color: var(--accent); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Focus visibility
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }

  .service-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
}
