/* ===========================
   Design Tokens
   =========================== */

:root {
  /* Cream */
  --cream-50:  #FBF7F2;
  --cream-100: #F5EDE3;
  --cream-200: #EADFD1;
  --cream-300: #DCCDB8;

  /* Blush */
  --blush-200: #F3DADA;
  --blush-400: #E0A8A8;
  --blush-600: #C27A7A;
  --blush-800: #8E5252;

  /* Ink */
  --ink-900: #2A201C;
  --ink-700: #4D4039;
  --ink-500: #7A6A5F;
  --ink-300: #A89689;

  /* Shadows */
  --shadow-card:    0 8px 24px rgba(138, 99, 77, 0.08);
  --shadow-hover:   0 16px 40px rgba(138, 99, 77, 0.12);
  --shadow-portrait: 0 24px 60px rgba(138, 99, 77, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 180ms;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
  }
}


/* ===========================
   Reset & base
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-700);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* Focus ring — accessible, on-palette */
:focus-visible {
  outline: 2px solid var(--blush-400);
  outline-offset: 3px;
}

/* Language switching: hide inactive language spans */
[data-lang="pl"] [data-en] { display: none; }
[data-lang="en"] [data-pl] { display: none; }


/* ===========================
   Container
   =========================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 16px 32px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.btn--primary {
  background: var(--blush-600);
  color: var(--cream-50);
}

.btn--primary:hover {
  background: var(--blush-800);
}

.btn--outline {
  background: transparent;
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px var(--cream-300);
}

.btn--outline:hover {
  background: var(--cream-100);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}


/* ===========================
   1.0 Header
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--duration) var(--ease),
              padding var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.header.is-scrolled {
  background: var(--cream-50);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--cream-200);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo svg {
  height: 40px;
  width: auto;
  display: block;
  fill: var(--ink-900);
}

/* Nav */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header__nav-link,
.header__nav-list li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  transition: color var(--duration) var(--ease);
}

.header__nav-link::after,
.header__nav-list li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blush-600);
  border-radius: 1px;
  transition: width 0.28s var(--ease);
}

.header__nav-link:hover,
.header__nav-list li a:hover {
  color: var(--ink-900);
}

.header__nav-link:hover::after,
.header__nav-list li a:hover::after {
  width: 100%;
}

/* Desktop dropdown (menu-item-has-children) */
.header__nav-list .menu-item-has-children {
  position: relative;
}

/* Invisible bridge so the hover state survives the gap between
   the trigger and the dropdown. */
.header__nav-list .menu-item-has-children::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
  pointer-events: none;
}

.header__nav-list .menu-item-has-children:hover::after,
.header__nav-list .menu-item-has-children:focus-within::after {
  pointer-events: auto;
}

.header__nav-list .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header__nav-list .menu-item-has-children > a::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--duration) var(--ease);
  opacity: 0.7;
  order: 2;
}

.header__nav-list .menu-item-has-children:hover > a::before,
.header__nav-list .menu-item-has-children:focus-within > a::before {
  transform: translateY(0) rotate(225deg);
}

.header__nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 220px;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 18px 40px -18px rgba(68, 48, 40, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility var(--duration) var(--ease);
  z-index: 50;
  list-style: none;
  margin: 0;
}

.header__nav-list .menu-item-has-children:hover > .sub-menu,
.header__nav-list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header__nav-list .sub-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink-700);
}

.header__nav-list .sub-menu li a::after {
  display: none;
}

.header__nav-list .sub-menu li a:hover,
.header__nav-list .sub-menu li.current-menu-item a {
  background: var(--blush-200);
  color: var(--ink-900);
}

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language toggle (original prototype) */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-500);
  padding: 4px;
}

.lang-toggle__sep {
  color: var(--ink-300);
}

[data-lang="pl"] .lang-toggle [data-lang-opt="pl"] {
  color: var(--ink-900);
}
[data-lang="en"] .lang-toggle [data-lang-opt="en"] {
  color: var(--ink-900);
}

/* Polylang language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switcher__sep {
  color: var(--ink-300);
}

.lang-switcher__link {
  color: var(--ink-500);
  font-weight: 600;
  padding: 4px 2px;
  transition: color var(--duration) var(--ease);
}

.lang-switcher__link:hover {
  color: var(--ink-900);
}

.lang-switcher__current {
  color: var(--ink-900);
  font-weight: 600;
  padding: 4px 2px;
}

/* Mobile variant */
.lang-switcher--mobile {
  margin-bottom: 24px;
  justify-content: center;
  font-size: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-900);
  padding: 4px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream-50);
  padding: 96px var(--gutter) 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  margin-bottom: 40px;
}

.mobile-menu__link,
.mobile-menu__list li a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  transition: color var(--duration) var(--ease);
}

.mobile-menu__link:hover,
.mobile-menu__list li a:hover {
  color: var(--blush-600);
}

.mobile-menu__list .sub-menu {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu__list .sub-menu li a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-700);
}

.mobile-menu__cta {
  width: 100%;
  max-width: 320px;
}

/* Responsive nav */
@media (max-width: 1160px) {
  .header__nav,
  .header__actions .btn,
  .header__actions .lang-switcher {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .header__inner {
    justify-content: space-between;
  }
}


/* ===========================
   Eyebrow label
   =========================== */

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}


/* ===========================
   2.0 Hero
   =========================== */

.hero {
  position: relative;
  background: var(--cream-50);
  padding-top: 128px;  /* header height + breathing */
  padding-bottom: 96px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
  }
}

/* 2.1 Text column */
.hero__text {
  max-width: 560px;
}

.hero__h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 24px;
}

.hero__accent {
  font-style: italic;
  color: var(--blush-600);
  font-weight: 800;
  position: relative;
  display: inline;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 50ch;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero__proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.hero__proof-label {
  color: var(--ink-400);
  font-weight: 500;
  white-space: nowrap;
}

.hero__proof-logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.hero__proof-logo:hover {
  filter: grayscale(0) opacity(1);
}

.hero__proof-item {
  color: var(--ink-500);
  white-space: nowrap;
}

/* 2.2 Visual column */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Background blob */
.hero__blob {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background: var(--blush-400);
  opacity: 0.45;
  border-radius: 62% 38% 46% 54% / 52% 60% 40% 48%;
  z-index: 0;
}

/* Portrait */
.hero__portrait {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-portrait);
}

@media (min-width: 768px) {
  .hero__portrait {
    width: 340px;
    height: 340px;
  }
}

@media (min-width: 1024px) {
  .hero__portrait {
    width: 380px;
    height: 380px;
  }
}

/* Section wave dividers */
.section-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.section-wave svg {
  width: 100%;
  height: 56px;
  display: block;
}

/* 2.5 Mobile */
@media (max-width: 767px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 72px;
    text-align: center;
  }

  .hero__text {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__sub {
    max-width: 44ch;
  }

  .hero__inner {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero__portrait {
    width: 240px;
    height: 240px;
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__proof {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}


/* ===========================
   3.0 Services Grid
   =========================== */

.services {
  background: var(--blush-600);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.services__heading {
  text-align: center;
  margin-bottom: 48px;
}

.services__heading .eyebrow {
  margin-bottom: 12px;
  color: var(--cream-200);
}

.services__heading h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream-50);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.service-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cream-300);
}

/* Asymmetric accent on cards 1 and 7 */
.service-card--accent {
  border-radius: 28px 28px 72px 28px;
}

.service-card__thumb {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__thumb img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink-900);
}

.service-card__teaser {
  font-size: 1rem;
  color: var(--ink-700);
  line-height: 1.55;
  flex: 1;
}

.service-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blush-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--duration) var(--ease);
}

.service-card:hover .service-card__link {
  color: var(--blush-800);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--duration) var(--ease);
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}


/* ===========================
   Teaser section — shared
   =========================== */

.teaser {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.teaser--cream-50  { background: var(--cream-50); }
.teaser--cream-100 { background: var(--cream-100); }
.teaser--blush     { background: var(--blush-200); }

.teaser--blush .chip {
  background: var(--cream-50);
  border-color: var(--blush-400);
}

.teaser--blush .logo-strip__item {
  background: var(--cream-50);
  color: var(--ink-700);
}


.teaser__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .teaser__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  /* Mentoring gets a wider media column so the testimonial polaroids
     have room to breathe without overflowing into the text. */
  .teaser__inner--reverse {
    direction: rtl;
  }

  .teaser__inner--reverse > * {
    direction: ltr;
  }
}

.teaser__text .eyebrow {
  margin-bottom: 16px;
}

.teaser__text h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 16px;
}

.teaser__text p {
  margin-bottom: 24px;
  max-width: 52ch;
}

.teaser__text .btn {
  margin-top: 8px;
}

/* Media area */
.teaser__media {
  position: relative;
}

/* Photo placeholder */
.teaser__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Video placeholder (9:16) */
.teaser__video {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-inline: auto;
}

.teaser__video .play-icon {
  width: 56px;
  height: 56px;
  background: var(--cream-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.teaser__video .play-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--blush-600);
  margin-left: 3px;
}

.teaser__video--filled {
  overflow: hidden;
  background: var(--ink-900, #111);
}

.teaser__video--inline {
  max-width: 720px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-900, #111);
  border: 0;
}

.teaser__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder badge */
.placeholder-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--cream-200);
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 1;
}

/* Achievement badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--blush-200);
  padding: 6px 16px;
  border-radius: 999px;
}

/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.logo-strip__item {
  background: var(--cream-200);
  color: var(--ink-500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 12px;
}

.logo-strip__img {
  max-height: 30px;
  width: auto;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.logo-strip__img:hover {
  filter: grayscale(0) opacity(1);
}

.logo-strip--single .logo-strip__img {
  max-height: 72px;
  max-width: 160px;
  height: auto;
}

/* O mnie — partner logo strip */
.page-partners {
  padding: 48px 0;
}

.page-partners__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 20px;
}

.page-partners__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: center;
}

.page-partners__logo {
  max-height: 72px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.page-partners__logo:hover {
  transform: scale(1.04);
}

/* Pill chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  padding: 8px 18px;
  border-radius: 999px;
}

.teaser--cream-50 .chip {
  background: var(--cream-100);
}

/* Stats block */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blush-600);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-500);
}

/* Mentoring stats */
.mentoring-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
}

.teaser--blush .mentoring-stats {
  border-color: var(--blush-400);
}

.mentoring-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
}

.mentoring-stat__divider {
  width: 1px;
  background: var(--cream-200);
  flex-shrink: 0;
}

.teaser--blush .mentoring-stat__divider {
  background: var(--blush-400);
}

.mentoring-stat__number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--blush-600);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mentoring-stat__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-top: 6px;
}

@media (max-width: 767px) {
  .teaser {
    padding: 64px 0;
  }
}


/* ===========================
   13.0 Contact Block
   =========================== */

.contact {
  background: var(--blush-600);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream-50);
  margin-bottom: 12px;
}

.contact__sub {
  color: var(--cream-100);
  margin-bottom: 48px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .contact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact__tile {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 28px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  box-shadow: var(--shadow-card);
}

.contact__tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cream-300);
}

.contact__tile svg {
  width: 40px;
  height: 40px;
  stroke: var(--ink-700);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__tile-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
}


/* ===========================
   14.0 Footer
   =========================== */

.footer {
  background: var(--cream-100);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--ink-500);
}

.footer__center {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-500);
}

.footer__center button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 2px 4px;
}

.footer__top-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: color var(--duration) var(--ease);
}

.footer__top-link:hover {
  color: var(--blush-600);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease),
              visibility var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--cream-300);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--blush-600);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ===========================
   Animations & Motion
   =========================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-12px) scale(1.02); }
}

@keyframes waveGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* A — Hero entrance: staggered fade-up */
.hero__text .eyebrow {
  animation: fadeUp 0.65s var(--ease) 0.05s both;
}

.hero__h1 {
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hero__sub {
  animation: fadeUp 0.7s var(--ease) 0.35s both;
}

.hero__ctas {
  animation: fadeUp 0.7s var(--ease) 0.5s both;
}

.hero__proof {
  animation: fadeUp 0.7s var(--ease) 0.65s both;
}

.hero__visual {
  animation: fadeInRight 0.8s var(--ease) 0.3s both;
}

/* D — Blob float (ambient, continuous) */
.hero__blob {
  animation: float 7s ease-in-out infinite;
}

/* C — Hero accent: solid brush underline grows on load */
.hero__accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -2px;
  right: -2px;
  height: 8px;
  background: var(--blush-600);
  border-radius: 6px;
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left center;
  animation: waveGrow 0.7s var(--ease) 1.1s both;
}

/* C — Hero portrait: subtle hover scale */
.hero__portrait {
  transition: transform 0.45s var(--ease);
}

.hero__portrait:hover {
  transform: scale(1.03);
}

/* C — Service card icon: rotate + scale on card hover */
.service-card__thumb img {
  transition: transform 0.35s var(--ease);
}

.service-card:hover .service-card__thumb img {
  transform: scale(1.15) rotate(6deg);
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* C — Logo strip: dim siblings, highlight hovered */
.logo-strip__item {
  transition: transform var(--duration) var(--ease);
}

.logo-strip:hover .logo-strip__item:hover {
  transform: scale(1.02);
}


/* ===========================
   Page Hero — blush variant
   =========================== */

.page-hero--blush {
  background: var(--blush-200);
}

.page-hero--blush::before {
  background: var(--blush-400);
  opacity: 0.55;
}

.page-hero--blush .eyebrow {
  color: var(--blush-800);
}

.page-hero--blush .page-hero__h1 strong {
  color: var(--blush-800);
}


/* ===========================
   Page Content — shared typography
   =========================== */

.page-content__lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-700);
  margin-bottom: 24px;
  max-width: 65ch;
}

.page-content__h2 {
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  line-height: 1.2;
  margin: 56px 0 24px;
}

.page-content__h2:first-of-type {
  margin-top: 40px;
}


/* ===========================
   Highlight box
   =========================== */

.highlight-box {
  background: var(--blush-600);
  border-radius: 24px;
  padding: 40px;
  margin: 48px 0;
}

.highlight-box .mentoring-stats {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 0;
}

.highlight-box .mentoring-stat__number {
  color: var(--cream-50);
}

.highlight-box .mentoring-stat__label {
  color: var(--cream-200);
}

.highlight-box .mentoring-stat__divider {
  background: rgba(255,255,255,0.2);
}

.highlight-box__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cream-100);
  margin-top: 24px;
  max-width: 58ch;
}

@media (max-width: 767px) {
  .highlight-box {
    padding: 28px 24px;
  }
}


/* ===========================
   Feature list
   =========================== */

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cream-300);
}

.feature-item__icon {
  width: 40px;
  height: 40px;
  background: var(--blush-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blush-800);
  flex-shrink: 0;
  transition: background var(--duration) var(--ease);
}

.feature-item:hover .feature-item__icon {
  background: var(--blush-400);
}

.feature-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}


/* ===========================
   Active nav link
   =========================== */

.header__nav-link--active,
.header__nav-list .current-menu-item > a,
.header__nav-list .current-page-ancestor > a {
  color: var(--ink-900);
}

.header__nav-link--active::after,
.header__nav-list .current-menu-item > a::after,
.header__nav-list .current-page-ancestor > a::after {
  width: 100%;
}


/* ===========================
   Page Hero (subpages)
   =========================== */

.page-hero {
  background: var(--cream-50);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}


.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 520px;
  height: 520px;
  border-radius: 62% 38% 46% 54% / 52% 60% 40% 48%;
  background: var(--blush-400);
  opacity: 0.45;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}

.page-hero .eyebrow {
  animation: fadeUp 0.6s var(--ease) both;
}

.page-hero__h1 {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  animation: fadeUp 0.7s var(--ease) 0.1s both;
}

.page-hero__h1 strong {
  color: var(--blush-600);
  font-weight: 700;
}

.page-hero__sub {
  font-size: 1.0625rem;
  color: var(--ink-500);
  margin-top: 20px;
  max-width: 52ch;
  animation: fadeUp 0.7s var(--ease) 0.22s both;
}

.page-hero::after {
  content: '✦';
  position: absolute;
  right: calc(var(--gutter) - 16px);
  bottom: 8px;
  font-size: clamp(72px, 14vw, 160px);
  color: var(--blush-200);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: float 8s ease-in-out 0.5s infinite;
}

.page-hero--blush::after {
  color: var(--blush-400);
}

@media (max-width: 767px) {
  .page-hero {
    padding: 108px 0 56px;
  }

  .page-hero::after {
    display: none;
  }
}


/* ===========================
   Page Content — About layout
   =========================== */

.page-content {
  padding: 72px 0 96px;
  background: var(--cream-50);
}

/* Portrait floats right on desktop, full-width on mobile */
.page-content__portrait-wrap {
  float: right;
  margin: 0 0 48px 56px;
  width: 300px;
  position: relative;
  flex-shrink: 0;
  animation: fadeInRight 0.8s var(--ease) 0.2s both;
}

/* Blush blob behind portrait */
.page-content__portrait-wrap::before {
  content: '';
  position: absolute;
  inset: -28px -20px -20px -28px;
  border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
  background: var(--blush-200);
  z-index: 0;
  opacity: 0.7;
}

.page-content__portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 58% 42% 52% 48% / 48% 52% 62% 38%;
  box-shadow: var(--shadow-portrait);
}

/* Role label under portrait */
.page-content__portrait-label {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.page-content__portrait-label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.4;
}

/* Paragraph spacing inside page-content main */
.page-content__main > p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-700);
  margin-bottom: 22px;
  max-width: 62ch;
}

/* Clearfix after float */
.page-content__main::after {
  content: '';
  display: table;
  clear: both;
}

/* Facts strip */
.about-facts {
  display: flex;
  align-items: stretch;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  margin-top: 8px;
}

.about-fact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
}

.about-fact__divider {
  width: 1px;
  background: var(--cream-200);
  flex-shrink: 0;
}

.about-fact__num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blush-600);
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-fact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-top: 6px;
}

@media (max-width: 767px) {
  .page-content__portrait-wrap {
    float: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 40px;
  }

  .page-content__portrait {
    height: 280px;
  }

  .page-content__main > p {
    max-width: none;
  }

  .about-facts {
    flex-wrap: wrap;
  }

  .about-fact {
    flex: 0 0 50%;
    padding: 20px 16px;
  }

  .about-fact:nth-child(3) {
    flex: 0 0 100%;
    border-top: 1px solid var(--cream-200);
  }

  .about-fact__divider {
    display: none;
  }
}


/* ===========================
   CTA Band
   =========================== */

.cta-band {
  background: var(--blush-600);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--blush-800);
  opacity: 0.25;
  pointer-events: none;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream-50);
}

.cta-band .btn--primary {
  background: var(--cream-50);
  color: var(--blush-600);
  font-size: 1rem;
  padding: 16px 40px;
}

.cta-band .btn--primary:hover {
  background: var(--cream-100);
}


/* ===========================
   Reduced motion
   =========================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ===========================
   Page Content Grid
   =========================== */

.page-content__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 960px) {
  .page-content__grid {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }
}

.page-content__main > h2 {
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  line-height: 1.2;
  margin: 56px 0 28px;
  position: relative;
  padding-left: 20px;
}

.page-content__main > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 2px;
  background: var(--blush-600);
}

.page-content__main > h2:first-of-type {
  margin-top: 40px;
}


/* ===========================
   Offer List (Szkolenia)
   =========================== */

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 0 16px;
  counter-reset: offer-counter;
}

.offer-item {
  counter-increment: offer-counter;
  position: relative;
  padding: 32px 32px 32px 80px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform 0.25s var(--ease);
  cursor: default;
}

.offer-item::before {
  content: counter(offer-counter, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 32px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blush-400);
  line-height: 1.65;
  transition: color var(--duration) var(--ease);
}

/* Subtle separator line between items */
.offer-item + .offer-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 80px;
  right: 32px;
  height: 1px;
  background: var(--cream-200);
  transition: opacity var(--duration) var(--ease);
}

.offer-item:hover {
  background: var(--cream-100);
  border-color: var(--cream-200);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.offer-item:hover::before {
  color: var(--blush-600);
}

.offer-item:hover + .offer-item::after {
  opacity: 0;
}

.offer-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.offer-item p {
  font-size: 0.9375rem;
  color: var(--ink-500);
  line-height: 1.65;
  max-width: 58ch;
  margin: 0;
}

@media (max-width: 600px) {
  .offer-item {
    padding: 24px 20px 24px 56px;
  }

  .offer-item::before {
    left: 16px;
  }

  .offer-item + .offer-item::after {
    left: 56px;
    right: 20px;
  }
}


/* ===========================
   CTA Band — Blush variant
   =========================== */

.cta-band--blush {
  background: var(--blush-200);
}

.cta-band--blush::before {
  background: var(--blush-400);
}

.cta-band--blush h2 {
  color: var(--ink-900);
}

.cta-band--blush .btn--primary {
  background: var(--blush-600);
  color: var(--cream-50);
}

.cta-band--blush .btn--primary:hover {
  background: var(--blush-800);
}


/* ===========================
   Contact Page (kontakt.html)
   =========================== */

/* Contact page section */
.contact--page {
  padding: 72px 0 104px;
  position: relative;
}

/* Background decorative text */
.contact__bg-deco {
  position: absolute;
  left: -40px;
  top: -60px;
  font-size: clamp(220px, 40vw, 480px);
  font-weight: 700;
  color: var(--blush-800);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* Enhanced tiles */
.contact--page .contact__tile {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 36px 32px 28px;
  gap: 0;
  min-height: 260px;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}

.contact__tile-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blush-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.contact--page .contact__tile:hover .contact__tile-icon-wrap {
  background: var(--blush-400);
  transform: scale(1.06);
}

.contact--page .contact__tile svg {
  width: 26px;
  height: 26px;
  stroke: var(--blush-800);
}

.contact__tile-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.contact--page .contact__tile-label {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.contact__tile-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-500);
}

.contact__tile-divider {
  width: 100%;
  height: 1px;
  background: var(--cream-300);
  margin: 20px 0;
  transition: background var(--duration) var(--ease);
}

.contact--page .contact__tile:hover .contact__tile-divider {
  background: var(--blush-400);
}

.contact__tile-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact__tile-handle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blush-800);
  background: var(--blush-200);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 32px);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.contact--page .contact__tile:hover .contact__tile-handle {
  background: var(--blush-400);
  color: var(--ink-900);
}

.contact__tile-arrow {
  font-size: 1.0625rem;
  color: var(--ink-500);
  opacity: 0.45;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.contact--page .contact__tile:hover .contact__tile-arrow {
  transform: translateX(5px);
  opacity: 1;
  color: var(--ink-900);
}

/* Stagger entrance */
.contact--page .contact__tile:nth-child(1) { animation: fadeUp 0.6s var(--ease) 0.08s both; }
.contact--page .contact__tile:nth-child(2) { animation: fadeUp 0.6s var(--ease) 0.18s both; }
.contact--page .contact__tile:nth-child(3) { animation: fadeUp 0.6s var(--ease) 0.28s both; }

@media (max-width: 639px) {
  .contact--page {
    padding: 56px 0 80px;
  }

  .contact--page .contact__tile {
    min-height: 0;
  }

  .contact__tile-handle {
    font-size: 0.75rem;
  }

  .page-hero--contact::after {
    display: none;
  }
}

/* ===========================
   Mentoring section — full-width polaroid pinboard
   =========================== */

.mentoring-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.mentoring-layout__head {
  max-width: 780px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.mentoring-layout__head > * {
  margin: 0 auto;
}

.mentoring-layout__head p {
  max-width: 60ch;
}

.mentoring-layout__head .logo-strip {
  justify-content: center;
  max-width: 640px;
}

.mentoring-layout__head .mentoring-stats {
  width: min(420px, 100%);
  margin-bottom: 0;
}

/* Eyebrow hugs its heading — shorten the gap with a negative pull */
.mentoring-layout__head .eyebrow {
  margin-bottom: -16px;
}

.mentoring-layout__head h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Stats and button deserve a touch more breathing room */
.mentoring-layout__head .mentoring-stats {
  margin-top: 8px;
}

.mentoring-layout__head .btn {
  margin-top: 4px;
}

.mentoring-wall {
  width: 100%;
  position: relative;
}

.mentoring-wall__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 40px;
  max-width: 640px;
  font-family: var(--font-display, inherit);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-600, #8a634d);
}

.mentoring-wall__caption-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 99, 77, 0.35),
    transparent
  );
}

.mentoring-wall__caption-text {
  white-space: nowrap;
  font-weight: 500;
}

/* === Pinboard === */

.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 32px;
  padding: 36px 4px 48px;
  position: relative;
}

/* Soft corkboard glow behind the stack */
.testimonials::before {
  content: "";
  position: absolute;
  inset: 4% -6%;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 247, 242, 0.9) 0%,
    rgba(251, 247, 242, 0) 70%
  );
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.testimonial-pin {
  --pin-rot: 0deg;
  --pin-tape-rot: -6deg;
  --pin-width: 360px;
  --pin-index: 0;

  flex: 0 0 auto;
  width: var(--pin-width);
  margin: 0;
  padding: 18px 18px 48px;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 3px;
  box-shadow:
    0 2px 4px rgba(138, 99, 77, 0.06),
    0 18px 40px rgba(138, 99, 77, 0.16);
  position: relative;
  z-index: 1;
  transform: rotate(var(--pin-rot));
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Button reset for interactive pins */
button.testimonial-pin {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

button.testimonial-pin:focus-visible {
  outline: 3px solid var(--blush-500, #d38c8c);
  outline-offset: 4px;
  z-index: 3;
}

/* Hand-placed tilts — varied so no two cards feel identical */
.testimonial-pin:nth-child(6n+1) { --pin-rot: -3.5deg; --pin-tape-rot: -5deg; }
.testimonial-pin:nth-child(6n+2) { --pin-rot: 2.5deg;  --pin-tape-rot: 8deg; }
.testimonial-pin:nth-child(6n+3) { --pin-rot: -1.5deg; --pin-tape-rot: -3deg; }
.testimonial-pin:nth-child(6n+4) { --pin-rot: 3deg;    --pin-tape-rot: 6deg; }
.testimonial-pin:nth-child(6n+5) { --pin-rot: -2.5deg; --pin-tape-rot: -7deg; }
.testimonial-pin:nth-child(6n)   { --pin-rot: 1.5deg;  --pin-tape-rot: 4deg; }

.testimonial-pin:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow:
    0 6px 14px rgba(138, 99, 77, 0.1),
    0 32px 64px rgba(138, 99, 77, 0.22);
  z-index: 3;
}

/* Subtle inner highlight to mimic paper grain */
.testimonial-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 40%
    );
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Washi tape — pinning the polaroid at the top */
.testimonial-pin__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 28px;
  transform: translateX(-50%) rotate(var(--pin-tape-rot));
  background:
    linear-gradient(
      180deg,
      rgba(224, 168, 168, 0.88) 0%,
      rgba(224, 168, 168, 0.72) 100%
    );
  box-shadow: 0 1px 3px rgba(138, 99, 77, 0.2);
  pointer-events: none;
  z-index: 2;
}

.testimonial-pin__tape::before,
.testimonial-pin__tape::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.45) 0 2px,
    transparent 2px 5px
  );
}

.testimonial-pin__tape::before { top: 5px; }
.testimonial-pin__tape::after  { bottom: 5px; }

.testimonial-pin__photo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  background: var(--cream-100);
  z-index: 1;
}

.testimonial-pin__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

button.testimonial-pin:hover .testimonial-pin__img {
  transform: scale(1.03);
}

/* Zoom hint — appears on hover/focus */
.testimonial-pin__zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-50);
  color: var(--ink-900, #1f1a16);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(30, 20, 12, 0.25);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.testimonial-pin__zoom svg {
  width: 22px;
  height: 22px;
}

button.testimonial-pin:hover .testimonial-pin__zoom,
button.testimonial-pin:focus-visible .testimonial-pin__zoom {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === Drop-in animation === */

.testimonial-pin.will-pin {
  opacity: 0;
  transform: rotate(0deg) translateY(-48px) scale(0.92);
  transition:
    opacity 600ms ease,
    transform 800ms cubic-bezier(0.22, 1.2, 0.36, 1);
  transition-delay: calc(var(--pin-index) * 110ms);
}

.testimonial-pin.is-pinned {
  opacity: 1;
  transform: rotate(var(--pin-rot));
}

/* === Count-specific layouts (full-width row) === */

/* 1: single commanding card, centered */
.testimonials--count-1 .testimonial-pin { --pin-width: 520px; }

/* 2: two side-by-side, generous */
.testimonials--count-2 {
  gap: 40px 56px;
}
.testimonials--count-2 .testimonial-pin { --pin-width: 440px; }

/* 3: three across, pinboard row — the default & target layout */
.testimonials--count-3 {
  gap: 40px 36px;
  align-items: center;
}
.testimonials--count-3 .testimonial-pin { --pin-width: 360px; }
.testimonials--count-3 .testimonial-pin:nth-child(2) { margin-top: 18px; }
.testimonials--count-3 .testimonial-pin:nth-child(3) { margin-top: -6px; }

/* 4: 2×2 grid */
.testimonials--count-4 {
  max-width: 840px;
  margin-inline: auto;
  gap: 52px 56px;
}
.testimonials--count-4 .testimonial-pin { --pin-width: 360px; }

/* 5: 3 + 2 layout */
.testimonials--count-5 {
  gap: 44px 28px;
}
.testimonials--count-5 .testimonial-pin { --pin-width: 300px; }

/* 6: 3 × 2 grid */
.testimonials--count-6 {
  gap: 44px 28px;
}
.testimonials--count-6 .testimonial-pin { --pin-width: 320px; }

/* Placeholder state */
.testimonials--placeholder .testimonial-pin__skeleton {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-100);
  border-radius: 1px;
}

.testimonials--placeholder .testimonial-pin__skeleton svg {
  width: 40%;
  height: auto;
  opacity: 0.5;
}

.testimonials--placeholder .placeholder-badge {
  top: 8px;
  left: 8px;
}

/* === Lightbox (native <dialog>) === */

.lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--cream-50);
}

.lightbox::backdrop {
  background: rgba(20, 14, 10, 0.88);
  backdrop-filter: blur(6px);
  animation: lightbox-fade 220ms ease-out;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-fade 220ms ease-out;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  animation: lightbox-rise 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lightbox-rise {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--cream-50);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
  z-index: 2;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
  outline: none;
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

body.lightbox-open { overflow: hidden; }

/* === Responsive === */

/* Large tablet / small desktop */
@media (max-width: 1140px) {
  .testimonials--count-3 .testimonial-pin { --pin-width: 310px; }
  .testimonials--count-2 .testimonial-pin { --pin-width: 400px; }
  .testimonials--count-1 .testimonial-pin { --pin-width: 460px; }
  .testimonials--count-6 .testimonial-pin { --pin-width: 280px; }
}

/* Tablet */
@media (max-width: 1024px) {
  .mentoring-layout { gap: 56px; }
  .testimonials { gap: 36px 24px; }

  .testimonials--count-1 .testimonial-pin { --pin-width: 400px; }
  .testimonials--count-2 { gap: 32px 40px; }
  .testimonials--count-2 .testimonial-pin { --pin-width: 340px; }
  .testimonials--count-3 .testimonial-pin { --pin-width: 260px; }
  .testimonials--count-3 .testimonial-pin:nth-child(2),
  .testimonials--count-3 .testimonial-pin:nth-child(3) { margin-top: 0; }
  .testimonials--count-4 { gap: 40px 36px; }
  .testimonials--count-4 .testimonial-pin { --pin-width: 280px; }
  .testimonials--count-5 .testimonial-pin { --pin-width: 240px; }
  .testimonials--count-6 .testimonial-pin { --pin-width: 240px; }
}

/* Smaller tablet */
@media (max-width: 820px) {
  .mentoring-layout { gap: 48px; }
  .mentoring-wall__caption { margin-bottom: 28px; font-size: 0.85rem; }

  .testimonials { gap: 32px 20px; padding: 24px 4px 32px; }

  .testimonials--count-1 .testimonial-pin { --pin-width: min(360px, 86vw); }
  .testimonials--count-2 { flex-wrap: wrap; gap: 32px 24px; }
  .testimonials--count-2 .testimonial-pin { --pin-width: min(320px, 80vw); }
  .testimonials--count-3 .testimonial-pin,
  .testimonials--count-4 .testimonial-pin,
  .testimonials--count-5 .testimonial-pin,
  .testimonials--count-6 .testimonial-pin { --pin-width: min(300px, 78vw); }
}

/* Mobile — straighten, single column, generous size */
@media (max-width: 640px) {
  .mentoring-layout__head h2 { font-size: clamp(1.75rem, 5vw + 0.5rem, 2.25rem); }

  .testimonials {
    gap: 36px;
    padding: 20px 0 32px;
    flex-wrap: wrap;
  }

  .testimonial-pin {
    --pin-rot: 0deg;
    --pin-width: min(340px, 86vw);
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .testimonial-pin:nth-child(6n+1),
  .testimonial-pin:nth-child(6n+3),
  .testimonial-pin:nth-child(6n+5) { --pin-rot: -1.5deg; }
  .testimonial-pin:nth-child(6n+2),
  .testimonial-pin:nth-child(6n+4),
  .testimonial-pin:nth-child(6n)   { --pin-rot: 1.5deg; }

  .testimonial-pin:hover {
    transform: rotate(0deg) translateY(-4px);
  }

  .lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .testimonial-pin {
    transition: box-shadow 200ms ease;
  }
  .testimonial-pin:hover {
    transform: rotate(var(--pin-rot));
  }
  .testimonial-pin.will-pin {
    opacity: 1;
    transform: rotate(var(--pin-rot));
    transition: none;
  }
  .lightbox[open],
  .lightbox::backdrop,
  .lightbox__img { animation: none; }
}

