/* ============================================
   EVVO ENGENHARIA — design tokens (fiel ao Lovable)
   ============================================ */

:root{
  --background: oklch(13% .005 260);
  --foreground: oklch(97% 0 0);
  --card: oklch(17% .006 260);
  --secondary: oklch(22% .006 260);
  --muted-foreground: oklch(72% .01 260);
  --primary: oklch(82% .16 82);
  --primary-foreground: oklch(15% .005 260);
  --border: oklch(100% 0 0 / .08);
  --radius: .375rem;

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1280px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}
h2{font-size:clamp(2.25rem,4vw,3rem);}
h3{font-size:1.25rem;}
p{ margin: 0; color: var(--muted-foreground); }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width:100%; display:block; }

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

.section{ padding: 96px 0; border-bottom: 1px solid var(--border); }

/* ---------- eyebrow ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-dash::before{
  content:''; width:32px; height:2px; background: var(--primary); display:inline-block;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: opacity .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg{ width:16px; height:16px; flex-shrink:0; }
.btn-accent{ background: var(--primary); color: var(--primary-foreground); }
.btn-accent:hover{ opacity:.9; }
.btn-outline{ background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-outline:hover{ background: var(--secondary); }
.btn-full{ width:100%; }
.btn-nav{ display:none; }
@media (min-width: 768px){ .btn-nav{ display:inline-flex; } }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; left:0; right:0; z-index: 100;
  background: oklch(13% .005 260 / .8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
  gap: 20px;
}
.brand img{ height: 36px; width:auto; }

.main-nav{ display:none; gap: 32px; }
.main-nav a{ color: var(--foreground); opacity:.8; font-size:.95rem; font-weight:500; transition: opacity .15s; }
.main-nav a:hover{ opacity:1; }
@media (min-width: 768px){ .main-nav{ display:flex; } }

.nav-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width: 36px; height: 36px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; height:2px; background: var(--foreground); border-radius:2px; }
@media (min-width: 768px){ .nav-toggle{ display:none; } }

.main-nav.open{
  display:flex; position:absolute; top:72px; left:0; right:0;
  flex-direction:column; background: var(--background); padding: 20px 24px; gap:16px;
  border-bottom: 1px solid var(--border);
}

/* ---------- hero ---------- */
.hero{ position: relative; overflow:hidden; isolation:isolate; }
.hero-bg{ position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; opacity:.4; }
.hero-overlay{ position:absolute; inset:0; z-index:-1; background: linear-gradient(90deg, var(--background) 0%, oklch(13% .005 260 / .85) 60%, transparent 100%); }
.hero-inner{ max-width: 48rem; padding: 112px 0 160px; }
.hero h1{
  margin-top: 24px;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: .95;
}
.hero h1 .accent{ color: var(--primary); }
.hero-lede{ margin-top:24px; max-width:36rem; font-size:1.125rem; color: var(--muted-foreground); }
.hero-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top: 32px; }
.hero-checks{ margin-top: 40px; display:grid; grid-template-columns: repeat(2,auto); gap: 12px 28px; font-size:.9rem; color: var(--muted-foreground); }
.hero-checks li{ position:relative; padding-left:18px; }
.hero-checks li::before{
  content:''; position:absolute; left:0; top:.5em; width:8px; height:8px;
  background: var(--primary); transform: translateY(-50%) rotate(45deg);
}

.stats-bar{ border-top: 1px solid var(--border); background: oklch(17% .006 260 / .6); }
.stats-grid{
  display:grid; grid-template-columns: repeat(2,1fr); gap: 32px;
  padding: 40px 0;
}
@media (min-width: 768px){ .stats-grid{ grid-template-columns: repeat(4,1fr); } }
.stat-num{ font-family: var(--font-display); font-size: 2.25rem; font-weight:800; color: var(--primary); }
@media (min-width: 768px){ .stat-num{ font-size: 3rem; } }
.stat-label{ margin-top:4px; font-size:.875rem; color: var(--muted-foreground); }

/* ---------- sobre ---------- */
.about-grid{ display:grid; gap: 48px; }
@media (min-width: 768px){ .about-grid{ grid-template-columns: 1fr 1fr; gap:80px; align-items:start; } }
.about-text h2{ margin-top:20px; max-width: 16ch; }
.about-text p{ margin-top:20px; }
.about-pillars{ display:flex; flex-direction:column; gap: 16px; }
.pillar{
  display:flex; align-items:center; gap:16px;
  padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.pillar svg{ color: var(--primary); width:24px; height:24px; flex-shrink:0; }
.pillar-label{ font-weight:500; }

/* ---------- serviços ---------- */
.section-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap: 20px; max-width:42rem; }
.link-arrow{ font-weight:600; color: var(--primary); white-space:nowrap; }
.link-arrow:hover{ opacity:.85; }

.services-grid{ display:grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow:hidden; margin-top:56px; }
@media (min-width: 640px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .services-grid{ grid-template-columns: repeat(3,1fr); } }
.service-card{ background: var(--card); padding: 32px; transition: background .2s ease; }
.service-card:hover{ background: var(--secondary); }
.service-index{
  font-family: var(--font-body); font-size: .875rem; font-weight:700;
  letter-spacing:.1em; color: var(--primary);
}
.service-card h3{ margin-top: 16px; font-size: 1.5rem; }
.service-card p{ margin-top: 12px; font-size: .875rem; line-height:1.6; }

/* ---------- projetos ---------- */
.portfolio-grid{ display:grid; gap: 24px; margin-top: 56px; }
@media (min-width: 768px){ .portfolio-grid{ grid-template-columns: repeat(2,1fr); } }
.portfolio-card{ position: relative; border-radius: 8px; overflow:hidden; border:1px solid var(--border); background: var(--card); }
.portfolio-photo-wrap{ aspect-ratio: 4/3; overflow:hidden; }
.portfolio-photo-wrap img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.portfolio-card:hover .portfolio-photo-wrap img{ transform: scale(1.05); }
.portfolio-overlay{
  position:absolute; inset-inline:0; bottom:0;
  background: linear-gradient(0deg, var(--background) 0%, oklch(13% .005 260 / .8) 60%, transparent 100%);
  padding: 24px;
}
.portfolio-tag{
  display:block; font-size:.7rem; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase; color: var(--primary);
}
.portfolio-card h3{ font-size: 1.3rem; margin-top: 4px; text-transform:none; }

/* ---------- por que escolher ---------- */
.why-grid{ display:grid; gap: 32px; margin-top:56px; }
@media (min-width: 768px){ .why-grid{ grid-template-columns: repeat(3,1fr); } }
.why-item{ border-top: 2px solid var(--primary); padding-top: 24px; }
.why-index{ font-family: var(--font-body); font-weight:700; letter-spacing:.1em; color: var(--primary); font-size:.875rem; }
.why-item h3{ margin-top:12px; font-size: 1.25rem; }
.why-item p{ margin-top:12px; font-size:.9rem; }

.testimonial{
  margin: 80px 0 0; padding: 40px; background: var(--card); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 8px;
}
.testimonial p{ color: var(--foreground); font-size: 1.375rem; font-style: italic; margin-bottom: 20px; }
.testimonial footer{ font-size:.9rem; color: var(--muted-foreground); }
.testimonial footer strong{ color: var(--foreground); }

/* ---------- contato ---------- */
.contact-grid{ display:grid; gap: 48px; }
@media (min-width: 768px){ .contact-grid{ grid-template-columns: 1fr 1fr; gap:64px; } }
.contact-info h2{ margin-top:20px; }
.contact-lede{ margin-top:20px; max-width: 34ch; }
.contact-list{ display:flex; flex-direction:column; gap:16px; margin-top: 40px; }
.contact-list li{ display:flex; align-items:center; gap:12px; font-size: .9rem; }
.contact-list svg{ color: var(--primary); width:20px; height:20px; flex-shrink:0; }

.contact-form{ display:flex; flex-direction:column; gap:18px; background: var(--card); border:1px solid var(--border); border-radius:8px; padding:32px; }
.form-row{ display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:.82rem; color: var(--muted-foreground); }
.form-row input, .form-row textarea{
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; color: var(--foreground); font-family: var(--font-body); font-size: .875rem;
  resize: vertical; outline:none;
}
.form-row input:focus, .form-row textarea:focus{ border-color: var(--primary); }
.form-note{ font-size:.85rem; color: var(--primary); min-height: 1.2em; margin:0; text-align:center; }

/* ---------- footer ---------- */
.site-footer{ background: oklch(17% .006 260 / .5); border-top: 1px solid var(--border); padding: 48px 0; }
.footer-inner{
  display:flex; flex-direction:column; gap:16px; align-items:flex-start; text-align:left;
}
@media (min-width: 700px){ .footer-inner{ flex-direction:row; justify-content:space-between; align-items:center; } }
.footer-inner img{ height:32px; width:auto; }
.footer-inner p{ color: var(--muted-foreground); font-size:.75rem; margin:0; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}
