/* =========================================================
   JUDr. Jozef Beck — advokát
   Klasický a prestížny vzhľad. Písmo: Cormorant Garamond (display)
   + Libre Franklin (text/UI). Paleta sa mení cez [data-palette].
   ========================================================= */

:root {
  /* písmo */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;

  /* predvolená = NAVY & GOLD */
  --bg:        #f4f1ea;
  --bg-deep:   #ece7db;
  --surface:   #fbfaf6;
  --ink:       #15273f;
  --ink-2:     #3a4a60;
  --ink-soft:  #6b7688;
  --accent:    #b18a52;
  --accent-2:  #9a743f;
  --line:      rgba(21, 39, 63, 0.14);
  --line-soft: rgba(21, 39, 63, 0.08);
  --dark-bg:   #0f1d30;
  --dark-ink:  #eadfca;

  --maxw: 1180px;
  --gutter: clamp(22px, 5vw, 72px);
}

/* ---- PALETA: CHARCOAL & WARM NEUTRALS ---- */
[data-palette="charcoal"] {
  --bg:        #f2efea;
  --bg-deep:   #e8e3da;
  --surface:   #faf8f4;
  --ink:       #1c1b18;
  --ink-2:     #3b3833;
  --ink-soft:  #756f66;
  --accent:    #8a6f4b;
  --accent-2:  #6f573a;
  --line:      rgba(28, 27, 24, 0.14);
  --line-soft: rgba(28, 27, 24, 0.07);
  --dark-bg:   #1c1b18;
  --dark-ink:  #ece4d6;
}

/* ---- PALETA: DEEP GREEN & CREAM ---- */
[data-palette="green"] {
  --bg:        #f0eee2;
  --bg-deep:   #e6e3d3;
  --surface:   #f9f8f0;
  --ink:       #16271d;
  --ink-2:     #314236;
  --ink-soft:  #647063;
  --accent:    #a4894e;
  --accent-2:  #856c38;
  --line:      rgba(22, 39, 29, 0.15);
  --line-soft: rgba(22, 39, 29, 0.07);
  --dark-bg:   #11241a;
  --dark-ink:  #e9e2cd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Zabráni preblikaniu rozloženia, kým sa nenačítajú webfonty */
html:not(.fonts-ready) body { opacity: 0; }
html.fonts-ready body { opacity: 1; transition: opacity 0.45s ease; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------------- typografia ---------------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-no {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }

/* ---------------- horná navigácia ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.monogram {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-2);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; }
.brand-name span { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }

/* prepínač jazykov */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch button {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 7px;
  transition: color 0.2s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--ink); }
.lang-switch .sep { width: 1px; height: 13px; background: var(--line); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
  padding: 11px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-mono {
  position: absolute;
  right: -4vw; top: 50%; transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 52vh;
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 22px 0 0;
}
.hero h1 .credential { display: block; font-size: 0.34em; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-2); font-family: var(--sans); font-weight: 600; margin-bottom: 18px; }
.hero-title-line { color: var(--ink-2); font-style: italic; }
.hero-lede {
  margin-top: 32px;
  font-size: 18.5px;
  color: var(--ink-2);
  max-width: 42ch;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px;
  display: flex; gap: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-meta .m-k { font-family: var(--serif); font-size: 34px; color: var(--accent-2); line-height: 1; }
.hero-meta .m-v { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

/* portrét */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}
.portrait::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--accent);
  pointer-events: none;
}
.ph {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, var(--line-soft) 0 1px, transparent 1px 11px);
  display: grid; place-items: center;
}
.ph span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft); background: var(--bg); padding: 5px 11px; border: 1px solid var(--line); }
.portrait-seal {
  position: absolute; left: -34px; bottom: -34px; z-index: 2;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: 13px; line-height: 1.25;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent);
}

/* ---------------- obrázkový pás ---------------- */
.image-strip { display: block; line-height: 0; }
.image-strip img { display: block; width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }

/* ---------------- generická sekcia ---------------- */
section { position: relative; }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band--alt { background: var(--bg-deep); }
.band--dark { background: var(--dark-bg); color: var(--dark-ink); }
.band--dark .eyebrow { color: var(--accent); }
.band--dark .section-no { color: rgba(255,255,255,0.45); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; margin-bottom: 52px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -0.01em; max-width: 18ch; }
.sec-head .eyebrow { margin-bottom: 18px; }

/* ---------------- o mne ---------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about-lede { font-family: var(--serif); font-size: clamp(23px, 2.6vw, 30px); line-height: 1.4; color: var(--ink); font-weight: 500; }
.about-body { color: var(--ink-2); }
.about-body p { margin-bottom: 1.2em; }
.about-sign { margin-top: 30px; font-family: var(--serif); font-size: 30px; font-style: italic; color: var(--accent-2); }

/* ---------------- oblasti práva ---------------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.practice-card {
  background: var(--surface);
  padding: 38px 34px 42px;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}
.practice-card:hover { background: var(--bg); }
.pc-no { font-size: 12px; letter-spacing: 0.18em; color: var(--accent-2); font-weight: 600; }
.practice-card h3 { font-size: 26px; margin: 18px 0 12px; line-height: 1.1; }
.practice-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---------------- prax / skúsenosti ---------------- */
.exp-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); }
.band--dark .stat { background: var(--dark-bg); }
.stat { padding: 30px 28px; }
.stat .k { font-family: var(--serif); font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--accent); }
.stat .v { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-top: 12px; }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 92px 1fr; gap: 26px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.13); }
.tl-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.13); }
.tl-year { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.tl-item h3 { font-size: 20px; margin-bottom: 5px; }
.tl-item p { font-size: 14.5px; color: rgba(255,255,255,0.6); margin: 0; }

/* ---------------- vzdelanie / kvalifikácia ---------------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(40px, 6vw, 80px); }
.cred-col h3 { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.cred-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cred-item .yr { font-family: var(--serif); font-size: 19px; color: var(--ink-soft); }
.cred-item .ti { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.cred-item .su { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }

/* ---------------- referencie ---------------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote { background: var(--surface); padding: 44px 40px; }
.quote .mark { font-family: var(--serif); font-size: 64px; line-height: 0.6; color: var(--accent); height: 34px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--ink); }
.quote .by { margin-top: 26px; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); }
.quote .by b { display: block; font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); font-size: 12px; margin-bottom: 3px; }

/* ---------------- kontakt ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.contact-lede { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.01em; }
.contact-channels { margin-top: 36px; display: flex; flex-direction: column; gap: 2px; }
.chan { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.chan:last-child { border-bottom: 1px solid var(--line); }
.chan .lab { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.chan .val { font-family: var(--serif); font-size: 23px; }
.chan:hover .val { color: var(--accent-2); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12px; color: var(--ink-soft); }

/* mapa */
.map-wrap { margin-top: 56px; border: 1px solid var(--line); }
.map-head { margin-bottom: 18px; }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(0.25) contrast(1.02); }

/* ---------------- pätička ---------------- */
.foot { background: var(--dark-bg); color: var(--dark-ink); padding-block: 56px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot .monogram { border-color: var(--accent); color: var(--accent); }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand b { font-family: var(--serif); font-size: 22px; }
.foot-brand span { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; margin-top: 3px; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.foot-col a, .foot-col span { font-size: 14px; color: rgba(255,255,255,0.72); text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.13); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }

/* ---------------- reveal animácia ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responzívne ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .about-grid, .exp-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-mono { display: none; }
  .practice-grid, .quotes { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 26px; }
  .nav-actions .btn { display: none; }
}
