:root {
  color-scheme: light;

  --color-bg: #f3f0ec;

  --color-surface: #fffdf9;

  --color-surface-soft: #f6f3ef;

  --color-surface-strong: #ece8e1;

  --color-border: rgba(21, 17, 18, 0.08);

  --color-card: #ffffff;

  --color-card-muted: #f7f3ee;

  --color-text-primary: #1e1a1f;

  --color-text-secondary: #2f2a2e;

  --color-text-muted: #7c7571;

  --color-accent: #c68a57;
  --color-accent-strong: #a05a31;
  --color-secondary: #977156;
  --color-neutral: #d4cec6;

  --color-location-bg: #faf8f4;
  --color-location-panel: #fff;
  --color-location-text: #1f1712;
  --color-location-meta: rgba(31, 23, 18, 0.75);
  --color-location-border: rgba(31, 23, 18, 0.08);

  --color-contrast: #0d0c11;

  --color-teachers-bg: #fdfbf7;
  --color-teachers-panel: #fff;
  --color-teachers-text: #1c1919;
  --color-teachers-meta: rgba(28, 25, 25, 0.75);

  --color-testimonial-ground: #0c0e14;
  --color-testimonial-panel: #f6f4ef;
  --color-testimonial-text: #191312;
  --color-testimonial-meta: rgba(25, 22, 20, 0.75);
  --color-testimonial-border: rgba(25, 22, 20, 0.08);

  --color-hero-overlay: rgba(8, 8, 12, 0.65);

  --shadow-soft: 0 20px 35px rgba(15, 15, 20, 0.25);

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --space-xs: 0.9rem;

  --space-sm: 1.25rem;

  --space-md: 1.75rem;

  --space-lg: clamp(2.25rem, 3vw, 3.25rem);

  --section-gap: clamp(1.75rem, 2.5vw, 3rem);

  --layout-max-width: 1600px;

  --layout-padding: clamp(1rem, 3vw, 2.5rem);

  font-family:
    "Inter",
    "Space Grotesk",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: #0d0e12;

  --color-surface: #171823;

  --color-surface-soft: #1f202a;

  --color-surface-strong: #101019;

  --color-border: rgba(255, 255, 255, 0.08);

  --color-card: #1d1f29;

  --color-card-muted: #2a2d3a;

  --color-text-primary: #f6f4ef;

  --color-text-secondary: #e2dcd4;

  --color-text-muted: #b2aca4;

  --color-accent: #f2c38e;
  --color-accent-strong: #b07a46;
  --color-secondary: #b08a63;
  --color-neutral: #8f867c;

  --color-location-bg: #0c0f15;
  --color-location-panel: #171926;
  --color-location-text: #f5f3ef;
  --color-location-meta: rgba(245, 243, 238, 0.75);
  --color-location-border: rgba(255, 255, 255, 0.08);

  --color-contrast: #fefefe;

  --color-teachers-bg: #0f1016;
  --color-teachers-panel: #1f1f27;
  --color-teachers-text: #f1eee7;
  --color-teachers-meta: rgba(255, 255, 255, 0.75);

  --color-testimonial-ground: #10131b;
  --color-testimonial-panel: #262731;
  --color-testimonial-text: #f5f3ee;
  --color-testimonial-meta: rgba(243, 240, 234, 0.75);
  --color-testimonial-border: rgba(255, 255, 255, 0.08);

  --color-hero-overlay: rgba(3, 3, 5, 0.75);

  --shadow-soft: 0 20px 35px rgba(0, 0, 0, 0.65);

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --space-xs: 0.9rem;

  --space-sm: 1.25rem;

  --space-md: 1.75rem;

  --space-lg: clamp(2.25rem, 3vw, 3.25rem);

  --section-gap: clamp(1.75rem, 2.5vw, 3rem);

  --layout-max-width: 1600px;

  --layout-padding: clamp(1rem, 3vw, 2.5rem);

  font-family:
    "Inter",
    "Space Grotesk",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

body.menu-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
:root[data-theme="dark"] .site-header {
  background: rgba(20, 19, 24, 0.9);
}
.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(198, 138, 87, 0.8),
    rgba(180, 84, 30, 0.6)
  );
}
.logo-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}
.logo-sub {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.7;
}
.primary-nav {
  display: none;
  align-items: center;
  gap: 1rem;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--color-text-primary);
}
.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lang-switch {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  transition: background 0.3s ease;
}
.lang-switch[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-contrast);
}
.lang-switch:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}
.theme-toggle {
  width: 46px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  position: relative;
  transition: background 0.3s ease;
  padding: 0;
}
.theme-toggle__thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}
html[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(20px);
  background: var(--color-accent-strong);
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  justify-content: center;
}
.menu-toggle span {
  height: 2px;
  background: var(--color-text-primary);
  display: block;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 20, 0.95);
  backdrop-filter: blur(18px);
  padding: 5rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  color: #fff;
  font-size: 1.1rem;
}
.mobile-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.language-group {
  display: flex;
  gap: 0.5rem;
}
/* Constrain the main container and keep padding fluid across devices. */
main {
  width: min(var(--layout-max-width), 100%);
  margin: 0 auto;
  padding: 0 var(--layout-padding) 4rem;
}
.hero {
  position: relative;
  min-height: clamp(65vh, 85vh, 92vh);
  margin: var(--space-lg) 0 clamp(2.5rem, 4vw, 3.5rem);
  border-radius: clamp(18px, 2vw, 30px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 45%
    ),
    linear-gradient(180deg, #06070a, #1a1c21 65%);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
}
.hero-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  filter: saturate(0.7);
  will-change: transform, opacity;
}
.hero-media__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 10, 0.3),
    rgba(6, 7, 10, 0.85)
  );
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-media__fallback {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  z-index: 1;
}
.hero-media__fallback img {
  width: 65%;
}
.hero__content {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  max-width: min(var(--layout-max-width), 1200px);
  margin: 0 auto;
  color: #fff;
  z-index: 2;
  animation: heroEntrance 1.2s var(--ease-smooth) both;
}
.hero__content > * {
  transition: color 0.3s var(--ease-smooth);
}
.hero__eyebrow {
  letter-spacing: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.hero__title {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}
.hero__subtitle {
  max-width: 620px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero__note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth),
    background 0.3s var(--ease-smooth);
}
.btn.primary {
  background: var(--color-accent);
  color: #1a150f;
  box-shadow: 0 12px 35px rgba(198, 138, 87, 0.35);
}
.btn.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.btn:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 3px;
}
.primary-nav a,
.mobile-menu a,
.nav-actions button,
.nav-actions .theme-toggle,
.hero-actions .btn,
.retreat-card a,
.section a {
  transition:
    color 0.3s var(--ease-smooth),
    background 0.3s var(--ease-smooth);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--color-text-primary);
}
/* Section panels stay centered with fluid spacing for any viewport width. */
.section {
  margin: var(--space-lg) auto;
  max-width: min(var(--layout-max-width), 100%);
  background: var(--color-surface);
  border-radius: clamp(18px, 2vw, 32px);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  border-left: 6px solid transparent;
  box-shadow: var(--shadow-soft);
}
.section--studio {
  background: var(--color-surface-soft);
  border-left-color: var(--color-secondary);
}
.section--courses {
  background: #0e1016;
  border-left-color: var(--color-accent);
  color: #fff;
}
.section--courses .section-heading h2,
.section--courses .hero__subtitle,
.section--courses .section p {
  color: #fff;
}
/* provide a calm yet contrast-rich backdrop for the teacher roster */
.section--teachers {
  background: linear-gradient(
    180deg,
    var(--color-teachers-bg),
    var(--color-surface-soft)
  );
  color: var(--color-teachers-text);
  border-left-color: var(--color-accent);
  box-shadow: 0 25px 45px rgba(15, 12, 10, 0.08);
}
.section--teachers h2,
.section--teachers .section-heading p {
  color: var(--color-teachers-text);
}
.section--teachers .section-heading p {
  opacity: 0.8;
}
.section--retreats {
  background: var(--color-surface-strong);
  border-left-color: var(--color-secondary);
}
.section--schedule {
  background: var(--color-surface-soft);
  border-left-color: var(--color-secondary);
}
.section--testimonials {
  background:
    radial-gradient(
      circle at 10% -10%,
      rgba(198, 138, 87, 0.25),
      transparent 40%
    ),
    linear-gradient(180deg, var(--color-testimonial-ground), #12151b 70%);
  border-left-color: var(--color-accent);
  color: var(--color-testimonial-text);
}
.section--testimonials h2,
.section--testimonials .section-heading .section-tag {
  color: var(--color-testimonial-text);
}
.section--testimonials .section-tag {
  color: rgba(245, 243, 238, 0.85);
}
.section--location {
  background: linear-gradient(180deg, #0a0b0f 0%, #06070a 40%, #0f151b 100%);
  border-left-color: var(--color-secondary);
  color: var(--color-location-text);
  position: relative;
  overflow: hidden;
}
.section--location::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(198, 138, 87, 0.35),
    transparent 45%
  );
  opacity: 0.25;
  pointer-events: none;
}
.section--location .section-heading h2 {
  color: var(--color-location-text);
}
.section-heading h2 {
  margin: 0.5rem 0;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--color-text-primary);
}
.section p,
.section-heading p,
.section ul,
.section li {
  color: var(--color-text-secondary);
}
.section-tag {
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.section-grid,
.course-grid,
.teacher-grid,
.retreat-grid,
.testimonial-grid,
.location-grid {
  margin-top: var(--section-gap);
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.section-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.section-grid ul,
.retreat-card ul {
  padding-left: 1.25rem;
  margin: 0;
}
.section-grid li,
.retreat-card li {
  margin-bottom: 0.5rem;
}
.course-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.course-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 21, 26, 0.95);
  color: #f8f7f3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth);
}
.course-card:hover,
.course-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(198, 138, 87, 0.5);
}
.course-card h3 {
  margin-top: 0;
}
.teacher-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* cards rely on solid panels and dark text to keep biographies readable */
.teacher-card {
  padding: 1.75rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(30, 27, 32, 0.08);
  background: var(--color-teachers-panel);
  color: var(--color-teachers-text);
  box-shadow: 0 20px 40px rgba(7, 7, 9, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth);
}
.teacher-card:hover,
.teacher-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(198, 138, 87, 0.35);
}
.teacher-card picture {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.teacher-card img {
  width: clamp(110px, 20vw, 140px);
  height: clamp(110px, 20vw, 140px);
  object-fit: contain;
}
.teacher-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--color-teachers-text);
  letter-spacing: 0.02rem;
}
.teacher-card p {
  margin-bottom: 0;
  color: var(--color-teachers-meta);
  line-height: 1.5;
}
.retreat-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.retreat-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 14, 18, 0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth);
}
.retreat-card:hover,
.retreat-card:focus-within {
  transform: translateY(-6px);

  box-shadow: var(--shadow-soft);

  border-color: rgba(153, 167, 134, 0.9);
}

.schedule-card {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  gap: 1rem;
}

.schedule-day {
  letter-spacing: 0.2rem;

  text-transform: uppercase;

  font-size: 0.8rem;

  margin-bottom: 0.3rem;

  color: var(--color-text-secondary);
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

figure {
  margin: 0;

  padding: 1.85rem;

  border-radius: 1.5rem;

  background: var(--color-testimonial-panel);

  border: 1px solid var(--color-testimonial-border);

  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth);
}

figure:hover,
figure:focus-within {
  transform: translateY(-6px);

  box-shadow: var(--shadow-soft);

  border-color: rgba(162, 123, 108, 0.9);
}

blockquote {
  margin: 0 0 0.75rem;

  font-size: 1.05rem;

  font-style: italic;

  color: var(--color-testimonial-text);

  line-height: 1.65;
}
figure figcaption {
  font-size: 0.95rem;

  color: var(--color-testimonial-meta);
}

.location-grid {
  margin-top: var(--section-gap);

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: clamp(1.25rem, 2vw, 2rem);

  align-items: stretch;
}
.location-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--color-location-panel);
  border: 1px solid var(--color-location-border);
  color: var(--color-location-text);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}
.location-panel .location-label {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-location-meta);
  margin-bottom: 0.5rem;
}
.location-panel p,
.location-panel a {
  color: var(--color-location-text);
  margin: 0.25rem 0;
  line-height: 1.6;
}
.location-panel a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 0.15rem;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}
.location-panel a:hover,
.location-panel a:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.location-map {
  position: relative;
  border-radius: 1.5rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    ),
    var(--color-location-panel);
  border: 1px solid var(--color-location-border);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.25);
}
.location-map p {
  margin: 0;
  color: var(--color-location-text);
  line-height: 1.6;
}
.map-pin {
  width: clamp(60px, 6vw, 90px);
  height: clamp(60px, 6vw, 90px);
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
  margin: 0 auto;
}
.map-pin::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* =========================
   Footer
   ========================= */

.site-footer {
  margin-top: clamp(3rem, 6vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--layout-padding);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-surface-soft) 100%
  );
  border-top: 1px solid var(--color-border);
}

:root[data-theme="dark"] .site-footer {
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-surface-strong) 100%
  );
}

/* Main footer layout */
.footer-content {
  max-width: min(var(--layout-max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--color-text-primary);
}

/* Legal / primary links */
.footer-content > p {
  margin: 0;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.footer-content > a {
  color: var(--color-text-secondary);
  text-decoration: none;
  width: fit-content;
  transition: color 0.3s var(--ease-smooth);
}

.footer-content > a:hover,
.footer-content > a:focus-visible {
  color: var(--color-text-primary);
}

/* Meta block */
.footer-meta {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer-meta p {
  margin: 0;
}

/* Meta description */
.footer-meta__desc {
  max-width: 720px;
  color: var(--color-text-secondary);
}

/* Credits */
.footer-credits {
  font-size: 0.85rem;
}

.footer-credits a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-credits a:hover,
.footer-credits a:focus-visible {
  text-decoration: underline;
}

/* Demo note */
.footer-demo-note {
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-demo-note a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.footer-demo-note a:hover,
.footer-demo-note a:focus-visible {
  color: var(--color-text-primary);
}

/* =========================
   Responsive adjustments
   ========================= */

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, auto);
    align-items: start;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr auto auto;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--color-contrast);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.3s ease;
}
.skip-link:focus-visible {
  top: 1rem;
}
/* Mobile breakpoints ensure compact spacing without sacrificing hierarchy. */
@media (max-width: 768px) {
  .section {
    padding: clamp(1.25rem, 4vw, 2rem);
  }
  .hero__content {
    padding: clamp(1.75rem, 5vw, 3rem);
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Extra-small devices stack CTAs and keep sections tight. */
@media (max-width: 480px) {
  .hero-actions {
    gap: 0.5rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .section {
    margin: 2rem 0;
  }
}
/* Tablet portraits keep padding consistent until desktop nav appears. */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-actions {
    gap: 1rem;
  }
  .section {
    padding: clamp(1.75rem, 3vw, 2.5rem);
  }
}
/* Desktop widths maintain comfortable main padding without over-stretching. */
@media (min-width: 1024px) and (max-width: 1439px) {
  main {
    padding: 0 clamp(2rem, 3vw, 3rem) 4rem;
  }
  .hero {
    margin: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 5vw, 4rem);
  }
}
/* Large desktops add air to hero and cards while staying centered. */
@media (min-width: 1440px) {
  main {
    padding: 0 clamp(3rem, 4vw, 5rem) 4rem;
  }
  .hero {
    min-height: 80vh;
  }
  .section {
    padding: clamp(2.5rem, 3vw, 4rem);
  }
  .course-card,
  .teacher-card,
  .retreat-card,
  figure {
    padding: clamp(1.8rem, 2vw, 2.75rem);
  }
}
/* Ultra-wide screens prevent the layout from becoming too stretched. */
@media (min-width: 1800px) {
  main {
    padding: 0 clamp(4rem, 3vw, 6rem) 4rem;
  }
}
/* Desktop breakpoint: show the full nav and hide the burger menu. */
@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
  .nav-actions {
    gap: 0.75rem;
  }
}
@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;
  }
  .hero-media__video,
  .hero-media__fallback {
    transition: none;
  }
  .hero-media__video {
    display: none;
  }
  .hero-media__fallback {
    opacity: 1;
  }
  .hero__content {
    animation: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
