/* ===== FONTE: RESOLVE (um bloco por variante) ===== */
@font-face{
  font-family: 'Resolve';
  src: url('fonts/Resolve-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Resolve';
  src: url('fonts/Resolve-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Resolve';
  src: url('fonts/Resolve-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #111;
  --muted: #555;
  --brand: #1f3c90;
  --light: #f7f7f9;
}

body {
  font-family: 'Resolve', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}

img { width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
}

/* desktop nav */
.nav ul { display: flex; gap: 24px; list-style: none; }
.nav a  { font-weight: 600; }

/* ===== Botão Hamburguer ===== */
.burger{
  display: none;
  width: 30px;
  height: 18px;         /* compacto */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 3px;             /* linhas próximas */
}
.burger:active{ transform: scale(.98); }

.burger-line{
  width: 100%;
  height: 2px;
  background: #111;
  display: block;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero { padding: 60px 0; }
.hero h1 { font-size: 32px; font-weight: 300; }
.hero h1 span { font-weight: 700; }

/* ===== PROJECTS ===== */
.projects-row{
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

/* fila 1 - 3 colunas */
.projects-row.three{ grid-template-columns: repeat(3, 1fr); }

/* fila 2 - 2 colunas */
.projects-row.two{ grid-template-columns: repeat(2, 1fr); }

/* wrapper da imagem */
.card .thumb{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 420px;              /* altura fila 1 */
}
.projects-row.two .card .thumb{ height: 560px; } /* altura fila 2 */

/* tornar o link clicável em toda a thumb */
.card .thumb a{
  display: block;
  height: 100%;
}

/* imagem */
.card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
  display: block;
}

/* overlay branco translúcido */
.card .thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.22);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;       /* não bloquear cliques no <a> */
}

/* hover */
.card .thumb:hover::after{ opacity: 1; }
.card .thumb:hover img{ transform: scale(1.03); }

/* textos */
.card h3{
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}
.card p{
  font-size: 14px;
  color: #6b7280;        /* cinza ligeiramente mais suave */
  font-weight: 300;      /* Resolve Light (já definido nos @font-face) */
  letter-spacing: .2px;  /* opcional: respira melhor */
}

/* ===== ABOUT ===== */
/* Mantém fundo branco; aplica tipografia do projeto (copy Light à esq., claim bold à dir.) */
.about{
  padding: 60px 0;
  background: #fff;                    /* mantém branco */
  color: var(--ink);
  font-family: 'Resolve', sans-serif;
  font-weight: 300;                    /* Light por defeito na zona */
}

/* 2/3 (parágrafo) + 1/3 (blockquote) */
.about-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;      /* 2/3 + 1/3 */
  gap: 40px;
  align-items: start;
}

/* Texto da esquerda — estilo "project-copy" mas para fundo claro */
.about p{
  font-size: 20px;
  line-height: 1.8;
  max-width: unset;
  font-weight: 300;                    /* Resolve Light */
  color: #4b5563;                      /* cinza elegante sobre branco */
}

/* Citação da direita — estilo "project-claim" adaptado a branco */
.about blockquote{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  font-weight: 700;                    /* Resolve Bold */
  color: var(--brand);                 /* destaque em azul */
  text-align: right;
}
.about blockquote span{
  display: block;
  color: var(--brand);
}

.cta{
  margin-top: 30px;
  display: flex;
  gap: 16px;
}
.btn{
  border: 1px solid var(--brand);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--brand);
  transition: .25s ease;
}
.btn:hover{ background: var(--brand); color: #fff; }

/* ===== FOOTER ===== */
.footer{
  background: #5b5b5b;
  color: #fff;
  padding: 40px 0 20px;
}
.footer-grid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 20px;
}
.footer h4{ margin-bottom: 10px; }
.footer ul{ list-style: none; }
.footer li, .contactos{
  margin-bottom: 6px;
  font-family: 'Resolve', sans-serif;
  font-weight: 300; /* usa Light via @font-face */
}
.footer a{ color: #fff; }
.copy{
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .burger{ display: flex; }

  .nav{
    position: fixed;
    top: 64px;
    right: 16px; left: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav ul{
    flex-direction: column;
    padding: 12px;
  }
  .nav li a{
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 700;
  }
  .nav li a:hover{ background: var(--light); }
  .nav.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* ABOUT em mobile: empilha */
  .about-grid{ grid-template-columns: 1fr; }
  .about p{ font-size: 17px; line-height: 1.7; }
  .about blockquote{
    font-size: 24px;
    text-align: left;
    margin-top: 12px;
  }

  /* grelha de projetos em mobile: 1 por linha */
  .projects-row.three,
  .projects-row.two{ grid-template-columns: 1fr; }
  .card .thumb{ height: 300px; }
  .projects-row.two .card .thumb{ height: 360px; }
}

/* --- KitchHack: P&B + overlay cinza no hover --- */
.card--bw .thumb img{
  transition: transform .35s ease, filter .35s ease;
}

.card--bw .thumb::after{
  /* overlay cinza (preto com transparência) */
  background: rgba(0, 0, 0, 0.28); /* ajusta a opacidade: 0.18–0.35 */
  /* o resto (position/inset/opacity 0/pointer-events) já vem da regra base .card .thumb::after */
}

/* hover: ativa overlay + P&B */
.card--bw .thumb:hover::after{ opacity: 1; }   /* opcional; a regra global já faz isto */
.card--bw .thumb:hover img{
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.03);
}


