/* ===========================================================
   ADVOKÁTNÍ KANCELÁŘ NOVÁK & PARTNEŘI
   Hlavní stylesheet — design systém, reset, header, footer
   =========================================================== */

/* ----- DESIGN TOKENS ----- */
:root {
  /* Barvy */
  --color-primary: #031d60;          /* Tmavá modrá */
  --color-primary-hover: #02164a;
  --color-primary-light: rgba(3, 29, 96, 0.9);
  --color-accent: #f6ba6c;           /* Zlatavá */
  --color-accent-hover: #e5b566;
  --color-accent-soft: rgba(229, 181, 102, 0.1);
  --color-accent-medium: rgba(229, 181, 102, 0.2);
  --color-cream: #fdf8f1;
  --color-text: #1a1a1a;
  --color-text-soft: #555;
  --color-text-muted: #888;
  --color-bg: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-white-30: rgba(255, 255, 255, 0.3);
  --color-dark-30: rgba(3, 29, 96, 0.3);

  /* Typografie */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Velikosti */
  --fs-hero: clamp(2.5rem, 6vw, 4.4rem);
  --fs-h1: clamp(2rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-h4: 1.375rem;
  --fs-eyebrow: 1.375rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --section-py: clamp(60px, 8vw, 100px);

  /* Border radius */
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 20px;

  /* Stíny */
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 28px 60px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);

  /* Přechody */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }

/* ----- LAYOUT ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}
.section { padding: var(--section-py) 0; position: relative; }
.section--blue {
  background: var(--color-primary);
  background-image: url('../img/dp-elements.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4 { color: #fff; }
.section--cream {
  background-color: var(--color-accent-soft);
  background-image: url('../img/dp-elements.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.section--accent-soft { background-color: var(--color-accent-medium); }

/* ----- ZÁHLAVÍ SEKCE (eyebrow + nadpis) ----- */
.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  color: currentColor;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-head--center .eyebrow {
  justify-content: center;
}
.section-head--center .eyebrow::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-title {
  font-size: var(--fs-h2);
  margin: 0 0 1rem;
  font-weight: 600;
}
.section-title em {
  font-style: normal;
  color: var(--color-accent);
}
.section--blue .section-title em { color: #fff; font-weight: 700; }
.section-lead {
  max-width: 700px;
  color: var(--color-text-soft);
  font-size: 1.05rem;
}
.section-head--center .section-lead { margin-inline: auto; }
.section--blue .section-lead { color: rgba(255, 255, 255, 0.85); }

/* ----- TLAČÍTKA ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: var(--color-accent);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '→';
  display: inline-block;
  font-weight: 400;
  transition: transform var(--transition-fast);
}
.btn:hover {
  background: var(--color-primary);
  color: #fff;
  padding-right: 38px;
  letter-spacing: 2px;
  border-radius: 4px;
}
.btn:hover::after { transform: translateX(4px); }
.btn--outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--outline:hover {
  background: #fff;
  color: var(--color-primary);
}
.btn--white { background: #fff; color: var(--color-primary); }
.btn--white:hover { background: var(--color-primary); color: #fff; }

.btn--center { display: inline-flex; }
.btn-wrap { text-align: center; margin-top: 2rem; }

/* ----- HEADER ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.is-sticky {
  background: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.page-has-inner-hero .site-header { background: var(--color-primary); }
.page-has-inner-hero .site-header.is-sticky { background: var(--color-primary); }

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  z-index: 1100;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1rem; }
.brand-sub { font-size: 0.7rem; opacity: 0.8; font-family: var(--font-body); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }

/* Navigace */
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 6px 4px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.nav a:hover::after, .nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav a:hover, .nav a.active { color: var(--color-accent); }

.header-cta {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.site-header.is-sticky .header-cta { background: #fff; }
.header-cta:hover { background: #fff; color: var(--color-primary); }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  margin: 6px auto;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- HERO (HOME) ----- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--color-primary);
  background-image:
    linear-gradient(rgba(3,29,96,0.85), rgba(3,29,96,0.85)),
    url('../img/lf-header-bg.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 140px 0 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}
.hero-content {
  animation: fadeInLeft 1s ease both;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-eyebrow::after {
  content: '';
  width: 60px; height: 1px;
  background: #fff;
}
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: #fff;
  line-height: 1.1;
  font-family: var(--font-display);
}
.hero-title em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
  display: block;
}
.hero-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  animation: fadeInRight 1.2s ease both;
}
.hero-image img {
  max-width: 80%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Kontaktní karta pod heroem */
.contact-bar {
  background: var(--color-accent);
  position: relative;
  z-index: 5;
  margin-top: -80px;
  margin-inline: auto;
  max-width: calc(var(--container-max) - 60px);
  padding: 30px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}
.contact-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px;
  text-align: left;
  color: var(--color-primary);
  border-right: 1px solid rgba(3,29,96,0.18);
}
.contact-bar__item:last-child { border-right: 0; }
.contact-bar__icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  color: var(--color-primary);
}
.contact-bar__item strong { font-weight: 600; display: block; font-size: 0.95rem; line-height: 1.2; }
.contact-bar__item a, .contact-bar__item span { color: var(--color-primary); font-size: 1rem; }
.contact-bar__item a:hover { color: #fff; }

/* ----- INNER HERO (podstránky) ----- */
.inner-hero {
  background: var(--color-primary);
  background-image:
    linear-gradient(rgba(3,29,96,0.92), rgba(3,29,96,0.92)),
    url('../img/dp-elements.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/dp-elements.png');
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.inner-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: #fff;
  font-weight: 400;
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
  position: relative;
}
.breadcrumbs {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.7; }

/* ----- FOOTER ----- */
.site-footer {
  background: var(--color-primary);
  background-image: url('../img/dp-elements.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0 0;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer-col p, .footer-col li, .footer-col a {
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.footer-brand .brand-mark { width: 56px; height: 56px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  background: #fff;
  color: var(--color-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* ----- ANIMACE ----- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
/* Fade-in: skryto pouze pokud má JS aktivní třídu .js-fade. To zajišťuje, že
   bez JS (i v testech/printu) je obsah viditelný. */
.js-fade .fade-in { opacity: 0; }
.js-fade .fade-in.is-visible {
  animation: fadeInUp 0.8s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .js-fade .fade-in { opacity: 1; animation: none; }
}

/* ----- RESPONZIVITA ----- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .hero-grid { gap: 1rem; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem;
  }
  .nav.is-open a { font-size: 1.5rem; }
  .nav.is-open + .header-cta { display: inline-flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-image { order: -1; margin-bottom: 2rem; }
  .hero-image img { max-width: 60%; }

  .contact-bar { grid-template-columns: 1fr; gap: 0; padding: 16px; margin-top: -40px; }
  .contact-bar__item {
    border-right: 0;
    border-bottom: 1px solid rgba(3,29,96,0.18);
    padding: 14px;
    justify-content: flex-start;
  }
  .contact-bar__item:last-child { border-bottom: 0; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .inner-hero { padding: 140px 0 70px; }
  .hero { padding-top: 120px; min-height: auto; padding-bottom: 80px; }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-py: 60px;
  }
  .btn { padding: 12px 22px; font-size: 0.8rem; }
  .hero-text { font-size: 1rem; }
}
