/* =========================================================
   ACS Informática — Outsourcing IT
   Aesthetic: Luminous, professional, modern
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Outfit:wght@300;400;500;600;700;800&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette — luminous */
  --bg:           #fbfbfd;
  --bg-soft:      #f4f5fa;
  --bg-card:      #ffffff;
  --bg-tint:      #eef0fb;
  --line:         #e4e7f3;
  --line-soft:    #eef0f7;

  --text:         #16183a;
  --text-soft:    #4a4f6e;
  --text-muted:   #7c83a3;

  --primary:      #3949ab;     /* índigo (luminoso, evoluído do navy do logo) */
  --primary-dark: #283593;
  --primary-soft: #e8eaf6;
  --primary-glow: rgba(57, 73, 171, 0.15);

  --coral:        #ff6b6b;     /* acento — coral, homenagem ao "INFORMÁTICA" */
  --coral-soft:   #ffe5e5;

  --teal:         #26a69a;     /* secundário */
  --teal-soft:    #d8f0ee;

  --gold:         #f59e0b;     /* terciário, raro */

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --container:    1240px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --easing:       cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm:    0 1px 3px rgba(22, 24, 58, 0.04), 0 1px 2px rgba(22, 24, 58, 0.06);
  --shadow:       0 8px 24px -8px rgba(22, 24, 58, 0.12), 0 2px 6px rgba(22, 24, 58, 0.05);
  --shadow-lg:    0 24px 48px -12px rgba(22, 24, 58, 0.18), 0 4px 12px rgba(22, 24, 58, 0.06);
}

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

/* Anti-FOUC do i18n: esconde o body enquanto o JS aplica o idioma.
   A classe i18n-loading é adicionada pelo script inline no <head>
   e removida no init() do i18n.js. Se o JS falhar/estiver off,
   o conteúdo aparece igual (em PT) ao fim de 1s — failsafe. */
html.i18n-loading body { visibility: hidden; }
@keyframes acs-i18n-failsafe { to { visibility: visible; } }
html.i18n-loading body { animation: acs-i18n-failsafe 0s 1s forwards; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* =========================================================
   Decorative background — soft mesh + dot grid
   ========================================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(57, 73, 171, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(255, 107, 107, 0.05), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(38, 166, 154, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

/* =========================================================
   Reusable: Logo (estrutura fiel ao original — lettering)
   ========================================================= */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-mark {
  height: 42px;
  width: auto;
  display: block;
}
.site-footer .logo-mark { height: 54px; }
.site-header .logo-mark { height: 48px; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--easing);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  transition: all 0.25s var(--easing);
  box-shadow: 0 4px 14px rgba(57, 73, 171, 0.25);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(57, 73, 171, 0.35);
}

.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--easing);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 18px rgba(57, 73, 171, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(57, 73, 171, 0.4);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: white;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-coral {
  background: var(--coral);
  color: white;
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.3);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 107, 0.4);
}
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-pill .badge {
  background: var(--coral);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .gradient {
  display: inline-block;
  padding: 0.05em 0.1em 0.1em 0;
  margin-right: -0.05em;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  font-weight: 600;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 12px;
  background: var(--coral-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-trust-item .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}
.hero-trust-item .num .plus { color: var(--coral); }
.hero-trust-item .label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero visual — floating cards composition */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 680px;
  width: 100%;
  margin-left: auto;
}
.hero-visual svg {
  width: 100%; height: 100%;
}

/* =========================================================
   Sections
   ========================================================= */
section { padding: 110px 0; position: relative; }

.section-head {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: end;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 500;
}
.section-tag::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--coral);
  border-radius: 2px;
  transform: rotate(45deg);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}
.section-head h2 .accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
}
.section-head h2 .coral { color: var(--coral); }

.section-head .lead {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
}

/* =========================================================
   Outsourcing pitch — central proposition
   ========================================================= */
.outsourcing {
  background: linear-gradient(180deg, var(--bg-tint) 0%, transparent 100%);
  padding: 100px 0;
}

.outsourcing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.outsourcing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.outsourcing h2 .accent { color: var(--primary); font-style: italic; font-weight: 600; }

.outsourcing p {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 18px;
  line-height: 1.7;
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.3s var(--easing);
}
.compare-card.bad {
  background: #fafafc;
  opacity: 0.85;
}
.compare-card.bad .compare-icon { background: #fee; color: #dc2626; }
.compare-card.good {
  border-color: var(--primary);
  box-shadow: 0 12px 32px -8px rgba(57, 73, 171, 0.18);
}
.compare-card.good::before {
  content: 'RECOMENDADO';
  position: absolute;
  top: -10px; left: 24px;
  background: var(--coral);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.compare-card.good .compare-icon { background: var(--primary-soft); color: var(--primary); }
.compare-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.compare-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.compare-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}
.compare-card ul {
  list-style: none;
  margin-top: 14px;
}
.compare-card ul li {
  font-size: 13px;
  color: var(--text-soft);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-card ul li::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.compare-card.bad ul li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.compare-card.good ul li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233949ab'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* =========================================================
   Services grid (8 áreas)
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 0.35s var(--easing);
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--coral));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}
.service-card:hover::after { opacity: 1; }

.service-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all 0.3s;
}
.service-card:nth-child(2) .icon-wrap { background: var(--coral-soft); color: var(--coral); }
.service-card:nth-child(3) .icon-wrap { background: var(--teal-soft); color: var(--teal); }
.service-card:nth-child(4) .icon-wrap { background: #fff4dc; color: var(--gold); }
.service-card:nth-child(5) .icon-wrap { background: var(--teal-soft); color: var(--teal); }
.service-card:nth-child(6) .icon-wrap { background: var(--coral-soft); color: var(--coral); }
.service-card:nth-child(7) .icon-wrap { background: #fff4dc; color: var(--gold); }
.service-card:nth-child(8) .icon-wrap { background: var(--primary-soft); color: var(--primary); }

.service-card:hover .icon-wrap {
  transform: scale(1.08) rotate(-4deg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.service-card .num-tag {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   Process — how outsourcing works (4 steps)
   ========================================================= */
.process-section {
  background: var(--text);
  color: white;
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(255, 107, 107, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(57, 73, 171, 0.18), transparent 60%);
  pointer-events: none;
}
.process-section .section-head h2 { color: white; }
.process-section .section-head h2 .accent { color: #a5b4fc; }
.process-section .section-head .lead { color: rgba(255,255,255,0.7); }
.process-section .section-tag { color: #a5b4fc; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.3s var(--easing);
}
.process-step:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a5b4fc, var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}
.process-step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

/* =========================================================
   Stats banner
   ========================================================= */
.stats-banner {
  padding: 90px 0;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-big .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-big .label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   Clients — grid of pill cards (no logos)
   ========================================================= */
.clients-section {
  padding: 110px 0;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.client-pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-soft);
  text-align: center;
  transition: all 0.25s var(--easing);
  letter-spacing: -0.01em;
}
.client-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.03);
}

.industry-tags {
  margin-top: 48px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tint);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}
.industry-tag .dot {
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

/* =========================================================
   Why ACS — half-bleed
   ========================================================= */
.why-section { padding: 110px 0; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--easing);
}
.why-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.why-item .ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item:nth-child(2) .ic { background: var(--coral-soft); color: var(--coral); }
.why-item:nth-child(3) .ic { background: var(--teal-soft); color: var(--teal); }
.why-item:nth-child(4) .ic { background: #fff4dc; color: var(--gold); }
.why-item:nth-child(5) .ic { background: var(--coral-soft); color: var(--coral); }
.why-item:nth-child(6) .ic { background: var(--teal-soft); color: var(--teal); }

.why-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.why-item p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

.why-quote {
  position: relative;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  color: white;
  margin-top: 24px;
  overflow: hidden;
}
.why-quote::before {
  content: '“';
  position: absolute;
  top: -30px; right: 20px;
  font-family: Georgia, serif;
  font-size: 14rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
}
.why-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.why-quote .author {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
}
.why-quote .author strong { color: white; }

/* =========================================================
   CTA Big
   ========================================================= */
.cta-big {
  padding: 130px 0;
}
.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.25), transparent 60%);
  border-radius: 50%;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(38, 166, 154, 0.18), transparent 60%);
  border-radius: 50%;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  position: relative;
}
.cta-card h2 .coral {
  color: #ffd0d0;
  font-style: italic;
  font-weight: 600;
}
.cta-card p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}
.cta-card .btn-row {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
}
.cta-card .btn-primary {
  background: white;
  color: var(--primary);
}
.cta-card .btn-primary:hover {
  background: var(--coral);
  color: white;
}
.cta-card .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.cta-card .btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
  color: white;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-soft);
  margin-top: 18px;
  max-width: 320px;
  line-height: 1.7;
  font-size: 14px;
}
.footer-brand .contact-line {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-brand .contact-line a { color: var(--text-soft); }
.footer-brand .contact-line a:hover { color: var(--primary); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .badges { display: flex; gap: 18px; }
.footer-bottom .badges a { color: var(--text-muted); }
.footer-bottom .badges a:hover { color: var(--primary); }

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero {
  padding: 170px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.page-hero h1 .accent { color: var(--primary); font-style: italic; font-weight: 600; }
.page-hero h1 .gradient {
  display: inline-block;
  padding-right: 0.1em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  font-weight: 600;
}
.page-hero .lead {
  color: var(--text-soft);
  font-size: 19px;
  max-width: 700px;
  line-height: 1.65;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }

/* =========================================================
   Detailed service blocks (services page)
   ========================================================= */
.service-detail {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: none; }

.service-detail .row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.service-detail.flip .row { grid-template-columns: 1.05fr 1fr; }
.service-detail.flip .row .text { order: 2; }

.service-detail .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin-bottom: 16px;
}
.service-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.service-detail .intro {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 26px;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233949ab'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.detail-visual {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-tint) 0%, white 100%);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.detail-visual svg { width: 100%; height: 100%; max-width: 480px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  margin-top: 50px;
}

.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.contact-card.featured {
  background: linear-gradient(180deg, white, var(--bg-tint));
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.contact-card .subtitle {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-row:nth-child(3) .icon { background: var(--coral-soft); color: var(--coral); }
.contact-row:nth-child(4) .icon { background: var(--teal-soft); color: var(--teal); }
.contact-row:nth-child(5) .icon { background: #fff4dc; color: var(--gold); }
.contact-row:nth-child(6) .icon { background: var(--primary-soft); color: var(--primary); }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
.contact-row .value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.contact-row .value a { color: inherit; transition: color 0.2s; }
.contact-row .value a:hover { color: var(--primary); }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-row .field { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.field textarea { resize: vertical; min-height: 120px; }

.checkbox-row { display: flex; gap: 10px; margin-bottom: 24px; align-items: flex-start; font-size: 13px; color: var(--text-soft); }
.checkbox-row input { margin-top: 3px; }

/* Honeypot — campo invisível para apanhar bots */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mensagens de feedback do formulário */
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-status.ok {
  display: block;
  background: rgba(38, 166, 154, 0.10);
  color: #1f7a72;
  border: 1px solid rgba(38, 166, 154, 0.25);
}
.form-status.err {
  display: block;
  background: rgba(255, 107, 107, 0.10);
  color: #c0392b;
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.map-block {
  margin-top: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: white;
  height: 460px;
  position: relative;
  box-shadow: var(--shadow);
}
.map-block iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; row-gap: 40px; }
  .footer-grid .footer-col:nth-child(4),
  .footer-grid .footer-col:nth-child(5) { grid-column: auto; }
}

@media (max-width: 900px) {
  /* Empilhado numa coluna: o conteúdo passa a ser mais alto que o ecrã,
     por isso deixa de fazer sentido centrar verticalmente. Alinhar ao
     topo e garantir espaço abaixo do cabeçalho fixo. */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 116px 0 70px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { margin: 0 auto; max-width: 520px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .outsourcing-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .service-detail .row,
  .service-detail.flip .row { grid-template-columns: 1fr; gap: 40px; }
  .service-detail.flip .row .text { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .compare-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 56px 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  /* Header — mostrar hamburger, esconder nav */
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    gap: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a {
    padding: 12px 8px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* CTA do menu aparece dentro do menu quando aberto */
  .nav-links.open .mobile-cta {
    display: inline-flex;
    margin-top: 8px;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    justify-content: center;
    font-weight: 600;
  }
  .menu-toggle { display: block; min-width: 44px; min-height: 44px; }
  .nav-cta { display: none; }

  /* Touch targets confortáveis */
  .lang-toggle .lang-opt { min-height: 36px; padding: 6px 12px; }

  /* Hero — escala tipográfica mais comportada em mobile */
  .hero { padding: 104px 0 56px; }
  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.02;
  }
  .hero-lead { font-size: 17px; }

  /* Hero pill mais compacta e legível */
  .hero-pill {
    padding: 6px 14px 6px 6px;
    font-size: 12px;
    line-height: 1.4;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-pill .badge { font-size: 11px; padding: 3px 9px; }

  /* Page hero (interior) */
  .page-hero { padding: 50px 0 60px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 52px); line-height: 1.05; }
  .page-hero .lead { font-size: 17px; }
  .breadcrumb { margin-bottom: 28px; font-size: 11px; }

  /* Section headings */
  .section-head h2,
  .outsourcing-grid h2,
  .why-section h2,
  .process-section h2,
  .clients-section h2 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.05;
  }
  .cta-card h2 { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.08; }
  .cta-card { padding: 48px 24px; }
  .cta-card p { font-size: 16px; }

  /* Service detail */
  .service-detail h2 { font-size: clamp(28px, 8vw, 38px); }
  .service-detail .row,
  .service-detail.flip .row { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.flip .row .text { order: 0; }
  .feature-list { grid-template-columns: 1fr; }

  /* Cards & grids — single column */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-steps { grid-template-columns: 1fr; gap: 16px; }
  .client-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .compare-cards { grid-template-columns: 1fr; }

  /* Stats — 2 columns em vez de 4 */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stat-big .num { font-size: clamp(36px, 11vw, 48px); }
  .stat-big .label { font-size: 12px; }

  /* Why list */
  .why-list { grid-template-columns: 1fr; }
  .why-item { gap: 14px; padding: 18px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-card { padding: 28px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .form-field input,
  .form-field textarea,
  .form-field select { font-size: 16px; }  /* evita zoom no iOS ao focar */
  .field input, .field textarea, .field select { font-size: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Sections gerais */
  section { padding: 64px 0; }

  /* Botões — full width quando empilhados */
  .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { justify-content: center; padding: 14px 22px; min-height: 48px; }

  /* Legal pages */
  .legal-content { padding: 0 0 64px; }
  .legal-content h2 { font-size: 22px; margin: 36px 0 14px; }
  .legal-content h3 { font-size: 17px; margin: 22px 0 10px; }
  .legal-content p, .legal-content li { font-size: 15px; line-height: 1.7; }

  /* Map */
  .map-block { height: 360px; margin-top: 56px; }

  /* Page hero hide breadcrumb separators on long paths */
  .breadcrumb { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .hero h1 { font-size: clamp(34px, 12vw, 44px); }
  .page-hero h1 { font-size: clamp(32px, 11vw, 42px); }
  .hero-pill { font-size: 11px; }
  .lang-toggle { font-size: 10px; }
  .lang-toggle .lang-opt { padding: 5px 9px; }
}

/* CTA dentro do menu mobile (escondido em desktop) */
.mobile-cta-item { display: none; }
@media (max-width: 640px) {
  .nav-links.open .mobile-cta-item { display: block; }
}

/* =========================================================
   Language Toggle (PT / EN)
   ========================================================= */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
  margin-right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  user-select: none;
}
.lang-toggle .lang-opt {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.18s var(--easing), background 0.18s var(--easing);
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}
.lang-toggle .lang-opt:hover {
  color: var(--text);
}
.lang-toggle .lang-opt.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) {
  .lang-toggle {
    margin-right: 8px;
    font-size: 10px;
  }
  .lang-toggle .lang-opt {
    padding: 4px 9px;
  }
}
