/* ===== Fontok: saját szerverről, Google Fonts kérés nélkül ===== */
/* Figtree variable, 400–700; a latin-ext csak ékezetes (ő, ű) karakterhez töltődik le */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque: csak a név használja, ezért egyetlen 700-as példány, magyar ékezetekkel */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-700.woff2") format("woff2");
}
/* Méretre hangolt tartalék fontok: nem ugrik a szöveg, amikor a valódi font betöltődik */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 100.7%;
  ascent-override: 94.4%;
  descent-override: 24.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial"), local("Helvetica"), local("Roboto");
  font-weight: 700;
  size-adjust: 101.8%;
  ascent-override: 91.4%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}

/* ===== Tokens ===== */
:root {
  --bg-top: #1e4d4a;
  --bg-bottom: #08221f;
  --card: #0c2826;
  --line: rgba(255, 255, 255, .09);
  --row: rgba(255, 255, 255, .035);
  --row-hover: rgba(255, 255, 255, .07);
  --text: #f3eee6;
  --muted: #9db3ae;
  --peach: #f6c7a0;
  --peach-2: #f0b387;
  --on-peach: #2b180c;
  --display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --body: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --avatar: min(82vw, 330px);
  --name: clamp(28px, 8.5vw, 34px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Page gradient on its own fixed layer: background-attachment: fixed is broken on iOS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 70%);
}

img, svg { display: block; }

/* ===== Layout ===== */
.page {
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 304px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 4px var(--gutter) 12px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: -24px;
  z-index: -2;
  background: url("images/budapest-bg.webp") center / cover no-repeat;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.05) translateZ(0);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(12, 40, 38, 0)   0%,
    rgba(12, 40, 38, .05) 20%,
    rgba(12, 40, 38, .14) 34%,
    rgba(12, 40, 38, .27) 46%,
    rgba(12, 40, 38, .43) 57%,
    rgba(12, 40, 38, .59) 67%,
    rgba(12, 40, 38, .74) 77%,
    rgba(12, 40, 38, .87) 86%,
    rgba(12, 40, 38, .96) 94%,
    var(--card) 100%);
}

.avatar {
  width: var(--avatar);
  height: auto;
  border: 0;
  outline: 0;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .38)) saturate(.97);
  /* a kép alján lévő átlátszó sávot visszahúzzuk, hogy a név közel legyen */
  margin-bottom: calc(var(--avatar) * -.04);
}

.name {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--name);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}

/* ===== Body ===== */
.content { padding: 0 var(--gutter) 22px; }

.role {
  margin: 0 0 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}
.role strong { display: block; color: var(--text); font-weight: 600; }

.links { display: flex; flex-direction: column; gap: 8px; }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--row);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.row:active { background: var(--row-hover); }

.row .ic { width: 20px; height: 20px; flex: none; color: var(--peach); }
.row .txt { flex: 1; min-width: 0; }
.row .t { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.row .s {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .arr { width: 14px; height: 14px; flex: none; color: var(--muted); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--peach);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cta {
  margin: 0 0 16px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--peach) 0%, var(--peach-2) 100%);
  color: var(--on-peach);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(240, 179, 135, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.cta:active { transform: scale(.985); }
.cta svg { width: 18px; height: 18px; }

/* Focus */
.row:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

/* Hover only on real pointers (no sticky hover on touch) */
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: var(--row-hover); border-color: rgba(255, 255, 255, .16); }
  .cta:hover { filter: brightness(1.04); }
}

/* ===== Phones: card goes edge to edge ===== */
@media (max-width: 480px) {
  .page { padding: 0; }
  .card {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .hero { padding-top: calc(4px + env(safe-area-inset-top)); }
  .content {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

/* Very small phones (iPhone SE 1st gen, 320px) */
@media (max-width: 350px) {
  :root { --gutter: 16px; }
  .hero { min-height: 264px; padding-bottom: 10px; }
  .row { gap: 12px; padding: 10px 12px; }
}

/* Landscape phones: shorter hero */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: 0; padding-bottom: 24px; }
  :root { --avatar: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}