/* ============================================================
   ENERGYWORKS — style.css
   Versão unificada: todos os estilos do site num único ficheiro
   ============================================================

   1.  Tokens & Reset
   2.  Helpers
   3.  Navbar
   4.  Chip / Badge
   5.  Card base (.card-soft)
   6.  Clientes
   7.  Contact Card + Mapa (partilhado)
   8.  Newsletter
   9.  Footer & Back-to-top
   10. INDEX — Hero
   11. INDEX — Quem Somos
   12. INDEX — Serviços (sv2)
   13. INDEX — Projectos
   14. ABOUT — Hero split
   15. ABOUT — Blocos & Timeline
   16. SERVICES — Hero & Tabs
   17. SERVICES — Cards & EPIs
   18. CONTACT — Hero & Blocos
   19. Responsivo
   ============================================================ */


/* ── 0. Fontes locais (Montserrat) ──────────────────────── */
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Thin.otf') format('opentype');
  font-weight: 100; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-ThinItalic.otf') format('opentype');
  font-weight: 100; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-ExtraLight.otf') format('opentype');
  font-weight: 200; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-ExtraLightItalic.otf') format('opentype');
  font-weight: 200; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Light.otf') format('opentype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-LightItalic.otf') format('opentype');
  font-weight: 300; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-MediumItalic.otf') format('opentype');
  font-weight: 500; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-SemiBoldItalic.otf') format('opentype');
  font-weight: 600; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-BoldItalic.otf') format('opentype');
  font-weight: 700; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-ExtraBold.otf') format('opentype');
  font-weight: 800; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-ExtraBoldItalic.otf') format('opentype');
  font-weight: 800; font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Black.otf') format('opentype');
  font-weight: 900; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-BlackItalic.otf') format('opentype');
  font-weight: 900; font-style: italic;
}


/* ── 1. Tokens & Reset ──────────────────────────────────── */
:root {
  --red:       #da222a;
  --red-700:   #b40000;
  --red-grad:  linear-gradient(135deg, #da222a 0%, #b40000 100%);
  --ink:       #161a1d;
  --ink-2:     #334155;
  --muted:     #6b7280;
  --paper:     #f7f7f9;
  --surface:   #ffffff;
  --bg-alt:    #f8fafc;
  --border:    #e2e8f0;
  --r:         18px;
  --shadow:    0 14px 36px rgba(0,0,0,.12);
  --shadow-sm: 0 8px 22px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.15);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; }


/* ── 2. Helpers ─────────────────────────────────────────── */
.bg-red   { background: var(--red-700) !important; color: #fff; }
.text-red { color: var(--red) !important; }


/* ── 3. Navbar ──────────────────────────────────────────── */
.site-header {
  background: var(--red-700);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-logo { height: 50px; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none !important;
    flex-direction: column !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-700);
    padding: 12px 0;
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
  }
  .site-nav.open {
    display: flex !important;
  }
  .site-nav a {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 1rem;
  }
  .site-header .container {
    position: relative;
    flex-wrap: wrap;
  }
}


/* ── 4. Chip / Badge ────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  padding: .45rem .9rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  font-size: .875rem;
  font-weight: 600;
}
.chip-red {
  background: rgba(218,34,42,.10);
  color: var(--red-700);
  border: 1px solid rgba(218,34,42,.22);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(218,34,42,.10);
  color: var(--red-700);
  border-radius: 100px;
  font-weight: 700;
  font-size: .875rem;
}


/* ── 5. Card base (.card-soft) ──────────────────────────── */
.card-soft {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}


/* ── 6. Equipa Executiva ────────────────────────────────── */
.exec-section {
  background: var(--bg-alt);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.exec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.exec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red-grad);
}
.exec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.exec-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.exec-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.exec-card:hover .exec-photo {
  transform: scale(1.04);
}

.exec-info {
  padding: 18px 20px 20px;
  text-align: center;
}
.exec-nome {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.exec-cargo {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.4;
}


/* ── 7. Contact Card + Mapa (partilhado) ────────────────── */
.contacto-section {
  background: var(--bg-alt);
  padding-bottom: 80px;
}
.contacto-section .map-embed {
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.contacto-section .map-embed iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

.contact-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 44px 52px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-xl);
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 52px; right: 52px;
  height: 3px;
  background: var(--red-grad);
}

.contact-card .cc-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-card .cc-sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-card .cc-list { list-style: none; padding: 0; margin: 0; }
.contact-card .cc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: var(--ink-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.contact-card .cc-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-card .cc-list a { color: var(--ink-2); transition: color .2s; }
.contact-card .cc-list a:hover { color: var(--red-700); }

.cc-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fef2f2;
  color: var(--red-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.cc-social-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-bottom: 14px;
}

.social-pill {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .875rem;
  color: var(--ink-2);
  margin-bottom: 10px;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.social-pill:last-child { margin-bottom: 0; }
.social-pill:hover {
  background: #fff;
  border-color: var(--red-700);
  color: var(--red-700);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.social-pill .bi-facebook  { color: #1877F2; font-size: 1.05rem; }
.social-pill .bi-linkedin  { color: #0A66C2; font-size: 1.05rem; }
.social-pill .bi-instagram { color: #E1306C; font-size: 1.05rem; }

.contact-qr {
  display: block;
  max-width: 160px;
  margin-left: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


/* ── 8. Newsletter ──────────────────────────────────────── */
.newsletter-section {
  background: var(--red-grad);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}
.newsletter-section h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
}
.newsletter-section .nl-sub { color: rgba(255,255,255,.75); font-size: .92rem; }
.newsletter-section .form-control {
  border: none;
  padding: 14px 20px;
  font-size: .95rem;
  border-radius: 8px 0 0 8px !important;
}
.newsletter-section .form-control:focus { box-shadow: none; outline: none; }
.newsletter-section .btn-nl {
  background: var(--ink);
  border: none;
  color: #fff;
  padding: 14px 28px;
  font-weight: 700;
  font-size: .92rem;
  border-radius: 0 8px 8px 0 !important;
  transition: background .2s;
}
.newsletter-section .btn-nl:hover { background: #0f1e30; color: #fff; }


/* ── 9. Footer & Back-to-top ────────────────────────────── */
.site-footer {
  background: var(--red-700);
  color: #fff;
  padding: 64px 0 32px;
  position: relative;
}
.footer-logo    { max-height: 36px; }
.footer-tagline { color: rgba(255,255,255,.55); font-size: .875rem; margin-bottom: 20px; }
.site-footer h6 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .875rem;
  padding: 3px 0;
  transition: color .2s, padding-left .15s;
}
.footer-link:hover { color: #fff; padding-left: 4px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.80);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.25); color: #fff; }

.footer-certifications { max-width: 120px; height: auto; }

.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red-700);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
  transition: transform .2s, box-shadow .2s;
  z-index: 999;
  cursor: pointer;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}


/* ── 10. INDEX — Hero ───────────────────────────────────── */
.hero-home {
  background: url("../img/HEADER.png") center / cover no-repeat;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.28) 60%,
    transparent 100%);
}
.hero-home-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.hero-home-content h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 32px;
}
.hero-line-thin {
  font-weight: 400;
  color: #fff;
}
.hero-line-bold {
  font-weight: 800;
  color: var(--red);
}
.btn-hero {
  background: var(--red-grad);
  border: none;
  color: #fff;
  padding: 12px 32px;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(180,0,0,.45);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180,0,0,.50);
  color: #fff;
}


/* ── 11. INDEX — Quem Somos ─────────────────────────────── */
.about-home {
  background: linear-gradient(155deg,
    rgba(218,34,42,.08) 0%,
    rgba(236,75,75,.12) 50%,
    var(--bg-alt) 100%);
  padding: 88px 0;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.about-pillar-ico {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(180,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-700);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.kpi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kpi-ico   { font-size: 1.6rem; color: var(--red-700); margin-bottom: 8px; }
.kpi-num   { font-size: 1.8rem; font-weight: 800; color: var(--red-700); line-height: 1; }
.kpi-label { font-size: .82rem; color: var(--muted); margin-top: 4px; }


/* ── 12. INDEX — Serviços sv2 ───────────────────────────── */
.services-v2 {
  padding: 88px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.services-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23b40000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sv2-band { position: relative; z-index: 2; margin-bottom: 52px; }
.sv2-band h2 { font-weight: 800; color: var(--ink); }
.sv2-sub { font-size: .92rem; color: var(--muted); margin-top: 10px; }

.sv2-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 2.25rem 2rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .35s cubic-bezier(.175,.885,.32,1.275), box-shadow .35s ease;
}
.sv2-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.sv2-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); color: inherit; }
.sv2-card:hover::before { transform: scaleX(1); }

.sv2-red::before    { background: linear-gradient(90deg, #b40000, #da222a); }
.sv2-blue::before   { background: linear-gradient(90deg, #1e40af, #3b82f6); }
.sv2-green::before  { background: linear-gradient(90deg, #0e5e43, #10b981); }
.sv2-orange::before { background: linear-gradient(90deg, #ea580c, #f97316); }
.sv2-purple::before { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.sv2-dark::before   { background: linear-gradient(90deg, #1f2937, #374151); }

.sv2-ico {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  transition: transform .3s ease;
}
.sv2-ico i { font-size: 1.9rem; line-height: 1; }
.sv2-card:hover .sv2-ico { transform: scale(1.1) rotate(4deg); }

.sv2-red .sv2-ico    { background: rgba(180,0,0,.09);    color: #b40000; border: 1.5px solid rgba(180,0,0,.18); }
.sv2-blue .sv2-ico   { background: rgba(30,64,175,.09);  color: #1e40af; border: 1.5px solid rgba(30,64,175,.18); }
.sv2-green .sv2-ico  { background: rgba(14,94,67,.09);   color: #0e5e43; border: 1.5px solid rgba(14,94,67,.18); }
.sv2-orange .sv2-ico { background: rgba(234,88,12,.09);  color: #ea580c; border: 1.5px solid rgba(234,88,12,.18); }
.sv2-purple .sv2-ico { background: rgba(124,58,237,.09); color: #7c3aed; border: 1.5px solid rgba(124,58,237,.18); }
.sv2-dark .sv2-ico   { background: rgba(31,41,55,.09);   color: #1f2937; border: 1.5px solid rgba(31,41,55,.18); }

.sv2-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .65rem; line-height: 1.3; }
.sv2-text  { font-size: .9rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.sv2-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 700; color: var(--red-700);
  transition: gap .22s ease, color .2s ease;
}
.sv2-card:hover .sv2-cta { gap: .75rem; color: var(--red); }


/* ── 13. INDEX — Projectos ──────────────────────────────── */
.proj-sec {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(218,34,42,.18), transparent),
    radial-gradient(900px 360px at 100% 0%, rgba(180,0,0,.16), transparent),
    var(--ink);
  color: #fff;
  padding: 88px 0;
}
.proj-sec-header h2 { font-size: 1.9rem; font-weight: 800; color: #fff; }

.proj-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: background .25s, border-color .25s, transform .25s;
}
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.proj-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.20);
  transform: translateY(-4px);
}
.proj-card:hover::before { transform: scaleX(1); }

.proj-head {
  background: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
}
.proj-logo { max-height: 44px; width: auto; object-fit: contain; }
.proj-text {
  font-size: .9rem;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  margin: 0; flex: 1;
}
.proj-year {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--red);
  background: rgba(180,0,0,.18);
  border: 1px solid rgba(180,0,0,.25);
  padding: 3px 12px;
  border-radius: 100px;
  align-self: flex-start;
}


/* ── 14. ABOUT — Hero split ─────────────────────────────── */
.hero-wrap { position: relative; isolation: isolate; }
.hero-left { padding-block: 72px; }

.hero-badge {
  background: rgba(218,34,42,.12);
  color: var(--red-700);
  border: 1px solid rgba(218,34,42,.22);
}
.hero-title { font-weight: 800; letter-spacing: .2px; }
.hero-sub   { color: #2a2f36; }

.hero-media {
  min-height: 420px;
  background: url('../img/homeimagem.png') center / cover no-repeat;
  border-radius: 0 0 0 var(--r);
}
.hero-media-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 70% center;
  border-radius: var(--r);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border-radius: var(--r);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .n { font-weight: 800; font-size: clamp(1.25rem, 1.4vw + .8rem, 2rem); color: var(--red-700); }
.stat .l { color: var(--muted); font-size: .9rem; }


/* ── 15. ABOUT — Blocos & Timeline ─────────────────────── */
.about-block {
  background: linear-gradient(281.73deg,
    rgba(218,34,42,.16) 0%,
    rgba(236,75,75,.18) 45%,
    rgba(255,255,255,.85) 100%);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.policy-grid {
  display: grid;
  gap: 1rem;
}

.policy-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .2s, transform .2s;
}
.policy-banner:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.policy-ico {
  font-size: 1.8rem;
  color: var(--red);
  flex-shrink: 0;
}
.policy-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.policy-text strong { font-size: .95rem; }
.policy-text span   { font-size: .8rem; color: var(--muted); }
.policy-cta {
  font-size: .85rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}

@media (min-width: 992px) {
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pillar i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  color: var(--red-700);
  font-size: 1.25rem;
  background: rgba(180,0,0,.08);
  border-radius: 9px;
}

.about-qs-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: left center;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--red), transparent);
}
.tl-item { position: relative; margin-bottom: 22px; padding-left: 18px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -2px; top: .3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red-700);
}


/* ── 16. SERVICES — Hero & Tabs ─────────────────────────── */
.page-services .hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.62) 46%, rgba(255,255,255,.06) 100%),
    url('../img/imagem-servicos-principal.png') right center / cover no-repeat,
    linear-gradient(180deg, #fff, #f3f4f6);
  padding: 72px 0;
  overflow: hidden;
}
.service-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.service-hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(180,0,0,.10);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
}
.service-hero-pills i {
  color: var(--red-700);
}
.svc-tabs .nav-link {
  border: 1px solid rgba(180,0,0,.08);
  color: #333;
  border-radius: 9999px;
  padding: .75rem 1.25rem;
  font-weight: 700;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.svc-tabs .nav-link:hover  { background: rgba(180,0,0,.08); color: var(--red-700); border-color: rgba(180,0,0,.18); transform: translateY(-1px); }
.svc-tabs .nav-link.active { background: var(--red-700); color: #fff; border-color: var(--red-700); }



/* ── 17. SERVICES — Cards & EPIs ────────────────────────── */
.page-services .card-soft::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red-grad);
  opacity: 0;
  transition: opacity .3s ease;
}
.page-services .card-soft:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(180,0,0,.20);
}
.page-services .card-soft:hover::before { opacity: 1; }

.service-panel {
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(218,34,42,.08), transparent 55%),
    linear-gradient(180deg, #fff, #fbfbfc);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: calc(var(--r) + 2px);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
}

.service-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.service-panel-header.compact {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.service-panel-header h3,
.service-panel-header h4 {
  margin: .35rem 0 .35rem;
  font-weight: 800;
  color: var(--ink);
}

.service-panel-header p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.service-kicker {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(180,0,0,.08);
  color: var(--red-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: var(--red-grad);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(180,0,0,.25);
  flex-shrink: 0;
}

.feat { list-style: none; padding: 0; margin: 0; }
.feat li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .35rem 0;
  border-bottom: 1px dashed rgba(0,0,0,.06);
  font-size: .92rem;
}
.feat li i { color: var(--red-700); margin-top: .2rem; flex-shrink: 0; }

.training-preview-block {
  margin-top: 1.5rem;
}

.training-preview-title {
  font-weight: 800;
  color: var(--red-700);
  margin-bottom: 1rem;
}

.training-preview-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.training-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.training-preview-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e9ecef;
}

.training-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.training-preview-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  background: var(--red-grad);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.training-preview-body {
  padding: 1rem 1.1rem .6rem;
}

.training-preview-body p {
  margin: 0;
  color: var(--muted);
}

.training-preview-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .85rem 1.1rem 1rem;
  border-top: 1px solid #eee;
  color: #444;
  font-size: .9rem;
}

.training-preview-meta i {
  color: var(--red-700);
}

.mini-service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.mini-service-card h6 {
  font-weight: 800;
  margin-bottom: .85rem;
}

.training-list {
  border-radius: 14px;
  overflow: hidden;
}

.training-list .list-group-item {
  border: 0;
  border-bottom: 1px dashed #e8e8e8;
  padding: .9rem 1rem;
  background: #fff;
}

.service-note {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(180,0,0,.06);
  color: var(--ink);
}

.service-note i {
  color: var(--red-700);
  margin-top: .1rem;
}

.epi-card {
  border-radius: 14px;
  border: 1px solid rgba(180,0,0,.12);
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.epi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,.10);
  border-color: rgba(180,0,0,.30);
}
.epi-ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: .75rem;
  background: var(--red-grad);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 10px 22px rgba(180,0,0,.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.epi-card:hover .epi-ico {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(180,0,0,.35);
}

.cta-block {
  background: linear-gradient(135deg, rgba(218,34,42,.12), rgba(255,255,255,1));
  border-radius: var(--r);
}

.clientes-logos {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.clientes-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}


/* ── 18. CONTACT — Hero & Blocos ────────────────────────── */
.page-contact .hero {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(1100px 420px at -5% -10%, rgba(218,34,42,.16), transparent),
    radial-gradient(900px 360px at 100% 0%,   rgba(180,0,0,.16),   transparent),
    linear-gradient(180deg, #fff, #f3f4f6);
}
.map-outer {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.contact-item i {
  color: var(--red-700);
  font-size: 1.15rem;
  margin-top: .2rem;
  flex-shrink: 0;
}


/* ── 19. Responsivo ─────────────────────────────────────── */
@media (min-width: 992px) {
  .hero-media { border-radius: var(--r); min-height: 520px; }
}

@media (max-width: 992px) {
  .contact-card { padding: 32px 28px; margin-top: -40px; }
  .contact-card::before { left: 28px; right: 28px; }
  .contact-qr { max-width: 120px; margin: 0 auto; }
  .service-panel-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 768px) {
  .hero-home-content { padding: 60px 0; }
  .contacto-section .map-embed { height: 280px; }
  .sv2-card  { padding: 1.75rem 1.5rem; }
  .sv2-ico   { width: 62px; height: 62px; }
  .sv2-ico i { font-size: 1.6rem; }
  .about-home, .services-v2, .proj-sec { padding: 64px 0; }
  .hero-left { padding-block: 48px; }
  .page-services .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.60) 100%),
      url('../img/imagem-servicos-principal.png') center / cover no-repeat,
      linear-gradient(180deg, #fff, #f3f4f6);
  }
  .service-hero-pills { flex-direction: column; }
  .service-hero-pills span { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
  .contact-card { padding: 24px 18px; margin-top: -28px; }
  .contact-card::before { left: 18px; right: 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .newsletter-section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
