:root{
  --blue:#1530c8;
  --blue-dark:#0b1a6e;
  --blue-soft:#eaeefe;
  --accent:#f5a623;
  --green:#1fa855;
  --ink:#0f1630;
  --muted:#5a6280;
  --line:#e3e7f3;
  --bg:#ffffff;
  --bg-alt:#f6f8fd;
  --radius:16px;
  --shadow:0 10px 30px rgba(21,48,200,.10);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{width:min(1120px,100% - 40px);margin-inline:auto}
section{padding:84px 0}
.alt{background:var(--bg-alt)}
h1,h2,h3{line-height:1.2;letter-spacing:-.01em}
h2{font-size:clamp(1.7rem,3.2vw,2.4rem);margin-bottom:14px}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
.lead{color:var(--muted);font-size:1.1rem;max-width:62ch}
.center{text-align:center}
.center .lead{margin-inline:auto}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 24px;border-radius:999px;font-weight:700;font-size:1rem;border:2px solid transparent;cursor:pointer;transition:.2s;font-family:inherit}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 20px rgba(21,48,200,.28)}
.btn-primary:hover{background:var(--blue-dark);transform:translateY(-2px)}
.btn-wa{background:var(--green);color:#fff;box-shadow:0 8px 20px rgba(31,168,85,.28)}
.btn-wa:hover{filter:brightness(.92);transform:translateY(-2px)}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}

/* Header */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:70px}
.logo{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:1.6rem;color:var(--blue);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.menu{display:flex;align-items:center;gap:28px;font-weight:600;font-size:.95rem}
.menu a:not(.btn):hover{color:var(--blue)}
.menu .btn{padding:10px 20px;font-size:.92rem}
.burger{display:none;background:none;border:0;font-size:1.8rem;color:var(--blue);cursor:pointer}

/* Hero */
.hero{background:linear-gradient(135deg,var(--blue-dark) 0%,var(--blue) 60%,#3c5bff 100%);color:#fff;padding:96px 0 110px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.07)}
.hero::before{content:"";position:absolute;left:-80px;bottom:-160px;width:360px;height:360px;border-radius:50%;background:rgba(245,166,35,.12)}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:1.2fr .8fr;gap:48px;align-items:center}
.hero h1{font-size:clamp(2.2rem,5vw,3.6rem);margin-bottom:20px}
.hero h1 span{color:var(--accent)}
.hero p{font-size:1.2rem;color:#dfe5ff;max-width:56ch;margin-bottom:34px}
.hero .cta{display:flex;flex-wrap:wrap;gap:14px}
.hero-card{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);border-radius:22px;padding:28px;backdrop-filter:blur(6px)}
.hero-card h3{font-size:1.05rem;margin-bottom:16px;color:#fff}
.hero-card ul{list-style:none;display:grid;gap:12px}
.hero-card li{display:flex;gap:12px;align-items:flex-start;color:#e8ecff;font-size:.98rem}
.hero-card li b{color:#fff}
.tick{flex:none;width:22px;height:22px;border-radius:50%;background:var(--accent);color:var(--blue-dark);display:grid;place-items:center;font-size:.8rem;font-weight:900;margin-top:2px}

/* Stats */
.stats{margin-top:-52px;position:relative;z-index:2;padding:0}
.stats-grid{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line)}
.stat{padding:28px 20px;text-align:center;border-right:1px solid var(--line)}
.stat:last-child{border-right:0}
.stat b{display:block;font-size:2.1rem;color:var(--blue);line-height:1.1}
.stat span{color:var(--muted);font-size:.92rem}

/* Cards */
.grid{display:grid;gap:22px;margin-top:44px}
.g4{grid-template-columns:repeat(4,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g2{grid-template-columns:repeat(2,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;transition:.25s;position:relative}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#c9d3fa}
.icon{width:52px;height:52px;border-radius:14px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:1.5rem;margin-bottom:18px}
.card h3{font-size:1.2rem;margin-bottom:10px}
.card p{color:var(--muted);font-size:.97rem}
.card ul{margin-top:14px;list-style:none;display:grid;gap:7px;font-size:.93rem;color:var(--ink)}
.card li::before{content:"✓ ";color:var(--green);font-weight:800}
.link{display:inline-block;margin-top:18px;font-weight:700;color:var(--blue)}
.link:hover{text-decoration:underline}
.tag{position:absolute;top:18px;right:18px;background:var(--accent);color:var(--blue-dark);font-size:.72rem;font-weight:800;padding:4px 10px;border-radius:999px;letter-spacing:.04em;text-transform:uppercase}

/* SGE feature */
.sge{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.sge-panel{background:linear-gradient(145deg,var(--blue-dark),var(--blue));border-radius:24px;padding:34px;color:#fff;box-shadow:var(--shadow)}
.sge-panel h3{margin-bottom:18px;font-size:1.15rem}
.chat{display:grid;gap:12px}
.bubble{max-width:88%;padding:12px 16px;border-radius:16px;font-size:.93rem}
.bubble.in{background:#fff;color:var(--ink);border-bottom-left-radius:4px}
.bubble.out{background:#d8fdd2;color:#10381a;border-bottom-right-radius:4px;justify-self:end}
.pill-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.pill{background:var(--blue-soft);color:var(--blue);font-weight:700;font-size:.85rem;padding:7px 14px;border-radius:999px}
.feat{display:grid;gap:14px;margin-top:26px}
.feat div{display:flex;gap:14px}
.feat .dot{flex:none;width:38px;height:38px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:1.1rem}
.feat b{display:block}
.feat span{color:var(--muted);font-size:.94rem}

/* Process */
.steps{counter-reset:s}
.step{text-align:left}
.step::before{counter-increment:s;content:counter(s);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800;margin-bottom:16px}

/* Why */
.why{background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:#fff}
.why h2{color:#fff}
.why .lead{color:#d6ddff}
.why .card{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}
.why .card p{color:#d6ddff}
.why .card:hover{background:rgba(255,255,255,.14)}
.why .icon{background:rgba(255,255,255,.14);color:#fff}

/* Contact */
.contact{display:grid;grid-template-columns:1fr 1.1fr;gap:48px;align-items:start}
.info{display:grid;gap:18px;margin-top:28px}
.info div{display:flex;gap:14px;align-items:flex-start}
.info .dot{flex:none;width:42px;height:42px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}
.info b{display:block;font-size:.85rem;color:var(--muted);font-weight:600}
.info a:hover{color:var(--blue)}
form{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow);display:grid;gap:16px}
form h3{font-size:1.3rem}
label{font-size:.88rem;font-weight:700;display:grid;gap:6px}
input,select,textarea{font:inherit;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fbfcff;color:var(--ink);width:100%}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(21,48,200,.12)}
textarea{min-height:110px;resize:vertical}
.note{font-size:.82rem;color:var(--muted)}

/* Footer */
footer{background:#0a1245;color:#c4cbf0;padding:56px 0 28px}
.foot{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
footer .logo{color:#fff;font-size:1.5rem}
footer h4{color:#fff;margin-bottom:14px;font-size:1rem}
footer ul{list-style:none;display:grid;gap:8px;font-size:.93rem}
footer a:hover{color:#fff}
.legal{border-top:1px solid rgba(255,255,255,.14);margin-top:38px;padding-top:20px;font-size:.85rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* Floating WhatsApp */
.fab{position:fixed;right:20px;bottom:20px;z-index:60;width:60px;height:60px;border-radius:50%;background:var(--green);display:grid;place-items:center;box-shadow:0 10px 26px rgba(31,168,85,.45);transition:.2s}
.fab:hover{transform:scale(1.08)}
.fab svg{width:32px;height:32px;fill:#fff}

@media(max-width:980px){
  .hero .wrap,.sge,.contact{grid-template-columns:1fr}
  .g4{grid-template-columns:repeat(2,1fr)}
  .g3{grid-template-columns:1fr 1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-right:0}
  .stat:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .foot{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  section{padding:60px 0}
  .burger{display:block}
  .menu{display:none;position:absolute;left:0;right:0;top:70px;background:#fff;flex-direction:column;align-items:stretch;gap:0;padding:12px 20px 20px;border-bottom:1px solid var(--line);box-shadow:0 14px 24px rgba(0,0,0,.08)}
  .menu.open{display:flex}
  .menu a{padding:12px 0}
  .menu .btn{justify-content:center;margin-top:8px}
  .g4,.g3,.g2{grid-template-columns:1fr}
  .foot{grid-template-columns:1fr}
  .hero{padding:64px 0 90px}
}

/* ===== Extras da versão PHP ===== */
.menu a.ativo:not(.btn){color:var(--blue)}
.logo-img img{height:44px;width:auto}

/* Cabeçalho das páginas interiores */
.page-hero{background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:#fff;padding:56px 0 60px}
.page-hero h1{font-size:clamp(1.9rem,4vw,2.8rem);margin-bottom:10px}
.page-hero p{color:#dfe5ff;font-size:1.15rem;max-width:60ch}
.breadcrumb{font-size:.88rem;color:#b9c4ff;margin-bottom:14px}
.breadcrumb a{text-decoration:underline}

/* Duas colunas */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.two-col.invertido > :first-child{order:2}
.icon.big{width:68px;height:68px;font-size:2rem}
.tag.static{position:static;display:inline-block;margin-bottom:10px}
.lista-ok{margin-top:6px;list-style:none;display:grid;gap:10px}
.lista-ok li::before{content:"✓ ";color:var(--green);font-weight:800}

/* Faixa de chamada à acção */
.cta-band{background:var(--blue-soft);padding:56px 0}
.cta-band .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta-band h2{margin-bottom:6px}
.cta-band p{color:var(--muted)}
.cta-band .cta{display:flex;flex-wrap:wrap;gap:14px}

/* Formulário */
.alerta{padding:12px 16px;border-radius:12px;font-size:.93rem}
.alerta.ok{background:#e6f7ec;color:#14532d;border:1px solid #b7e4c7}
.alerta.erro{background:#fdecec;color:#7f1d1d;border:1px solid #f5c2c2}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media(max-width:980px){
  .two-col{grid-template-columns:1fr}
  .two-col.invertido > :first-child{order:0}
}

/* ===== Slides no fundo do início ===== */
.hero .slides{position:absolute;inset:0;z-index:0}
.hero .slide{position:absolute;inset:0;background-size:cover;background-position:center 10%;opacity:0;transition:opacity 1.2s ease}
.hero .slide.ativo{opacity:1}
.hero .slides::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,20,90,.80) 0%,rgba(11,26,110,.55) 45%,rgba(21,48,200,.12) 100%)}
.hero.com-slides::before,.hero.com-slides::after{display:none}
.hero .pontos{position:absolute;left:0;right:0;bottom:70px;z-index:2;display:flex;justify-content:center;gap:10px}
.hero .ponto{width:11px;height:11px;border-radius:50%;border:0;background:rgba(255,255,255,.45);cursor:pointer;padding:0;transition:.2s}
.hero .ponto.ativo{background:var(--accent);transform:scale(1.25)}
@media(max-width:700px){.hero .pontos{bottom:56px}}
@media(prefers-reduced-motion:reduce){.hero .slide{transition:none}}
.hero.com-slides h1,.hero.com-slides .wrap > div > p{text-shadow:0 2px 14px rgba(0,0,0,.45)}
.hero.com-slides .hero-card{background:rgba(8,20,90,.55)}

/* ===== Cabeçalho com fotografia (página de contacto) ===== */
.page-hero.com-foto{position:relative;min-height:440px;display:flex;align-items:center;background-size:cover;background-position:center 30%;background-repeat:no-repeat}
.page-hero.com-foto::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,20,90,.90) 0%,rgba(11,26,110,.70) 42%,rgba(21,48,200,.12) 100%)}
.page-hero.com-foto .wrap{position:relative;z-index:1;width:min(1120px,100% - 40px)}
.page-hero.com-foto h1,.page-hero.com-foto p{text-shadow:0 2px 14px rgba(0,0,0,.45)}
.legenda-foto{position:absolute;right:16px;bottom:12px;z-index:1;font-size:.72rem;color:rgba(255,255,255,.75);background:rgba(0,0,0,.28);padding:3px 10px;border-radius:999px}
@media(max-width:700px){
  .page-hero.com-foto{min-height:320px;background-position:62% center !important}
  .page-hero.com-foto::before{background:linear-gradient(180deg,rgba(8,20,90,.82),rgba(11,26,110,.62))}
}

/* Serviços: bloco de detalhes */
.detalhes .exemplos{margin-top:28px}
.detalhes .center .btn,.detalhes p.center .btn{margin:6px}
