/*
 * Shared styles for the hand-built trustwomen.eu pages (/o-nas/, /kontakt/,
 * /ochrana-osobnych-udajov/ ...). Same palette and type as the /v2/ redesign
 * and /checkout/, so the migrated sections and the conference pages read as
 * one site. The header and footer markup comes from /common/site.js.
 */

:root {
  --green: #0a3c25;
  --green-mid: #0d4f31;
  --pink: #d0a4f7;
  --pink-deep: #b581ef;
  --tint: #f9f4fd;
  --ink: #282828;
  --muted: #5a6b62;
  --white: #ffffff;
  --px: max(20px, calc((100% - 1200px) / 2 + 24px));
  --sans: "Source Sans 3", system-ui, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

/* ─── Header ───────────────────────────────────────────────────────────── */

/* Reserves the bar's height before site.js fills it, so the page below does
 * not jump when the nav arrives. */
#site-header { min-height: var(--header-h); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(10, 60, 37, 0.08);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 0 var(--px);
}
.site-header__logo { display: block; line-height: 0; flex: none; }
.site-header__logo img { width: 104px; aspect-ratio: 693 / 369; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__item { position: relative; }
.site-nav__link,
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-nav__link:hover,
.site-nav__toggle:hover,
.site-nav__toggle[aria-expanded="true"] { background: var(--tint); }
.site-nav__link[aria-current="page"],
.site-nav__toggle[aria-current="true"] { background: var(--pink); }
.site-nav__toggle svg { width: 14px; height: 14px; transition: transform 0.18s ease; }
.site-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.site-nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(10, 60, 37, 0.16);
}
.site-nav__sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav__sub a:hover { background: var(--tint); color: var(--green); }
.site-nav__sub a[aria-current="page"] { background: var(--pink); color: var(--green); font-weight: 700; }

.site-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green);
  cursor: pointer;
}
.site-header__menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .site-header__menu-btn { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--px) 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(10, 60, 37, 0.08);
    box-shadow: 0 18px 30px rgba(10, 60, 37, 0.12);
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link,
  .site-nav__toggle { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .site-nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 8px 12px;
    box-shadow: none;
  }
}

/* ─── Page building blocks ─────────────────────────────────────────────── */

.section { padding: 88px var(--px); }
.section--tint { background: var(--tint); }
.section--green { background: var(--green); color: var(--white); }
.section--green h2, .section--green h3 { color: var(--pink); }

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section--green .kicker { background: var(--pink); color: var(--green); }

h1, h2, h3 { margin: 0; color: var(--green); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { margin: 0; max-width: 62ch; font-size: 1.2rem; line-height: 1.6; }
.prose p { margin: 0 0 1em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid var(--green);
  border-radius: 50px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: transparent; color: var(--green); transform: translateY(-1px); }
.btn--light { border-color: var(--pink); background: var(--pink); color: var(--green); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--green); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ─── Components ───────────────────────────────────────────────────────────
 * Shared by every migrated page. A page adds its own <style> only for what
 * is genuinely unique to it.                                               */

/* Photo hero: <section class="hero" style="--hero:url(...)">. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(72vh, 640px);
  padding: 64px var(--px);
  background: var(--green) var(--hero, none) center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 60, 37, 0.05) 30%, rgba(10, 60, 37, 0.82) 100%);
}
.hero > * { position: relative; }
.hero__inner { max-width: 900px; }
.hero h1 { color: var(--white); text-transform: uppercase; }
.hero h1 span { color: var(--pink); }
.hero .lead { margin-top: 18px; color: rgba(255, 255, 255, 0.92); }
.hero--short { min-height: min(52vh, 460px); }
/* Plain hero without a photo. */
.hero--plain { min-height: 0; padding-top: 88px; padding-bottom: 72px; }
.hero--plain::before { display: none; }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .lead { margin-top: 4px; }

/* Two columns, media + text. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--wide-text { grid-template-columns: 0.8fr 1.2fr; }
.split img, .split .video { width: 100%; border-radius: 18px; }
.split--reverse > :first-child { order: 2; }

/* Card grid. Each card can be a link (<a class="card">) or a plain block. */
.cards { grid-auto-rows: 1fr; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cards--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards > li { display: flex; }
.cards > li > .card { flex: 1; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(10, 60, 37, 0.1);
  color: inherit;
  text-decoration: none;
}
.section--tint .card { border-color: transparent; }
a.card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 60, 37, 0.14); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
.card--portrait img { aspect-ratio: 4 / 5; }
.card--square img { aspect-ratio: 1; }
.card--logo img { aspect-ratio: 16 / 9; object-fit: contain; padding: 24px; background: var(--white); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 22px 24px; }
.card__body p { margin: 0; font-size: 0.98rem; }
.card__meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.card__more { margin-top: auto; padding-top: 6px; color: var(--green); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--pink);
  color: var(--green);
  font-weight: 700;
}

blockquote.quote {
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 4px solid var(--pink);
  color: var(--green);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

/* Big numbers: <ul class="stats"><li><strong>23</strong> video rozhovorov</li> */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; gap: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--muted); }
.stats strong { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: 0; color: var(--green); }
.section--green .stats li { color: rgba(255, 255, 255, 0.75); }
.section--green .stats strong { color: var(--pink); }

/* Ordered agenda: <ol class="program"><li><time>9:00</time><div><h3>…</h3><p>…</p></div></li> */
.program { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.program li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(10, 60, 37, 0.12); }
.program time { color: var(--green); font-weight: 800; }
.program h3 { margin-bottom: 4px; }
.program p { margin: 0; color: var(--muted); }

/* People with round photos. */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; text-align: center; }
.people img { width: 100%; max-width: 180px; margin: 0 auto 12px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; background: var(--tint); }
.people h3 { font-size: 1.05rem; }
.people p { margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.gallery figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }

/* Listen/watch links: <div class="media-links"><a data-media="youtube">… */
.media-links { display: flex; flex-wrap: wrap; gap: 10px; }
.media-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.media-links a:hover { background: var(--pink); }
.media-links svg { width: 18px; height: 18px; flex: none; }

/* YouTube facade: nothing loads from YouTube until the visitor presses play.
 * <button class="video" data-youtube="ID" data-video-id="slug" aria-label="…"> */
.video {
  position: relative;
  display: block;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--green) center / cover no-repeat;
  cursor: pointer;
}
.video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a3c25' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 34px no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}
.video:hover::after { transform: scale(1.06); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-playing::after { display: none; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--green); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.notice { padding: 18px 22px; border-radius: 14px; background: var(--tint); }

@media (max-width: 900px) {
  .split, .split--wide-text { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse > :first-child { order: 0; }
  .program li { grid-template-columns: 1fr; gap: 4px; }
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding: 64px var(--px) 32px;
  background: var(--green);
  color: var(--white);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(208, 164, 247, 0.22);
}
.site-footer__logo {
  width: 132px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--white);
  box-sizing: content-box;
}
.site-footer__blurb { margin: 0; max-width: 36ch; font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }
.site-footer__heading {
  margin: 0 0 16px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer__email {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(208, 164, 247, 0.5);
}
.site-footer__email:hover { color: var(--pink); border-color: var(--pink); }
.site-footer__socials { display: flex; gap: 12px; margin-top: 20px; }
.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(208, 164, 247, 0.4);
  border-radius: 50%;
  color: var(--white);
}
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__social:hover { background: var(--pink); border-color: var(--pink); color: var(--green); }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__list a,
.site-footer__legal a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer__list a:hover,
.site-footer__legal a:hover { color: var(--pink); }
.site-footer__iban { margin: 14px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.site-footer__iban strong { display: block; color: var(--white); font-size: 0.95rem; letter-spacing: 0.02em; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 900px) {
  .section { padding: 64px var(--px); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-nav__toggle svg { transition: none; }
  .btn:hover { transform: none; }
}
