/* ==========================================================================
   AK Flanderka — Mgr. Milan Flanderka, advokát
   Modernizovaná statická verze. Bez JavaScriptu, bez externích požadavků.
   ========================================================================== */

/* ------------------------------------------------------------------ Písma - */

@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026,
                 U+2039-203A, U+20AC, U+2122;
}

@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-017F, U+0192, U+02C6-02C7, U+02D8-02DD;
}

@font-face {
  font-family: "Source Serif var";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026,
                 U+2039-203A, U+20AC, U+2122;
}

@font-face {
  font-family: "Source Serif var";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-017F, U+0192, U+02C6-02C7, U+02D8-02DD;
}

/* ----------------------------------------------------------------- Tokeny - */

:root {
  /* Barvy převzaté z původní identity */
  --navy: #242949;
  --navy-deep: #1a1e39;
  --navy-tint: #2e3459;
  --gold: #c9a37f;
  --gold-bright: #cca876;
  --gold-dim: rgba(201, 163, 127, .16);

  --ink: #1c1f2e;
  --body: #55596b;
  --muted: #8a8fa1;
  --line: #e3e1dd;
  --surface: #faf9f7;
  --white: #fff;

  --sans: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif var", Georgia, "Times New Roman", serif;

  --measure: 1180px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(28, 31, 46, .04), 0 12px 32px rgba(28, 31, 46, .06);
  --shadow-lift: 0 2px 4px rgba(28, 31, 46, .05), 0 18px 44px rgba(28, 31, 46, .1);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ------------------------------------------------------------------ Základ - */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background-color: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.2em; }

p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

a {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: .18em;
  transition: color .2s var(--ease);
}

a:hover { color: var(--navy); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 14px 22px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
  text-decoration: none;
}

.shell {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rule {
  width: 56px;
  height: 2px;
  margin: 26px 0 0;
  border: 0;
  background: var(--gold);
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- Tlačítka - */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background-color: var(--gold-bright);
  color: var(--navy-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .34);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, .08);
  color: var(--white);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* --------------------------------------------------------------- Hlavička - */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.site-logo { display: flex; align-items: center; }

.site-logo img {
  display: block;
  width: 224px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, .78);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.main-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav .is-current a::after { transform: scaleX(1); }

.main-nav .is-current a { color: var(--white); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.header-cta:hover { color: var(--white); text-decoration: none; }

.header-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Mobilní menu — přepínač bez JavaScriptu */
.nav-toggle {
  position: absolute;
  left: -9999px;
}

.nav-toggle:focus-visible ~ .shell .nav-toggle-label {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.mobile-nav { display: none; }

.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--gold);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.nav-toggle-label:hover { color: var(--white); }

.nav-toggle-label svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-toggle-label .is-close { display: none; }

.nav-toggle:checked ~ .shell .nav-toggle-label .is-open { display: none; }
.nav-toggle:checked ~ .shell .nav-toggle-label .is-close { display: inline; }
.nav-toggle:checked ~ .mobile-nav { display: block; }

.mobile-nav {
  padding: 8px 0 28px;
  background-color: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav .shell {
  display: block;
}

.mobile-nav ul { list-style: none; }

.mobile-nav li + li { border-top: 1px solid rgba(255, 255, 255, .08); }

.mobile-nav a {
  display: block;
  padding: 16px 0;
  color: rgba(255, 255, 255, .8);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mobile-nav a:hover,
.mobile-nav .is-current a { color: var(--gold); text-decoration: none; }

.mobile-nav .btn {
  display: inline-flex;
  width: 100%;
  margin-top: 22px;
  padding: 14px 26px;
}

/* ------------------------------------------------------------------- Hero - */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(76vh, 660px);
  padding: 96px 0;
  background-color: var(--navy-deep);
  background-image: url("../img/hero-handshake.jpg");
  background-position: 62% center;
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(20, 23, 45, .96) 0%,
    rgba(20, 23, 45, .9) 34%,
    rgba(24, 28, 52, .58) 62%,
    rgba(24, 28, 52, .34) 100%);
}

.hero .shell { position: relative; }

.hero-inner { max-width: 640px; }

.hero h1 {
  color: var(--white);
  text-wrap: balance;
}

.hero-lead {
  max-width: 34em;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.1875rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .62);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.hero-meta strong {
  display: block;
  color: var(--gold);
  font-weight: 600;
}

/* ---------------------------------------------------- Záhlaví podstránky - */

.page-hero {
  padding: 76px 0 72px;
  background-color: var(--navy);
  color: rgba(255, 255, 255, .74);
}

.page-hero h1 { color: var(--white); }

.page-hero p {
  max-width: 46em;
  margin: 20px 0 0;
  font-size: 1.0625rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  list-style: none;
  color: rgba(255, 255, 255, .5);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.breadcrumb a { color: rgba(255, 255, 255, .74); }

.breadcrumb a:hover { color: var(--gold); text-decoration: none; }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 255, 255, .3);
}

/* ------------------------------------------------------------- Sekce, mřížka - */

.section { padding: 104px 0; }

.section-tight { padding: 76px 0; }

.section-surface { background-color: var(--surface); }

.section-head { max-width: 46em; }

.section-head p {
  margin: 20px 0 0;
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 52px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ------------------------------------------------------------ Oblasti práva - */

.card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 36px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .4s ease-out, box-shadow .4s ease-out,
              transform .4s ease-out, background-color .4s ease-out;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px) scale(1.02);
  background-color: rgba(201, 163, 127, .04);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  background-color: var(--gold-dim);
  border-radius: var(--radius);
  color: var(--gold);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.card h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  text-wrap: balance;
}

.card p {
  margin: 12px 0 0;
  font-size: .9375rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- Partneři - */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 175px;
  padding: 20px 28px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease),
              transform .3s var(--ease);
}

.partner-logo:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.partner-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* --------------------------------------------------------------- Ceník / formy - */

.fee-card {
  position: relative;
  padding: 36px 34px 38px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fee-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background-color: var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}

.fee-card h3 { font-size: 1.1875rem; }

.fee-card p {
  margin: 14px 0 0;
  font-size: .9375rem;
  line-height: 1.65;
}

.notice {
  margin-top: 24px;
  padding: 36px 38px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notice p {
  font-size: .9375rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------------ O mně - */

.about {
  padding: 104px 0;
  background-color: var(--navy);
  color: rgba(255, 255, 255, .78);
}

.about h2 { color: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-body { max-width: 40em; }

.about-body p { margin-top: 22px; }

.about-body > p:first-of-type { margin-top: 28px; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  list-style: none;
}

.about-facts dt,
.about-facts .fact-label {
  color: rgba(255, 255, 255, .55);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-facts .fact-value {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.about-photo { margin: 75px 0 0; }

.about-photo img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.about-photo figcaption {
  margin-top: 16px;
  color: rgba(255, 255, 255, .55);
  font-size: .8125rem;
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------- Kontakt - */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 30px 28px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card .card-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.contact-card h2,
.contact-card h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card .value {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
}

.contact-card .value a { color: var(--ink); }

.contact-card .value a:hover { color: var(--gold); text-decoration: none; }

.map-reveal {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-reveal > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.map-reveal > summary::-webkit-details-marker { display: none; }

.map-reveal > summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background-color: var(--gold-dim);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.125rem;
  line-height: 1;
}

.map-reveal[open] > summary::before { content: "\2212"; }

.map-reveal > summary .hint {
  margin-left: auto;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 400;
}

.map-reveal iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Dokud mapa není načtená (nebo je vypnutý JavaScript), zobrazí se odkaz. */
.map-reveal iframe[data-src] { display: none; }

.map-fallback {
  margin: 0;
  padding: 26px 28px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}

.map-reveal:has(iframe:not([data-src])) .map-fallback { display: none; }

/* -------------------------------------------------------------- Výzva k akci - */

.cta {
  padding: 88px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.cta h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

.cta p {
  max-width: 40em;
  margin: 14px 0 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- Patička - */

.site-footer {
  padding: 76px 0 0;
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, .62);
  font-size: .9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.site-footer img {
  display: block;
  width: 224px;
  height: auto;
  margin-bottom: 22px;
}

.site-footer h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer ul { list-style: none; }

.site-footer li + li { margin-top: 12px; }

.footer-contact .label {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .42);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-contact li + li { margin-top: 16px; }

.site-footer a { color: rgba(255, 255, 255, .78); }

.site-footer a:hover { color: var(--gold); text-decoration: none; }

.footer-note {
  max-width: 34em;
  color: rgba(255, 255, 255, .5);
  font-size: .875rem;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .45);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.footer-bottom ul {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-bottom li + li { margin-top: 0; }

.about-facts dd { margin: 0; }

/* -------------------------------------------------------------------- 404 - */

.error-page {
  padding: 120px 0;
  text-align: center;
}

.error-page .rule { margin: 26px auto 0; }

.error-page p {
  max-width: 34em;
  margin: 26px auto 0;
}

.error-page .btn { margin-top: 36px; }

/* ------------------------------------------------------------- Responzivně - */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .about-grid { gap: 44px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav,
  .header-cta { display: none; }

  .nav-toggle-label { display: inline-flex; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .about-photo {
    max-width: 360px;
    margin-top: 8px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .shell { padding: 0 22px; }

  .section { padding: 72px 0; }

  .section-tight,
  .about,
  .cta { padding: 64px 0; }

  .page-hero { padding: 56px 0 52px; }

  .hero { padding: 80px 0; }

  .grid { margin-top: 38px; }

  .grid-4,
  .grid-2 { grid-template-columns: 1fr; }

  .about-facts { grid-template-columns: 1fr; gap: 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-actions .btn,
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 420px) {
  .site-logo img { width: 184px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .btn:hover,
  .card:hover,
  .partner-logo:hover { transform: none; }
}

@media print {
  .site-header,
  .hero-actions,
  .cta,
  .map-reveal,
  .footer-bottom ul { display: none; }

  body { color: #000; font-size: 11pt; }

  .hero,
  .page-hero,
  .about,
  .site-footer {
    background: none !important;
    color: #000;
  }

  .hero h1,
  .page-hero h1,
  .about h2,
  .site-footer h2 { color: #000; }

  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
