/* Design tokens */
:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --text: #15342f;
  --text-muted: #5d746c;
  --line: rgba(21, 52, 47, 0.11);
  --line-strong: rgba(47, 143, 107, 0.24);
  --accent: #2f8f6b;
  --accent-dark: #1f6f52;
  --accent-soft: #dceee6;
  --shadow: 0 20px 60px rgba(39, 68, 57, 0.12);
  --shadow-strong: 0 30px 80px rgba(39, 68, 57, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --nav-offset: 24px;
  --transition-fast: 0.35s ease;
  --transition-medium: 0.55s ease;
  --transition-slow: 0.8s ease;
  --scroll-progress: 0;
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;
  --glow-scale: 1;
  --bg-rotate: 0deg;
}

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

html {
  scroll-behavior: auto;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(128, 201, 165, 0.5), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(129, 184, 218, 0.42), transparent 22%),
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.52), transparent 28%),
    radial-gradient(circle at 16% 90%, rgba(236, 211, 177, 0.34), transparent 22%),
    linear-gradient(180deg, #fff7eb 0%, #edf7f2 34%, #e3f2eb 68%, #f8efe2 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  opacity: calc(0.84 + var(--scroll-progress) * 0.12);
  background:
    radial-gradient(circle at 8% 24%, rgba(201, 227, 214, 0.66), transparent 18%),
    radial-gradient(circle at 92% 28%, rgba(176, 203, 220, 0.52), transparent 18%),
    radial-gradient(circle at 28% 88%, rgba(234, 217, 192, 0.54), transparent 16%),
    radial-gradient(circle at 74% 84%, rgba(153, 197, 175, 0.38), transparent 18%);
  transform: translate3d(
    calc(var(--bg-shift-x) * -0.22),
    calc(var(--bg-shift-y) * -0.34),
    0
  ) scale(calc(1 + var(--scroll-progress) * 0.08));
}

body::after {
  z-index: -2;
  opacity: calc(0.62 + var(--scroll-progress) * 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, transparent 34%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 18px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45));
  transform: translate3d(
    calc(var(--bg-shift-x) * 0.14),
    calc(var(--bg-shift-y) * 0.12),
    0
  ) rotate(var(--bg-rotate));
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

section[id],
header[id] {
  scroll-margin-top: 120px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  opacity: 0.58;
  filter: blur(42px);
  pointer-events: none;
  will-change: transform, opacity;
}

.page-glow-left {
  top: -160px;
  left: -160px;
  background: radial-gradient(circle, rgba(182, 214, 197, 0.85) 0%, rgba(182, 214, 197, 0.16) 68%, transparent 100%);
  transform: translate3d(
    calc(var(--bg-shift-x) * -0.18),
    calc(var(--bg-shift-y) * 0.18),
    0
  ) scale(var(--glow-scale));
}

.page-glow-right {
  top: 24%;
  right: -180px;
  background: radial-gradient(circle, rgba(143, 187, 207, 0.5) 0%, rgba(143, 187, 207, 0.12) 64%, transparent 100%);
  transform: translate3d(
    calc(var(--bg-shift-x) * 0.2),
    calc(var(--bg-shift-y) * -0.12),
    0
  ) scale(calc(var(--glow-scale) + 0.06));
}

/* Shared motion */
.button,
.hero-points li,
.nav-menu a,
.nav-menu a::after,
.nav-toggle span,
.hero-card,
.hero-card-image img,
.about-card,
.practice-card,
.price-card,
.team-card,
.team-card img,
.gallery-item,
.gallery-item img,
.contact-form,
.contact-form input,
.contact-form textarea,
.socials a,
.footer-content,
.lightbox,
.lightbox-image,
.lightbox-caption,
.lightbox-close,
.program-modal,
.program-modal-dialog,
.program-modal-close {
  transition:
    transform var(--transition-medium),
    opacity var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-medium),
    filter var(--transition-medium);
}

/* Header / nav */
.site-header {
  padding: 128px 0 54px;
}

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 32px), var(--container));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(51, 83, 69, 0.1);
  transform: translateX(-50%);
  transition:
    transform var(--transition-medium),
    opacity var(--transition-fast),
    box-shadow var(--transition-medium),
    background var(--transition-fast);
}

body.has-program-modal-open .nav,
body.has-lightbox-open .nav {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #79b594);
  box-shadow: 0 10px 28px rgba(47, 143, 107, 0.24);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  transition:
    max-height var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.nav-menu a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 190px);
}

.hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.7vw, 3.7rem);
}

.hero-actions,
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 18px 32px rgba(47, 143, 107, 0.24);
}

.button-secondary,
.button-card {
  color: var(--text);
  border-color: rgba(21, 52, 47, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.button-subtle {
  position: relative;
  min-height: auto;
  width: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
  justify-content: flex-start;
}

.button-subtle:hover,
.button-subtle:focus-visible {
  color: var(--text);
  background: transparent;
  transform: translateY(-1px);
}

.button-subtle::after {
  content: "";
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0;
  bottom: 0;
  background: currentColor;
  opacity: 0.34;
}

.button-subtle:hover::after,
.button-subtle:focus-visible::after {
  opacity: 0.7;
}

.hero-points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 12px 16px;
  border: 1px solid rgba(47, 143, 107, 0.15);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.55);
}

.hero-points li:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(39, 68, 57, 0.08);
}

.hero-card,
.about-card,
.price-card,
.team-card,
.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  align-self: stretch;
  border-radius: var(--radius-xl);
}

.hero-card-image {
  height: 100%;
  min-height: 100%;
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card:hover img {
  transform: scale(1.02);
  filter: saturate(1.08);
}

/* Shared sections */
.section {
  padding: 84px 0;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3.2vw, 2.95rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-copy p:not(.eyebrow),
.contact-copy p:not(.eyebrow),
.price-description,
.team-card p,
.contact-list,
.form-note {
  color: var(--text-muted);
  line-height: 1.75;
}

/* About */
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.about-values article,
.stats-card {
  padding: 22px;
  border: 1px solid rgba(47, 143, 107, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}

.about-values strong,
.stats-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.about-values span,
.stats-card span {
  color: var(--text-muted);
  line-height: 1.6;
}

.about-visual {
  display: grid;
  gap: 20px;
}

.about-card {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.about-card:hover,
.contact-form:hover,
.footer-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.quote-card {
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(214, 236, 227, 0.8)),
    url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.quote-card p {
  max-width: 360px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.05;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

/* Pricing */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
  align-items: start;
}

.practice-card {
  grid-column: span 4;
  --card-offset: 0px;
  margin-top: var(--card-offset);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.practice-card:nth-child(1) {
  grid-column: span 4;
  --card-offset: 0px;
}

.practice-card:nth-child(2) {
  grid-column: span 3;
  --card-offset: 34px;
}

.practice-card:nth-child(3) {
  grid-column: span 5;
  --card-offset: 10px;
}

.practice-card:nth-child(4) {
  grid-column: span 5;
  --card-offset: 18px;
}

.practice-card:nth-child(5) {
  grid-column: span 3;
  --card-offset: 42px;
}

.practice-card:nth-child(6) {
  grid-column: span 4;
  --card-offset: 12px;
}

.practice-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.practice-card h3 {
  margin: 0 0 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.practice-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.price-card[data-program] {
  cursor: pointer;
}

.price-card:hover,
.price-card:focus-within {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.price-card-featured {
  background: linear-gradient(180deg, rgba(233, 245, 239, 0.92), rgba(255, 255, 255, 0.85));
}

.price-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
}

.price-card h3 {
  margin: 18px 0 10px;
  font-size: 1.8rem;
  font-family: "Unbounded", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.price-value {
  margin: auto 0 20px;
  font-size: 2rem;
  font-weight: 800;
}

.price-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.price-actions .button {
  flex: 1 1 180px;
}

.price-actions .button-subtle {
  flex: 0 0 auto;
}

.price-actions .button:not(.button-subtle) {
  flex: 1 1 180px;
}

.price-card li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
  color: var(--text-muted);
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.team-card {
  --card-offset: 0px;
  margin-top: var(--card-offset);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 16px 20px;
  border-radius: 28px;
  text-align: left;
}

.team-card:nth-child(1) {
  --card-offset: 0px;
}

.team-card:nth-child(2) {
  --card-offset: 28px;
}

.team-card:nth-child(3) {
  --card-offset: 8px;
}

.team-card:nth-child(4) {
  --card-offset: 16px;
}

.team-card:nth-child(5) {
  --card-offset: 10px;
}

.team-card:nth-child(6) {
  --card-offset: 22px;
}

.team-card:nth-child(7) {
  --card-offset: 24px;
}

.team-card:nth-child(8) {
  --card-offset: 6px;
}

.team-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  margin-bottom: 18px;
  border-radius: 22px;
  object-fit: cover;
}

.team-card:hover img {
  transform: scale(1.03);
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  font-family: "Unbounded", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.team-role,
.team-description {
  margin: 0;
}

.team-role {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-description {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-column: span 7;
  aspect-ratio: 16 / 10;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) {
  grid-column: span 5;
}

.gallery-item:nth-child(7),
.gallery-item:nth-child(8) {
  grid-column: span 6;
  aspect-ratio: 12 / 10;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: var(--shadow-strong);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Contact */
.section-contact {
  padding-bottom: 104px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 24px;
}

.contact-list a,
.contact-list span {
  font-size: 1.5rem;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.socials a:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  box-shadow: 0 16px 28px rgba(39, 68, 57, 0.1);
}

.socials span {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.consent-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  padding: 4px 2px;
  -webkit-tap-highlight-color: transparent;
}

.consent-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  border: 1.5px solid rgba(21, 52, 47, 0.24);
  border-radius: 6px;
  outline: none !important;
  background-color: rgba(255, 255, 255, 0.88);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 8px;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consent-check input:focus,
.consent-check input:focus-visible,
.consent-check input:active {
  outline: none !important;
  box-shadow: none !important;
}

.consent-check input:hover {
  border-color: rgba(31, 111, 82, 0.42);
}

.consent-check input:checked {
  border-color: var(--accent-dark);
  background-color: var(--accent-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1.5 5.2 4.5 8.2 10.5 1.8'/%3E%3C/svg%3E");
}

.consent-check span {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
}

.consent-check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form span {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text);
  background: var(--surface-strong);
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
  transform: translateY(-1px);
  border-color: rgba(47, 143, 107, 0.44);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 143, 107, 0.12);
}

.button-submit {
  width: 100%;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 0 0 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.footer-copy {
  display: grid;
  gap: 8px;
}

.footer-content p,
.footer-content a {
  margin: 0;
  color: var(--text-muted);
}

.footer-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-top {
  white-space: nowrap;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  background: rgba(12, 24, 22, 0.76);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(100%, 1000px);
  max-height: 76vh;
  border-radius: 24px;
  transform: scale(0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.lightbox-caption {
  margin: 16px 0 0;
  color: #ecf7f2;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
}

.lightbox.is-open .lightbox-image {
  transform: scale(1);
}

.lightbox.is-open .lightbox-caption {
  opacity: 1;
  transform: translateY(0);
}

.lightbox.is-open .lightbox-close {
  transform: translateY(0);
}

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  background: rgba(12, 24, 22, 0.54);
}

.program-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.program-modal-dialog {
  width: min(100%, 760px);
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: 30px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-strong);
  transform: translateY(16px) scale(0.98);
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 143, 107, 0.72) rgba(21, 52, 47, 0.08);
}

.program-modal-dialog::-webkit-scrollbar {
  width: 10px;
}

.program-modal-dialog::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(21, 52, 47, 0.08);
}

.program-modal-dialog::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 167, 131, 0.88), rgba(31, 111, 82, 0.88));
}

.program-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(92, 182, 145, 0.95), rgba(31, 111, 82, 0.95));
}

.program-modal.is-open .program-modal-dialog {
  transform: translateY(0) scale(1);
}

.program-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(31, 61, 52, 0.08);
}

.program-modal-title {
  margin: 4px 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.program-modal-subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
  line-height: 1.7;
}

.program-modal-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-modal-list li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(21, 52, 47, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.program-modal-time {
  color: var(--accent-dark);
  font-weight: 800;
}

.program-modal-text {
  color: var(--text);
  line-height: 1.65;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* Responsive */
@media (max-width: 1100px) {
  .hero,
  .about-grid,
  .contact-grid,
  .pricing-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-values,
  .stats-card {
    grid-template-columns: 1fr;
  }

  .practice-card,
  .team-card {
    grid-column: auto;
  }

  .practice-card:nth-child(odd),
  .team-card:nth-child(odd) {
    --card-offset: 0px;
  }

  .practice-card:nth-child(even),
  .team-card:nth-child(even) {
    --card-offset: 18px;
  }
}

@media (max-width: 860px) {
  .nav {
    border-radius: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    width: 100%;
    max-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 0;
    padding-top: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .nav-menu.is-open {
    max-height: 320px;
    margin-top: 12px;
    padding-top: 12px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .about-grid,
  .contact-grid,
  .pricing-grid,
  .practices-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card-image {
    height: 380px;
    min-height: 380px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .program-modal-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .practice-card,
  .team-card {
    --card-offset: 0px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(8) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header {
    padding-top: 112px;
  }

  .nav {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero h1 {
    font-size: clamp(1.7rem, 6.8vw, 2.4rem);
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    font-size: clamp(1.55rem, 7.2vw, 2.05rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    margin-top: 6px;
  }

  .program-modal {
    padding: 16px;
  }

  .program-modal-dialog {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }
}
