/* =========================================================
   Tecnoserv Engenharia — Static Site
   ========================================================= */

:root {
  --bg: #0A0E1A;
  --bg-2: #0F1426;
  --bg-3: #141B33;
  --text: #FFFFFF;
  --text-muted: #C9CFDB;
  --text-soft: #8A92A6;
  --accent: #F5A623;
  --accent-2: #8E2DE2;
  --grad: linear-gradient(90deg, #F5A623 0%, #FF6B35 45%, #8E2DE2 100%);
  --grad-soft: linear-gradient(135deg, rgba(245,166,35,.18), rgba(142,45,226,.18));
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; letter-spacing: .08em; }

p { color: var(--text-muted); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 640px;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 14, 26, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  background: rgba(10, 14, 26, .92);
  border-color: var(--border-strong);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 44px; width: auto; }

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}

.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.active {
  color: var(--text);
  background: var(--grad-soft);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Pages (pseudo-SPA) ===== */

.page {
  display: none;
  padding-top: var(--header-h);
  animation: none;
  min-height: 100vh;
}

.page.active {
  display: block;
  animation: pageIn .5s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  will-change: transform;
  filter: brightness(.55) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 20% 40%, rgba(142,45,226,.28), transparent 60%),
    radial-gradient(60% 50% at 80% 70%, rgba(245,166,35,.22), transparent 60%),
    linear-gradient(180deg, rgba(10,14,26,.65) 0%, rgba(10,14,26,.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}

.hero-content h1 { margin: 8px 0 20px; max-width: 920px; }
.hero-content .lead { margin-bottom: 36px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(245,166,35,.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(245,166,35,.7);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--accent);
  color: var(--text);
}

/* ===== Blocks ===== */

.block { padding: 90px 0; }
.block-dark { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.block-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.block-header h2 { margin: 10px 0 16px; }

.page-hero {
  padding: 120px 0 50px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(142,45,226,.18), transparent 70%),
    var(--bg);
}

.page-hero h1 { margin: 6px 0 18px; }
.page-hero .lead { margin: 0 auto; }

/* ===== Cards ===== */

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,166,35,.5);
  background: linear-gradient(180deg, rgba(245,166,35,.06), rgba(142,45,226,.05));
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }

/* ===== Steps ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--grad);
}

.step-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.step h3 { margin-bottom: 8px; }

/* ===== Service rows ===== */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-row.reverse .service-media { order: 2; }

.service-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.service-text h2 { margin: 10px 0 22px; }

.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .98rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(245,166,35,.12);
}

/* ===== Clients ===== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.client-logo {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--border);
}

.client-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -16px rgba(245,166,35,.4);
}

.client-logo img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
}

/* ===== Contact ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-info { display: grid; gap: 22px; }

.info-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color .25s ease;
}
.info-item:hover { border-color: var(--accent); }

.info-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.info-item a, .info-item span { font-size: 1.05rem; color: var(--text); }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
}

.contact-form label { display: grid; gap: 8px; }

.contact-form span {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .98rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.2);
}

.contact-form button { margin-top: 6px; justify-self: start; }

.form-note { font-size: .82rem; color: var(--text-soft); }

/* ===== Footer ===== */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo { height: 50px; width: auto; margin-bottom: 14px; }

.site-footer h4 {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .85rem;
  letter-spacing: .18em;
}

.site-footer p { font-size: .92rem; margin-bottom: 6px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  text-align: center;
}

/* ===== WhatsApp floating ===== */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.55);
  z-index: 90;
  transition: transform .2s ease;
}

.wa-float:hover { transform: scale(1.08); color: #fff; }

.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== Reveal on scroll ===== */

.reveal, .reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible, .reveal-group.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group.visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: .24s; }

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 36px; }
  .service-row.reverse .service-media { order: 0; }
  .service-media img { height: 320px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 18px; border-radius: 10px; }

  .block { padding: 60px 0; }
  .page-hero { padding: 100px 0 30px; }
  .cards-4, .steps, .clients-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 24px; }
  .contact-form { padding: 24px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
