@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --header-bg: #343237;
  --bg: #000000;
  --fg: #ffffff;
  --muted: #ffc300;
  --accent: #358ceb; /* #358ceb é azul da follow. Alternativa #25bad0 azul-esverdeado para detalhes e botÃµes */
  --accent-rgb: 53, 140, 235; /* para usar em rgba() */
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;

  /* novos tons pensados para o layout */
  --bg-light: #eeeeee;
  --text-on-bg-light-strong: #111827; /* headings, texto principal */
  --text-on-bg-light-mid:    #4b5563; /* parágrafos, labels, descrições */
  --text-on-bg-light-soft:   #9ca3af; /* meta info, notas menos importantes */

  --bg-mid: #dddddd;
  --text-on-bg-mid-strong: #111111; /* títulos, texto de maior peso */
  --text-on-bg-mid-mid:    #374151; /* texto corrido */
  --text-on-bg-mid-soft:   #6b7280; /* texto secundário */

  --bg-dark: #3b3b3b;
  --text-on-bg-dark-strong: #f9fafb; /* texto principal, headings */
  --text-on-bg-dark-mid:    #e5e7eb; /* texto normal */
  --text-on-bg-dark-soft:   #d1d5db; /* texto secundário, hints */

}

a {
color: var(--accent);
text-decoration: none;
}

a:hover,
  a:focus {
    /* text-decoration: underline; */
  }

  /* mas os links que são botões usam branco */
  a.btn-primary {
  color: #000000;              /* texto branco */
  background-color: var(--muted);
}

a.btn-primary:hover,
  a.btn-primary:focus {
    color: #ffffff;
    text-decoration: none;       /* para não ganhar sublinhado de link */
}

a.btn-ghost {
  color: #ffffff;              /* texto branco */
}

a.btn-ghost:hover,
a.btn-ghost:focus {
  color: #ffffff;
  text-decoration: none;       /* para não ganhar sublinhado de link */
}

/* =========================
   RESET / BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
  background: var(--bg);
  color: #111827;
  line-height: 1.6;
}

main {
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
}

a[href^="mailto:"] {
  word-break: break-all;      /* permite quebrar o email */
  overflow-wrap: anywhere;    /* garante quebra em ecrã estreito */
}

.checklist {
  list-style: none;           /* se já tiveres bullets custom, mantém */
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.3;           /* linhas dentro do mesmo bullet mais juntas */
  margin-bottom: 0.85rem;     /* espaço entre bullets (o tal bloco) */
}

/* desenha o "-" alinhado ao texto */
.checklist li::before {
  content: "-"; /* bullet simples, mas ser personalizado */
  position: absolute;
  left: 0;
  top: 0;
}

/* opcional: último sem espaço extra */
.checklist li:last-child {
  margin-bottom: 0;
}


/* =========================
   CONTAINER
========================= */

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0rem;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

/* BASE – desktop + tablet (default) */
.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0rem 1.5rem;  /* antes era 0.5rem 1.25rem */
  display: flex;
  justify-content: space-between; /* logo à esquerda, menu à direita */
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-nav {
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  background: var(--bg-light);
  color: var(--text-on-bg-light-strong) !important;
}

/* botão hamburger, escondido no desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  justify-content: left;
  width: 100%;
  height: 2px;
  background: var(--bg-light);
  border-radius: 999px;
}



/* =========================
   SECTIONS
========================= */

section {
  /* padding vertical 2–4rem, lateral 1.5–4rem consoante o viewport */
  padding: clamp(2rem, 5vw, 4rem)   /* topo e fundo */
         clamp(1.5rem, 5vw, 4rem);/* esquerda e direita */
}

.section-light {
  background: var(--bg-light);
}

.section-mid {
  background: var(--bg-mid);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--fg);
}

/* =========================
   SECTIONS - elemento gráfico por baixo do título
========================= */

.section-title {
  position: relative;
  display: inline-block;      /* para a linha ter a largura do texto */
  margin-bottom: 1.5rem;      /* espaço para a linha */
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;            /* distância do texto à linha, ajusta ao gosto */
  width: 33%;                 /* comprimento da linha */
  height: 6px;                /* espessura da linha */
  background: var(--accent);  /* usa a cor accent do tema */
  border-radius: 0px;       /* pontas arredondadas como na imagem */
  opacity: 0.6;               /* se quiseres mais suave, senão remove */
}


/* ========================= HERO ========================= */
.section-hero {
  color: var(--text-on-bg-dark-strong);
  background: 
    linear-gradient(to bottom, 
      rgba(0,0,0,1), 
      rgba(0,0,0,0.4), 
      rgba(var(--accent-rgb), 0.55)
    ),
    url("../img/hero-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* TOPO: logo centrado */
.hero-top {
  text-align: center;
  margin-block: 0 2rem;
}

.hero-logo-mark {
  width: clamp(120px, 30vw, 300px);
  margin-block: -1.5rem 1.5rem;
}

/* TÍTULO + SUBS UNIFICADOS */
.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 1.5rem;
}

.hero-subtitle-center {
  font-size: 1.3rem;
  color: var(--text-on-bg-dark-mid);
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 45ch;
}

/* GRID 50/50 COESÃO TIPOGRÁFICA */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-inline: 3rem;
  font-size: 1.1rem;        /* BASE UNIFICADA */
  line-height: 1.55;
  color: var(--text-on-bg-dark-mid);
  align-items: start;
}

.hero-left p,
.hero-right .checklist li {
  font-weight: 500;
  margin-block: 0 0.75rem;
}

.hero-right .checklist li strong,
.hero-left strong {
  font-weight: 600;
  color: var(--text-on-bg-dark-strong);
}

/* CHECKLIST RÍTMICO */
.hero-right .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
}

.hero-right .checklist li {
  border-bottom: 0px solid rgba(255,255,255,0.08);
  padding-bottom: 0.75rem;
}

.hero-right .checklist li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* CTA CENTRAL */
.hero-actions {
  display: flex;
  justify-content: center;
  margin-block: 2.5rem 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--muted);
  color: var(--text-on-bg-mid-strong);
  box-shadow: 0 10px 25px rgba(37,186,208,0.3);
  text-decoration: none;
  transition: all var(--transition-interactive);
}

/* =========================
   BRAND / LOGO
========================= */

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

/* LOGO PRINCIPAL */
.brand-logo {
  height: 70px;       /* controla aqui o tamanho */
  padding: 10px 0px; /* top+bottom left+right */
  width: auto;
  display: block;
}

.brand-logo:not([src]),
.brand-logo[src=""] {
  display: none;
}

.brand-logo:not([src]) + .brand-fallback,
.brand-logo[src=""] + .brand-fallback {
  display: inline-flex;
}

/* Fallback (caso imagem não carregue) */
.brand-fallback {
  display: none;      /* escondido por defeito */
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand-main {
  margin-right: 4px;
}

.brand-mark {
  color: var(--accent);
  position: relative;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.brand-star {
  color: var(--muted);  /* amarelo mutted só para o * */
}

/* =========================
   GRID SYSTEM
========================= */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#o-que-fazemos .grid-2 .card:nth-child(5) {
  grid-column: 1 / 3;  /* ocupa as 2 colunas na linha 3 */
}

/* =========================
   ABOUT GRID (texto + caixas)
========================= */

.about-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.steps {
  display: grid;
  gap: 1rem;
}


/* =========================
   CARDS (clean look)
========================= */

.card {
  background: #ffffff;
  border: 1px solid var(--fg);
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}


.card-title {
  position: relative;
  display: inline-block;   /* linha acompanha o texto */
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;          /* distância do texto à linha */
  width: 10%;               /* comprimento da linha */
  height: 4px;              /* podes pôr 6px se quiseres igual às secções */
  background: var(--muted);
  border-radius: 0px;
  opacity: 0.6;
}


.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centra verticalmente o conteúdo de texto */
  margin: 0 0 0.5rem;   /* espaço em baixo de cada parágrafo */
  color: rgba(17,24,39,0.70);
}

/* último parágrafo da card sem margem extra */
.card-text:last-child {
  margin-bottom: 0;
}

/* Dark section cards */

.section-dark .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ffffff;
}

.section-dark .card-text {
  color: rgba(255,255,255,0.75);
}



/* =========================
   como trabalhados - grid texto + imagem (desktop) e 1 coluna (mobile) 
========================= */

.como-trabalhamos-grid {
  margin-top: 1.5rem;
  align-items: center;
  gap: 2.5rem;
}

.como-trabalhamos-visual {
  grid-column: span 2;
}

.como-trabalhamos-visual img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 0.5rem;
}



/* =========================
   Contacto 
========================= */

/* Wrapper: duas colunas no desktop (form + info) */
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

/* remove o cartÃ£o escuro antigo */
.contact-panel {
  background: none;
  border: none;
  padding: 0;
}

/* grid vertical simples para o form */
.form-grid {
  display: grid;
  gap: 0.25rem;
}

/* labels em cima dos campos */
label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: rgba(249, 250, 251, 0.75); /* texto cinza-claro */
}

/* campos tipo â€œbarraâ€ cheia */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(156, 163, 175, 1);
  background: #49474a;
  color: var(--text-on-bg-dark-mid);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(156, 163, 175, 0.9);
}

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


/* =========================
   FOOTER
========================= */

.site-footer {
  background: var(--header-bg);
  color: var(--text-on-bg-dark-soft);
  padding: 2rem 1.5rem;
}

.footer-top {
  display: grid;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-col a {
  display: block;
  color: var(--text-on-bg-dark-soft);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-col a:hover {
  color: var(--text-on-bg-dark-strong);
}

.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-on-bg-dark-soft);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}


/* ========== RESPONSIVE - 4 NÍVEIS ========= */

/* 1000px: grid-4 → 2 colunas */
@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 900px: hero + about → 1 coluna + ajustes hero + meu hamburger */
@media (max-width: 900px) {
  .brand-logo {
  height: 50px;       /* controla aqui o tamanho */
  padding: 7px 0px; /* top+bottom left+right */
  width: auto;
  display: block;
  }
  
  .nav-inner {
    padding: 0rem 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: auto;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--header-bg);
    padding: 0.75rem 1rem 0.9rem;
    border-radius: 0 0 0.5rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 180px;
    max-width: 70vw;
  }

  .nav-links a {
    width: 100%; 
    padding: 0.5rem 0;
    white-space: nowrap;
  }

  .nav-links .btn-nav {
    text-align: center;      /* texto centrado dentro do botão */
    margin-top: 0.5rem;      /* pequeno espaçamento em relação ao link anterior */
  }

  .nav-links.nav-open {
    display: flex;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-top {
    margin-bottom: 2rem;
  }

  .hero-logo-mark {
    width: 40vw;
    min-width: 150px;
    max-width: 180px;
    height: auto;
  }

  .hero-title {
    font-size: 2.3rem;
    max-width: 90vw;
  }

  .como-trabalhamos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .como-trabalhamos-texto {
    order: 1;
  }

  .como-trabalhamos-visual {
    order: 2;
    grid-column: auto;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* ajustar o footer */
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}


/* 640px: grid-3 + grid-4 + O QUE FAZEMOS → 1 coluna */
@media (max-width: 640px) {
  .grid-3,
  .grid-4,
  #o-que-fazemos .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Cancela o span da última card em mobile */
  #o-que-fazemos .grid-2 > .card:last-child {
    grid-column: auto;
  }
}

/* 400px: grid-2 normal → 1 coluna */
@media (max-width: 400px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}



