:root {
  --ink: #14251e;
  --deep-green: #173c2d;
  --deep-green-hover: #0f2c20;
  --paper: rgba(248, 246, 240, 0.95);
  --paper-solid: #f8f6f0;
  --line: rgba(20, 37, 30, 0.18);
  --muted: #5f6964;
  --shadow: 0 13px 34px rgba(8, 23, 15, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #567433;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  min-height: clamp(520px, 61vw, 700px);
  overflow: hidden;
  color: #fff;
  background-image: url("assets/top-section-background.jpeg");
  background-position: center center;
  background-size: cover;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 24, 15, 0.68) 0%, rgba(7, 24, 15, 0.39) 38%, rgba(7, 24, 15, 0.04) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.09) 0%, rgba(0, 0, 0, 0.22) 100%);
}

.site-nav {
  position: absolute;
  z-index: 5;
  top: 24px;
  right: clamp(18px, 4vw, 70px);
  left: clamp(18px, 4vw, 70px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 64px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(250, 248, 242, 0.84);
  box-shadow: 0 7px 28px rgba(20, 35, 27, 0.15);
  color: #17221d;
  backdrop-filter: blur(10px);
}

.site-name {
  display: none;
  margin-right: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: 0.93rem;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-content {
  width: min(720px, calc(100% - 40px));
  padding-top: clamp(142px, 17vw, 205px);
  margin-left: clamp(24px, 5vw, 86px);
}

.hero h1,
.content-card h2,
.thank-you-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  line-height: 0.98;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.42rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

.benefits {
  margin: 13px 0 27px;
  font-size: clamp(0.92rem, 1.45vw, 1.15rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

.benefits span {
  padding: 0 0.12em;
}

.primary-button,
.submit-button,
.back-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--deep-green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(5, 20, 12, 0.26);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible,
.submit-button:hover,
.submit-button:focus-visible,
.back-button:hover,
.back-button:focus-visible {
  background: var(--deep-green-hover);
  box-shadow: 0 11px 28px rgba(5, 20, 12, 0.32);
  transform: translateY(-2px);
}

.wave-divider {
  position: absolute;
  right: -1%;
  bottom: -4px;
  left: -1%;
  z-index: 3;
  height: clamp(118px, 13vw, 190px);
  pointer-events: none;
}

.wave-line {
  width: 100%;
  height: 100%;
}

.wave-line path,
.golden-spiral path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-line path {
  stroke-width: 12;
  vector-effect: non-scaling-stroke;
}

.golden-spiral {
  position: absolute;
  top: 0;
  left: 79.2%;
  width: clamp(138px, 12.5vw, 184px);
  height: clamp(138px, 12.5vw, 184px);
  overflow: visible;
  transform: translateX(-50%);
}

.golden-spiral path {
  stroke-width: 12;
}

.site-main {
  min-height: 100vh;
  padding: 18px 0 clamp(78px, 9vw, 130px);
  background-image:
    linear-gradient(rgba(18, 41, 25, 0.08), rgba(18, 41, 25, 0.16)),
    url("assets/bottom-section-background.jpeg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.sections-wrap {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
}

.content-card {
  padding: clamp(24px, 3.1vw, 40px);
  margin: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
  scroll-margin-top: 100px;
}

.content-card h2 {
  margin-bottom: 22px;
  color: #19372a;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.welcome-copy p {
  max-width: 33rem;
  margin: 0;
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
}


.photo-frame {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(20, 37, 30, 0.14);
  border-radius: 5px;
  background: rgba(238, 235, 227, 0.72);
}

.site-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.cover-photo {
  object-fit: cover;
}

.fitted-photo::before {
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image: var(--fit-image);
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(16px);
  opacity: 0.38;
  transform: scale(1.08);
}

.fitted-photo::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(238, 235, 227, 0.2);
  content: "";
}

.movement-frame .site-photo,
.teaching-frame .site-photo,
.teacher-image {
  object-fit: contain;
  object-position: center;
}

.photo-placeholder {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 37, 30, 0.14);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.52), rgba(238,235,227,0.42));
  color: #2b342f;
  text-align: center;
}

.photo-placeholder::after {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(20, 37, 30, 0.08);
  border-radius: 3px;
  content: "";
  pointer-events: none;
}

.photo-placeholder strong {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
}

.placeholder-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 50px;
  border: 2px solid rgba(20, 37, 30, 0.13);
  border-radius: 5px;
}

.placeholder-icon::before {
  position: absolute;
  bottom: 8px;
  left: 9px;
  width: 27px;
  height: 27px;
  border-top: 2px solid rgba(20, 37, 30, 0.13);
  border-left: 2px solid rgba(20, 37, 30, 0.13);
  content: "";
  transform: rotate(45deg);
}

.placeholder-icon::after {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(20, 37, 30, 0.13);
  border-radius: 50%;
  content: "";
}

.landscape {
  min-height: 275px;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(450px, 1.3fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: stretch;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.36);
}

.schedule-item h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.schedule-item p {
  margin: 1px 0;
  font-size: 0.92rem;
}

.schedule-time {
  font-weight: 700;
}

.schedule-location {
  margin-top: 7px !important;
  color: var(--muted);
  line-height: 1.35;
}

.schedule-item address {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.35;
}

.calendar-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid var(--deep-green);
  border-radius: 6px;
}

.calendar-icon::before,
.calendar-icon::after {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 10px;
  border-radius: 3px;
  background: var(--deep-green);
  content: "";
}

.calendar-icon::before {
  left: 9px;
}

.calendar-icon::after {
  right: 9px;
}

.calendar-icon span {
  position: absolute;
  top: 12px;
  right: 7px;
  bottom: 7px;
  left: 7px;
  background:
    linear-gradient(var(--deep-green), var(--deep-green)) 0 0 / 100% 2px no-repeat,
    radial-gradient(circle, var(--deep-green) 2px, transparent 3px) 0 8px / 10px 10px;
}

.calendar-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.64);
}

.calendar-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1.42fr;
  gap: 18px;
}

.community-main {
  min-height: 430px;
}

.community-stack {
  display: grid;
  gap: 18px;
}

.community-stack .photo-placeholder,
.community-stack .photo-frame {
  min-height: 206px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.teacher-photo {
  height: 300px;
  min-height: 0;
}

.teacher-card p {
  margin: 14px 0 0;
  font-weight: 600;
}

.contact-intro {
  margin: -8px 0 24px;
  color: var(--muted);
}

.contact-intro a {
  color: var(--deep-green);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}

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

.form-grid label span {
  color: #47534d;
  font-size: 0.88rem;
}

.full-width {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 37, 30, 0.19);
  border-radius: 4px;
  outline: none;
  background: rgba(255,255,255,0.54);
  color: var(--ink);
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 150px;
  padding: 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--deep-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 60, 45, 0.12);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.submit-button {
  min-width: 260px;
  margin: 24px auto 0;
  border: 0;
  cursor: pointer;
}

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

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(12, 35, 22, 0.34), rgba(12, 35, 22, 0.34)),
    url("assets/bottom-section-background.jpeg") center / cover;
}

.thank-you-panel {
  width: min(650px, 100%);
  padding: clamp(34px, 6vw, 64px);
  border-radius: 8px;
  background: var(--paper-solid);
  box-shadow: var(--shadow);
  text-align: center;
}

.thank-you-panel h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.thank-you-panel p {
  margin: 16px 0 28px;
}

@media (max-width: 860px) {
  .hero {
    min-height: 610px;
    background-position: 48% center;
  }

  .site-nav {
    justify-content: space-between;
  }

  .site-name,
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    display: none;
    width: min(320px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 18px;
    background: rgba(250, 248, 242, 0.97);
    box-shadow: 0 14px 32px rgba(8, 23, 15, 0.22);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(23, 60, 45, 0.08);
  }

  .nav-links a::after {
    display: none;
  }

  .hero-content {
    padding-top: 165px;
    margin-left: 24px;
  }

  .welcome-card,
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .welcome-copy p {
    max-width: none;
  }

  .schedule-layout {
    gap: 20px;
  }

  .calendar-frame,
  .calendar-frame iframe {
    min-height: 520px;
  }

  .site-main {
    background-attachment: scroll;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 650px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 24, 15, 0.73) 0%, rgba(7, 24, 15, 0.42) 65%, rgba(7, 24, 15, 0.16) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 100%);
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .hero-subtitle,
  .benefits {
    max-width: 92%;
  }

  .benefits {
    line-height: 1.8;
  }

  .wave-divider {
    right: -8%;
    left: -8%;
    width: 116%;
  }

  .golden-spiral {
    left: 69%;
    width: 132px;
  }

  .sections-wrap {
    width: min(100% - 22px, 1050px);
  }

  .content-card {
    padding: 23px 18px;
    margin-bottom: 14px;
  }

  .community-grid,
  .teachers-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .community-main {
    min-height: 275px;
  }

  .community-stack .photo-placeholder,
  .community-stack .photo-frame,
  .landscape {
    min-height: 230px;
  }

  .movement-frame .site-photo,
  .teaching-frame .site-photo,
  .teacher-image {
    object-fit: contain;
    object-position: center;
  }

  .teacher-photo {
    height: min(105vw, 420px);
    min-height: 0;
  }

  .teachers-grid {
    gap: 22px;
  }

  .full-width {
    grid-column: auto;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }

  .calendar-frame,
  .calendar-frame iframe {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

body.popup-open {
  overflow: hidden;
}

.seminar-popup[hidden] {
  display: none;
}

.seminar-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.seminar-popup-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(5, 15, 10, 0.78);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.seminar-popup-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-radius: 10px;
  background: #f8f6f0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.seminar-flyer {
  width: 100%;
  max-height: calc(100dvh - 32px);
  border-radius: 10px;
  object-fit: contain;
}

.seminar-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(20, 37, 30, 0.9);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.seminar-popup-close:hover,
.seminar-popup-close:focus-visible {
  background: var(--deep-green-hover);
  outline: 3px solid rgba(255, 255, 255, 0.74);
  outline-offset: 2px;
}

