/* Site do CRC Arcas — mesmas cores e letras da app (lib/core/theme.dart). */

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #009640;
  --green-dark: #006b2e;
  --green-soft: #e6f4ec;
  --yellow: #ffed00;
  --yellow-soft: #fff8b8;
  --yellow-ink: #6b6300;
  --red: #e30613;
  --red-soft: #fdecec;
  --ink: #212529;
  --ink-muted: #5f666d;
  --border: #e3e6ea;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --brand-dark: #103c24;
  --radius: 16px;
  --heading: 'Quicksand', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--green-dark);
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}
.muted {
  color: var(--ink-muted);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ─── Cabeçalho ─── */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.top img {
  height: 40px;
  width: auto;
}
.top nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
.top nav a:hover,
.top nav a:focus-visible {
  background: var(--green-soft);
  color: var(--green-dark);
}
.menu-toggle {
  display: none;
}
/* Telemóvel: os 5 links não cabem numa linha. Um botão "Menu" (com texto, não só o ícone) abre a lista.
   Sem JavaScript, o botão não aparece e os links quebram em várias linhas. */
@media (max-width: 720px) {
  .top img {
    height: 34px;
  }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 2px solid var(--green-dark);
    border-radius: 999px;
    background: var(--surface);
    color: var(--green-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .js .top.open .menu-toggle {
    background: var(--green-dark);
    color: #fff;
  }
  .js .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .js .top.open nav {
    display: flex;
  }
  .js .top nav a {
    padding: 14px 16px;
    font-size: 1.15rem;
    border-radius: 12px;
  }
}

/* ─── Abertura ─── */
.hero {
  position: relative;
  color: #fff;
  background: var(--brand-dark);
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero .wrap {
  position: relative;
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 110px);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  max-width: 14ch;
}
.hero p {
  font-size: 1.2rem;
  max-width: 36ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-dark);
  color: #fff;
}
.btn-primary:hover {
  background: #005a26;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover {
  background: #f5e200;
}
/* Contorno branco, para usar sobre o verde escuro (abertura e rodapé) */
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* ─── Secções ─── */
section {
  padding: clamp(48px, 8vw, 80px) 0;
}
section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.lead {
  font-size: 1.15rem;
  max-width: 60ch;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.two {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
}
.pill.red {
  background: var(--red-soft);
  color: var(--red);
}
.pill.yellow {
  background: var(--yellow-soft);
  color: var(--yellow-ink);
}

.status {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink-muted);
}

/* Eventos e notícias: cartões com foto, título, data e início do texto; o botão abre o detalhe. */
.tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}
.tile .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 20px;
}
.tile h3 {
  margin: 8px 0 4px;
}
.tile .pill + h3 {
  margin-top: 10px;
}
.when {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.tile .excerpt {
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile .more {
  margin-top: auto;
  min-height: 44px;
  padding: 6px 18px;
  border: 2px solid var(--green-dark);
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
}
/* espaço mínimo antes do botão, que fica sempre no fundo do cartão */
.tile .excerpt,
.tile .when:has(+ .more) {
  margin-bottom: 16px;
}
.tile .more:hover,
.tile .more:focus-visible {
  background: var(--green-soft);
}

/* Janela da notícia completa */
.reader {
  width: min(720px, 100% - 32px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
}
.reader::backdrop {
  background: rgba(16, 60, 36, 0.6);
}
.reader-body {
  padding: 24px;
}
.reader-body img {
  border-radius: 12px;
  margin-bottom: 16px;
  width: 100%;
}
.reader-body h2 {
  font-size: 1.6rem;
  margin-top: 10px;
}
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 1.2em;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
}
.facts dt {
  font-weight: 700;
}
.facts dd {
  margin: 0;
}
.note {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}
.reader form {
  position: sticky;
  bottom: 0;
  padding: 16px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: right;
}

/* "O que fazemos": lista com visto verde */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
}
.checks li:last-child {
  margin-bottom: 0;
}
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 24px;
  text-align: center;
}

/* Linha do tempo: traço vertical com um ponto por ano e cada marco num cartão */
.timeline {
  list-style: none;
  max-width: 760px;
  margin: 24px 0 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--green-soft);
}
.timeline li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.timeline li + li {
  margin-top: 16px;
}
.timeline li::before {
  content: '';
  position: absolute;
  /* Ponto de 21px (15 verde + 3 de contorno), centrado na linha:
     centro a 28 (padding) + 1,5 (meia linha) + 1 (borda do cartão) = 30,5px; 30,5 + 10,5 = 41 */
  box-sizing: border-box;
  left: -41px;
  top: 19px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
}
.timeline b {
  display: block;
  font-family: var(--heading);
  color: var(--green-dark);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* Sócios: cartão com o texto à esquerda e o botão à direita */
.join {
  display: grid;
  gap: 24px 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  background: var(--bg);
}
.join p:last-child {
  margin-bottom: 0;
}
.join .price {
  font-family: var(--heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.4em;
}
.join .price span {
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-muted);
}
.join-action {
  text-align: center;
}
.join-action .btn {
  width: 100%;
}
.join-action p {
  margin: 12px 0 0;
  font-size: 1rem;
}


/* Rodapé */
footer {
  background: var(--brand-dark);
  color: #dfe9e2;
  padding: clamp(40px, 7vw, 64px) 0 32px;
  font-size: 1rem;
}
footer a {
  color: #fff;
}
footer h2,
footer h3 {
  color: #fff;
}
footer h3 {
  font-size: 1.1rem;
}
.footer-cols {
  display: grid;
  gap: 24px 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin-top: 16px;
}
.social {
  display: flex;
  gap: 20px;
}
.legal {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  /* Texto legal à esquerda, crédito à direita; no telemóvel ficam um por baixo do outro. */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.legal p {
  margin: 0;
}
.legal .credit {
  opacity: 0.8;
}

/* Páginas de texto (privacidade) */
.doc {
  max-width: 760px;
}
.doc h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}

/* ─── Página da app (/app/) ─── */
.app-hero .wrap {
  padding: clamp(40px, 8vw, 88px) 0;
}
/* .hero img é a foto de fundo do início: aqui as imagens ficam no sítio. */
.hero img.app-icon {
  position: static;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.hero img.app-shot,
.app-shot {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
}
.store svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.store small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
}
.store:hover,
.store:focus-visible {
  background: #1d1d1d;
}
.store-soon {
  cursor: default;
}
.store-soon > svg,
.store-soon > span {
  opacity: 0.6;
}
.store-soon:hover {
  background: #000;
}
.store em {
  font-style: normal;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
}
.features h3 {
  margin-top: 0;
}
.steps {
  padding-left: 1.3em;
}
.steps li {
  margin-bottom: 8px;
}
.app-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
