/* ELNOUS — static site styles
   Palette: deep graphite background, ivory text, gold accents.
   Type scale and layout follow the golden ratio (φ = 1.618). */

:root {
  --bg: #121418;
  --bg-2: #171a20;
  --surface: #1c2027;
  --line: rgba(201, 162, 75, 0.22);
  --line-strong: rgba(201, 162, 75, 0.5);
  --gold: #c9a24b;
  --gold-light: #e6cf8e;
  --gold-deep: #9c7a2e;
  --text: #e9e5da;
  --muted: #a9a595;
  --phi: 1.618;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--gold); color: #111; padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 20, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { height: 1.7rem; width: auto; }
.brand-name { font-family: var(--serif); letter-spacing: .32em; font-size: 1.15rem; font-weight: 600; }
.brand-name small { display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .22em; color: var(--gold); font-weight: 500; margin-top: .15rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.nav-link {
  color: var(--text); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a.nav-link:hover { color: var(--gold-light); border-color: var(--gold); }
.lang { display: flex; gap: .15rem; font-size: .75rem; letter-spacing: .12em; border: 1px solid var(--line); border-radius: 999px; padding: .15rem; }
.lang a { color: var(--muted); padding: .25rem .7rem; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--gold); color: #14110a; font-weight: 700; }
.lang a:not([aria-current="true"]):hover { color: var(--gold-light); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold-light); width: 2.7rem; height: 2.7rem; border-radius: 6px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 1.2rem; height: 1.5px; background: currentColor; margin: auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem); background:
  radial-gradient(1200px 600px at 85% 20%, rgba(201,162,75,.08), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.618fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.6rem; display: flex; align-items: center; gap: 1rem; }
.eyebrow::before { content: ""; width: 3rem; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.236rem); letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--gold-light); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.618rem); }
h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 40rem; margin: 1.8rem 0 2.4rem; }
.motto { margin: 1.5rem 0 0; font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: clamp(1.2rem, 2.1vw, 1.65rem); display: flex; align-items: center; gap: 1rem; line-height: 1.3; }
.motto::before { content: ""; width: 2.4rem; height: 2.4rem; flex: none; background: url(logo-symbol.png) center / contain no-repeat; }
.lead { margin-top: 1.4rem; }
.footer-motto { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); margin-top: .35rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-block; padding: .95rem 1.9rem; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--gold); transition: all .25s; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--gold); color: #14110a; font-weight: 700; }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: #14110a; }
.btn-ghost { background: transparent; color: var(--gold-light); }
.btn-ghost:hover { background: rgba(201,162,75,.1); color: var(--gold-light); }

.spiral { width: 100%; max-width: 440px; margin-inline: auto; opacity: .95; }
.spiral path.s { fill: none; stroke: url(#goldGrad); stroke-width: 2; stroke-linecap: round; }
.spiral .g { fill: none; stroke: var(--line); stroke-width: 1; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 3.5rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 1.2rem 0 0; }
.rule { width: 4rem; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1.4rem 0 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1.618fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid p { margin: 0 0 1.2rem; color: #cfcbbf; font-size: 1.05rem; }
.pillars { display: grid; gap: 0; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.pillars div { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; color: var(--gold-light); display: flex; gap: 1rem; align-items: baseline; }
.pillars div::before { content: "Φ"; color: var(--gold-deep); font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); padding: 2.2rem 2rem 2.4rem;
  transition: border-color .3s, transform .3s; position: relative;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card .num { font-family: var(--serif); color: var(--gold); font-size: .95rem; letter-spacing: .2em; margin-bottom: 1.2rem; display: block; }
.card h3 { margin-bottom: .9rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.outlook { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); }
.outlook article { padding: 2.4rem 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outlook article:nth-child(2n) { border-right: 0; }
.outlook article:nth-last-child(-n+2) { border-bottom: 0; }
.outlook h3 { color: var(--gold-light); margin-bottom: .8rem; }
.outlook p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { border-top: 2px solid var(--gold); padding-top: 1.4rem; }
.step .n { font-family: var(--serif); font-size: 2.618rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .8rem; opacity: .9; }
.step h3 { margin-bottom: .6rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

.tags { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.tag { border: 1px solid var(--line-strong); padding: .55rem 1.2rem; font-size: .85rem; letter-spacing: .08em; color: var(--text); border-radius: 999px; }
.sub-title { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 4rem 0 0; }
.values { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; color: var(--muted); }
.values li { padding-left: 1.2rem; position: relative; }
.values li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 1px; background: var(--gold); }

.contact { text-align: center; background:
  radial-gradient(700px 360px at 50% 0%, rgba(201,162,75,.10), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 1.2rem; }
.contact p { color: var(--muted); max-width: 34rem; margin: 0 auto 2.2rem; font-size: 1.08rem; }
.contact .mail { display: block; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--gold-light); margin-bottom: 2.2rem; }
.social { display: flex; gap: 1.6rem; justify-content: center; margin-top: 2.6rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.social a { color: var(--muted); border-bottom: 1px solid transparent; }
.social a:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .85rem; color: var(--muted); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a, .footer-links button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-light); }

/* ---------- Policy page ---------- */
.page-head { padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head p { color: var(--muted); margin: 1rem 0 0; }
.policy { max-width: 50rem; padding: 3.5rem 0 5rem; }
.policy h2 { font-size: 1.55rem; margin: 2.8rem 0 .9rem; color: var(--gold-light); }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: #cfcbbf; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin: .4rem 0; }
.policy table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.policy th, .policy td { text-align: left; padding: .8rem 1rem; border: 1px solid var(--line); vertical-align: top; }
.policy th { background: var(--surface); color: var(--gold-light); font-weight: 600; }
.policy button.linklike { background: none; border: 0; color: var(--gold-light); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- Cookie banner ---------- */
.cc {
  position: fixed; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  max-width: 760px; margin-inline: auto; background: #1a1d24; border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,.55); padding: 1.5rem 1.6rem; display: none;
}
.cc.show { display: block; animation: ccIn .45s ease both; }
.cc h2 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--gold-light); }
.cc p { margin: 0 0 1.1rem; font-size: .92rem; color: var(--muted); }
.cc .opts { display: none; margin: 0 0 1.1rem; border-top: 1px solid var(--line); }
.cc.details .opts { display: block; }
.cc label { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cc label small { display: block; color: var(--muted); }
.cc input[type="checkbox"] { accent-color: var(--gold); width: 1.1rem; height: 1.1rem; margin-top: .25rem; flex: none; }
.cc .btn { padding: .7rem 1.2rem; font-size: .74rem; }
.cc .btn-row { gap: .7rem; }
@keyframes ccIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .spiral { max-width: 300px; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 4.5rem; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.5rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: .9rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .lang { margin-top: 1rem; }
}
@media (max-width: 620px) {
  .cards, .steps, .outlook { grid-template-columns: 1fr; }
  .outlook article { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .outlook article:last-child { border-bottom: 0 !important; }
  .values { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 2.2rem, var(--maxw)); }
  .cc { left: .6rem; right: .6rem; bottom: .6rem; padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
