/* =========================================================
   INCENTIVA.PT - Stylesheet v3
   Visual language inspired by Norte 2030 (typography rhythm,
   spacing scale, pill buttons, rounded cards, dark/light
   alternation, floating footer) rendered entirely in the
   Incentiva.pt brand palette.

   Class names are preserved 1:1 so the existing simulator and
   navigation JavaScript continue to work without changes.
   ========================================================= */

@import url('/fonts/fonts.css');


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand palette */
  --ink:            #10192e;   /* primary dark / text / headings */
  --accent:         #51a6f3;   /* accent blue: links, focus, highlights */
  --accent-strong:  #2f7fd0;   /* darker accent: solid buttons w/ white text */
  --accent-deep:    #1f6dc0;   /* darkest accent: hover of solid buttons */
  --accent-soft:    #e8f2fd;   /* light accent tint: pills on light bg */
  --accent-soft-2:  #d8e9fb;   /* slightly deeper tint */
  --bg:             #FAF9F7;   /* page background (branco quente da família) */
  --surface:        #ffffff;   /* cards / panels */
  --section-dark:   #12335C;   /* navy profundo derivado do azul da marca */
  --section-dark-2: #1A4680;   /* navy mais claro para gradientes */
  --footer:         #0D2643;   /* footer */

  /* Text */
  --text:           #10192e;
  --text-soft:      #3c4555;
  --text-muted:     #5b6473;
  --text-on-dark:        #ffffff;
  --text-on-dark-muted:  #BFD3EA;  /* muted light text on navy */

  /* Lines & surfaces */
  --border:         #e6e8ec;
  --border-strong:  #d6dae1;
  --border-on-dark: rgba(255,255,255,0.16);
  --surface-on-dark: rgba(255,255,255,0.06);
  --surface-on-dark-hover: rgba(255,255,255,0.10);

  /* Elevation */
  --shadow-sm:      0 4px 14px rgba(16, 25, 46, 0.06);
  --shadow-card:    0 14px 34px rgba(16, 25, 46, 0.10);
  --shadow-btn:     0 8px 20px rgba(47, 127, 208, 0.30);
  --shadow-btn-hov: 0 12px 26px rgba(47, 127, 208, 0.38);

  /* Radii - Norte uses 16px cards and full pills */
  --radius-card:    16px;
  --radius-lg:      20px;
  --radius-md:      12px;
  --radius-pill:    100px;

  /* Spacing scale (Norte padding-big / padding-small) */
  --space-section:    112px;
  --space-section-sm: 64px;
  --space-card:       28px;
  --gap-grid:         22px;

  /* Motion */
  --transition-base: 0.2s ease;
  --transition-lift: transform 0.25s ease, box-shadow 0.25s ease;
}


/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Identidade unificada: titulos em Archivo, corpo em Hanken Grotesk */
h1, h2, h3, h4, h5, h6 { font-family: 'Archivo', system-ui, sans-serif; letter-spacing: -.02em; }

/* Wordmark unificado (Incentiva: nome light, .PT bold azul) */
.brand-wm {
  font-family: 'Archivo', 'Arial Black', sans-serif;
  font-weight: 200;
  font-size: 1.7rem;
  letter-spacing: -.03em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  display: inline-block;
}
.brand-wm .tld { font-weight: 900; color: var(--accent-strong); }
footer .brand-wm { color: #fff; }
footer .brand-wm .tld { color: var(--accent); }


/* =========================================================
   3. TYPOGRAPHY - Norte scale & hierarchy, Inter face
   Larger, lighter, tighter than before. Clear rhythm.
   ========================================================= */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

strong { color: var(--text); font-weight: 700; }

/* Gramática partilhada do ecossistema: seleção na cor da marca */
::selection { background: var(--accent-strong); color: #ffffff; }

/* Gramática partilhada: marcador de destaque em palavras-chave */
.mark {
  background: linear-gradient(transparent 58%, var(--accent-soft-2) 58%);
  padding: 0 .05em;
}
.hero h1 .mark,
.section-dark .mark {
  background: linear-gradient(transparent 58%, rgba(81, 166, 243, 0.35) 58%);
}


/* =========================================================
   4. LAYOUT
   ========================================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section h2 { margin-bottom: 12px; }

.section-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.7;
}


/* =========================================================
   5. ACCESSIBILITY - focus
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.simulator-option:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }


/* =========================================================
   6. BUTTONS - Norte pill language, Incentiva colours
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-strong);
  color: #ffffff;
  padding: 16px 32px;
  margin-top: 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hov);
}

.btn:active { transform: translateY(0); }

.btn.small {
  padding: 11px 22px;
  font-size: 0.875rem;
  box-shadow: none;
  margin-top: 0;
}

/* Outline secondary - fills on hover (Norte pattern) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-strong);
  border: 1.5px solid var(--accent-strong);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: none;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.btn-outline:hover {
  background: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 8px;
  transition: color var(--transition-base), gap var(--transition-base);
}

.btn-link:hover { color: var(--accent-deep); gap: 8px; }


/* =========================================================
   8. TOPBAR
   ========================================================= */
.topbar {
  background: var(--ink);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.topbar p { color: #ffffff; margin: 0; }
.topbar p a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
.topbar p a:hover { color: #ffffff; opacity: 0.85; }


/* =========================================================
   9. HEADER & NAVIGATION - pill nav links, hover fill
   ========================================================= */
header {
  background: rgba(249, 249, 249, 1);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

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

.menu-toggle {
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  margin-right: 12px;
  transition: background var(--transition-base), color var(--transition-base);
}

.menu-toggle:hover { background: var(--accent-soft); color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.875rem;
}

/* Top-level nav links become pills that fill on hover */
.main-nav > a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base);
}

.main-nav > a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

/* Dropdown trigger (details/summary) */
.nav-dropdown { position: relative; list-style: none; }

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  user-select: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }

.nav-dropdown > summary::after {
  content: '';
  width: 9px;
  height: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%235b6473' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition-base);
}

.nav-dropdown[open] > summary::after { transform: rotate(180deg); }
.nav-dropdown > summary:hover { background: var(--accent-soft); color: var(--ink); }

@media (min-width: 960px) {
  /* Dark rounded dropdown panel (Norte language, indigo) */
  .nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--section-dark);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-card);
    box-shadow: 0 18px 40px rgba(13, 0, 80, 0.30);
    padding: 14px;
    min-width: 248px;
    list-style: none;
    z-index: 1001;
    display: grid;
    gap: 4px;
    animation: submenuIn 0.18s ease forwards;
  }

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

  .nav-submenu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    white-space: nowrap;
    transition: background var(--transition-base), color var(--transition-base);
  }

  .nav-submenu li a:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
  }
}

/* CTA pill in nav */
.main-nav a.btn-nav-cta {
  background: var(--accent-strong);
  color: #ffffff !important;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-base), transform var(--transition-base);
}

.main-nav a.btn-nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* Secondary outline pill in nav, pairs with .btn-nav-cta (same height/shape).
   Vertical/horizontal padding reduced by the 1.5px border so both pills match. */
.main-nav a.btn-nav-secondary {
  background: transparent;
  color: var(--accent-strong) !important;
  border: 1.5px solid var(--accent-strong);
  padding: 7.5px 14.5px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.main-nav a.btn-nav-secondary:hover {
  background: var(--accent-strong);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Active state: set by components/include.js on the current page's link */
.main-nav > a.active:not(.btn-nav-cta):not(.btn-nav-secondary) {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

/* When the current page lives inside a dropdown, flag the trigger */
.nav-dropdown.has-active > summary {
  color: var(--accent-strong);
  font-weight: 600;
}

/* Active link inside the dropdown panel */
.nav-submenu li a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Mobile nav */
@media (max-width: 959px) {
  .nav { position: relative; }

  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    right: 24px;
    left: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 14px 16px;
    background: var(--surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
  }

  .main-nav.nav-open { display: flex; }
  .main-nav > a { width: 100%; }
  .menu-toggle { display: inline-block; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown > summary { width: 100%; justify-content: space-between; }

  .nav-submenu {
    list-style: none;
    padding: 4px 0 6px 18px;
    border-left: 2px solid var(--border);
    margin: 2px 0 6px;
  }

  .nav-submenu li a {
    display: block;
    padding: 8px 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color var(--transition-base);
  }

  .nav-submenu li a:hover { color: var(--accent-strong); }

  .btn-nav-secondary { margin-top: 8px; text-align: center; }
  .btn-nav-cta { margin-top: 6px; text-align: center; }
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
}


/* =========================================================
   10. HERO - redesigned: centered H1 + subtitle + 2 CTAs
   + trust-signals bar (3 items) at the bottom
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(81,166,243,0.20), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--section-dark) 55%, var(--section-dark-2) 120%);
  color: #ffffff;
  text-align: center;
  padding: 104px 20px 0;
  overflow: hidden;
}

/* Soft decorative arcs (atmosphere, not Norte imagery) */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 620px; height: 620px;
  top: -260px; left: -160px;
  background: radial-gradient(circle, rgba(81,166,243,0.18), transparent 70%);
}

.hero::after {
  width: 520px; height: 520px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(81,166,243,0.12), transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(81,166,243,0.25);
}

.hero h1 {
  color: #ffffff;
  max-width: 880px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
}

.hero p {
  margin: 22px auto 0;
  max-width: 620px;
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero p strong { color: var(--text-on-dark); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* Primary CTA on hero = white button with dark ink text */
.hero-actions .btn {
  margin-top: 0;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.hero-actions .btn:hover {
  background: #ffffff;
  color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}

/* Secondary CTA = outline on dark */
.hero-actions .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #9aa1ad;
  color: #9aa1ad;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.hero-actions .btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #1f6dc0;
  transform: translateY(-2px);
}

/* Trust-signals bar pinned at bottom of hero */
.hero-trust {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.hero-trust-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 6px 24px;
}

.hero-trust-item + .hero-trust-item {
  border-left: 1px solid rgba(255,255,255,0.14);
}

.hero-trust-item strong {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-trust-item span {
  color: var(--text-on-dark-muted);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero { padding-top: 72px; }
  .hero .container { padding-bottom: 64px; }
  .hero p { font-size: 1rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn,
  .hero-actions .btn-hero-outline { width: 100%; justify-content: center; }
  .hero-trust { margin-top: 44px; }
  .hero-trust-grid { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .hero-trust-item { padding: 0; }
  .hero-trust-item + .hero-trust-item {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 18px;
  }
}


/* =========================================================
   11. SECTION VARIANTS - dark / light alternation
   ========================================================= */
/* Dark indigo feature bands */
.section.dark,
.section.highlight {
  background: var(--section-dark);
  color: #ffffff;
  position: relative;
}

.section.highlight { text-align: center; }

.section.dark h2,
.section.highlight h2 { color: #ffffff; }

/* Any bold text inside dark bands must be light, not dark ink */
.section.dark strong,
.section.highlight strong { color: #ffffff; }

.section.dark .section-intro,
.section.highlight p,
.section.dark > .container > p {
  color: var(--text-on-dark-muted);
}

.section.highlight p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards inside dark sections become glassy (Norte language) */
.section.dark .card,
.section.highlight .card {
  background: var(--surface-on-dark);
  border: 1px solid var(--border-on-dark);
  backdrop-filter: blur(4px);
}

.section.dark .card h3,
.section.highlight .card h3 { color: #ffffff; }

.section.dark .card p,
.section.highlight .card p { color: var(--text-on-dark-muted); }

.section.dark .card strong,
.section.highlight .card strong { color: #ffffff; }

.section.dark .card:hover,
.section.highlight .card:hover {
  background: var(--surface-on-dark-hover);
  border-color: rgba(255,255,255,0.28);
}

.highlight-nota {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.72) !important;
  margin-top: 28px;
  margin-bottom: 0;
  text-align: center;
}


/* =========================================================
   12. GRID
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-grid);
  margin-top: 36px;
  align-items: stretch;
}

.grid-2x2      { grid-template-columns: repeat(2, 1fr); }
.grid-3col     { grid-template-columns: repeat(3, 1fr); }
.grid-4col     { grid-template-columns: repeat(4, 1fr); }
.grid-incentivos { grid-template-columns: repeat(3, 1fr); }


/* =========================================================
   13. CARDS - 16px radius, border, lift on hover
   ========================================================= */
.card {
  background: var(--surface);
  padding: var(--space-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition-lift), border-color 0.25s ease, background 0.25s ease;
  backface-visibility: hidden;
}

.card h3 {
  margin-bottom: 2px;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.card:active { transform: translateY(-3px); }

/* "Outros apoios" wide card */
.card-outros {
  grid-column: 1 / -1;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
}

.card-outros:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(81, 166, 243, 0.18);
}

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

.card-outros-text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-outros-text h3 { color: var(--accent-deep); font-size: 1.08rem; }
.card-outros-text p  { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; margin: 0; }
.card-outros-cta { flex-shrink: 0; }
.card-outros-cta .btn-link { white-space: nowrap; font-size: 0.98rem; margin-top: 0; }

/* On dark sections the outros card stays readable */
.section.dark .card-outros,
.section.highlight .card-outros {
  background: var(--surface-on-dark);
  border: 1.5px solid rgba(81,166,243,0.5);
}
.section.dark .card-outros-text h3,
.section.highlight .card-outros-text h3 { color: var(--accent); }
.section.dark .card-outros-text p,
.section.highlight .card-outros-text p { color: var(--text-on-dark-muted); }
.section.dark .card-outros-cta .btn-link,
.section.highlight .card-outros-cta .btn-link { color: var(--accent); }


/* =========================================================
   14. STEPS (Como funciona)
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 40px;
}

.step { text-align: center; }

.step h3 { color: inherit; margin-bottom: 8px; font-size: 1.12rem; }

.step p { font-size: 0.95rem; line-height: 1.7; }

.section.dark .step h3 { color: #ffffff; }
.section.dark .step p  { color: var(--text-on-dark-muted); }

.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent-strong);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(47, 127, 208, 0.35);
}

.section.dark .step-number {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(81, 166, 243, 0.4);
}


/* =========================================================
   15. PROGRAMME LOGOS
   ========================================================= */
.programas-logos {
  background: var(--surface);
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.programas-label {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.programas-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 44px;
}

.programas-grid img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.programas-grid img:hover { opacity: 1; transform: translateY(-2px); }

@media (max-width: 768px) {
  .programas-grid { gap: 22px 30px; }
  .programas-grid img { height: 36px; }
}


/* =========================================================
   16. NEWS / ARTIGOS
   ========================================================= */
.news-section {
  background: var(--surface);
  padding: var(--space-section) 0;
}

.section-heading { margin-bottom: 40px; max-width: 720px; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-lift), border-color 0.25s ease;
  backface-visibility: hidden;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.news-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.01em;
}

.news-card h3 a { color: inherit; transition: color var(--transition-base); }
.news-card h3 a:hover { color: var(--accent-strong); }

.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.news-card .btn.small { margin-top: 4px; align-self: flex-start; }

.news-meta { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  width: fit-content;
}

.tag-azul     { background: var(--accent-soft); color: var(--accent-deep); }
.tag-vermelho { background: #fde4e4; color: #b4322b; }
.tag-verde    { background: #def0e3; color: #1f7a44; }
.tag-laranja  { background: #fdebd8; color: #b8631a; }


/* =========================================================
   17. FAQ - accordion
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  margin: 36px auto 0;
  max-width: 800px;
}

.faq-intro { max-width: 800px; margin-left: auto; margin-right: auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-strong);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--accent-strong); }

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 4px 20px;
}


/* =========================================================
   18. CTA FINAL - dark indigo band
   ========================================================= */
.cta {
  text-align: center;
  padding: var(--space-section) 20px;
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(81,166,243,0.18), transparent 60%),
    var(--section-dark);
  color: #ffffff;
}

.cta .container { display: flex; flex-direction: column; align-items: center; }
.cta h2 { color: #ffffff; max-width: 620px; margin-bottom: 14px; }
.cta p {
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* White CTA button on the dark band */
.cta .btn {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.cta .btn:hover { color: var(--accent-deep); }


/* =========================================================
   19. FORMS
   ========================================================= */
.contact { text-align: center; }

.contact-intro {
  max-width: 580px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text-soft); }
.label-opcional { font-weight: 400; color: var(--text-muted); }

input, textarea, select {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

input::placeholder, textarea::placeholder { color: #9aa1ad; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81, 166, 243, 0.18);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235b6473' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

textarea { min-height: 120px; resize: vertical; }

.contact .btn { width: 100%; text-align: center; margin-top: 8px; font-size: 1rem; padding: 16px; }

.form-nota { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 12px; }


/* =========================================================
   20. DIRECT CONTACT
   ========================================================= */
.direct-contact {
  margin-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 2;
}

.direct-contact a { color: var(--accent-strong); font-weight: 600; }
.direct-contact a:hover { text-decoration: underline; }


/* =========================================================
   21. FLOATING BUTTONS
   ========================================================= */
.whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42);
  z-index: 999;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.52); }

.sticky-cta {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: var(--accent-strong);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-btn);
  z-index: 999;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sticky-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hov); }


/* =========================================================
   22. FOOTER - Norte floating rounded dark card
   ========================================================= */
footer {
  background: var(--bg);
  padding: 0 20px 24px;
}

footer .container {
  background: var(--footer);
  color: var(--text-on-dark-muted);
  border-radius: var(--radius-lg);
  padding: 48px 40px 32px;
  max-width: 1140px;
}

/* Grelha de 4 colunas + coluna de marca */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin: 14px 0 0;
}
.footer-logo { display: block; height: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-col h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-base);
}
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #ffffff; }

/* Assinatura de endosso do ecossistema (partilhada pelas 3 marcas) */
.eco-endorse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 22px 0;
  margin: 8px 0 22px;
  border-top: 1px solid var(--border-on-dark);
  text-align: center;
  font-size: 0.9rem;
}
.eco-endorse__label { color: var(--text-on-dark-muted); }
.eco-endorse__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.eco-endorse__brands a { color: rgba(255,255,255,0.78); }
.eco-endorse__brands a:hover { color: #ffffff; }
.eco-endorse__brands .is-current { color: #ffffff; }
.eco-endorse__more { color: #4B9AE8; font-weight: 700; white-space: nowrap; }
.eco-endorse__more:hover { text-decoration: underline; }
/* Cor da extensao .pt por marca (contexto claro) */
.eco-tld--inc { color: #2F7FD0; }
.eco-tld--net { color: #00897B; }
.eco-tld--dig { color: #EF4D38; }
/* Variante mais clara para fundo escuro (rodape) */
.eco-endorse .eco-tld--inc { color: #4B9AE8; }
.eco-endorse .eco-tld--net { color: #2BC0AA; }
.eco-endorse .eco-tld--dig { color: #FF6A54; }
/* Cartao da propria marca na seccao de ecossistema */
.card.is-self { border-style: dashed; }

@media (max-width: 859px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  footer .container { padding: 36px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}


/* =========================================================
   23. SIMULADOR
   ========================================================= */
.simulator-section {
  background:
    radial-gradient(900px 400px at 50% -5%, rgba(81,166,243,0.10), transparent 60%),
    var(--bg);
}

.simulator-shell { max-width: 880px; margin: 0 auto; }

.simulator-intro { text-align: center; max-width: 760px; margin: 0 auto 34px; }

.simulator-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.simulator-intro h2 { margin-bottom: 14px; max-width: 720px; margin-left: auto; margin-right: auto; }
.simulator-intro .contact-intro { max-width: 680px; margin: 0 auto; font-size: 1.02rem; }

.simulator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  text-align: left;
  overflow: hidden;
}

.simulator-form { max-width: 100%; margin: 0; }

.simulator-progress { margin-bottom: 30px; }

.simulator-progress-bar {
  height: 12px;
  background: var(--accent-soft-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.simulator-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent) 100%);
  transition: width 0.28s ease;
}

.simulator-progress-text { margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.simulator-step { display: none; }
.simulator-step.is-active { display: block; animation: simulatorFade 0.28s ease; }

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

.simulator-step-head { margin-bottom: 24px; }

.simulator-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.simulator-step-head h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.simulator-step-head p { max-width: 640px; color: var(--text-muted); font-size: 1rem; }

.simulator-options { display: grid; gap: 14px; }
.simulator-options.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simulator-options.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.simulator-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  min-height: 92px;
}

.simulator-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(81, 166, 243, 0.10);
}

.simulator-option.is-selected {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(81, 166, 243, 0.16);
}

.simulator-option-icon {
  flex-shrink: 0;
  min-width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-soft-2);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.simulator-option.is-selected .simulator-option-icon { background: var(--accent-strong); color: #ffffff; }

.simulator-option-text { display: flex; flex-direction: column; gap: 4px; }
.simulator-option-text strong { color: var(--ink); font-size: 0.98rem; line-height: 1.3; }
.simulator-option-text small  { color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }

.simulator-fields { display: grid; gap: 8px; }
.simulator-fields .form-group { margin-bottom: 12px; }
.simulator-fields textarea { min-height: 120px; }

.simulator-result-preview {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
}

.simulator-result-preview p { font-size: 0.92rem; color: var(--text-soft); margin: 0; }

.simulator-result-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft-2);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.simulator-step-result .simulator-step-head { margin-bottom: 24px; }

/* Estimativa de apoio em euros: alavanca de conversão do resultado */
.simulator-estimate {
  margin: 0 0 24px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--section-dark) 0%, #1f6dc0 100%);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-card);
}
.simulator-estimate[hidden] { display: none; }
.simulator-estimate-recap {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
}
.simulator-estimate-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  margin-bottom: 6px;
}
.simulator-estimate-value {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.simulator-estimate-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

.simulator-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.simulator-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.simulator-result-card h4 { font-size: 1.02rem; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.simulator-result-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.simulator-result-card-note { background: var(--bg); }

.simulator-result-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.simulator-final-cta { margin-top: 26px; text-align: center; }
.simulator-final-cta .btn { min-width: 280px; margin-top: 0; }

.simulator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.simulator-back {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
}

.simulator-back:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.simulator-back:disabled { opacity: 0.45; cursor: not-allowed; }

.simulator-next { margin-top: 0; min-width: 170px; }
.simulator-next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 14px rgba(47, 127, 208, 0.18);
}

.simulator-section .direct-contact { margin-top: 24px; }
.simulator-section .direct-contact a { color: var(--accent-strong); }


/* =========================================================
   24. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-incentivos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --space-section: 64px; --space-section-sm: 40px; }

  .grid,
  .grid-2x2,
  .grid-3col,
  .grid-4col,
  .grid-incentivos,
  .steps,
  .news-grid { grid-template-columns: 1fr; }

  .card-outros { grid-column: 1; }
  .card-outros-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .card-outros-cta .btn-link { white-space: normal; }

  .simulator-card { padding: 24px 20px; border-radius: var(--radius-card); }
  .simulator-options.grid-2,
  .simulator-options.grid-3,
  .simulator-result-grid { grid-template-columns: 1fr; }
  .simulator-option { min-height: auto; padding: 16px; }
  .simulator-actions { flex-direction: column-reverse; align-items: stretch; }
  .simulator-next,
  .simulator-back,
  .simulator-final-cta .btn { width: 100%; min-width: 0; }

  .faq-item summary { font-size: 0.98rem; }
}

@media (max-width: 480px) {
  .logo { height: 44px; }
  .nav { height: 64px; }

  .whatsapp,
  .sticky-cta {
    font-size: 0.8rem;
    padding: 12px 16px;
    bottom: 16px;
    max-width: calc(50vw - 20px);
  }
  .whatsapp  { right: 12px; }
  .sticky-cta { left: 12px; }
}


/* =========================================================
   25. SECONDARY HERO (internal pages) - kept for parity
   ========================================================= */
.hero-secundario {
  background: var(--accent-soft);
  color: var(--text);
  text-align: left;
  padding: 64px 0 56px;
}

.hero-secundario-inner { max-width: 760px; margin: 0 auto; }

.hero-secundario h1 {
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-secundario p { margin: 0 0 16px; max-width: 640px; color: var(--text-soft); font-size: 1rem; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft-2);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}


/* =========================================================
   26. PREFERS-REDUCED-MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   27. COMPONENTES GEO: byline, TL;DR, caixa de autor,
       tabela comparativa fundo perdido vs reembolsável.
       Partilhados por todos os artigos (carregam style.css).
   ========================================================= */

/* Byline visível (dentro de .article-meta, no hero escuro) */
.article-byline { display: flex; align-items: center; gap: 5px; }
.article-byline a { color: #bfdbfe; text-decoration: none; font-weight: 600; }
.article-byline a:hover { text-decoration: underline; }

/* TL;DR: resposta primeiro, no topo do corpo do artigo */
.article-tldr {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.article-tldr .tldr-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 8px;
}
.article-tldr p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #1e3a8a;
}

/* Caixa de autor: fim do artigo */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 40px 0 0;
}
.author-box-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}
.author-box-body { min-width: 0; }
.author-box-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 4px;
}
.author-box-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}
.author-box-role {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
  margin: 0 0 10px;
}
.author-box-bio {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 10px;
}
.author-box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.author-box-link:hover { text-decoration: underline; }

/* Tabela comparativa: fundo perdido vs financiamento reembolsável */
.compare-fund {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.compare-fund caption {
  caption-side: top;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding-bottom: 10px;
}
.compare-fund th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  vertical-align: top;
}
.compare-fund thead th { color: #0f172a; font-size: 0.95rem; }
.compare-fund thead th.col-perdido { color: #16a34a; }
.compare-fund thead th.col-reembolsavel { color: #2563eb; }
.compare-fund tbody th {
  font-weight: 600;
  color: #475569;
  width: 30%;
  background: #f8fafc;
}
.compare-fund td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #374151;
  line-height: 1.6;
  vertical-align: top;
}
.compare-fund tbody tr:last-child th,
.compare-fund tbody tr:last-child td { border-bottom: none; }

/* Menção ao fundador no cartão "Quem está por trás" (sobre.html) */
.about-founder {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 14px;
}
.about-founder a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.about-founder a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .author-box { flex-direction: column; gap: 12px; }
  .compare-fund tbody th { width: auto; }
}

/* ============================================================
   COMPONENTES PARTILHADOS
   (centralizados aqui para reutilização em todas as páginas de
   serviço. Antes viviam inline no esg.html.)
   ============================================================ */

/* Tokens de status (semáforo de perfis: verde/amarelo/vermelho) */
:root {
  --status-green:      #2e9e5b;
  --status-green-bg:   #e4f4ea;
  --status-green-ink:  #1f7a45;
  --status-amber:      #d8a200;
  --status-amber-bg:   #fbf2d4;
  --status-amber-ink:  #8a6b00;
  --status-red:        #d2433a;
  --status-red-bg:     #fbe1df;
  --status-red-ink:    #a32d26;
}

/* ---- Page hero (template único das páginas de serviço) ---- */
.page-hero { padding-top: var(--space-section-sm); }
.page-hero .section-kicker,
.page-hero .section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-strong);
}
.hero-stats-secondary { margin-top: 32px; }
.hero-actions-secondary {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ---- Trust / stats strip (hero de prova social) ---- */
.trust {
  padding: 32px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat strong { font-size: 1.35rem; color: var(--ink); line-height: 1.15; }
.stat span { font-size: 0.88rem; color: var(--text-soft); line-height: 1.4; }
.stat-programas strong { font-size: 1rem; }

/* ---- Steps inline (processo em linha) ---- */
.steps-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
  margin-top: 32px;
}
.step-small {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.step-small h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-small p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text-soft); }

/* ---- Pricing (escada de valor) ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.pricing-tier--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-card);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
}
.pricing-eyebrow {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-strong);
}
.pricing-title { margin: 0 0 6px; font-size: 1.25rem; }
.pricing-tagline { margin: 0 0 20px; color: var(--text-soft); font-size: 0.92rem; line-height: 1.45; }
.pricing-items { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.pricing-items li { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pricing-items li:last-child { padding-bottom: 0; border-bottom: 0; }
.pricing-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pricing-item-name { font-weight: 600; color: var(--ink); }
.pricing-item-price { font-weight: 700; font-size: 1.1rem; color: var(--accent-strong); white-space: nowrap; }
.pricing-item-unit { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.pricing-item-desc { margin: 5px 0 0; font-size: 0.86rem; color: var(--text-soft); line-height: 1.45; }
.pricing-cta { margin-top: auto; display: block; width: 100%; text-align: center; }

/* ---- Ref strip (chips de autoridade / normas) ---- */
.ref-strip { margin-top: 32px; }
.ref-strip-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ref-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.ref-chips li {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

/* ---- Hub de serviços/programas (cards com link) ---- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-grid);
  margin-top: 32px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-lift);
  text-decoration: none;
  color: inherit;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.hub-card .hub-eyebrow {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent-strong); margin: 0 0 8px;
}
.hub-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.hub-card p { margin: 0 0 16px; font-size: 0.92rem; line-height: 1.55; color: var(--text-soft); }
.hub-card .hub-arrow { margin-top: auto; font-weight: 600; color: var(--accent-strong); }

/* ---- Responsivo dos componentes partilhados ---- */
@media (max-width: 859px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-tier { padding: 26px 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-inline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .steps-inline { grid-template-columns: 1fr; }
}

/* ---- Card clicável (card que é <a>) ---- */
a.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
a.card-link .card-link-arrow {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-strong);
}
a.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
a.card-link:hover .card-link-arrow { text-decoration: underline; }
a.card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Item "Ver todos" em destaque no topo dos submenus */
.nav-submenu-lead { font-weight: 700; color: var(--accent-strong) !important; }

/* Wrapper para tabelas com scroll horizontal em ecrãs pequenos */
.table-wrap { width: 100%; overflow-x: auto; margin-top: 28px; -webkit-overflow-scrolling: touch; }
.table-wrap .compare-fund { min-width: 560px; }

/* =====================================================================
   Acrescentos: utilitários, newsletter, toggle de idioma, estados de form
   ===================================================================== */

/* Acessibilidade: texto só para leitores de ecrã */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

/* Toggle de idioma no header */
.lang-switch {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 12px !important;
  font-size: .8rem; font-weight: 700;
  color: var(--text-soft) !important;
  transition: all var(--transition-base);
}
.lang-switch:hover { border-color: var(--accent-strong); color: var(--accent-strong) !important; }

/* Newsletter no footer */
.footer-newsletter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 32px;
  padding: 0 0 30px; margin-bottom: 30px;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-newsletter-text { flex: 1 1 320px; }
.footer-newsletter-text h3 { color: var(--text-on-dark); margin: 0 0 4px; font-size: 1.1rem; }
.footer-newsletter-text p { color: var(--text-on-dark-muted); margin: 0; font-size: .9rem; }
.footer-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 360px; max-width: 480px; }
.footer-newsletter-form input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-pill);
  background: var(--surface-on-dark);
  color: var(--text-on-dark);
  font-family: inherit; font-size: .92rem;
}
.footer-newsletter-form input[type="email"]::placeholder { color: var(--text-on-dark-muted); }
.footer-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--accent); background: var(--surface-on-dark-hover); }
.footer-newsletter-form .form-status { flex: 1 1 100%; }

/* Estados das mensagens de formulário (AJAX Web3Forms) */
.form-status { margin: 8px 0 0; font-size: .88rem; }
.form-status.is-success { color: #1c7a45; font-weight: 600; }
.form-status.is-error { color: #b42318; font-weight: 600; }
/* No fundo escuro do footer, o sucesso precisa de contraste claro */
footer .form-status.is-success { color: #9be8bd; }
footer .form-status.is-error { color: #ffb4ab; }

@media (max-width: 600px) {
  .footer-newsletter-form .btn { width: 100%; }
}

/* ============================================================
   28. COMPONENTES SEO: guias relacionados (linking interno),
       rate-table global e helpers da pagina-pilar fundo perdido.
   Partilhado por todos os artigos e money pages.
   ============================================================ */

/* Bloco "Guias relacionados": silo de linking interno no fim de cada artigo */
.article-related {
  max-width: 860px;
  margin: 44px auto 0;
  padding: 24px 0 4px;
  border-top: 1px solid #e5e7eb;
}
.article-related h2 {
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.article-related-grid a {
  display: block;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.article-related-grid a:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}
.article-related-grid a span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  color: #64748b;
}

/* Rate-table global (mesma estetica das tabelas dos artigos) */
.rate-table-g { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.9rem; }
.rate-table-g th { background: #0f172a; color: #fff; padding: 11px 14px; text-align: left; font-weight: 600; }
.rate-table-g td { padding: 11px 14px; border-bottom: 1px solid #e5e7eb; color: #374151; vertical-align: top; }
.rate-table-g tr:nth-child(even) td { background: #f9fafb; }
.rate-table-g .hl { font-weight: 700; color: #1d4ed8; }

/* Helpers da pagina-pilar */
.fp-prose { max-width: 820px; margin: 0 auto; }
.fp-prose h2 { font-size: 1.5rem; color: #0f172a; margin: 40px 0 14px; }
.fp-prose h3 { font-size: 1.1rem; color: #0f172a; margin: 26px 0 8px; }
.fp-prose p { color: #374151; line-height: 1.75; margin-bottom: 14px; }
.fp-prose ul, .fp-prose ol { padding-left: 20px; margin-bottom: 16px; color: #374151; line-height: 1.7; }
.fp-prose li { margin-bottom: 7px; }
.fp-note { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 0 10px 10px 0; padding: 16px 18px; margin: 22px 0; }
.fp-note p { margin: 0; color: #1e40af; font-size: 0.94rem; }
.table-wrap { overflow-x: auto; }

/* Glossario (DefinedTermSet) */
.glossary { max-width: 820px; margin: 0 auto; }
.glossary-term { padding: 20px 0; border-bottom: 1px solid #e5e7eb; }
.glossary-term:last-child { border-bottom: none; }
.glossary-term dt { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.glossary-term dd { margin: 0; color: #374151; line-height: 1.7; font-size: 0.96rem; }
.glossary-term dd a { color: #2563eb; }
.glossary-nav { max-width: 820px; margin: 0 auto 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.glossary-nav a { display: inline-block; padding: 6px 12px; background: #f1f5f9; border-radius: 999px; color: #1e293b; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.glossary-nav a:hover { background: #dbeafe; color: #1d4ed8; }
/* Breadcrumbs visiveis */
.crumbs { max-width: 820px; margin: 0 auto; padding: 14px 0 0; font-size: 0.82rem; color: #64748b; }
.crumbs a { color: #2563eb; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: #94a3b8; margin: 0 4px; }

/* Correcao: <strong> dentro da barra de topo herdava a cor do texto (navy),
   ficando invisivel sobre o fundo navy. Forcar branco como o resto da barra. */
.topbar strong { color: #ffffff; }

/* Banner de consentimento de cookies (RGPD / Google Consent Mode) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--ink, #10192e); color: #ffffff;
  border-radius: var(--radius-card, 16px); padding: 18px 22px;
  box-shadow: 0 18px 50px rgba(16, 25, 46, 0.4);
  animation: cookieIn .3s ease;
}
@keyframes cookieIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner p { margin: 0; flex: 1 1 300px; font-size: 0.92rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.cookie-banner a { color: #8fc3f7; font-weight: 700; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner button { cursor: pointer; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 0.9rem; border: 1.5px solid transparent; transition: filter .15s, border-color .15s; }
.cookie-banner .ck-accept { background: #2867ad; color: #ffffff; }
.cookie-banner .ck-accept:hover { filter: brightness(1.08); }
.cookie-banner .ck-reject { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }
.cookie-banner .ck-reject:hover { border-color: #ffffff; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner p { flex: 0 1 auto; }
  .cookie-banner .cookie-actions button { flex: 1; }
}
