/* ============================================
   OSADA Centrum Terapii — Style
   Design System: Josefin Sans + Inter
   Colors from logo: #0DA184 primary
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #0DA184;
  --color-primary-hover: #098A6F;
  --color-primary-light: #E6F7F3;
  --color-text: #2D3436;
  --color-text-secondary: #687175;
  --color-text-muted: #9BA3A7;
  --color-bg: #fff;
  --color-bg-alt: #F8F9FA;
  --color-border: #E8ECEF;
  --color-dark: #1A2332;
  --color-accent: #F2994A;
  --color-shadow: rgba(0,0,0,0.06);
  --color-shadow-hover: rgba(0,0,0,0.1);

  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50%;
}

/* --- Skip Link (WCAG 2.2) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0DA184; text-decoration: none; transition: color 0.3s; }
a:hover { color: #098A6F; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text); text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
h2 { font-weight: 400; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 16px; }
h3 { font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 12px; }
p { margin-bottom: 16px; }
.text-secondary { color: #687175; }
.text-light { color: #9BA3A7; }
.text-center { text-align: center; }
.subtitle {
  font-size: 17px;
  color: #687175;
  margin-bottom: 40px;
}
.gradient-text {
  background: linear-gradient(135deg, #0DA184, #1A9BC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 48px 0;
}
.section--alt {
  background: #F8F9FA;
}
.section--primary-light {
  background: #E6F7F3;
}
.section--dark {
  background: #1A2332;
  color: #fff;
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-2-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}
.btn--primary {
  background: #0DA184;
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,161,132,0.3);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13,161,132,0.2);
}
.btn--secondary {
  background: transparent;
  color: #0DA184;
  border: 2px solid #0DA184;
  padding: 12px 30px;
}
.btn--secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn--secondary:active {
  transform: translateY(0);
}
.btn--ghost {
  background: none;
  color: #0DA184;
  border: none;
  padding: 8px 0;
  font-weight: 600;
}
.btn--ghost:hover { color: #098A6F; }
.btn--ghost svg { transition: transform 0.3s; }
.btn--ghost:hover svg { transform: translateX(4px); }
.btn--white {
  background: #fff;
  color: #0DA184;
}
.btn--white:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}
.btn--white:active {
  transform: translateY(0);
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.card__icon {
  width: 48px;
  height: 48px;
  background: #E6F7F3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #0DA184;
}
.card__title { font-size: 18px; margin-bottom: 8px; }
.card__text { color: #687175; font-size: 15px; line-height: 1.6; }

/* --- Badge --- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: #E6F7F3;
  color: #0DA184;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s;
}
.nav--scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 12px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo {
  height: 52px;
  width: auto;
}
.nav__logo--dark { display: block; }
.nav__logo--light { display: none; }
.nav--scrolled .nav__logo--dark { display: none; }
.nav--scrolled .nav__logo--light { display: block; }
.nav__links {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}
.nav__link:hover { color: #fff; }
.nav__link--active { color: #fff; font-weight: 600; }
.nav--scrolled .nav__link { color: var(--color-text); }
.nav--scrolled .nav__link:hover { color: var(--color-primary); }
.nav--scrolled .nav__link--active { color: var(--color-primary); font-weight: 600; }
.nav__cta { display: none; }
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  border-radius: 2px;
}
.nav--scrolled .nav__hamburger span { background: #2D3436; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  padding: 80px 32px 32px;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.mobile-menu--open { right: 0; }
.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #2D3436;
  padding: 8px;
}
.mobile-menu__link {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: #2D3436;
  border-bottom: 1px solid #E8ECEF;
}
.mobile-menu__link:hover { color: #0DA184; }
.mobile-menu__cta {
  margin-top: 24px;
  width: 100%;
  text-align: center;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile sticky CTA */
.mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.mobile-cta--visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1; padding: 12px 16px; font-size: 14px; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.7) 100%),
              url('../assets/hero-bg.jpg') center/cover no-repeat;
  background-color: #1A2332;
  color: #fff;
  padding: 120px 24px 80px;
}
.hero__logo {
  width: 280px;
  max-width: 70vw;
  margin: 0 auto 32px;
}
.hero__headline {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 12px;
  color: #fff;
}
.hero__subheadline {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.hero__opening {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.hero__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.hero__stars { color: #F2994A; letter-spacing: 2px; }

/* --- Problem section --- */
.problem__list {
  max-width: 640px;
  margin: 0 auto 32px;
}
.problem__item {
  padding: 12px 0;
  font-size: 17px;
  color: #2D3436;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}
.problem__item::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: #0DA184;
  border-radius: 50%;
  margin-top: 9px;
}
.problem__bridge {
  max-width: 560px;
  margin: 32px auto 24px;
  font-size: 19px;
  font-weight: 500;
  text-align: center;
  color: #2D3436;
  line-height: 1.6;
}

/* --- Values grid --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.value-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #E6F7F3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0DA184;
}
.value-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.value-item p {
  font-size: 14px;
  color: #687175;
  margin: 0;
  line-height: 1.5;
}

/* --- Testimonials --- */
.testimonials__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.testimonials__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  color: var(--color-primary);
}
.testimonials__label {
  font-size: 15px;
  color: var(--color-text-secondary);
  text-align: left;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 24px var(--color-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--color-shadow-hover);
}
.testimonial-card__stars {
  color: var(--color-accent);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-card__quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-card__source {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  background: #F8F9FA;
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
}
.tabs-wrapper { text-align: center; margin-bottom: 40px; }
.tab-btn {
  padding: 10px 28px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #687175;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.tab-btn--active {
  background: #fff;
  color: #0DA184;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tab-content { display: none; }
.tab-content--active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Team --- */
.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
}
.team-card__initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: #0DA184;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
}
.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  display: block;
}
.team-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 14px;
  color: #687175;
  margin-bottom: 8px;
}
.team-card__rating {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.team-card__desc {
  font-size: 14px;
  color: #687175;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-card__details {
  display: none;
  text-align: left;
  font-size: 14px;
  color: #687175;
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E8ECEF;
}
.team-card__details--open { display: block; }
.team-card__toggle {
  background: none;
  border: none;
  color: #0DA184;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 12px;
}

/* --- Stepper --- */
.stepper {
  max-width: 640px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: #E6F7F3;
}
.step__number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #0DA184;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  z-index: 1;
}
.step__content h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.step__content p {
  font-size: 15px;
  color: #687175;
  margin: 0;
}

/* --- Approach cards --- */
.approach-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.approach-card__header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s;
}
.approach-card__header:hover { background: #F8F9FA; }
.approach-card__chevron {
  transition: transform 0.3s;
  color: #0DA184;
}
.approach-card--open .approach-card__chevron {
  transform: rotate(180deg);
}
.approach-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.approach-card__body-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #687175;
  line-height: 1.7;
}

/* --- Group therapy --- */
.group-cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
.group-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-top: 4px solid #0DA184;
}
.group-card__title {
  font-size: 20px;
  margin-bottom: 16px;
}
.group-card__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #687175;
  margin-bottom: 8px;
}
.group-card__detail svg { color: #0DA184; flex-shrink: 0; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid #E8ECEF;
}
.faq-item:first-child { border-top: 1px solid #E8ECEF; }
.faq-question {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2D3436;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question:hover { color: #0DA184; }
.faq-chevron {
  transition: transform 0.3s;
  color: #0DA184;
  flex-shrink: 0;
}
.faq-item--open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer__inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: #687175;
  line-height: 1.7;
}

/* --- Locations --- */
.location-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.location-address {
  font-size: 15px;
  line-height: 1.7;
}
.location-address strong { color: #2D3436; }
.location-map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  border: none;
}
.location-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.location-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #687175;
}
.location-feature svg { color: #0DA184; }

/* --- Location Gallery --- */
.location-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.location-gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.location-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.location-gallery__item:hover img {
  transform: scale(1.03);
}
.location-gallery__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.location-gallery__item:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* --- Group Therapy Image --- */
.group-therapy-image {
  max-width: 640px;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.group-therapy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CTA Final --- */
.cta-final {
  background: linear-gradient(135deg, #0DA184 0%, #1A9BC3 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-final h2 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.cta-final .subtitle { color: rgba(255,255,255,0.85); }
.cta-final__text {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.contact-block {
  text-align: center;
}
.contact-block h3 { color: #fff; }
.contact-block p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}
.contact-block a { color: #fff; text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: #141C28;
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
}
.footer__logo {
  height: 40px;
  width: auto;
  margin: 0 auto 16px;
  opacity: 0.35;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.footer__links a:hover { color: rgba(255,255,255,0.8); }
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  transition: background 0.2s, color 0.2s;
}
.footer__social:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* --- Scroll reveal (JS fallback) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll reveal (native CSS, progressive enhancement) --- */
@supports (animation-timeline: view()) {
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
    animation: reveal-up 0.6s ease-out both;
    animation-timeline: view();
    animation-range: entry 5% entry 35%;
  }
  .reveal--visible {
    /* Native CSS handles this, class is no-op */
  }
  /* Stagger animations for grid children */
  .grid-2-3 .card.reveal:nth-child(1) { animation-range: entry 0% entry 30%; }
  .grid-2-3 .card.reveal:nth-child(2) { animation-range: entry 3% entry 33%; }
  .grid-2-3 .card.reveal:nth-child(3) { animation-range: entry 6% entry 36%; }
  .grid-2-3 .card.reveal:nth-child(4) { animation-range: entry 9% entry 39%; }
  .grid-2-3 .card.reveal:nth-child(5) { animation-range: entry 12% entry 42%; }
  .grid-2-3 .card.reveal:nth-child(6) { animation-range: entry 15% entry 45%; }

  .testimonials-grid .testimonial-card:nth-child(1) { animation-range: entry 0% entry 30%; }
  .testimonials-grid .testimonial-card:nth-child(2) { animation-range: entry 4% entry 34%; }
  .testimonials-grid .testimonial-card:nth-child(3) { animation-range: entry 8% entry 38%; }
  .testimonials-grid .testimonial-card:nth-child(4) { animation-range: entry 12% entry 42%; }
  .testimonials-grid .testimonial-card:nth-child(5) { animation-range: entry 16% entry 46%; }
}

/* --- Quote Banner --- */
.quote-banner {
  background: var(--color-dark);
  padding: 48px 24px;
  text-align: center;
}
.quote-banner__text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  border: none;
  padding: 0;
}
.quote-banner__highlight {
  display: block;
  margin-top: 16px;
  color: #fff;
  font-weight: 400;
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.375rem);
  font-family: var(--font-body);
  font-style: italic;
}

/* --- McWilliams Quote --- */
.mcwilliams-quote {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-style: italic;
}
.mcwilliams-quote p { margin-bottom: 8px; }
.mcwilliams-quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
}

/* --- Stats Bar (social proof) --- */
.stats-bar {
  background: var(--color-dark);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1.1;
}
.stat__label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* --- Wave Dividers (organic shapes trend 2026) --- */
.wave-divider {
  margin-top: -1px;
  line-height: 0;
}
.wave-divider svg {
  width: 100%;
  height: 50px;
  display: block;
}
.wave-divider--dark {
  background: transparent;
}

/* --- Below-fold performance --- */
#dla-kogo, #pierwsza-wizyta, #zespol, #nurty, #terapia-grupowa, #faq, #psychoedukacja, #lokalizacje {
  content-visibility: auto;
  contain-intrinsic-height: auto 600px;
}

/* --- Media Queries --- */
@media (min-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .group-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .location-info { grid-template-columns: 1fr 1fr; }
  .location-gallery { grid-template-columns: repeat(3, 1fr); }
  .location-gallery__item:first-child { grid-column: span 3; aspect-ratio: 21 / 9; }
  .group-therapy-image { aspect-ratio: 16 / 9; max-width: 720px; }
  .hero__logo { width: 360px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
  .section { padding: 80px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2-3 { grid-template-columns: repeat(3, 1fr); }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__hamburger { display: none; }
  .mobile-cta { display: none !important; }
  .hero__logo { width: 420px; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Reduced Motion (WCAG, kluczowe dla strony terapeutycznej) --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Focus visible (keyboard accessibility) --- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
