/* joseramos.pt — estilo base (mobile first) */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #555555;
  --line: #000000;
  --accent: #b34700; /* laranja escuro: só links e destaques importantes */
  --font: "Dosis", Arial, sans-serif; /* letra principal: Dosis */
  --max: 760px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }

/* Cabeçalho fixo: marca + língua; por baixo, as secções */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 10px; padding-bottom: 6px;
}
.brand {
  font-weight: 700; font-size: 20px; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
}
/* Menu: botões que passam para a 2.ª ou 3.ª linha quando não cabem */
.nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 4px; padding-bottom: 10px;
}
.nav .btn { white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
/* Menu e redes sociais: ao passar o rato, o fundo do botão fica laranja escuro */
.nav .btn:hover, .nav .btn:focus-visible,
.links .btn:hover, .links .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.links .btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: 48px 0; border-bottom: 1px solid #e5e5e5; }
section:last-of-type { border-bottom: 0; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: 36px; text-transform: uppercase; }
h2 { font-size: 28px; text-transform: uppercase; color: var(--accent); }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); }

/* Links: laranja só quando importante */
a { color: var(--ink); }
a.important, .highlight { color: var(--accent); }

/* Botões: retângulo de cantos redondos, linha preta, hover laranja */
.btn {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3;
  text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .15s ease;
}
.btn:hover, .btn:focus-visible { border-color: var(--accent); outline: none; }

/* Seletor de língua: botão pequeno sempre visível */
.lang { padding: 3px 8px; font-size: 13px; }

/* TAGS: cantos redondos, fundo preto, letra branca */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}

/* Links para redes sociais: botões lado a lado */
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }

/* Secção em construção */
.soon {
  border: 2px dashed var(--line); border-radius: 6px;
  padding: 14px 16px; color: var(--muted);
}
.soon strong { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }

/* Artigos */
article { padding: 32px 0; border-top: 1px solid #e5e5e5; }
article:first-of-type { border-top: 0; padding-top: 0; }
.meta { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
figure { margin: 20px 0; }
/* Fotos e vídeo: cantos arredondados, mesmo estilo dos botões e TAGs */
img, video, .photo { border-radius: 6px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
video { width: 100%; height: auto; display: block; background: #000; }

/* Artigo longo */
.post > h3:first-of-type, .post h3[itemprop="headline"] { font-size: 30px; line-height: 1.12; text-transform: uppercase; }
.post h4 { font-size: 22px; text-transform: uppercase; margin-top: 44px; }
.post h5 { font-size: 19px; margin: 24px 0 4px; }
.post .tags { margin-bottom: 14px; }
.box { border: 2px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 20px 0; }
.lesson { font-size: 21px; line-height: 1.4; font-style: italic; border-left: 4px solid var(--line); padding-left: 14px; margin: 8px 0 20px; }
.days { padding-left: 22px; }
.days li { margin-bottom: 8px; }
.cover { margin: 0 0 8px; }
.route-map { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.route-map .d circle { fill: var(--ink); }
.route-map .d text { fill: #fff; font: 700 10px var(--font); text-anchor: middle; }
.route-map .lbl { font: 700 13px var(--font); }
.map figcaption { text-align: center; }
.to-top { margin-top: 32px; }

/* Quero chegar aos 100: logótipo e receitas passo a passo */
.section-logo { width: 150px; height: auto; margin: 0 0 16px; border-radius: 0; }
.recipe .cover img { max-height: 560px; width: auto; margin: 0 auto; }
.recipe .cover figcaption { text-align: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: passo; }
.steps li { counter-increment: passo; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; margin-bottom: 20px; }
.steps figure { margin: 0; }
.steps img { width: 112px; height: 150px; object-fit: cover; }
.steps h5 { font-size: 19px; margin: 0 0 4px; }
.steps h5::before { content: counter(passo) ". "; }
.steps p { margin: 0; }
@media (min-width: 700px) {
  .steps li { grid-template-columns: 200px 1fr; gap: 20px; }
  .steps img { width: 200px; height: 270px; }
}

/* Pedais do Pai: logótipo e foto redondos, lado a lado */
.badges { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.badges img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
@media (min-width: 700px) { .badges img { width: 170px; height: 170px; } }

/* Pedais do Pai: viagem e carrossel de fotos (desliza com o dedo; setas no computador) */
.trip { padding-top: 8px; }
.trip h3 { font-size: 22px; text-transform: uppercase; margin-top: 32px; }
.carousel { margin: 20px 0; }
.carousel-track {
  display: flex; gap: 10px; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track li { flex: 0 0 auto; scroll-snap-align: center; }
.carousel-track img {
  height: clamp(240px, 62vw, 460px); width: auto; max-width: 86vw;
  object-fit: cover; border-radius: 6px;
}
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.carousel-nav .btn { font-size: 18px; padding: 2px 14px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.carousel-nav .btn:hover, .carousel-nav .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel-count { font-size: 14px; color: var(--muted); min-width: 60px; text-align: center; }
@media (min-width: 700px) { .carousel-track img { max-width: 680px; } }

/* Sobre mim: retrato redondo no início da secção */
.portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 0 20px; }
@media (min-width: 700px) { .portrait { width: 200px; height: 200px; } }

/* Sobre mim: percurso em linha do tempo */
.cv h3 { font-size: 20px; text-transform: uppercase; margin-top: 36px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--ink);
}
.timeline .when { display: block; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.timeline .what { display: block; font-weight: 700; }
.plain { padding-left: 20px; }
.plain li { margin-bottom: 6px; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted); }

/* Acessibilidade */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; border: 1px solid var(--line); z-index: 20; }

/* Tablet */
@media (min-width: 700px) {
  html { scroll-padding-top: 110px; }
  body { font-size: 19px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  section { padding: 64px 0; }
  .nav { gap: 8px; }
}

/* PC */
@media (min-width: 1100px) {
  :root { --max: 820px; }
  h1 { font-size: 56px; }
}
