/* Fodero Capital — foderocapital.com */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/hanken-grotesk-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }

:root {
  --ground: #1F201F;
  --text: #D2D0CA;
  --body: #D3D6CD;
  --muted: #B9BEB3;
  --accent: #E0D1C4;
  --line: rgba(202, 206, 191, 0.35);
  --pad-x: clamp(24px, 9vw, 160px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #F3EBE3; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

/* ---------- Landing ---------- */
.page { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero {
  position: absolute; inset: 0;
  background: var(--ground) url("img/hero.jpg?v=2") center 60% / cover no-repeat;
}
.shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,20,.30) 0%, rgba(20,21,20,0) 28%, rgba(20,21,20,0) 62%, rgba(20,21,20,.55) 100%);
}

.top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 40px;
  padding: clamp(28px, 4.5vw, 64px) var(--pad-x) 0;
}
.logo { display: inline-block; line-height: 0; }
.logo img { width: clamp(120px, 11vw, 180px); height: auto; display: block; }

.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px clamp(28px, 3vw, 48px); }
.nav a {
  padding: 12px 0; color: var(--text);
  font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  transition: opacity .25s ease;
}
.nav a:hover { color: var(--text); opacity: .7; }

.claim {
  position: absolute; left: 0; right: 0; bottom: clamp(110px, 18vh, 200px);
  padding: 0 var(--pad-x);
}
.claim h1 {
  margin: 0; max-width: 760px;
  font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; line-height: 1.24; letter-spacing: .005em;
}

.foot {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 32px;
  padding: 0 var(--pad-x) 28px;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
}
.legal { display: flex; flex-wrap: wrap; gap: 0 32px; }
.legal a { padding: 12px 0; font-weight: 500; color: #D5D8D0; }
.legal a:hover { color: var(--accent); }
.foot p { margin: 0; color: #C3C7BD; }

/* ---------- Panels (Contact, Legal Notice, Privacy) ---------- */
dialog.panel {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(28,29,28,.88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #E4E6DF; overflow-y: auto;
}
dialog.panel::backdrop { background: transparent; }
.panel-bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(28px, 4.5vw, 64px) var(--pad-x) 24px;
  background: linear-gradient(180deg, #1E1F1E 78%, rgba(30,31,30,0));
}
.panel-logo { width: clamp(120px, 11vw, 180px); height: auto; display: block; }
.close {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer;
}
.close:hover { background: rgba(202,206,191,.08); }

.panel-body { max-width: 640px; margin: 0 auto; padding: 40px 24px 96px; font-size: 14.5px; line-height: 1.7; color: var(--body); }
.panel-body h2 { margin: 0 0 28px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.15; color: var(--text); }
.panel-body .kicker { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.panel-body .kicker + h2 { margin-bottom: 12px; }
.panel-body .lead { margin: 0 0 28px; font-size: 15px; color: #E4E6DF; }
.panel-body .meta { margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.panel-body h3 { margin: 24px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.panel-body p { margin: 0 0 14px; }
.panel-body ul { margin: 0 0 16px; padding-left: 20px; }
.panel-body li { margin: 0 0 6px; }
.panel-body strong { font-weight: 500; color: var(--text); }
.panel-body a[href^="mailto:"] { color: var(--body); }
.panel-body a[href^="mailto:"]:hover { color: var(--accent); }

body.locked { overflow: hidden; }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hero { background-image: url("img/hero-mobile.jpg?v=2"); background-position: center; }
  .top { padding-top: 28px; gap: 16px; }
  .logo img { width: 108px; }
  .nav { gap: 4px 22px; }
  .nav a { font-size: 12px; }
  .claim { bottom: 140px; }
  .claim h1 { font-size: 24px; }
  .foot { flex-direction: column; align-items: flex-start; font-size: 11px; padding-bottom: 24px; }
  .panel-logo { width: 108px; }
  .panel-bar { padding-top: 28px; }
  .panel-body { padding-top: 24px; }
}

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