/* ==========================================================================
   AgeWell — Master Stylesheet
   Pixel-perfect replication of www.agewell.cz
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-heading: "Libre Baskerville", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;

  --color-dark: #3C3234;
  --color-near-black: #1A1818;
  --color-text: #4A423E;
  --color-text-muted: #9A8782;
  --color-white: #FFFFFF;
  --color-cream: #FAF8F5;
  --color-blush: #F0E8E3;
  --color-border: #E6E3DD;
  --color-taupe: #A8998F;
  --color-hero-bg: #9E8E82;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  --content-width: 1300px;
  --content-padding: 40px;
  --header-height: 113px;

  --ease-out: cubic-bezier(0.25, 0, 0.25, 1);
  --duration: 0.3s;
}

/* --------------------------------------------------------------------------
   1. Reset & Base
   --------------------------------------------------------------------------
   The universal reset is wrapped in `@layer base` so that on pages which
   ALSO load Tailwind (only /find/ today), Tailwind's `@layer utilities`
   classes (`.px-4`, `.bg-white`, `.text-white`, etc.) win the cascade.
   Per CSS layer rules, unlayered styles win over layered ones; without
   this wrapper, editorial's universal `* { padding: 0; margin: 0 }`
   would beat every Tailwind utility on /find/.
   On editorial-only pages (no Tailwind loaded) the layer wrapper is
   inert: there are no competing rules, so the reset still applies.
*/
@layer base {
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
}

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

  body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

  a {
    color: inherit;
    text-decoration: none;
  }

  button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
  }

  ul, ol {
    list-style: none;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-near-black);
    line-height: 1.25;
  }
}

/* --------------------------------------------------------------------------
   1b. Global linked-image hover
   Any <a> wrapping an <img> gets scale + brighten on hover.
   Specific components can override if needed.
   -------------------------------------------------------------------------- */
a > img,
a img {
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

a:hover > img,
a:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

/* Containers that clip the scaled image need overflow:hidden */

/* --------------------------------------------------------------------------
   2. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 8px 36px;
  border: 1px solid transparent;
  min-height: 42px;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-align: center;
}

.btn--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn--dark:hover {
  background-color: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-cream);
}


.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.site-header__logo img {
  height: 81px;
  width: 231px;
  object-fit: contain;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.site-header__nav a {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-dark);
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
  position: relative;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header__nav a:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

.site-header__nav a[aria-current="page"] {
  text-decoration: none;
  color: var(--color-taupe);
}

/* Mobile menu toggle */
.site-header__toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-near-black);
  transition: transform var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
}

.site-header__toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.site-header__toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-cream);
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-near-black);
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 3;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__inner {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}


.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: right;
  padding-top: var(--space-xs);
}

.site-footer__links a {
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.site-footer__links a:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

.site-footer__bottom {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__bottom a {
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.site-footer__bottom a:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

/* --------------------------------------------------------------------------
   6. Homepage — Sticky Hero
   The hero uses position:sticky so it stays in place while the articles
   section (which follows in the DOM) scrolls up over it.
   The hero background image covers the full width; text sits on the left
   half, the portrait photograph occupies the right half of the image.
   -------------------------------------------------------------------------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 50%;
  padding: var(--space-xl) var(--space-md) var(--space-xl) 6%;
  color: var(--color-white);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.1vw, 63px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 37px);
  line-height: 1.2;
  color: var(--color-white);
  margin-top: 45px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 28px;
  opacity: 0.4;
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   7. Homepage — Articles Panel
   This section has a transparent background. Inside it, a centered white
   card (~43% viewport width) holds the article list. Because the hero above
   is position:sticky, this section scrolls over it, and the hero peeks out
   on both sides of the white card — creating the 3-column illusion.
   -------------------------------------------------------------------------- */
.articles-panel {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: 120px;
}

.articles-panel__card {
  width: 53%;
  min-width: 500px;
  max-width: 960px;
  background-color: var(--color-white);
  padding: 48px 36px 64px;
}

.articles-panel__heading {
  font-family: var(--font-heading);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--color-near-black);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.articles-panel__item {
  display: flex;
  gap: var(--space-md);
  padding: 12px 0 16px;
}

.articles-panel__item + .articles-panel__item {
  border-top: 1px solid var(--color-border);
}

.articles-panel__image {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.articles-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}

.articles-panel__item:hover .articles-panel__image img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.articles-panel__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xs) 0;
}

.articles-panel__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.articles-panel__title a {
  color: inherit;
  text-decoration: none;
}

.articles-panel__link {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.articles-panel__link:hover {
  text-decoration-color: transparent;
  color: var(--color-near-black);
}

.articles-panel__cta {
  padding-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   8. Dark section (PRO KOHO TU JSME)
   -------------------------------------------------------------------------- */
.section-dark {
  position: relative;
  z-index: 2;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 120px 0 230px;
  text-align: center;
}

.section-dark__title {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: normal;
  line-height: 1.2;
  margin-bottom: 149px;
}

.section-dark__columns {
  display: flex;
  gap: var(--space-2xl);
  text-align: center;
}

.section-dark__block {
  flex: 1;
}

.section-dark__heading {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.section-dark__text {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   9. Full-bleed image
   -------------------------------------------------------------------------- */
.full-bleed-image {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.full-bleed-image img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* --------------------------------------------------------------------------
   10. Page title
   -------------------------------------------------------------------------- */
.page-title {
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-title h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.page-title--large h1 {
  font-size: 56px;
}

.page-title__subtitle {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   11. Card grid (Články, Témata listings)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.card {
  display: flex;
  flex-direction: column;
}

.card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.card__tag {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-near-black);
  margin-bottom: 6px;
}

.card__tag a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-near-black);
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.card__tag a:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.2;
  color: var(--color-near-black);
  margin-top: 20px;
  margin-bottom: 10px;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__text {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
  margin-bottom: 8px;
}

.card__action {
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   12. Article detail
   -------------------------------------------------------------------------- */
.article-detail {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--content-padding) var(--space-2xl);
}

.article-detail__tag {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.article-detail__tag a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-dark);
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.article-detail__tag a:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

.article-detail__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.7vw, 56px);
  line-height: 1.2;
  color: var(--color-near-black);
  margin-bottom: var(--space-lg);
}

.article-detail__hero {
  width: 100%;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.article-detail__hero img {
  width: 100%;
  height: auto;
}

.article-detail__body {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-dark);
}

.article-detail__body h2 {
  font-size: 26px;
  line-height: 1.5;
  color: var(--color-dark);
  margin-top: 20px;
  margin-bottom: 10px;
}

.article-detail__body h3 {
  font-size: 22px;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-detail__body p {
  margin-bottom: 8px;
}

.article-detail__body ul,
.article-detail__body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.article-detail__body ul {
  list-style: disc;
}

.article-detail__body ol {
  list-style: decimal;
}

.article-detail__body li {
  margin-bottom: var(--space-xs);
}

.article-detail__body blockquote {
  border-left: 3px solid var(--color-taupe);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12b. Article detail — Disclaimer
   -------------------------------------------------------------------------- */
.article-detail__disclaimer {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-cream);
  border-left: 3px solid var(--color-taupe);
}

.article-detail__disclaimer p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   12c. Article detail — Related Articles ("Pokračujte ve čtení")
   -------------------------------------------------------------------------- */
.related-articles {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.related-articles__title {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--color-near-black);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   13. Pro partnery — Intro
   -------------------------------------------------------------------------- */
.partner-intro {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
}

.partner-intro__text h1 {
  font-family: var(--font-heading);
  font-size: 45px;
  color: var(--color-near-black);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.partner-intro__text p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-near-black);
  max-width: 884px;
}

.partner-intro__cta {
  float: right;
  text-align: right;
  margin-top: 40px;
  margin-right: 0;
}

.partner-intro__cta h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-near-black);
  margin-bottom: 10px;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   14. Pro partnery — Hero image section
   -------------------------------------------------------------------------- */
.partner-hero {
  position: relative;
  width: 100%;
  min-height: 626px;
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.partner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(60, 50, 52, 0.72) 0%,
    rgba(60, 50, 52, 0.55) 40%,
    rgba(60, 50, 52, 0.20) 65%,
    transparent 85%
  );
  z-index: 1;
}

.partner-hero__content {
  position: relative;
  z-index: 2;
  width: 55%;
  padding: var(--space-xl) var(--space-2xl) var(--space-xl) 6%;
  color: var(--color-white);
}

.partner-hero__content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.partner-hero__content p {
  font-size: 18px;
  line-height: 1.1;
  margin-bottom: 8px;
  margin-top: 6px;
  color: var(--color-white);
}

.partner-hero__content p strong {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   15. Pro partnery — Benefits (Editorial Watermark)
   -------------------------------------------------------------------------- */
.benefits-editorial {
  background: var(--color-cream);
  padding: 100px 0 60px;
}

.benefits-editorial__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-taupe);
  text-align: center;
  margin-bottom: 80px;
}

.benefits-editorial__list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.benefits-editorial__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.benefits-editorial__item:last-child {
  border-bottom: none;
}

/* Alternate layout: even items flip illustration left, text right */
.benefits-editorial__item:nth-child(even) .benefits-editorial__visual {
  order: -1;
}

/* Large watermark number */
.benefits-editorial__number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-heading);
  font-size: 280px;
  font-weight: 700;
  color: var(--color-blush);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.benefits-editorial__content {
  position: relative;
  z-index: 1;
}

.benefits-editorial__content h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-near-black);
  margin-bottom: 16px;
  line-height: 1.3;
}

.benefits-editorial__content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
}

.benefits-editorial__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-editorial__visual img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   15c. Professions grid (Pro koho je partnerský program)
   -------------------------------------------------------------------------- */
.professions-section {
  padding: 90px 0;
}

.professions-section .container {
  max-width: 1600px;
  padding-left: 108px;
  padding-right: 108px;
}

.professions-section__heading {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-near-black);
  text-align: center;
  margin-bottom: var(--space-2xl);
  line-height: 1.2;
}

.professions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 54px;
}

.profession-card {
  text-align: center;
}

.profession-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.profession-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.profession-card:hover .profession-card__image img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.profession-card__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
  color: var(--color-near-black);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.profession-card__text {
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-near-black);
}

/* --------------------------------------------------------------------------
   15d. How it works
   -------------------------------------------------------------------------- */
.how-it-works {
  padding: var(--space-2xl) 0;
  background-color: #FAFAFA;
}

.how-it-works__heading {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.how-it-works__intro {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
  max-width: 780px;
  margin-bottom: var(--space-lg);
}

.how-it-works__steps {
  list-style: decimal;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xl);
  max-width: 640px;
}

.how-it-works__steps li {
  font-size: 18px;
  line-height: 1.3;
  color: var(--color-near-black);
  margin-bottom: var(--space-xs);
}

.how-it-works__steps a {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.how-it-works__steps a:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

.how-it-works__tagline {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-near-black);
  margin-bottom: var(--space-xs);
}

.how-it-works__note {
  font-size: 18px;
  color: var(--color-near-black);
}

/* --------------------------------------------------------------------------
   15e. CTA sections (Dodavatelé, Zeptat se)
   -------------------------------------------------------------------------- */
.cta-section {
  padding: var(--space-2xl) 0;
}

.cta-section--white {
  background-color: #FFFFFF;
}

.cta-section--gray {
  background-color: #FAFAFA;
}

.cta-section .container {
  max-width: 1600px;
  padding-left: 108px;
  padding-right: 108px;
}

.how-it-works .container {
  max-width: 1600px;
  padding-left: 108px;
  padding-right: 108px;
}

.cta-section__heading {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.cta-section__text {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   16. FAQ pages
   -------------------------------------------------------------------------- */
.faq-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

/* FAQ index (otazky.html) */
.faq-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.faq-index__link {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-near-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
  line-height: normal;
  padding: var(--space-xs) 0;
}

.faq-index__link:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

/* FAQ items (inline Q&A on topic pages) */
.faq-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-near-black);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.faq-item__answer {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
}

.faq-section__title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-near-black);
  margin-bottom: var(--space-lg);
}

/* FAQ detail */
.faq-detail {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--content-padding) var(--space-2xl);
}

.faq-detail__question {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--color-near-black);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.faq-detail__answer {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
  margin-bottom: var(--space-xl);
}

.faq-detail__answer p {
  margin-bottom: var(--space-md);
}

.faq-detail__related {
  background-color: var(--color-cream);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.faq-detail__related h3 {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.faq-detail__nav {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.faq-detail__nav a {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.faq-detail__nav a:hover {
  text-decoration-color: transparent;
  color: var(--color-near-black);
}

.faq-detail__nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 24px;
  height: 24px;
  align-self: center;
}

.faq-detail__nav-grid span {
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-text-muted);
  border-radius: 1px;
}

.faq-detail__related-card {
  margin-top: var(--space-md);
}

.faq-detail__related-image {
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.faq-detail__related-image img {
  width: 100%;
  height: auto;
  display: block;
}

.faq-detail__related-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-detail__related-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-near-black);
  line-height: 1.35;
}

.faq-detail__related-tag {
  font-size: 13px;
  color: var(--color-text-muted);
}

.faq-detail__related-tag a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.faq-detail__related-tag a:hover {
  text-decoration-color: transparent;
  color: var(--color-taupe);
}

/* --------------------------------------------------------------------------
   17. Topic detail
   -------------------------------------------------------------------------- */
.topic-header {
  padding: var(--space-xl) 0 var(--space-lg);
}

.topic-header__label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-near-black);
  margin-bottom: 4px;
}

.topic-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.topic-header p {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   18. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) 0 var(--space-2xl);
}

.pagination a,
.pagination span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 8px 14px;
  transition: color var(--duration) var(--ease-out);
}

.pagination a:hover {
  color: var(--color-near-black);
}

.pagination .is-current {
  font-weight: 600;
  color: var(--color-near-black);
  border-bottom: 2px solid var(--color-near-black);
}

/* --------------------------------------------------------------------------
   19. About page
   -------------------------------------------------------------------------- */
.about-intro {
  background-color: var(--color-cream);
  padding: var(--space-2xl) 0;
}

.about-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 3.7vw, 56px);
  color: var(--color-near-black);
  margin-bottom: var(--space-md);
}

.about-intro__lead {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.2;
  max-width: 700px;
}

.about-section {
  padding: var(--space-2xl) 0;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: var(--color-near-black);
  margin-bottom: 10px;
  line-height: 1.2;
}

.about-section p {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-near-black);
  margin-bottom: 8px;
  max-width: 740px;
}

.about-section--centered {
  text-align: center;
}

.about-section--centered p {
  margin-left: auto;
  margin-right: auto;
}

.about-section__heading-caps {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-near-black);
  margin-bottom: var(--space-lg);
}

.section-dark__heading-caps {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   20. Contact page
   -------------------------------------------------------------------------- */
.contact-section {
  min-height: 70vh;
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: stretch;
}

.contact-form {
  background-color: rgba(60, 50, 52, 0.41);
  padding: var(--space-2xl) var(--space-xl);
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form__heading {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.contact-form__row {
  display: flex;
  gap: var(--space-md);
}

.contact-form__row > .contact-form__field {
  flex: 1;
}

.contact-form__field {
  margin-bottom: var(--space-md);
}



.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-near-black);
  border: 1px solid var(--color-dark);
  background-color: var(--color-white);
  outline: none;
  transition: border-color var(--duration) var(--ease-out);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-taupe);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__submit {
  margin-top: var(--space-sm);
  width: 100%;
  font-size: 16px;
  min-height: 41px;
}

/* --------------------------------------------------------------------------
   21. Responsive — Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --content-padding: 28px;
    --header-height: 80px;
  }

  /* Header */
  .site-header__nav {
    display: none;
  }

  .site-header__toggle {
    display: flex;
  }

  /* Hero — keep sticky but full-bleed on tablet */
  .hero__content {
    padding-left: var(--content-padding);
    width: 55%;
  }

  /* Articles panel — wider on tablet */
  .articles-panel__card {
    width: 60%;
    min-width: 400px;
  }

  /* Dark section */
  .section-dark__columns {
    flex-direction: column;
    gap: var(--space-xl);
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Partner intro */
  .partner-intro__cta {
    position: static;
    float: none;
    text-align: left;
    margin-top: var(--space-md);
  }

  /* Partner hero */
  .partner-hero {
    min-height: 460px;
  }

  .partner-hero__content {
    width: 65%;
    padding: var(--space-lg);
  }

  /* Benefits editorial — tablet */
  .benefits-editorial__list {
    padding: 0 var(--content-padding);
  }

  .benefits-editorial__item {
    gap: 40px;
    padding: 60px 0;
  }

  .benefits-editorial__number {
    font-size: 200px;
  }

  .benefits-editorial__visual img {
    width: 200px;
    height: 200px;
  }

  /* Professions grid */
  .professions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FAQ grid */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-index {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .site-footer__links {
    text-align: left;
  }

  .site-footer__bottom {
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   22. Responsive — Mobile (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --content-padding: 20px;
    --header-height: 70px;
  }

  body {
    font-size: 15px;
  }

  /* Hero — stack on mobile, no sticky */
  .hero {
    position: relative;
    height: auto;
    min-height: 70vh;
  }

  .hero__content {
    width: 100%;
    padding: var(--space-xl) var(--content-padding);
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__scroll-hint {
    display: none;
  }

  /* Articles panel — full width on mobile */
  .articles-panel__card {
    width: 100%;
    min-width: 0;
    padding: var(--space-lg) var(--content-padding);
  }

  /* Articles — stack image/text vertically */
  .articles-panel__item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .articles-panel__image {
    width: 100%;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Partner hero */
  .partner-hero {
    flex-direction: column;
    min-height: auto;
  }

  .partner-hero__content {
    width: 100%;
    padding: var(--space-lg) var(--content-padding);
  }

  /* Benefits editorial — mobile */
  .benefits-editorial {
    padding: 60px 0 40px;
  }

  .benefits-editorial__heading {
    margin-bottom: 48px;
  }

  .benefits-editorial__item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }

  .benefits-editorial__item:nth-child(even) .benefits-editorial__visual {
    order: 0;
  }

  .benefits-editorial__number {
    font-size: 160px;
  }

  .benefits-editorial__visual img {
    width: 180px;
    height: 180px;
  }

  .benefits-editorial__list,
  .professions-section .container,
  .how-it-works .container,
  .cta-section .container {
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
  }

  /* Professions */
  .professions-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Contact */
  .contact-section {
    flex-direction: column;
  }

  .contact-form {
    width: 100%;
    padding: var(--space-lg);
  }

  .contact-form__row {
    flex-direction: column;
    gap: 0;
  }

  /* Footer */
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  /* Article detail */
  .article-detail {
    padding: var(--space-lg) var(--content-padding) var(--space-xl);
  }

  /* About */
  .about-intro {
    padding: var(--space-xl) 0;
  }
}

/* --------------------------------------------------------------------------
   About: hero with full-bleed background image + overlay heading.
   --------------------------------------------------------------------------
   Used on /o-nas. Replaces the plain `.about-intro` block with a hero
   block when an image is present. Token-only (var(--font-heading),
   var(--space-*)). */
/* Title-above + standalone-image layout (matches live agewell.cz/o-nas).
   Title sits in cream-bg flow; team-wall image follows as a full-width
   figure. Replaces the old overlay-on-photo treatment. */
.about-header {
  padding: var(--space-2xl) 0 var(--space-lg);
}
.about-header h1 {
  font-family: var(--font-heading);
  font-size: 45px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-near-black);
  margin-bottom: var(--space-md);
}
.about-header__lead {
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-near-black);
  max-width: 740px;
}
.about-hero-image {
  margin: 0 0 var(--space-2xl);
}
.about-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .about-header { padding: var(--space-xl) 0 var(--space-md); }
  .about-header h1 { font-size: 36px; }
}

/* About: 3-column "Co tady najdete" -- light bg, body typography
   inherits from .about-section. Tokens where they exist; literal
   sizes (20px / 2px) match the rest of style.css's pattern. */
.about-section__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}
.about-section__column h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-near-black);
}
.about-section__column p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-near-black);
  margin-bottom: var(--space-md);
}
.about-section__column .btn {
  margin-top: var(--space-sm);
}
@media (max-width: 768px) {
  .about-section__columns {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   Directory island scope (Bug 2).
   The Tailwind-styled DirectoryApp is loaded on /find/ alongside the
   editorial style.css. The editorial broad element rules (body color/
   background, h1-h6 color/line-height, button reset, a color inherit)
   cascade into the island and break the detail-pane layout vs the
   original GBP deploy.
   Surgical reset inside .directory-island wrapper:
     - inherit color from Tailwind preflight (not editorial muted)
     - undo editorial h-asterisk, a, button leaks so Tailwind utility classes
       on inner elements win same-specificity battles
     - DO NOT touch img / ul / ol (editorial rules match Tailwind
       preflight closely enough that resetting risks regressions)
   -------------------------------------------------------------------------- */
/* Editorial element-base rules are now in @layer base (see top of file),
   so they lose to Tailwind utilities in @layer utilities. The previous
   `.directory-island a/button/h*` overrides were unlayered and beat
   Tailwind text-white/text-primary, breaking button colors on /find.
   Removed: only the wrapper color stays, as a sensible default for
   bare text nodes inside the island.

   Also pin the few editorial CSS variables that Tailwind also defines
   back to Tailwind's values, so utility classes like `text-text-muted`
   inside /find match the reference GBP deploy (which has no editorial
   stylesheet loaded). Without this, mine leaks editorial's warm
   #9A8782 text-muted; reference uses cool gray #727272. */
.directory-island {
  color: #1a1818;
  --color-text: #1a1818;
  --color-text-muted: #727272;
}
