/* =========================================================
   i-notar.cz — Notářská kancelář JUDr. Irena Bischofová
   Design: čistý, moderní, úřední — černá / červená / bílá
   (ladí s logem i-notar.cz)
   ========================================================= */

:root {
  --red:    #e2001a;   /* červená z loga */
  --red-d:  #bd0016;   /* tmavší červená (hover) */

  --ink:    #15171c;   /* hlavní text / černá */
  --ink-2:  #474c56;   /* sekundární text */
  --muted:  #868c98;   /* popisky */

  --bg:     #ffffff;
  --soft:   #f4f5f7;   /* světlá šedá sekce */
  --soft-2: #eceef1;
  --line:   #e3e6eb;   /* okraje */

  --dark:   #14161b;   /* patička */
  --dark-2: #1e2128;

  --sans: "Libre Franklin", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --container: 1200px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20,22,27,.06);
  --shadow: 0 22px 50px -30px rgba(20,22,27,.45);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }

/* Tenká červená linka úplně nahoře */
.topline { height: 4px; background: var(--red); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.narrow { max-width: 820px; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
p { color: var(--ink-2); }
p + p { margin-top: 1em; }
strong { color: var(--ink); font-weight: 700; }

.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.7; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

a.tlink { color: var(--red); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
a.tlink:hover { border-color: var(--red); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 700; letter-spacing: .01em;
  padding: 13px 24px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-d); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Utility bar ---------- */
.utbar { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .82rem; }
.utbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utbar .addr { color: var(--muted); }
.utbar-contact { display: flex; gap: 22px; }
.utbar-contact a { color: var(--ink-2); font-weight: 600; transition: color .2s; }
.utbar-contact a:hover { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(20,22,27,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 22px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 32px; width: auto; image-rendering: -webkit-optimize-contrast; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative; font-size: .92rem; font-weight: 600; color: var(--ink-2);
  padding: 9px 14px; border-radius: 7px; transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--ink); }
.site-nav a.nav-cta {
  margin-left: 8px; background: var(--red); color: #fff; padding: 11px 20px; font-weight: 700;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--red-d); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(226,0,26,.06), transparent 65%); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding: clamp(54px, 8vw, 96px) 0; }
.hero h1 { margin-top: 18px; }
.hero .role { display: block; margin-top: 10px; font-size: 1.15rem; font-weight: 600; color: var(--red); letter-spacing: 0; }
.hero .lead { margin-top: 22px; max-width: 36em; }
.hero .btn-row { margin-top: 32px; }

/* Notářský emblém v hero */
.hero-emblem {
  position: relative; align-self: stretch; min-height: 380px;
  background: radial-gradient(130% 120% at 50% 28%, #232730 0%, #14161b 72%);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 40px;
}
.hero-emblem .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 36%, rgba(226,0,26,.22), transparent 58%); pointer-events: none; }
.hero-emblem .seal { position: relative; width: min(330px, 82%); height: auto; }

/* Info karta */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 32px; }
.info-card h3 { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--soft-2); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row .ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; color: var(--red); background: var(--soft); border-radius: 9px; }
.info-row .ic svg { width: 18px; height: 18px; }
.info-row .t { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-row .v { color: var(--ink); font-weight: 600; }
.info-row .v a { transition: color .2s; }
.info-row .v a:hover { color: var(--red); }

/* ---------- Tým ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member .avatar { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--ink); margin-bottom: 16px; }
.member.is-lead .avatar { background: var(--red); }
.member h3 { font-size: 1.1rem; }
.member .role { display: block; margin-top: 5px; font-size: .88rem; color: var(--muted); }

/* ---------- Služby ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.svc {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.svc:hover { border-color: #d2d6dd; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.svc .n { flex: none; font-size: .95rem; font-weight: 800; color: var(--red); width: 32px; }
.svc .b h3 { color: var(--ink); }
.svc .b p { margin-top: 6px; font-size: .92rem; color: var(--muted); }

.note {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--ink); color: #e8eaee; border-radius: 12px; padding: 26px 28px;
}
.note .ic { flex: none; color: var(--red); }
.note p { color: #c9cdd5; }
.note strong { color: #fff; }
.note + .note { margin-top: 14px; }

/* ---------- Úřední hodiny ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 0; }
.hours th, .hours td { text-align: left; padding: 15px 2px; }
.hours th { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.hours td.time { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours td.closed { text-align: right; color: var(--muted); font-weight: 600; }

/* ---------- Panel / definiční seznam ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(26px, 4vw, 40px); }
.panel--soft { background: var(--soft); border-color: transparent; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; }
.dl dt { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding-top: 2px; }
.dl dd { color: var(--ink); font-weight: 600; }
.dl dd a:hover { color: var(--red); }

/* ---------- Dokumenty (vzory) ---------- */
.doc-group + .doc-group { margin-top: 36px; }
.doc-group > .gh { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.doc-group > .gh h3 { color: var(--ink); }
.tag { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); background: rgba(226,0,26,.08); border-radius: 100px; padding: 5px 12px; white-space: nowrap; }
.doc-list { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.doc:hover { border-color: #d2d6dd; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.doc .ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; color: var(--red); background: var(--soft); border-radius: 9px; }
.doc .b { flex: 1; }
.doc .b strong { display: block; color: var(--ink); }
.doc .b span { font-size: .84rem; color: var(--muted); }
.doc .cta { font-size: .82rem; font-weight: 700; color: var(--red); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Page hero (podstránky) ---------- */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(46px, 6vw, 76px); }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--ink); font-weight: 600; }
.page-hero .kicker { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-hero p { margin-top: 16px; max-width: 62ch; }

/* ---------- Mapa / foto ---------- */
.map-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
figure.photo { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
figure.photo img { width: 100%; height: auto; }
figure.photo figcaption { padding: 12px 16px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Kontaktní pruh ---------- */
.contact-band { background: var(--ink); color: #fff; }
.contact-band .container { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding-block: clamp(40px, 6vw, 60px); }
.contact-band h2 { color: #fff; }
.contact-band p { color: #b9bdc6; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aeb3bd; padding-top: clamp(52px, 7vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { display: inline-block; background: #fff; padding: 9px 13px; border-radius: 8px; }
.footer-logo img { height: 26px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 38ch; font-size: .94rem; color: #969ba6; }
.footer-col h4 { color: #fff; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #b6bbc4; font-size: .93rem; transition: color .2s; }
.footer-nav a:hover, .footer-nav a.active { color: #fff; }
.footer-contact { font-size: .93rem; line-height: 1.85; color: #b6bbc4; font-style: normal; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 24px; font-size: .82rem; color: #777d88; }
.footer-credit a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .2s, color .2s; }
.footer-credit a:hover { color: var(--red); border-color: var(--red); }

/* ---------- Utility rozložení ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cols-2--center { align-items: center; }
@media (max-width: 820px) { .cols-2 { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Reveal animace ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsivita ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-emblem {
    width: min(320px, 86%);
    aspect-ratio: 1 / 1;
    min-height: 0;
    margin: 6px auto 0;
    padding: 26px;
    border-radius: 50%;
  }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px 18px 18px; transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s var(--ease);
  }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 13px 6px; border-bottom: 1px solid var(--soft-2); }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta { margin: 12px 0 0; text-align: center; justify-content: center; border-radius: 8px; }
  .utbar .addr { display: none; }
  .utbar-contact { margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-inner { gap: 26px; }
  .hero-copy { text-align: center; }
  .hero .kicker { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-emblem { width: min(272px, 78%); padding: 20px; }
  .svc-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 3px 0; }
  .dl dt { padding-top: 13px; }
  .dl dt:first-child { padding-top: 0; }
  .contact-band .container { grid-template-columns: 1fr; }
}
