/* ============================================================
   Verdecenter — Design System
   Direção: Graphite + Verde-sinal. Verde só em destaques/CTA;
   o resto da UI é neutro (grafite/branco/cinza). Uma única fonte
   de verdade — sem direções sobrepostas.
   ============================================================ */

:root {
    /* Neutrals */
    --ink: #0b0f0d;
    --ink-2: #12181b;
    --graphite: #0b0f0d;
    --graphite-soft: #141a17;
    --text: #12181b;
    --text-soft: #52606b;
    --text-faint: #5f6a72;
    --on-dark: #f4f6f5;
    --on-dark-soft: #a6afac;
    --on-dark-faint: #7a8480;
    --paper: #ffffff;
    --surface-alt: #f4f6f5;
    --line: #e4e7e5;
    --line-dark: rgba(244, 246, 245, .14);

    /* Brand accent — usado com intenção, nunca em blocos grandes */
    --green: #16a34a;
    --green-strong: #0f7c39;
    --green-strong-2: #0b5c2c;
    --green-soft: #e9f7ef;
    --green-on-dark: #3ecb70;

    /* Estado (formulários) */
    --error: #b42318;
    --error-soft: #fdecea;

    /* Layout */
    --container: 1200px;
    --radius: 10px;
    --radius-lg: 14px;

    /* Motion */
    --ease: cubic-bezier(.22, .72, .24, 1);
    --dur-fast: 150ms;
    --dur-base: 250ms;
    --dur-slow: 400ms;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: var(--green); color: white; border-radius: var(--radius); transform: translateY(-150%); transition: transform var(--dur-base) var(--ease); }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; letter-spacing: -.03em; line-height: 1.1; color: var(--text); font-weight: 800; }
h1 { font-size: clamp(38px, 5.2vw, 60px); letter-spacing: -.04em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; }
em { color: var(--green); font-style: normal; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark em { color: var(--green-on-dark); }

/* Secções de fundo escuro: aplicado diretamente às classes de secção,
   para nunca depender de lembrar de acrescentar .on-dark num wrapper. */
.hero, .section-dark, .page-hero, .page-cta, .cta-final {
    color: var(--on-dark);
}
.hero h1, .hero h2, .hero h3, .section-dark h1, .section-dark h2, .section-dark h3,
.page-hero h1, .page-hero h2, .page-hero h3, .page-cta h1, .page-cta h2, .page-cta h3,
.cta-final h1, .cta-final h2, .cta-final h3 {
    color: var(--on-dark);
}
.hero em, .section-dark em, .page-hero em, .page-cta em, .cta-final em { color: var(--green-on-dark); }
.hero .eyebrow, .section-dark .eyebrow, .page-hero .eyebrow, .page-cta .eyebrow, .cta-final .eyebrow { color: var(--on-dark-soft); }
.hero p, .section-dark p, .page-hero p, .page-cta p, .cta-final p { color: var(--on-dark-soft); }
.hero .button-outline, .section-dark .button-outline, .page-hero .button-outline, .page-cta .button-outline, .cta-final .button-outline {
    border-color: var(--line-dark); color: var(--on-dark);
}
.hero .button-outline:hover, .section-dark .button-outline:hover, .page-hero .button-outline:hover, .page-cta .button-outline:hover, .cta-final .button-outline:hover {
    background: rgba(244,246,245,.06);
}
.hero .text-link, .section-dark .text-link, .page-hero .text-link, .page-cta .text-link, .cta-final .text-link { color: var(--green-on-dark); }
.hero .breadcrumbs a, .page-hero .breadcrumbs a { color: var(--on-dark-faint); }

.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--text-faint); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow:before { content: ''; width: 22px; height: 2px; background: var(--green); }
.on-dark .eyebrow { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: var(--radius);
    font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-strong); color: white; box-shadow: 0 10px 24px rgba(22,163,74,.22); }
.button-primary:hover { background: var(--green-strong-2); box-shadow: 0 14px 28px rgba(22,163,74,.28); }
.button-outline { border-color: var(--line); color: var(--text); background: transparent; }
.button-outline:hover { border-color: var(--text-faint); background: var(--surface-alt); }
.on-dark .button-outline { border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .button-outline:hover { background: rgba(244,246,245,.06); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--green); }
.text-link span { font-size: 17px; transition: transform var(--dur-fast) var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }
.on-dark .text-link { color: var(--green-on-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { display: block; width: 168px; height: auto; max-height: 42px; object-fit: contain; object-position: left center; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--text); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform var(--dur-fast) var(--ease); }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.main-nav > a:not(.nav-cta):not(.nav-support) { opacity: .82; transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); min-height: 44px; display: inline-flex; align-items: center; }
.main-nav > a:not(.nav-cta):not(.nav-support):hover { opacity: 1; color: var(--green-strong); }
.nav-support { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 1px solid var(--green); border-radius: var(--radius); color: var(--green-strong); font-weight: 700; font-size: 13px; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.nav-support svg { width: 15px; height: 15px; fill: currentColor; }
.nav-support:hover { background: var(--green-soft); border-color: var(--green-strong); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); background: var(--ink); color: white; font-weight: 700; font-size: 13px; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.nav-cta:hover { background: var(--green-strong); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 24px; background: var(--graphite); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { max-width: 260px; margin: 18px 0 22px; color: var(--on-dark-soft); font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.footer-social a:hover { border-color: var(--green-on-dark); background: rgba(62,203,112,.1); }
.footer-social svg { width: 16px; height: 16px; fill: var(--on-dark); }
.footer-col h4 { margin-bottom: 16px; color: var(--on-dark); font: 700 12px 'Manrope'; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; margin-bottom: 11px; color: var(--on-dark-soft); font-size: 14px; transition: color var(--dur-fast) var(--ease); min-height: 24px; }
.footer-col a:hover { color: var(--green-on-dark); }
.footer-col .call-note { display: block; margin: -7px 0 11px; color: var(--on-dark-faint); font-size: 11px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; color: var(--on-dark-faint); font-size: 12px; }
.footer-bottom a { color: var(--on-dark-faint); }
.footer-bottom a:hover { color: var(--on-dark); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--graphite); color: var(--on-dark); }
.section-heading { display: grid; grid-template-columns: 1fr .68fr; gap: 70px; align-items: end; margin-bottom: 56px; }
.section-heading.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-intro { max-width: 420px; margin: 0; color: var(--text-soft); line-height: 1.7; }
.on-dark .section-intro { color: var(--on-dark-soft); }

/* ---------- Reveal / scroll motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-1 { transition-delay: .06s; } .reveal-2 { transition-delay: .12s; } .reveal-3 { transition-delay: .18s; }
.reveal-4 { transition-delay: .24s; } .reveal-5 { transition-delay: .3s; } .reveal-6 { transition-delay: .36s; }

/* ---------- Cards & shared components ---------- */
.card-grid { display: grid; gap: 20px; }
.service-card {
    position: relative; display: flex; min-height: 250px; flex-direction: column;
    padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.service-card:hover { transform: translateY(-4px) scale(1.02); border-color: #cfd6d2; box-shadow: 0 18px 34px rgba(11,15,13,.1); }
.service-card:focus-visible { transform: translateY(-4px) scale(1.02); }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--green-soft); }
.service-icon-canvas { display: block; width: 100%; height: 100%; }
.service-card h3 { margin: 20px 0 10px; font-size: 19px; }
.service-card p { margin: 0 0 18px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.service-card .card-link { margin-top: auto; color: var(--green-strong); font-size: 13px; font-weight: 800; }
.service-card .card-link span { margin-left: 6px; transition: transform var(--dur-fast) var(--ease); }
.service-card:hover .card-link span { transform: translateX(3px); }

/* ---------- Dashboard mockup (ilustrativo, partilhado entre páginas) ---------- */
.dashboard-window { position: absolute; inset: 0; width: 100%; overflow: hidden; border: 1px solid rgba(244,246,245,.1); border-radius: 16px; background: var(--paper); box-shadow: 0 30px 70px rgba(0,0,0,.4); transform: perspective(1000px) rotateY(-6deg) rotateX(2deg); }
.dashboard-sidebar { position: absolute; inset: 0 auto 0 0; display: flex; width: 54px; flex-direction: column; align-items: center; gap: 22px; padding: 18px 0; background: var(--ink); }
.dashboard-sidebar b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(244,246,245,.35); border-radius: 7px; color: white; font: 800 12px 'Manrope'; }
.dashboard-sidebar span { width: 16px; height: 16px; border: 1px solid rgba(244,246,245,.3); border-radius: 4px; opacity: .7; }
.dashboard-sidebar .active { background: var(--green); border-color: var(--green); opacity: 1; box-shadow: 0 0 0 5px rgba(22,163,74,.18); }
.dashboard-content { margin-left: 54px; padding: 26px 30px; }
.dashboard-top { display: flex; align-items: center; gap: 8px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--text-faint); font: 600 9px 'Inter'; }
.dashboard-top i { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; border: 1px solid var(--line); }
.dashboard-title { padding: 22px 0 18px; }
.dashboard-title small { display: block; color: var(--text-faint); font-size: 9px; }
.dashboard-title strong { display: block; margin-top: 4px; color: var(--text); font: 700 19px 'Manrope'; letter-spacing: -.03em; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dashboard-stats > div { padding: 16px; border-radius: 12px; background: var(--surface-alt); }
.stat-icon { display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 9px; border-radius: 6px; background: var(--green-soft); color: var(--green-strong); }
.stat-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-stats small { display: block; color: var(--text-faint); font-size: 8px; }
.dashboard-stats b { display: block; margin: 7px 0 3px; color: var(--text); font: 700 15px 'Manrope'; font-variant-numeric: tabular-nums; }
.dashboard-stats em { color: var(--green-strong); font: 600 8px 'Inter'; font-style: normal; }
.dashboard-chart { margin-top: 16px; padding: 18px; border-radius: 12px; background: var(--surface-alt); }
.chart-label { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 8px; }
.chart-label b { color: var(--green-strong); }
.chart-grid { position: relative; height: 80px; margin-top: 10px; }
.chart-grid svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-grid polyline { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-badge { position: absolute; right: 4%; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 16px 32px rgba(0,0,0,.28); }
.dashboard-badge > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--green-soft); color: var(--green-strong); font-weight: 800; }
.dashboard-badge small { display: block; color: var(--text-faint); font-size: 8px; }
.dashboard-badge strong { display: block; margin-top: 2px; color: var(--text); font: 700 11px 'Manrope'; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; cursor: pointer; list-style: none; font: 700 16px 'Manrope'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); color: var(--green-strong); font-size: 16px; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.faq-item[open] summary span { transform: rotate(45deg); background: var(--green-soft); }
.faq-item p { max-width: 640px; margin: -6px 45px 22px 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.faq-item p a { color: var(--green-strong); text-decoration: underline; text-underline-offset: 2px; }
.faq-item p a:hover { color: var(--green-strong-2); }

/* ---------- Easter egg (hero S/G) ---------- */
.egg-letter { cursor: pointer; }
.egg-overlay { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 24px; background: rgba(11, 15, 13, .92); cursor: pointer; animation: egg-fade var(--dur-base, .2s) var(--ease, ease); }
.egg-overlay img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0,0,0,.5); }
@keyframes egg-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .section-heading { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 1280px) {
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: 65px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 20px 40px rgba(11,15,13,.16); }
    .main-nav.is-open { display: flex; }
    .main-nav > a:not(.nav-cta):not(.nav-support) { display: block; padding: 13px 12px; opacity: 1; }
    .nav-support { justify-content: center; margin: 6px 0; }
    .nav-cta { margin-top: 6px; justify-content: center; }
}
@media (max-width: 640px) {
    .container { width: min(calc(100% - 36px), var(--container)); }
    .header-inner { min-height: 66px; }
    .main-nav { top: 55px; }
    .section { padding: 64px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
