/* ==========================================================================
   HARDUKA — Soluções Tecnológicas
   Design system e folha de estilos principal
   Cores oficiais (brand book 2024): Vermelho #FF0004 · Preto #000000 · Branco #FFFFFF
   ========================================================================== */

/* -------------------- Tipografia (self-hosted, sem dependências externas) -------------------- */
@font-face {
  font-family: "Quicksand";
  src: url("../assets/fonts/quicksand-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../assets/fonts/quicksand-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../assets/fonts/quicksand-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Tokens -------------------- */
:root{
  /* Marca */
  --red: #FF0004;
  --red-dark: #CC0003;
  --red-darker: #900003;
  --black: #000000;
  --ink: #101113;          /* preto suavizado para grandes superfícies de texto */
  --white: #FFFFFF;

  /* Neutros de apoio (não fazem parte da marca, apenas estrutura da UI) */
  --grey-50: #FAFAFA;
  --grey-100: #F2F2F3;
  --grey-200: #E5E5E7;
  --grey-400: #A6A7AB;
  --grey-600: #6B6C72;
  --grey-800: #2B2C30;

  /* Tipografia */
  --font-display: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Escala fluida */
  --fs-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.6rem + 1.8vw, 3.2rem);
  --fs-3xl: clamp(2.6rem, 2rem + 2.8vw, 4.4rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(16,17,19,.06), 0 1px 1px rgba(16,17,19,.04);
  --shadow-md: 0 8px 24px rgba(16,17,19,.10);
  --shadow-lg: 0 20px 48px rgba(16,17,19,.16);

  --container: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p{ margin: 0 0 1em; color: var(--grey-800); }
button{ font: inherit; }

:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link{
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--black);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus{ top: 1rem; }

/* -------------------- Botões -------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--red-dark); box-shadow: var(--shadow-md); }
.btn-dark{ background: var(--black); color: var(--white); }
.btn-dark:hover{ background: var(--grey-800); box-shadow: var(--shadow-md); }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--grey-200); }
.btn-outline:hover{ border-color: var(--ink); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover{ border-color: var(--white); }
.btn-block{ width: 100%; }

/* -------------------- Header / navegação -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--grey-200);
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; }
.brand{ display: flex; align-items: center; gap: .6rem; min-width: 0; flex-shrink: 1; }
.brand img{ height: 34px; width: auto; flex-shrink: 0; }
.brand-name{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

.nav{ display: none; }
.nav ul{ display: flex; align-items: center; gap: 2rem; }
.nav a{ font-weight: 600; font-size: var(--fs-sm); color: var(--grey-800); position: relative; padding: .35rem 0; }
.nav a::after{
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red);
  transition: width .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"]{ color: var(--black); }
.nav a:hover::after, .nav a[aria-current="page"]::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-actions .btn{ padding: .65rem 1.25rem; }
.site-header .header-actions .btn-outline{ display: none; }

@media (min-width: 560px){
  .site-header .header-actions .btn-outline{ display: inline-flex; }
}
@media (max-width: 400px){
  .site-header .header-actions .btn-primary{ padding: .6rem .9rem; font-size: .8rem; }
}

.nav-toggle{
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-200);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle svg{ width: 22px; height: 22px; }

.mobile-nav{
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 850;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav .container{ padding-block: 2rem; }
.mobile-nav ul{ display: flex; flex-direction: column; gap: 0; }
.mobile-nav a{
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--grey-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.mobile-nav .header-actions{ flex-direction: column; align-items: stretch; margin-top: 1.5rem; }

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

/* -------------------- Hero -------------------- */
.hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(255,0,4,.35), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(255,0,4,.18), transparent 60%),
    var(--ink);
  color: var(--white);
  padding-block: clamp(3.5rem, 6vw, 7rem);
}
.hero .container{
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px){
  .hero .container{ grid-template-columns: 1.1fr .9fr; }
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,0,4,.18);
  border: 1px solid rgba(255,0,4,.4);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.eyebrow .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,0,4,.25); }
.hero h1{ font-size: var(--fs-3xl); color: var(--white); }
.hero h1 span{ color: var(--red); }
.hero p.lead{ font-size: var(--fs-lg); color: var(--grey-200); max-width: 46ch; }
.hero-cta{ display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.hero-stats{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-stats div{ background: rgba(255,255,255,.04); padding: 1.5rem; }
.hero-stats strong{ display: block; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--white); }
.hero-stats span{ font-size: var(--fs-sm); color: var(--grey-400); }

/* -------------------- Secções genéricas -------------------- */
.section{ padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section-alt{ background: var(--grey-50); }
.section-dark{ background: var(--ink); color: var(--white); }
.section-dark p{ color: var(--grey-200); }
.section-head{ max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center{ margin-inline: auto; text-align: center; }
.kicker{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: .6rem;
}
.section-head h2{ font-size: var(--fs-2xl); }
.section-dark .kicker{ color: var(--red); }

/* -------------------- Grelhas / cartões -------------------- */
.grid{ display: grid; gap: 1.5rem; }
.grid-2{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
.grid-4{ grid-template-columns: 1fr; }
@media (min-width: 640px){
  .grid-2{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
  .grid-4{ grid-template-columns: repeat(4, 1fr); }
}

.card{
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon{
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255,0,4,.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card .icon svg{ width: 26px; height: 26px; }
.card h3{ font-size: var(--fs-lg); margin-bottom: .5rem; }
.card p{ margin-bottom: 0; font-size: var(--fs-sm); }
.card a.card-link{ display: inline-flex; align-items: center; gap:.35rem; margin-top: 1rem; font-weight: 700; font-size: var(--fs-sm); color: var(--red); }

.service-card{ display: flex; flex-direction: column; height: 100%; }

.badge{
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--red); background: rgba(255,0,4,.08);
  padding: .3rem .75rem; border-radius: 999px;
}

/* -------------------- Faixa CTA -------------------- */
.cta-band{
  background: linear-gradient(120deg, var(--red-darker), var(--red) 60%, var(--red-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 780px){
  .cta-band{ flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band h2{ color: var(--white); font-size: var(--fs-xl); margin-bottom: .35rem; }
.cta-band p{ color: rgba(255,255,255,.9); margin-bottom: 0; }
.cta-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

/* -------------------- Passos / processo -------------------- */
.steps{ counter-reset: step; }
.step{ position: relative; padding-left: 3.25rem; }
.step::before{
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}

/* -------------------- Logos / confiança -------------------- */
.trust-strip{ display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; opacity: .75; }
.trust-strip span{ font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; color: var(--grey-600); text-transform: uppercase; font-size: var(--fs-sm); }

/* -------------------- Página: Sobre -------------------- */
.value-list{ display: grid; gap: 1.25rem; }
.value-item{ display: flex; gap: 1rem; align-items: flex-start; }
.value-item .check{
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
}
.value-item .check svg{ width: 15px; height: 15px; }

/* -------------------- Formulário de contacto -------------------- */
.form-grid{ display: grid; gap: 1.1rem; }
@media (min-width: 640px){ .form-grid.two{ grid-template-columns: 1fr 1fr; } }
.field{ display: flex; flex-direction: column; gap: .4rem; }
.field label{ font-weight: 700; font-size: var(--fs-sm); }
.field .req{ color: var(--red); }
.field input, .field select, .field textarea{
  font: inherit;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255,0,4,.12);
}
.field small{ color: var(--grey-600); font-size: .8rem; }
.form-note{ display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--grey-600); }
.form-note input{ margin-top: .3rem; }
.form-status{ font-size: var(--fs-sm); font-weight: 700; }
.form-status[data-state="success"]{ color: #0a7d2b; }
.form-status[data-state="error"]{ color: var(--red-dark); }

.contact-info-card{
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info-card h3{ color: var(--white); }
.contact-row{ display: flex; gap: 1rem; align-items: flex-start; padding-block: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-row:last-child{ border-bottom: none; }
.contact-row .icon{ background: rgba(255,0,4,.18); color: var(--red); flex: none; }
.contact-row a, .contact-row p{ color: var(--grey-200); margin: 0; }
.contact-row strong{ display: block; color: var(--white); font-family: var(--font-display); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }

/* -------------------- FAQ / accordion -------------------- */
.accordion-item{ border-bottom: 1px solid var(--grey-200); }
.accordion-item summary{
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg);
}
.accordion-item summary::-webkit-details-marker{ display: none; }
.accordion-item summary .plus{
  flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.accordion-item summary .plus::before, .accordion-item summary .plus::after{
  content: ""; position: absolute; background: var(--ink);
}
.accordion-item summary .plus::before{ width: 12px; height: 2px; }
.accordion-item summary .plus::after{ width: 2px; height: 12px; }
.accordion-item[open] summary .plus{ background: var(--red); border-color: var(--red); transform: rotate(45deg); }
.accordion-item[open] summary .plus::before, .accordion-item[open] summary .plus::after{ background: var(--white); }
.accordion-item .accordion-body{ padding-bottom: 1.5rem; max-width: 68ch; }

/* -------------------- Rodapé -------------------- */
.site-footer{ background: var(--black); color: var(--grey-400); padding-block: 3.5rem 2rem; }
.footer-top{ display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 780px){ .footer-top{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img{ height: 30px; margin-bottom: 1rem; }
.footer-brand p{ color: var(--grey-400); font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h4{ color: var(--white); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul{ display: flex; flex-direction: column; gap: .65rem; }
.footer-col a{ font-size: var(--fs-sm); color: var(--grey-400); transition: color .15s var(--ease); }
.footer-col a:hover{ color: var(--white); }
.footer-social{ display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover{ background: var(--red); border-color: var(--red); }
.footer-social svg{ width: 17px; height: 17px; }
.footer-bottom{ display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.75rem; font-size: .82rem; }
.footer-bottom ul{ display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover{ color: var(--white); }

/* -------------------- Banda de confiança / segurança -------------------- */
.security-strip{ display: flex; flex-wrap: wrap; gap: .6rem; }
.security-pill{
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; color: var(--grey-400);
  border: 1px solid rgba(255,255,255,.15);
  padding: .45rem .85rem; border-radius: 999px;
}
.security-pill svg{ width: 14px; height: 14px; color: var(--red); }

/* -------------------- Página interior: cabeçalho de página -------------------- */
.page-hero{
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}
.page-hero .kicker{ color: var(--red); }
.page-hero h1{ color: var(--white); font-size: var(--fs-2xl); margin-bottom: .5rem; }
.page-hero p{ color: var(--grey-200); max-width: 60ch; margin-bottom: 0; }
.breadcrumbs{ display: flex; gap: .5rem; font-size: var(--fs-sm); color: var(--grey-400); margin-bottom: 1rem; }
.breadcrumbs a:hover{ color: var(--white); }

/* -------------------- Botão flutuante WhatsApp -------------------- */
.whatsapp-float{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 950;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(0,0,0,.34); }
.whatsapp-float svg{ width: 30px; height: 30px; fill: var(--white); }
.whatsapp-float .visually-hidden{ position: absolute; }

/* -------------------- Utilitários -------------------- */
.mt-0{ margin-top: 0; }
.text-center{ text-align: center; }
.flow > * + *{ margin-top: 1rem; }
.stack{ display: flex; flex-direction: column; }
.gap-1{ gap: 1rem; } .gap-2{ gap: 1.5rem; }
.divider{ height: 1px; background: var(--grey-200); border: 0; margin-block: 2.5rem; }
.table-wrap{ overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--grey-200); }
table{ width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td{ text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--grey-200); }
thead th{ background: var(--grey-50); font-family: var(--font-display); }
tbody tr:last-child td{ border-bottom: none; }
