/* Fontes (self-hosted): Fredoka = título · Comfortaa = subtítulo e texto */
@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("assets/fonts/comfortaa-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --azul: #059dd8;
  --dourado: #d9b558;
  --texto: #111;
  --fundo: #fff;
  /* 1 unidade = 1px num ecrã de 1920x1080; escala para caber em qualquer janela */
  --u: min(calc(100vw / 1920), calc(100vh / 1080));
}
@supports (height: 100dvh) {
  :root { --u: min(calc(100vw / 1920), calc(100dvh / 1080)); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fundo); height: 100%; overflow: hidden; }
body {
  font-family: "Comfortaa", "Segoe UI", system-ui, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  position: relative;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* Coração decorativo esbatido (do logótipo) */
.coracao { position: absolute; z-index: 0; pointer-events: none; height: auto; }


/* Hero */
.hero { position: relative; z-index: 1; overflow: hidden; border-style: solid; border-color: var(--dourado); border-width: 0; text-align: center; }
.hero-photo { position: absolute; inset: 0; background: url("assets/foto.jpg") center 48% / cover no-repeat; }
.hero h1 {
  font-family: "Fredoka", "Comfortaa", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  color: var(--azul);
  text-shadow: .03em .03em .04em rgba(0,0,0,.7);
}
.hero p {
  font-weight: 400;
  line-height: 1;
  color: #fff;
  text-shadow: .03em .03em .06em rgba(0,0,0,.65);
}

/* Rodapé */
.col { display: flex; flex-direction: column; }
.col strong { font-weight: 700; }
.col a:hover { color: var(--azul); }
.social { display: flex; }
.social a {
  border: 2px solid var(--dourado);
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  color: #000;
  transition: transform .2s, color .2s;
}
.social a:hover, .social a:focus-visible { color: var(--azul); transform: translateY(-3px); outline: none; }
.social svg { width: 52%; height: 52%; }

/* ============ Ecrãs verticais (telemóvel): layout em coluna ============ */
@media (max-aspect-ratio: 9/10) {
  body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
  .top { position: relative; z-index: 2; flex: 0 0 auto; padding: 3dvh 6vw 2dvh; }
  .logo { height: clamp(60px, 13dvh, 120px); width: auto; display: block; }
  main { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-x: clip; display: flex; flex-direction: column; justify-content: center; }
  /* marca de água: por trás de tudo e abaixo do logótipo */
  .coracao { top: 47%; right: -20vw; width: min(105vw, 47.8dvh); transform: translateY(-50%); }
  .hero { height: 36dvh; min-height: 130px; border-width: clamp(6px, 1dvh, 14px) 0; display: grid; place-items: center; }
  .hero-text { position: relative; padding: 0 4vw; }
  .hero h1 { font-size: min(9vw, 6dvh); line-height: 1.05; }
  .hero p { font-size: min(4.2vw, 3.2dvh); margin-top: .7em; }
  .info { position: relative; z-index: 2; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.2dvh; padding: 4dvh 6vw; font-size: max(.8rem, min(3.8vw, 2.3dvh)); line-height: 1.45; }
  .social { gap: 1rem; }
  .social a { width: clamp(36px, 6dvh, 56px); height: clamp(36px, 6dvh, 56px); }
}

/* ============ Ecrãs horizontais: tela fixa 1920x1080 que escala ============ */
@media (min-aspect-ratio: 9/10) {
  html { display: flex; align-items: center; justify-content: center; }
  body { flex: none; width: calc(1920 * var(--u)); height: calc(1080 * var(--u)); overflow: visible; }
    .top { position: absolute; z-index: 2; left: calc(96 * var(--u)); top: calc(27 * var(--u)); }
  .logo { height: calc(173 * var(--u)); width: auto; display: block; }
  main { position: absolute; inset: 0; z-index: 1; }
  .coracao { top: calc(31 * var(--u)); right: calc(-19 * var(--u)); width: calc(979 * var(--u)); }
  .hero { position: absolute; left: 50%; transform: translateX(-50%); top: calc(322 * var(--u)); width: 100vw; height: calc(456 * var(--u)); border-width: calc(11 * var(--u)) 0; }
  .hero-text { position: absolute; top: 0; bottom: 0; left: 50%; width: calc(1920 * var(--u)); margin-left: calc(-960 * var(--u)); }
  .hero h1, .hero p { position: absolute; left: 0; right: 0; margin: 0; white-space: nowrap; transform: translateY(-50%); }
  .hero h1 { top: 37%; font-size: calc(125.8 * var(--u)); }
  .hero p { top: 59.6%; font-size: calc(62 * var(--u)); }
  .info { position: absolute; z-index: 2; left: calc(96 * var(--u)); right: calc(96 * var(--u)); top: calc(909 * var(--u)); height: calc(117 * var(--u)); display: flex; align-items: center; gap: calc(77 * var(--u)); font-size: calc(27 * var(--u)); line-height: 1.45; }
  .social { margin-left: auto; gap: calc(54 * var(--u)); }
  .social a { width: calc(65 * var(--u)); height: calc(65 * var(--u)); border-width: calc(2 * var(--u)); }
}
