/* ============================================================
   ENAGOL — Sistema de Design  |  Energias de Angola, Lda
   ============================================================ */
:root{
  --red:#C0272D; --red-dark:#8B0000; --maroon:#3E1813; --peach:#F2A488;
  --grad:linear-gradient(135deg,#C0272D 0%,#8B0000 100%);
  --grad-soft:linear-gradient(135deg,#F2A488 0%,#C0272D 60%,#3E1813 100%);
  --ink:#16181D; --body:#3A3F4A; --muted:#6B7280; --line:#E7E9EE;
  --bg:#ffffff; --bg-soft:#F7F8FA; --bg-dark:#1A1012;
  --white:#fff; --black:#000;
  --r-card:14px; --r-field:8px; --r-btn:8px;
  --sh:0 4px 20px rgba(0,0,0,.08); --sh-lg:0 18px 50px rgba(140,20,30,.16);
  --sec:80px; --container:1240px;
  --ff:'Inter','Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --ff-head:'Montserrat','Inter',system-ui,sans-serif;
  --t:.3s cubic-bezier(.22,.61,.36,1);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--ff);color:var(--body);background:var(--bg);line-height:1.65;font-size:16px;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
b,strong{font-weight:480}
ul{list-style:none}
h1,h2,h3,h4,h5{font-family:var(--ff-head);color:var(--ink);line-height:1.18;font-weight:480;letter-spacing:-.01em}
h1{font-size:clamp(2rem,5vw,3.3rem);font-weight:540}
h2{font-size:clamp(1.6rem,3.6vw,2.5rem);font-weight:540}
h3{font-size:clamp(1.2rem,2.2vw,1.55rem)}
p{margin-bottom:1rem}
.icon{width:24px;height:24px;display:inline-block;vertical-align:middle;flex:0 0 auto}
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:20px}
.section{padding-block:48px}
@media(min-width:992px){.section{padding-block:var(--sec)}}
.bg-soft{background:var(--bg-soft)}
.text-center{text-align:center}

/* ---- Eyebrow / títulos de secção ---- */
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--ff-head);font-weight:480;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--red)}
.eyebrow::before{content:"";width:26px;height:2px;background:var(--grad);border-radius:2px}
.section-head{max-width:720px;margin-bottom:2.4rem}
.section-head.center{margin-inline:auto;text-align:center}
.section-head.center .eyebrow::before{display:none}
.section-head p{color:var(--muted);margin-top:.6rem;margin-bottom:0}

/* ---- Botões ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;font-family:var(--ff-head);font-weight:480;font-size:.95rem;line-height:1;min-height:48px;padding:0 1.5rem;border-radius:var(--r-btn);border:0;cursor:pointer;transition:var(--t);white-space:nowrap}
.btn .icon{width:19px;height:19px}
.btn-primary{background:var(--grad);color:#fff;box-shadow:0 8px 22px rgba(192,39,45,.28)}
.btn-primary:hover{filter:brightness(.93);transform:translateY(-2px);box-shadow:0 12px 28px rgba(192,39,45,.34)}
.btn-ghost{background:rgba(255,255,255,.1);color:#fff;border:1.5px solid rgba(255,255,255,.45);backdrop-filter:blur(4px)}
.btn-ghost:hover{background:#fff;color:var(--red);border-color:#fff}
.btn-outline{background:transparent;color:var(--red);border:1.5px solid var(--red)}
.btn-outline:hover{background:var(--red);color:#fff}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#000}
.btn-block{width:100%}
.btn-sm{min-height:40px;font-size:.86rem;padding:0 1.1rem}

/* link com seta */
.link-arrow{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--ff-head);font-weight:480;color:var(--red);font-size:.92rem}
.link-arrow .icon{width:18px;height:18px;transition:var(--t)}
.link-arrow:hover .icon{transform:translateX(4px)}

/* ===================== HEADER ===================== */
.header{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);transition:box-shadow .3s}
.header.scrolled{box-shadow:0 6px 24px rgba(0,0,0,.07)}
.topbar{background:var(--maroon);color:#f3e6e3;font-size:.8rem}
.topbar .container{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:38px}
.topbar a{display:inline-flex;align-items:center;gap:.4rem;color:#f3e6e3}
.topbar a:hover{color:#fff}
.topbar .icon{width:15px;height:15px;color:var(--peach)}
.topbar .tb-right{display:flex;gap:1.2rem}
.topbar .tb-social{display:flex;gap:.7rem}
.topbar .tb-social .icon{width:16px;height:16px}
@media(max-width:860px){
  .topbar{font-size:.76rem}
  .topbar .container{gap:.6rem}
  .topbar .tb-left a:nth-child(2){display:none} /* esconde email */
  .topbar .tb-social{display:none}              /* esconde redes (mantém telefone + endereço curto) */
  .topbar .tb-right{gap:.8rem}
}
.lang-switch{display:inline-flex;align-items:center;gap:.35rem;font-family:var(--ff-head);font-weight:420;font-size:.78rem}
.lang-switch a{color:#c9b6b2;transition:var(--t)}
.lang-switch a.on{color:#fff;font-weight:480}
.lang-switch a:hover{color:#fff}
.lang-switch span{opacity:.5}
@media(max-width:380px){.topbar{font-size:.72rem}.topbar .container{gap:.45rem}}

.navbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:74px}
.brand img{height:42px;width:auto}
.brand .brand-dark{display:block}
.nav-menu{display:none}
@media(min-width:1080px){.nav-menu{display:flex;align-items:center;gap:.2rem}}
.nav-item{position:relative}
.nav-link{display:flex;align-items:center;gap:.35rem;font-family:var(--ff-head);font-weight:420;font-size:.93rem;color:var(--ink);padding:.7rem .95rem;border-radius:8px;transition:var(--t)}
.nav-link .icon{width:16px;height:16px;color:var(--muted);transition:var(--t)}
.nav-item:hover>.nav-link{color:var(--red);background:var(--bg-soft)}
.nav-item:hover>.nav-link .icon{transform:rotate(180deg);color:var(--red)}

/* Mega-menu */
.mega{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%) translateY(10px);min-width:700px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-lg);padding:1.4rem;opacity:0;visibility:hidden;transition:var(--t);z-index:95}
.mega::before{content:"";position:absolute;top:-14px;left:0;right:0;height:14px}
.nav-item:hover .mega{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.mega-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem .9rem}
.mega.single .mega-grid{grid-template-columns:1fr}
.mega-link{display:flex;gap:.9rem;align-items:flex-start;padding:.85rem .9rem;border-radius:12px;transition:var(--t);border:1px solid transparent}
.mega-link:hover{background:var(--bg-soft);border-color:var(--line)}
.mega-ico{flex:0 0 42px;height:42px;width:42px;border-radius:11px;display:grid;place-items:center;background:var(--grad-soft);color:#fff}
.mega-ico .icon{width:20px;height:20px}
.mega-link>span:last-child{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.mega-tt{font-family:var(--ff-head);font-weight:480;font-size:.92rem;color:var(--ink);line-height:1.25;min-height:2.3em;display:flex;align-items:center}
.mega-ds{font-size:.78rem;color:var(--muted);margin:0;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.3em}
.nav-cta{display:none}
@media(min-width:1080px){.nav-cta{display:inline-flex}}

/* Hamburger / mobile */
.nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:10px;background:var(--bg-soft);border:1px solid var(--line);color:var(--ink);cursor:pointer}
@media(min-width:1080px){.nav-toggle{display:none}}
.nav-toggle .icon{width:24px;height:24px}

.mobile-nav{position:fixed;inset:0;z-index:100;background:#fff;transform:translateX(100%);transition:transform .35s ease;display:flex;flex-direction:column;overflow-y:auto}
.mobile-nav.open{transform:translateX(0)}
.mobile-nav-top{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}
.mobile-nav-top img{height:38px}
.m-acc{border-bottom:1px solid var(--line)}
.m-acc>button{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:0;padding:16px 20px;font-family:var(--ff-head);font-weight:480;font-size:1.02rem;color:var(--ink);cursor:pointer;min-height:56px}
.m-acc>button .icon{width:20px;height:20px;color:var(--red);transition:var(--t)}
.m-acc.open>button .icon{transform:rotate(180deg)}
.m-sub{max-height:0;overflow:hidden;transition:max-height .35s ease;background:var(--bg-soft)}
.m-acc.open .m-sub{max-height:640px}
.m-sub a{display:block;padding:13px 20px 13px 34px;font-weight:400;font-size:.93rem;color:var(--body);min-height:46px}
.m-sub a:active{color:var(--red)}
.m-link{display:block;padding:16px 20px;font-family:var(--ff-head);font-weight:480;font-size:1.02rem;color:var(--ink);border-bottom:1px solid var(--line);min-height:56px}
.mobile-nav-cta{padding:20px}

/* ===================== HERO ===================== */
.hero{position:relative;min-height:clamp(520px,82vh,760px);display:flex;align-items:center;color:#fff;overflow:hidden;background:var(--bg-dark)}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,rgba(20,10,11,.94) 0%,rgba(40,12,14,.82) 42%,rgba(139,0,0,.45) 100%)}
.hero-deco{position:absolute;inset:0;z-index:1;opacity:.5;mix-blend-mode:screen;pointer-events:none;background:url("../svg/footer-pattern.svg");background-size:320px;background-position:right center}
.hero .container{position:relative;z-index:2}
.hero-inner{max-width:680px}
.hero h1{color:#fff;margin-bottom:1.1rem}
.hero h1 em{font-style:normal;color:var(--peach)}
.hero-sub{font-size:1.1rem;color:#e9dedb;max-width:560px;margin-bottom:1.9rem}
.hero-eyebrow{color:var(--peach)}
.hero-eyebrow::before{background:var(--peach)}
.hero-cta{display:flex;flex-wrap:wrap;gap:.85rem}
.hero-badges{display:flex;flex-wrap:wrap;gap:1.4rem;margin-top:2.4rem;padding-top:1.6rem;border-top:1px solid rgba(255,255,255,.16)}
.hero-badge{display:flex;align-items:center;gap:.6rem;font-size:.84rem;color:#e9dedb}
.hero-badge .icon{width:20px;height:20px;color:var(--peach)}
.hero-badge b{font-family:var(--ff-head);color:#fff;font-size:1.15rem;display:block;line-height:1}

/* ===================== STATS ===================== */
.stats{background:var(--grad);color:#fff;position:relative;overflow:hidden}
.stats::before{content:"";position:absolute;inset:0;background:url("../svg/footer-pattern.svg");background-size:300px;opacity:.5}
.stats .container{position:relative}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
@media(min-width:768px){.stats-grid{grid-template-columns:repeat(4,1fr)}}
.stat{text-align:center;padding:1rem .5rem}
.stat-ico{width:50px;height:50px;margin:0 auto .7rem;border-radius:14px;background:rgba(255,255,255,.16);display:grid;place-items:center}
.stat-ico .icon{width:26px;height:26px;color:#fff}
.stat-num{font-family:var(--ff-head);font-weight:540;font-size:clamp(2.1rem,5vw,2.9rem);line-height:1;color:#fff}
.stat-label{font-size:.85rem;color:rgba(255,255,255,.9);margin-top:.35rem;text-transform:uppercase;letter-spacing:.05em;font-weight:400}

/* ===================== GRID CARDS ===================== */
.grid{display:grid;gap:1.4rem;grid-template-columns:1fr}
@media(min-width:640px){.grid.cols-2{grid-template-columns:repeat(2,1fr)}}
@media(min-width:880px){.grid.cols-3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:880px){.grid.cols-2{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.grid.cols-4{grid-template-columns:repeat(4,1fr)}}
@media(min-width:640px) and (max-width:1023px){.grid.cols-4{grid-template-columns:repeat(2,1fr)}}
.grid-center{justify-content:center}
.grid-center>*{max-width:380px;width:100%;margin-inline:auto}
.section-cta{display:flex;justify-content:center;margin-top:2.4rem}

.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--sh);overflow:hidden;display:flex;flex-direction:column;height:100%;transition:var(--t)}
.card:hover{transform:translateY(-6px);box-shadow:var(--sh-lg);border-color:transparent}
.card-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--bg-soft)}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.card:hover .card-media img{transform:scale(1.06)}
.card-media.placeholder{display:grid;place-items:center;background:var(--grad-soft)}
.card-media.placeholder .icon{width:54px;height:54px;color:rgba(255,255,255,.85)}
.card-tag{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.62);color:#fff;font-size:.72rem;font-weight:420;padding:.3rem .7rem;border-radius:6px;backdrop-filter:blur(4px)}
.card-body{padding:24px;display:flex;flex-direction:column;flex:1}
.card-body h3{margin-bottom:.55rem}
.card-body p{color:var(--muted);font-size:.92rem;margin-bottom:1rem}
.card-body .link-arrow{margin-top:auto}
.card-date{font-size:.78rem;color:var(--red);font-weight:420;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.5rem;display:flex;align-items:center;gap:.4rem}
.card-date .icon{width:15px;height:15px}

/* Serviço — card com ícone */
.svc-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--sh);padding:30px 26px;display:flex;flex-direction:column;height:100%;transition:var(--t);position:relative;overflow:hidden}
.svc-card::after{content:"";position:absolute;left:0;top:0;height:4px;width:0;background:var(--grad);transition:width .35s}
.svc-card:hover{transform:translateY(-6px);box-shadow:var(--sh-lg)}
.svc-card:hover::after{width:100%}
.svc-ico{width:60px;height:60px;border-radius:16px;background:var(--grad-soft);display:grid;place-items:center;margin-bottom:1.1rem}
.svc-ico .icon{width:30px;height:30px;color:#fff}
.svc-card h3{margin-bottom:.55rem}
.svc-card p{color:var(--muted);font-size:.92rem;margin-bottom:1.1rem}
.svc-card .link-arrow{margin-top:auto}

/* Partners / logos */
.logo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
@media(min-width:560px){.logo-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:880px){.logo-grid{grid-template-columns:repeat(5,1fr)}}
.logo-cell{aspect-ratio:3/2;background:#fff;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;padding:1rem;transition:var(--t)}
.logo-cell:hover{box-shadow:var(--sh);transform:translateY(-3px)}
.logo-cell img{max-height:54px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.8;transition:var(--t)}
.logo-cell:hover img{filter:none;opacity:1}
.logo-cell span{font-family:var(--ff-head);font-weight:480;color:var(--muted);font-size:.95rem;text-align:center}

/* Certificações */
.cert-cell{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;text-align:center;height:100%;transition:var(--t)}
.cert-cell:hover{box-shadow:var(--sh);transform:translateY(-3px)}
.cert-ico{width:54px;height:54px;margin:0 auto .8rem;border-radius:14px;background:var(--bg-soft);display:grid;place-items:center;color:var(--red)}
.cert-ico .icon{width:28px;height:28px}
.cert-cell img{max-height:70px;margin:0 auto .8rem;object-fit:contain}
.cert-dl{display:inline-flex;align-items:center;gap:.4rem;margin-top:.9rem;padding:.5rem 1rem;border:1.5px solid var(--red);border-radius:30px;font-family:var(--ff-head);font-weight:420;font-size:.82rem;color:var(--red);transition:var(--t)}
.cert-dl:hover{background:var(--red);color:#fff}
.cert-dl .icon{width:16px;height:16px}
.cert-cell h4{font-family:var(--ff-head);font-size:1rem;color:var(--ink);margin-bottom:.25rem}
.cert-cell p{font-size:.8rem;color:var(--muted);margin:0}

/* ===================== ABOUT PREVIEW ===================== */
.split{display:grid;gap:2rem;align-items:center}
@media(min-width:900px){.split{grid-template-columns:1fr 1fr;gap:3.4rem}}
.split.reverse .split-media{order:-1}
.split-media{position:relative;border-radius:18px;overflow:hidden;box-shadow:var(--sh-lg);aspect-ratio:4/3;background:var(--grad-soft)}
.split-media img{width:100%;height:100%;object-fit:cover}
.split-media.placeholder{display:grid;place-items:center}
.split-media.placeholder .icon{width:80px;height:80px;color:rgba(255,255,255,.85)}
.split-deco{position:absolute;right:-30px;bottom:-30px;width:160px;height:160px;background:var(--grad);border-radius:50%;opacity:.12;z-index:-1}
.feature-list{margin-top:1.4rem;display:grid;gap:.85rem}
.feature-list li{display:flex;gap:.7rem;align-items:flex-start}
.feature-list .icon{width:22px;height:22px;color:var(--red);flex:0 0 auto;margin-top:2px}
.feature-list b{color:var(--ink);font-family:var(--ff-head)}

/* ===================== PAGE HEADER ===================== */
.page-hero{position:relative;background:var(--bg-dark);color:#fff;padding-block:clamp(60px,12vw,110px) clamp(48px,9vw,80px);overflow:hidden}
.page-hero::before{content:"";position:absolute;inset:0;background:var(--grad);opacity:.92;z-index:0}
.page-hero::after{content:"";position:absolute;inset:0;background:url("../svg/footer-pattern.svg");background-size:320px;opacity:.5;z-index:1}
.page-hero .container{position:relative;z-index:2}
.page-hero h1{color:#fff;max-width:880px}
.page-hero p{color:rgba(255,255,255,.92);max-width:640px;margin-top:.7rem;font-size:1.08rem;margin-bottom:0}
.breadcrumb{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;font-size:.82rem;color:rgba(255,255,255,.85);margin-bottom:1rem}
.breadcrumb a:hover{color:#fff;text-decoration:underline}
.breadcrumb .icon{width:14px;height:14px;opacity:.7}

/* ===================== CONTEÚDO RICO ===================== */
.prose{max-width:780px}
.prose h3{position:relative;margin:2rem 0 .9rem;padding-left:.9rem;color:var(--ink);font-size:1.25rem}
.prose h3::before{content:"";position:absolute;left:0;top:.15em;bottom:.15em;width:4px;border-radius:3px;background:var(--grad)}
.prose h4{margin:1.4rem 0 .4rem;color:var(--red);font-family:var(--ff-head);font-weight:480;font-size:1.02rem}
.prose p{color:var(--body);margin-bottom:1rem}
.prose ul{margin:0 0 1.2rem;display:grid;gap:.55rem}
.prose ul li{position:relative;padding-left:1.8rem;color:var(--body)}
.prose ul li::before{content:"";position:absolute;left:0;top:.45em;width:11px;height:11px;border-radius:3px;background:var(--grad);transform:rotate(45deg)}

/* ===== Página de serviço (single) ===== */
.lead{font-size:1.12rem;color:var(--body);line-height:1.7}
.svc-fact{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--sh-lg);overflow:hidden}
.svc-fact-head{display:flex;align-items:center;gap:1rem;padding:24px 26px;background:var(--grad);color:#fff}
.svc-fact-ico{flex:0 0 54px;width:54px;height:54px;border-radius:14px;background:rgba(255,255,255,.18);display:grid;place-items:center}
.svc-fact-ico .icon{width:28px;height:28px;color:#fff}
.svc-fact-eyebrow{display:block;font-family:var(--ff-head);font-weight:480;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.85)}
.svc-fact-head h3{color:#fff;font-size:1.2rem;line-height:1.2;margin:.15rem 0 0}
.svc-fact-list{list-style:none;margin:0;padding:18px 26px}
.svc-fact-list li{display:flex;gap:.9rem;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.svc-fact-list li:last-child{border-bottom:0}
.svc-fact-list .ci-ico{flex:0 0 40px;width:40px;height:40px;border-radius:11px;background:var(--bg-soft);display:grid;place-items:center;color:var(--red)}
.svc-fact-list .ci-ico .icon{width:20px;height:20px}
.svc-fact-list b{display:block;font-family:var(--ff-head);color:var(--ink);font-size:.82rem}
.svc-fact-list span:last-child{color:var(--muted);font-size:.9rem}
.svc-fact .btn-block{border-radius:0;margin:0}
.service-detail{max-width:920px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh);overflow:hidden}
.service-banner{aspect-ratio:21/9;overflow:hidden;border-bottom:1px solid var(--line)}
.service-banner img{width:100%;height:100%;object-fit:cover}
.service-prose{max-width:none;padding:34px 38px}
@media(max-width:560px){.service-prose{padding:24px 22px}}
.svc-card-link{text-decoration:none}
.svc-card-link h3{color:var(--ink)}

/* ===================== FORMS ===================== */
.field{margin-bottom:1.1rem}
.field label{display:block;font-family:var(--ff-head);font-weight:420;font-size:.86rem;color:var(--ink);margin-bottom:.4rem}
.field input,.field select,.field textarea{width:100%;font-family:var(--ff);font-size:.95rem;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:var(--r-field);padding:13px 15px;min-height:48px;transition:var(--t)}
.field textarea{min-height:140px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:var(--red);box-shadow:0 0 0 3px rgba(192,39,45,.12)}
.field-row{display:grid;gap:1.1rem}
@media(min-width:640px){.field-row.two{grid-template-columns:1fr 1fr}}
.alert{padding:14px 16px;border-radius:10px;font-size:.92rem;margin-bottom:1.2rem;display:flex;gap:.6rem;align-items:flex-start}
.alert .icon{width:20px;height:20px;flex:0 0 auto;margin-top:1px}
.alert-ok{background:#e9f7ef;color:#1f7a44;border:1px solid #bce5cd}
.alert-err{background:#fdeced;color:#b3261e;border:1px solid #f6c4c6}
.hint-inline{font-weight:400;color:var(--muted);font-size:.8rem}

/* ===== Candidatura (Carreira) ===== */
.apply-panel{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .4s ease;margin-top:1.4rem}
.apply-panel.open{grid-template-rows:1fr}
.apply-panel>.apply-card{min-height:0}
.apply-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh-lg);overflow:hidden}
.apply-head{display:flex;align-items:center;gap:1rem;padding:22px 26px;background:var(--grad);color:#fff}
.apply-ico{flex:0 0 50px;width:50px;height:50px;border-radius:13px;background:rgba(255,255,255,.18);display:grid;place-items:center}
.apply-ico .icon{width:26px;height:26px;color:#fff}
.apply-head h3{color:#fff;font-size:1.2rem;margin:0;line-height:1.2}
.apply-head p{margin:.15rem 0 0;color:rgba(255,255,255,.85);font-size:.88rem}
.apply-card form,.apply-card .apply-success,.apply-card .alert-err{margin:24px 26px}
.apply-card .alert-err{margin-bottom:0}
@media(max-width:560px){.apply-card form,.apply-card .apply-success{margin:20px 18px}}

.dropzone{display:flex;align-items:center;gap:1rem;width:100%;padding:22px;border:2px dashed var(--line);border-radius:14px;background:var(--bg-soft);cursor:pointer;transition:var(--t)}
.dropzone:hover,.dropzone.drag{border-color:var(--red);background:rgba(192,39,45,.05)}
.dropzone-ico{flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:var(--grad-soft);display:grid;place-items:center;color:#fff}
.dropzone-ico .icon{width:22px;height:22px}
.dropzone-txt{display:flex;flex-direction:column;line-height:1.35}
.dropzone-txt b{font-family:var(--ff-head);color:var(--ink);font-size:.95rem}
.dropzone-txt span{color:var(--muted);font-size:.84rem}

.filelist{list-style:none;margin:.9rem 0 0;padding:0;display:grid;gap:.55rem}
.filelist-item{display:flex;align-items:center;gap:.7rem;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:.88rem}
.fi-ico{flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:var(--bg-soft);position:relative}
.fi-ico::after{content:"";position:absolute;inset:8px;border-radius:3px;background:var(--grad)}
.fi-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:400}
.fi-size{color:var(--muted);font-size:.8rem;flex:0 0 auto}
.fi-del{flex:0 0 auto;width:26px;height:26px;border:0;border-radius:7px;background:#fdeced;color:var(--red);font-size:1.1rem;line-height:1;cursor:pointer;transition:var(--t)}
.fi-del:hover{background:var(--red);color:#fff}

.apply-success{display:flex;gap:1rem;align-items:flex-start;background:#e9f7ef;border:1px solid #bce5cd;border-radius:14px;padding:22px}
.apply-success-ico{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#1f7a44;color:#fff;display:grid;place-items:center}
.apply-success-ico .icon{width:24px;height:24px}
.apply-success h4{color:#16623a;margin:0 0 .3rem;font-size:1.05rem}
.apply-success p{color:#1f7a44;margin:0;font-size:.92rem}

/* Cartão de contacto país */
.country-tabs{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1.8rem}
.country-tab{display:inline-flex;align-items:center;gap:.55rem;padding:.6rem 1rem;border:1.5px solid var(--line);border-radius:30px;background:#fff;font-family:var(--ff-head);font-weight:420;font-size:.9rem;color:var(--ink);cursor:pointer;transition:var(--t);min-height:44px}
.country-tab .flag{width:26px;height:18px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.country-tab.active,.country-tab:hover{border-color:var(--red);background:var(--red);color:#fff}
.country-panel{display:none}
.country-panel.active{display:block;animation:fadeUp .4s}
.contact-info{display:grid;gap:1.1rem}
.contact-row{display:flex;gap:.9rem;align-items:flex-start}
.contact-row .ci-ico{flex:0 0 44px;height:44px;width:44px;border-radius:12px;background:var(--bg-soft);display:grid;place-items:center;color:var(--red)}
.contact-row .ci-ico .icon{width:22px;height:22px}
.contact-row b{display:block;font-family:var(--ff-head);color:var(--ink);font-size:.9rem}
.contact-row span,.contact-row a{color:var(--muted);font-size:.95rem}
.map-frame{border-radius:14px;overflow:hidden;border:1px solid var(--line);aspect-ratio:16/10;background:var(--bg-soft)}
.map-frame iframe{width:100%;height:100%;border:0}

/* ===== Página Presença Regional ===== */
.presence-metrics{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.pm-tile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;text-align:center;box-shadow:var(--sh)}
.pm-ico{display:inline-grid;place-items:center;width:50px;height:50px;border-radius:14px;background:var(--grad-soft);color:#fff;margin-bottom:.8rem}
.pm-ico .icon{width:24px;height:24px}
.pm-num{display:block;font-family:var(--ff-head);font-weight:540;font-size:2rem;color:var(--red);line-height:1}
.pm-label{display:block;font-size:.82rem;color:var(--muted);margin-top:.4rem;line-height:1.35}

.office-list{display:grid;gap:1.4rem}
@media(min-width:760px){.office-list{grid-template-columns:1fr 1fr}}
.office{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--sh);transition:var(--t)}
.office:hover{box-shadow:var(--sh-lg);transform:translateY(-3px)}
.office-head{display:flex;align-items:center;gap:1rem;padding:22px 24px 22px 28px;border-bottom:1px solid var(--line);position:relative;background:linear-gradient(180deg,#fff,#fcfbfb)}
.office-head::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 4px 4px 0;background:var(--grad)}
.office-flag{width:46px;height:31px;border-radius:5px;overflow:hidden;flex:0 0 auto;box-shadow:0 0 0 1px var(--line)}
.office-id{min-width:0}
.office-tag{display:block;font-family:var(--ff-head);font-weight:480;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--red)}
.office-id h3{font-size:1.25rem;line-height:1.2;margin:.1rem 0 0}
.office-no{margin-left:auto;font-family:var(--ff-head);font-weight:540;font-size:1.8rem;color:var(--line)}
.office-body{padding:20px 24px;display:grid;gap:1rem}
.office-row{display:flex;gap:.9rem;align-items:flex-start}
.office-row .ci-ico{flex:0 0 42px;height:42px;width:42px;border-radius:11px;background:var(--bg-soft);display:grid;place-items:center;color:var(--red)}
.office-row .ci-ico .icon{width:20px;height:20px}
.office-row b{display:block;font-family:var(--ff-head);color:var(--ink);font-size:.82rem;letter-spacing:.02em}
.office-row span:last-child,.office-row a{color:var(--muted);font-size:.92rem;word-break:break-word}
.office-row a:hover{color:var(--red)}
.office-map{border-top:1px solid var(--line);aspect-ratio:16/8;background:var(--bg-soft)}
.office-map iframe{width:100%;height:100%;border:0;display:block}
@media(max-width:480px){.presence-metrics{grid-template-columns:1fr}}

/* ===================== FOOTER ===================== */
.footer{position:relative;background:var(--bg-dark);color:#cfc4c2;overflow:hidden;padding-top:0}
.footer::before{content:"";position:absolute;inset:0;background:url("../svg/footer-pattern.svg");background-size:300px;opacity:.7;z-index:0}
.footer::after{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--grad-soft);z-index:2}
.footer .container{position:relative;z-index:1}

/* Faixa de contacto institucional */
.footer-strip{position:relative;display:grid;gap:0;grid-template-columns:1fr;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border-radius:18px;overflow:hidden;margin:52px 0 12px;border:1px solid rgba(255,255,255,.1);box-shadow:0 20px 50px rgba(0,0,0,.35)}
.footer-strip::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--grad-soft);z-index:2}
@media(min-width:760px){.footer-strip{grid-template-columns:1.5fr 1.1fr 1fr}}
.fstrip-item{display:flex;align-items:center;gap:1rem;padding:24px 26px;transition:var(--t);position:relative}
@media(min-width:760px){.fstrip-item+.fstrip-item::after{content:"";position:absolute;left:0;top:22px;bottom:22px;width:1px;background:rgba(255,255,255,.1)}}
.fstrip-item:hover{background:rgba(192,39,45,.12)}
.fstrip-ico{flex:0 0 48px;width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:var(--grad);color:#fff;box-shadow:0 6px 16px rgba(192,39,45,.4)}
.fstrip-ico .icon{width:21px;height:21px}
.fstrip-item>span:last-child{display:flex;flex-direction:column;font-size:.92rem;color:#e4dad8;line-height:1.45;min-width:0}
.fstrip-item b{font-family:var(--ff-head);font-weight:480;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--peach);margin-bottom:.25rem}

.footer-top{display:grid;gap:2.4rem;grid-template-columns:1fr;padding:48px 0 40px}
@media(min-width:760px){.footer-top{grid-template-columns:1fr 1fr}}
@media(min-width:1080px){.footer-top{grid-template-columns:1.9fr 1fr 1.1fr 1fr 1.3fr}}
.footer-brand img{height:48px;margin-bottom:1.2rem}
.footer-brand p{font-size:.92rem;color:#b8aaa8;max-width:340px;line-height:1.7}
.footer-social{display:flex;gap:.6rem;margin-top:1.4rem}
.footer-social a{width:42px;height:42px;border-radius:11px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);display:grid;place-items:center;color:#fff;transition:var(--t)}
.footer-social a:hover{background:var(--grad);border-color:transparent;transform:translateY(-3px)}
.footer-social .icon{width:19px;height:19px}

.fcol h5{position:relative;color:#fff;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:1.3rem;padding-bottom:.7rem;font-family:var(--ff-head);font-weight:480}
.fcol h5::after{content:"";position:absolute;left:0;bottom:0;width:30px;height:2px;background:var(--grad-soft);border-radius:2px}
.fcol .fcol-toggle{display:none}
.fcol ul{display:grid;gap:.7rem}
.fcol a{display:inline-flex;align-items:center;gap:.4rem;font-size:.9rem;color:#b3a6a4;transition:var(--t)}
.fcol .fl-mk{width:14px;height:14px;color:var(--peach);opacity:0;margin-left:-18px;transition:var(--t);flex:0 0 auto}
.fcol a:hover{color:#fff}
.fcol a:hover .fl-mk{opacity:1;margin-left:0}
.fcol a.fl-all{color:var(--peach);font-weight:420;font-family:var(--ff-head);font-size:.85rem;margin-top:.2rem}
.fcol-presence ul{gap:1rem}
.fcountry{display:flex;gap:.7rem;align-items:flex-start;font-size:.84rem;color:#b3a6a4;line-height:1.5}
.fcountry .flag{width:26px;height:17px;border-radius:3px;overflow:hidden;flex:0 0 auto;margin-top:2px;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
.fcountry b{display:block;color:#fff;font-family:var(--ff-head);font-size:.88rem;margin-bottom:.1rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-block:24px;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;font-size:.82rem;color:#9a8d8b}
.footer-bottom a{color:#cfc4c2}
.footer-bottom a:hover{color:#fff}
.cookie-config-btn{display:inline-flex;align-items:center;gap:.45rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#e9dedb;padding:.55rem 1rem;border-radius:30px;font-size:.82rem;font-weight:400;cursor:pointer;transition:var(--t)}
.cookie-config-btn:hover{background:var(--red);border-color:var(--red);color:#fff}
.cookie-config-btn .icon{width:17px;height:17px}

@media(max-width:759px){
  .fcol h5{margin-bottom:0;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding-block:16px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.1)}
  .fcol h5::after{display:none}
  .fcol .fcol-toggle{display:inline-flex;color:var(--peach);transition:var(--t)}
  .fcol.open .fcol-toggle{transform:rotate(180deg)}
  .fcol .fl-mk{display:none}
  .fcol ul{max-height:0;overflow:hidden;transition:max-height .35s ease;gap:0}
  .fcol.open ul{max-height:560px;padding-top:1rem;gap:.85rem}
  .fstrip-item{padding:18px 20px}
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:120;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-lg);padding:22px;max-width:480px;display:none}
.cookie-banner.show{display:block;animation:fadeUp .4s}
.cookie-banner h4{display:flex;align-items:center;gap:.5rem;font-family:var(--ff-head);font-size:1.05rem;color:var(--ink);margin-bottom:.5rem}
.cookie-banner h4 .icon{width:22px;height:22px;color:var(--red)}
.cookie-banner p{font-size:.86rem;color:var(--muted);margin-bottom:1rem}
.cookie-actions{display:grid;gap:.6rem}
@media(min-width:420px){.cookie-actions{grid-template-columns:1fr 1fr}.cookie-actions .btn-block-full{grid-column:1/-1}}
.cookie-cats{display:grid;gap:.7rem;margin:1rem 0}
.cookie-cat{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem .9rem;background:var(--bg-soft);border-radius:10px}
.cookie-cat b{font-family:var(--ff-head);font-size:.88rem;color:var(--ink)}
.cookie-cat small{display:block;color:var(--muted);font-size:.76rem}
.switch{position:relative;width:42px;height:24px;flex:0 0 auto}
.switch input{opacity:0;width:0;height:0}
.switch span{position:absolute;inset:0;background:#cdd2da;border-radius:30px;transition:.3s;cursor:pointer}
.switch span::before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.3s}
.switch input:checked+span{background:var(--red)}
.switch input:checked+span::before{transform:translateX(18px)}
.switch input:disabled+span{opacity:.6;cursor:not-allowed}

/* ===================== PWA INSTALL ===================== */
.pwa-install{position:fixed;left:16px;right:16px;bottom:16px;z-index:115;background:var(--ink);color:#fff;border-radius:14px;padding:14px 16px;display:none;align-items:center;gap:.9rem;box-shadow:var(--sh-lg);max-width:440px}
.pwa-install.show{display:flex;animation:fadeUp .4s}
.pwa-install .icon{width:30px;height:30px;color:var(--peach);flex:0 0 auto}
.pwa-install .pwa-tt{flex:1;font-size:.85rem}
.pwa-install b{font-family:var(--ff-head);display:block;font-size:.92rem}
.pwa-install .pwa-x{background:none;border:0;color:#aaa;cursor:pointer;padding:4px}

/* ===================== ANIMAÇÕES ===================== */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}}

/* ===================== UTIL ===================== */
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-0{margin-bottom:0}
.cta-band{background:var(--grad);color:#fff;border-radius:20px;padding:clamp(30px,5vw,56px);text-align:center;position:relative;overflow:hidden}
.cta-band::before{content:"";position:absolute;inset:0;background:url("../svg/footer-pattern.svg");background-size:300px;opacity:.5}
.cta-band>*{position:relative}
.cta-band h2{color:#fff;margin-bottom:.6rem}
.cta-band p{color:rgba(255,255,255,.92);max-width:560px;margin:0 auto 1.6rem}
.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}
.empty-state .icon{width:50px;height:50px;color:var(--line);margin:0 auto 1rem}
