/* ==========================================================================
   JUDr. Alena Tibitanzlová, Ph.D. – advokátka
   ========================================================================== */

:root {
  --ink: #0c0d10;
  --ink-2: #14161b;
  --ink-3: #1d2027;
  --line-dark: rgba(255, 255, 255, .09);
  --paper: #f6f3ee;
  --white: #ffffff;
  --text: #22252b;
  --muted: #6b6f78;
  --muted-light: #a4a8b1;
  --line: #e4dfd6;
  --gold: #b89a67;
  --gold-2: #cdb382;
  --gold-dark: #8d7249;

  --serif: var(--sans);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 80px;
  --fs-body: 16.5px;
  --text-body: #3c4048;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.75; color: var(--text);
  background: var(--ink); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.text-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: var(--gold-dark); text-decoration: none;
  border-bottom: 1px solid rgba(141, 114, 73, .4); padding-bottom: 2px;
  transition: color .2s, border-color .2s, gap .2s;
}
.text-link:hover { color: var(--ink); border-color: var(--ink); gap: .7em; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), height .4s var(--ease), border-color .4s;
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(12, 13, 16, .88);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-color: var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; position: relative; z-index: 2; }
.brand img { width: 42px; height: auto; }
.brand-name { font-size: 12.5px; letter-spacing: .3em; color: rgba(255, 255, 255, .78); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  position: relative; font-size: 13.5px; letter-spacing: .03em; color: rgba(255, 255, 255, .7);
  text-decoration: none; padding: 6px 0; transition: color .2s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: #fff; }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-social { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-dark); color: rgba(255, 255, 255, .75); transition: all .2s; }
.nav-social svg, .f-social svg, .more-linkedin svg { width: 15px; height: 15px; fill: currentColor; }
.nav-social:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark); cursor: pointer; position: relative; z-index: 2; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: #fff; transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden; background: var(--ink); text-align: center;
}
.hero-bg {
  position: absolute; inset: -40px 0 0;
  background: url("../img/hero-bg.jpg") center 30% / cover no-repeat;
  opacity: .42; will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(12, 13, 16, .35) 0%, rgba(12, 13, 16, .85) 70%),
    linear-gradient(180deg, rgba(12, 13, 16, .6) 0%, transparent 30%, transparent 70%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: var(--header-h); }
.hero-title {
  font-family: var(--sans); font-weight: 300; letter-spacing: -.02em;
  font-size: clamp(34px, 5.6vw, 72px); line-height: 1.1; max-width: 18ch;
}
.hero-role {
  display: flex; align-items: center; gap: 22px; margin: 30px 0 0;
  font-size: clamp(12px, 1.3vw, 14px); letter-spacing: .42em; text-transform: uppercase; color: var(--gold);
}
.hero-role span { width: clamp(30px, 6vw, 70px); height: 1px; background: currentColor; opacity: .7; }
.scroll-cue { position: absolute; z-index: 2; bottom: 36px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--gold); border-radius: 2px; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------------ Sections */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-dark .section-head h2 { font-family: var(--sans); font-weight: 300; letter-spacing: -.02em; color: var(--ink); font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; }
.section-dark .section-head h2 { color: #fff; }

/* ------------------------------------------------------------------ About */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.prose p, .services-intro p, .service p, .award p, .tl-card p { font-family: var(--sans); font-size: var(--fs-body); line-height: 1.75; color: var(--text-body); }

.prose a { color: var(--gold-dark); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.about-photo { margin: 0; }
.about-photo .frame { position: relative; }
.about-photo .frame::before { content: ""; position: absolute; inset: 22px 22px -22px -22px; border: 1px solid var(--gold); }
.about-photo img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }

/* ------------------------------------------------------------------ Services */
.services-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.services-intro h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }

.services-intro strong { color: var(--ink); font-weight: 600; }
.muted-label { margin-top: 0; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { position: relative; padding: 24px 0 24px 30px; border-bottom: 1px solid var(--line); }
.service::after { content: ""; position: absolute; left: 0; top: 37px; width: 14px; height: 1px; background: var(--gold); }
.service::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--gold); transition: width .6s var(--ease); }
.service:hover::before { width: 100%; }

.service p { margin: 0; }

/* ------------------------------------------------------------------ Pricing */
.pricing-items { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.pricing-item { padding: 40px 40px 40px 0; }
.pricing-item + .pricing-item { padding-left: 40px; border-left: 1px solid var(--line-dark); }
.pricing-item:last-child { padding-right: 0; }
.pricing-item { position: relative; }
.pricing-item::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-bottom: 22px; }
.pricing-item p { margin: 0; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.75; color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------------ Awards */
.award { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 70px); align-items: center; background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 52px); }
.award + .award { margin-top: 24px; }
.award time { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.award p { margin-bottom: 22px; }
.award-gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1.3fr; }
.award-gallery.count-1 { grid-template-columns: 1fr; }
.award-gallery.count-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item { padding: 0; border: 0; background: var(--paper); cursor: zoom-in; overflow: hidden; height: clamp(220px, 28vw, 380px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: grayscale(.2); }
.gallery-item:hover img { transform: scale(1.04); filter: none; }

/* ------------------------------------------------------------------ Aktuálně – timeline */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news-filters {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  margin-bottom: 50px; border-bottom: 1px solid var(--line);
}
.cat-filter { display: flex; flex-wrap: wrap; gap: 0 30px; min-width: 0; }
.cat-tab {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 14px 0 16px;
  background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--muted); transition: color .2s;
}
.cat-tab span { font-size: 11px; color: var(--muted-light); }
.cat-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.cat-tab:hover { color: var(--ink); }
.cat-tab.is-active { color: var(--ink); font-weight: 500; }
.cat-tab.is-active::after { transform: scaleX(1); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--gold)); display: inline-block; }
.dot-publikace, .tag-publikace { --c: #9a7a48; }
.dot-udalosti, .tag-udalosti { --c: #4f7a5c; }
.dot-media, .tag-media { --c: #4a6a8c; }
.dot-ostatni, .tag-ostatni { --c: #7a6690; }
.year-select { margin-bottom: 10px; }
.year-select select {
  appearance: none; -webkit-appearance: none; padding: 8px 38px 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  font: inherit; font-size: 13px; color: var(--text); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2322252b' stroke-width='1.5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.news-empty { padding: 30px 0; color: var(--muted); }
.tl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.tl-meta time { margin: 0 !important; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tl-item::before { border-color: var(--c, var(--gold)); }
.tl-item:hover::before { background: var(--c, var(--gold)); }
.tl-item[data-cat="publikace"] { --c: #9a7a48; }
.tl-item[data-cat="udalosti"] { --c: #4f7a5c; }
.tl-item[data-cat="media"] { --c: #4a6a8c; }
.tl-item[data-cat="ostatni"] { --c: #7a6690; }
.tl-card { border-left: 2px solid transparent; }
.tl-item:hover .tl-card { border-left-color: var(--c, var(--gold)); }

.tl-year { display: grid; grid-template-columns: 180px 1fr; gap: 0 40px; }
.tl-year + .tl-year { margin-top: 20px; }
.tl-year-label { position: relative; }
.tl-year-label span {
  position: sticky; top: 100px; display: block;
  font-family: var(--sans); font-weight: 300; letter-spacing: -.02em; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--ink);
}
.tl-items { list-style: none; margin: 0; padding: 0 0 20px; position: relative; border-left: 1px solid var(--line); }
.tl-item { position: relative; padding: 0 0 34px 40px; }
.tl-item::before {
  content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gold); transition: background .3s, transform .3s;
}
.tl-item:hover::before { background: var(--gold); transform: scale(1.3); }
.tl-item time { display: block; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.tl-card {
  background: var(--paper); border: 1px solid transparent; padding: 22px 26px;
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.tl-item:hover .tl-card { background: #fff; border-color: var(--line); box-shadow: 0 14px 40px -24px rgba(12, 13, 16, .35); transform: translateX(4px); }
.tl-card p { margin: 0; }
.tl-card .text-link { margin-top: 14px; }
.more-linkedin { display: flex; align-items: center; gap: 12px; margin: 30px 0 0 220px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted); }
.more-linkedin a { display: grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: #fff; transition: background .2s; }
.more-linkedin a:hover { background: var(--gold-dark); }

/* ------------------------------------------------------------------ Contact */
.contact-boxes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.contact-box { background: var(--ink); padding: 36px 32px; transition: background .3s; }
.contact-box:hover { background: var(--ink-2); }
.contact-box .ico { width: 26px; height: 26px; color: var(--gold); margin-bottom: 22px; }
.contact-box h3 { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px; }
.contact-box p { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; color: #fff; }
.contact-box a { text-decoration: none; transition: color .2s; }
.contact-box a:hover { color: var(--gold-2); }
.map { margin-top: 40px; height: 384px; border: 1px solid var(--line-dark); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.92); transition: filter .5s; }
.map:hover iframe { filter: none; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: #08090b; color: var(--muted-light); padding: 70px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-grid { align-items: start; }
.footer-brand { display: flex; gap: 20px; align-items: flex-start; }
.footer-brand img { width: 54px; opacity: .9; margin-top: 3px; }
.f-name { font-size: 16px; font-weight: 500; line-height: 1.5; color: #fff; margin: 0; }
.f-name span { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.site-footer strong { color: #d7d9de; font-weight: 500; }
.site-footer a { color: #d7d9de; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold-2); }
.f-social { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-dark); font-size: 12.5px; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------ UI extras */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 9, 11, .94); display: grid; place-items: center; padding: 40px 16px; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); animation: fadeUp .4s var(--ease); }
.lightbox img { max-height: 82vh; margin: 0 auto; }
.lightbox figcaption { color: var(--muted-light); text-align: center; font-size: 13px; margin-top: 14px; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; background: none; border: 1px solid var(--line-dark); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------------ Motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { --d: 150ms; }
.hero .reveal:nth-child(3) { --d: 300ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .main-nav ul { gap: 20px; }
}
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  /* na mobilu bez indikátoru scrollu a bez paralaxy – výška okna se při scrollu mění a prvky by kmitaly */
  .scroll-cue { display: none; }
  .hero { min-height: 100svh; }
  .hero-bg { inset: 0; transform: none !important; will-change: auto; }
  /* logo v hlavičce se na mobilu ukáže až po odscrollování (nahoře je velké logo v úvodu) */
  .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .is-scrolled .brand, .nav-open .brand { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 36px;
    background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 8px; }
  .main-nav ul a { font-size: 24px; font-weight: 300; letter-spacing: -.01em; color: #fff; }

  .about-grid, .services-grid, .award { grid-template-columns: 1fr; }
  .about-photo { max-width: 400px; order: -1; margin-left: 22px; }
  .tl-year { grid-template-columns: 1fr; }
  .tl-year-label span { position: static; margin: 20px 0 24px; }
  .more-linkedin { margin-left: 0; }
  .contact-boxes { grid-template-columns: 1fr 1fr; }
  .contact-box:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  :root { --fs-body: 15.5px; }
  .brand-name { display: none; }
  .hero-role { letter-spacing: .3em; gap: 14px; }
  .prose p { text-align: left; }
  .about-photo .frame::before { inset: 14px 14px -14px -14px; }
  .service { padding: 20px 0 20px 26px; }
  .service::after { top: 33px; }


  .pricing-items { grid-auto-flow: row; border-bottom: 0; }
  .pricing-item, .pricing-item + .pricing-item { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .pricing-item p { text-align: left; }
  .award-gallery { grid-template-columns: 1fr 1fr; }
  .tl-items { border-left: 0; }
  .tl-item { padding-left: 0; padding-bottom: 26px; }
  .tl-item::before { display: none; }
  .tl-card { padding: 18px 20px; }
  .news-filters { flex-direction: column; align-items: stretch; border-bottom: 0; }
  .cat-filter { gap: 8px; }
  .cat-tab { padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; }
  .cat-tab::after { display: none; }
  .cat-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
  .year-select select { width: 100%; }
  .tl-item:hover .tl-card { transform: none; }
  .contact-boxes { grid-template-columns: 1fr; }
  .contact-box { padding: 28px 24px; }

  .map { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 16px; }
}
