/* ==========================================================================
   Váš Název – osobní trenér Horní Dolní
   Barvy, písmo a rozměry upravíte v proměnných níže.
   ========================================================================== */

:root {
  --black: #000000;
  --anthracite: #171717;
  --anthracite-2: #202020;
  --line: rgba(255, 255, 255, 0.12);
  --white: #f7f6f3;
  --muted: #a5a29c;
  --bronze: #b4875a;
  --bronze-light: #cfa77d;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--anthracite);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--bronze-light);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--bronze); color: var(--black);
  padding: .6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typografie ---------- */
.section-title {
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  font-variation-settings: "wdth" 72;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 1.5rem;
  max-width: 16ch;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--white);
  max-width: 34em;
}
.section p:not(.lead) { color: var(--muted); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--font);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--bronze); color: var(--black); }
.btn-primary:hover { background: var(--bronze-light); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-small { min-height: 42px; padding: 0 1.2rem; font-size: .95rem; }
.btn-block { width: 100%; }


/* ---------- Hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(23, 23, 23, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none;
  font-size: 1.35rem; font-weight: 700;
  font-variation-settings: "wdth" 80;
  letter-spacing: 0.01em;
}
.logo-mark { width: 30px; height: 30px; fill: var(--bronze); }

.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav ul a {
  text-decoration: none; font-size: .98rem; color: rgba(247,246,243,.82);
  position: relative; padding: .4rem 0;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--bronze); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a[aria-current="true"] { color: var(--white); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; color: var(--white);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin-inline: auto;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Úvodní obrazovka ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0 0 0 auto;
  width: 64%;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 30%;
  filter: grayscale(.35) contrast(1.08) brightness(.82);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(0,0,0,.75) 22%, rgba(0,0,0,0) 60%),
    linear-gradient(0deg, var(--black) 0%, rgba(0,0,0,0) 40%);
}
.hero-content {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
}
.hero-title { display: flex; flex-direction: column; }
.hero-kicker {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  color: var(--bronze-light);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .9rem;
}
.hero-kicker::before {
  content: ""; width: 44px; height: 1px; background: var(--bronze);
}
.hero-line {
  font-size: clamp(3.4rem, 10.5vw, 9.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 62;
  line-height: .9;
  letter-spacing: -0.015em;
}
.hero-line + .hero-line { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.hero-lead {
  margin: 2rem 0 2.5rem;
  max-width: 30ch;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: rgba(247,246,243,.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Jediná orchestrovaná animace při načtení */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: heroZoom 2.4s var(--ease) both; }
  .hero-kicker, .hero-line, .hero-lead, .hero-actions { animation: heroIn 1s var(--ease) both; }
  .hero-line:nth-child(2) { animation-delay: .12s; }
  .hero-line:nth-child(3) { animation-delay: .24s; }
  .hero-lead { animation-delay: .42s; }
  .hero-actions { animation-delay: .54s; }
}
@keyframes heroZoom { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes heroIn { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Sekce ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head p { font-size: 1.15rem; max-width: 36em; }

/* O mně */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.25); }
.about-photo::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--bronze); z-index: -1;
}
.about-photo { isolation: isolate; }

/* Služby */
.services { background: var(--black); }
.service-featured {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--anthracite);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.service-featured-media { overflow: hidden; }
.service-featured-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.service-featured-body {
  padding: clamp(2rem, 4.5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.service-featured h3 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-variation-settings: "wdth" 72;
  margin-bottom: 1.25rem;
}
.service-featured p { margin-bottom: 2rem; }

.service-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
.service img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  margin-bottom: 1.4rem;
  filter: grayscale(.3);
  transition: filter .5s var(--ease);
}
.service:hover img { filter: grayscale(0); }
.service h3 {
  font-size: 1.45rem; font-variation-settings: "wdth" 80;
  margin-bottom: .7rem;
  padding-top: 1rem; border-top: 1px solid var(--bronze);
}
.service p { font-size: 1rem; margin: 0; }

/* Přístup a výsledky */
.approach-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center;
}
.pillars { margin: 2.5rem 0 2.75rem; }
.pillars > div { padding: 1.4rem 0 1.4rem 1.5rem; border-left: 1px solid var(--line); }
.pillars > div + div { margin-top: .25rem; }
.pillars > div:hover { border-left-color: var(--bronze); }
.pillars dt { font-weight: 600; font-size: 1.15rem; margin-bottom: .35rem; }
.pillars dd { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  gap: 1rem;
}
.gallery figure { overflow: hidden; background: var(--anthracite-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.gallery .g-tall { grid-row: 1 / 3; }
.gallery figure:not(.g-tall) img { aspect-ratio: 5 / 4; }
.gallery-note {
  grid-column: 1 / -1; margin: .25rem 0 0;
  font-size: .85rem; color: var(--muted); text-align: right;
}

/* Jak začít */
.steps { background: var(--black); }
.step-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: none;
}
.step-list li { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.step-list li::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 40%;
  background: var(--bronze);
}
.step-num {
  display: block;
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 300;
  font-variation-settings: "wdth" 62;
  line-height: 1;
  color: var(--bronze-light);
  margin-bottom: 1.25rem;
}
.step-list h3 { font-size: 1.3rem; font-variation-settings: "wdth" 85; margin-bottom: .6rem; }
.step-list p { margin: 0; }

/* Kontakt */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start;
}
.contact-list { margin-top: 2.75rem; border-top: 1px solid var(--line); }
.contact-list li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.contact-label { color: var(--muted); font-size: .95rem; }
.contact-list a, .contact-list span:not(.contact-label) {
  font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; text-decoration: none;
}
.contact-list a:hover { color: var(--bronze-light); }

.contact-form {
  background: var(--anthracite-2);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-top: 2px solid var(--bronze);
}
.field { margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-size: .95rem; font-weight: 500; margin-bottom: .5rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  background: var(--anthracite);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  color: var(--white);
  font: 400 1rem/1.5 var(--font);
  padding: .85rem 1rem;
  min-height: 52px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6c67; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze-light); box-shadow: 0 0 0 1px var(--bronze-light); }
.field.has-error input, .field.has-error textarea { border-color: #e0806b; }
.field-error { color: #f0a08f !important; font-size: .9rem; margin: .45rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: .85rem; margin-bottom: 1.25rem; }
.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.is-success { color: #a8d5a2 !important; }
.form-status.is-error { color: #f0a08f !important; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* Patička */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: .98rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 1.1rem; }
.footer-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--white); }
.site-footer ul li { margin-bottom: .55rem; color: var(--muted); }
.site-footer ul a { text-decoration: none; color: var(--muted); }
.site-footer ul a:hover { color: var(--white); }
.social a { display: inline-flex; align-items: center; gap: .6rem; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.social svg .fill { fill: currentColor; stroke: none; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }
.operator { font-size: .9rem; line-height: 1.7; }
.form-consent a { color: var(--white); }

/* Mobilní lišta s CTA */
.mobile-cta { display: none; }

/* ---------- Jemné odhalení při scrollu ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Responzivita
   ========================================================================== */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav ul { gap: 1.4rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    height: calc(100svh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: 2rem var(--gutter) 3rem;
    background: var(--anthracite);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    overflow-y: auto;
  }
  .main-nav.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
    font-size: 1.6rem; font-variation-settings: "wdth" 75; font-weight: 600; color: var(--white);
  }
  .main-nav ul a::after { display: none; }
  .main-nav .btn { min-height: 54px; font-size: 1.05rem; }

  .hero { align-items: flex-end; }
  .hero-media { width: 100%; }
  .hero-media::after {
    background: linear-gradient(0deg, var(--black) 8%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.25) 100%);
  }
  .hero-media img { object-position: 68% 30%; }

  .about-grid, .approach-grid, .contact-grid, .service-featured { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; margin-right: 1.25rem; }
  .service-featured-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .approach-grid .gallery { order: -1; }

  .mobile-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(23,23,23,.95);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .site-footer { padding-bottom: 80px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-line + .hero-line { -webkit-text-stroke-width: 1.2px; }
  .service-grid, .step-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { gap: .6rem; }
}

/* ---------- Stránka se zásadami ---------- */
.legal {
  max-width: 50rem;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.legal .section-title { max-width: none; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal .lead { margin-bottom: 3rem; }
.legal h2 {
  font-size: 1.5rem; font-variation-settings: "wdth" 80;
  margin: 3rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin: 1.5rem 0 .4rem; }
.legal p, .legal-list li { color: var(--muted); }
.legal a:not(.btn) { color: var(--white); }
.legal-list { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.legal-list li { margin-bottom: .4rem; }
.legal-date { margin-top: 3rem; font-size: .95rem; }
.legal-footer { padding-top: 0 !important; padding-bottom: 0 !important; }
