/* ==========================================================
   Web: Mgr. Eva Pilchová – kondiční trenérka pro ženy
   Vzhled kopíruje původní WordPress verzi.
   ========================================================== */

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #5b5b5b;
  --blue: #4191dd;
  --btn-bg: #adb8c4;
  --content: 620px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Hlavička ---------- */

.site-header {
  min-height: 115px;
  padding: 0 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 30px;
  padding-top: 26px;
}

.brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 30px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.95rem;
  margin: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Obecné bloky ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.rule {
  border: 0;
  border-top: 2px solid var(--ink);
  width: 150px;
  margin: 32px auto;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  line-height: 1.3;
  padding: 16px 28px;
}

.btn-pill {
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 12px 42px;
  font-weight: 500;
  font-size: 1.15rem;
}
.btn-pill:hover { background: #e9e9e9; }

.btn-black {
  background: #000;
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  padding: 20px 26px;
}
.btn-black:hover { background: #2a2a2a; }

.btn-outline {
  background: var(--btn-bg);
  color: #000;
  border: 3px solid #000;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 16px 30px;
  text-align: center;
}
.btn-outline:hover { background: #9daab8; }

.center { text-align: center; }

/* ---------- Úvodní stránka ---------- */

.hero {
  position: relative;
  min-height: 614px;
  display: flex;
  align-items: center;
  background-color: #060606;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Fotka v pozadí: černobílá, ztmavená zleva doprava. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero.jpg") center 65% / cover no-repeat;
  filter: grayscale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-inner {
  width: 100%;
  padding: 60px 11.6%;
}

.hero .eyebrow {
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0 0 22px;
  letter-spacing: 0;
}

.hero h1 {
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 30px;
}

.hero p { margin: 0 0 22px; max-width: 34em; font-size: 1.15rem; }
.hero p + p { margin-bottom: 28px; }

.promo {
  background: #060606;
  color: #fff;
  border-radius: 4px;
  padding: 46px 44px 48px;
}

.promo .eyebrow {
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.promo h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 30px;
}

/* ---------- Skládací nabídka spolupráce ---------- */

.offers {
  border-left: 1px solid #000;
  padding-left: 30px;
  margin: 30px 0 0;
}

.offers-title {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 18px;
}

.offers details { border: 0; }

.offers summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
}
.offers summary::-webkit-details-marker { display: none; }

.offers summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.offers details[open] summary::after { transform: rotate(45deg); }

.offers summary a { text-underline-offset: 4px; }

.offers .offer-body { padding: 0 0 18px; font-size: 1.05rem; }
.offers .offer-body p { margin: 0 0 10px; }

.yt-text {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 26px auto 34px;
  max-width: 620px;
}

.yt-preview {
  display: block;
  margin: 0 auto;
}

.social-line { margin: 40px 0 0; }

/* ---------- O mně ---------- */

.about {
  max-width: 1058px;
  margin: 0 auto;
  padding: 38px 30px 0;
  display: grid;
  grid-template-columns: 487px 1fr;
  gap: 30px;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 487px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.about-text h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.about-text .role { margin: 0 0 34px; }
.about-text p { margin: 0 0 34px; }

.cv h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.15;
  margin: 46px 0 24px;
}

.cv ul { margin: 0; padding-left: 60px; }
.cv li { margin: 0 0 14px; }
.cv li ul { margin-top: 8px; }
.cv li ul li { margin-bottom: 6px; }

/* ---------- Služby ---------- */

.services-page {
  max-width: 1057px;
  margin: 0 auto;
  padding: 38px 30px 0;
}

.page-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 56px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  align-items: start;
}

.service img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 0 4px;
}

.service h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.service .price { font-size: 1.2rem; font-weight: 400; margin: 0 0 14px; }
.service p { margin: 0 0 8px; font-size: 1.1rem; }

/* ---------- Články ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post { margin: 0 0 50px; }
.post h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 12px;
}
.post p { margin: 0 0 10px; }
.post .meta { font-size: 0.95rem; color: var(--muted); }

/* ---------- Kontakt ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 30px;
  padding: 0 30px 60px;
  align-items: center;
}

.contact-info h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.15rem;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 34px;
}
.contact-info .address { text-align: center; margin: 0 0 40px; }
.contact-info .contact-name { margin: 0 0 8px; line-height: 1.15; }

.contact-info dl { margin: 0; line-height: 1.55; }
.contact-info dt { font-weight: 700; }
.contact-info dd { margin: 0; }

.contact-map { display: block; }
.contact-map img { width: 100%; }

/* ---------- Patička ---------- */

.site-footer {
  margin-top: 80px;
  padding: 0 20px 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Mobil / tablet ---------- */

@media (max-width: 860px) {
  .site-header { padding: 20px 20px 0; min-height: 0; margin-bottom: 26px; }
  .site-nav a { font-size: 1rem; }
  .site-nav ul { gap: 4px 20px; }

  .hero { min-height: 520px; }
  .hero::before { background-position: 72% center; }
  .hero::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0.6) 100%);
  }
  .hero-inner { padding: 50px 24px; }
  .hero h1 { font-size: 2.4rem; }
  .promo { padding: 34px 24px 36px; }
  .promo h2 { font-size: 2rem; }

  .about {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }
  .about-photo { justify-self: center; max-width: 340px; }
  .cv h2 { font-size: 2.2rem; }
  .cv ul { padding-left: 40px; }

  .contact { grid-template-columns: 1fr; padding-bottom: 20px; }

  .services { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin: 0 auto; }
  .page-title { font-size: 1.7rem; margin-bottom: 30px; }
}

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  .site-nav a { font-size: 0.88rem; }
  .site-nav ul { gap: 4px 14px; }
  .brand { gap: 2px 14px; }
  .offers { padding-left: 18px; }
  .offers summary { font-size: 1.25rem; }
  .yt-text { font-size: 1.15rem; }
  .btn-outline { width: 100%; padding: 14px 16px; font-size: 1rem; }
  .cv ul { padding-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Dlouhé odkazy se na mobilu zalomí, místo aby web rozšířily do stran */
main a, .contact-info dd { overflow-wrap: anywhere; }
.contact > * { min-width: 0; }

/* Telefon a e-mail jsou odkazy, ale vypadají jako běžný text (jako na původním webu) */
.contact-info a.plain { text-decoration: none; }

/* ---------- Články (jednotlivé stránky) ---------- */

.article { padding-top: 6px; }

.article .back-link { margin: 0 0 34px; font-size: 0.95rem; }
.article .back-link a { text-underline-offset: 4px; }

.article h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.article .byline { margin: 0 0 40px; font-size: 0.95rem; color: var(--muted); }

.article h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 46px 0 14px;
}

.article p { margin: 0 0 18px; line-height: 1.7; }

.article ul, .article ol { margin: 0 0 22px; padding-left: 26px; }
.article li { margin: 0 0 8px; line-height: 1.6; }

.article .callout {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.7rem;
  text-align: center;
  margin: 30px 0;
}

.wrap > .promo { margin: 60px 0 0; }

@media (max-width: 480px) {
  .article h1 { font-size: 1.75rem; }
  .article h2 { font-size: 1.35rem; }
  .article .callout { font-size: 1.4rem; }
}

.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
