/* =========================================================
   Radomír Pivoda, advokátní kancelář — hlavní stylopis
   Barevná paleta: tmavě modrá + bílá, černý text
   ========================================================= */

:root {
  --navy-900: #0a2036;
  --navy-800: #0d2b47;
  --navy-700: #123a63;
  --navy-600: #1a4a7a;
  --navy-100: #e8eef4;
  --white: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #14171a;
  --text-muted: #4b5563;
  --border: #e0e4e9;
  --gold: #b08d57; /* jemný doplňkový akcent, používaný minimálně */

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; color: var(--text); }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-700);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s ease;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); text-decoration: none; border-color: var(--white); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
}
.brand:hover { text-decoration: none; color: var(--navy-900); }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-900); }
.brand-text span { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  /* Podtržení jako pozadí: při najetí se vykreslí zleva doprava, při odjetí odjede doprava */
  background: linear-gradient(var(--navy-900), var(--navy-900)) no-repeat right bottom / 0 2px;
  transition: background-size .35s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a:active, .main-nav a:focus-visible, .main-nav a.active {
  color: var(--navy-900);
  background-position: left bottom;
  background-size: 100% 2px;
  text-decoration: none;
}
.main-nav a.nav-cta {
  display: inline-block;
  background: var(--navy-900);
  color: var(--white);
  padding: 11px 24px;
  border-radius: var(--radius);
  border-bottom: none;
  font-weight: 600;
  border: 1px solid var(--navy-900);
  transition: all .18s ease;
}
.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
  text-decoration: none;
  border-bottom: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-900); display: block; }

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: -180px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 700px; }
.hero .eyebrow { color: rgba(255,255,255,0.75); }
.hero h1 { color: var(--white); font-size: 2.9rem; margin-bottom: 0.5em; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(10,32,54,0.08); transform: translateY(-2px); }
.card .icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  color: var(--navy-900);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.97rem; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.9rem; }

/* Service detail blocks on sluzby.html */
.service-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block .icon {
  width: 56px; height: 56px;
  background: var(--navy-100);
  color: var(--navy-900);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.service-block h3 { margin-bottom: 8px; }
.service-block ul { margin: 14px 0 0; padding-left: 20px; color: var(--text-muted); }
.service-block li { margin-bottom: 6px; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-top: 60px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 6px; font-size: 1.15rem; }
.step p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Two column with list ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
}
.check-list li::after {
  content: "";
  position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px;
  background: var(--navy-900);
  border-radius: 50%;
}

/* ---------- Audience tags (pro koho pracujeme) ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tag {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-900);
  cursor: default;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.tag:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* ---------- Quote / mission block ---------- */
.quote-block {
  border-left: 4px solid var(--navy-900);
  padding: 6px 0 6px 28px;
  margin: 0;
}
.quote-block p { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy-900); font-style: italic; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.contact-info-list { list-style: none; padding: 0; margin: 0 0 30px; }
.contact-info-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .icon { width: 24px; height: 24px; color: var(--navy-900); flex-shrink: 0; margin-top: 2px; }
.contact-info-list strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 2px; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 30px;
}
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }

.contact-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.contact-form .btn { display: block; margin-top: 18px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
/* Podtržení odkazů v patičce: stejná animace jako v navigaci (barva podle textu) */
.footer-links a, .footer-bottom a {
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 1px;
  padding-bottom: 2px;
  transition: background-size .35s ease, color .2s ease;
}
.footer-links a:hover, .footer-links a:active, .footer-links a:focus-visible,
.footer-bottom a:hover, .footer-bottom a:active, .footer-bottom a:focus-visible {
  color: var(--white);
  background-position: left bottom;
  background-size: 100% 1px;
  text-decoration: none;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.15rem; }
  section { padding: 60px 0; }
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  /* Na mobilu se podtržení aktivní stránky vykreslí zleva doprava až po vysunutí menu */
  .main-nav a.active { background-size: 0 2px; }
  .main-nav.open a.active { background-size: 100% 2px; transition-delay: .25s; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 48px 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Plynulé přechody mezi stránkami (View Transitions) ---------- */
@view-transition { navigation: auto; }

/* Hlavička zůstává na místě, prolíná se jen obsah stránky */
.site-header { view-transition-name: site-header; }

::view-transition-old(root) { animation: page-fade-out .2s ease both; }
::view-transition-new(root) { animation: page-fade-in .4s ease both; }

@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Záložní fade-in pro prohlížeče bez View Transitions (třídu přidává skript v <head>) */
.page-fade body > section,
.page-fade .site-footer { animation: page-fade-in .5s ease both; }

@media (prefers-reduced-motion: reduce) {
  .page-fade body > section,
  .page-fade .site-footer { animation: none; }
}
