:root {
  --bg: #f4ede6;
  --paper: #fffaf4;
  --paper-2: #efe6dc;
  --olive: #50563f;
  --olive-dark: #353a2a;
  --olive-soft: #dfe2d3;
  --gold: #b78a47;
  --gold-dark: #916b32;
  --text: #2d3027;
  --muted: #6f715f;
  --line: rgba(80, 86, 63, 0.18);
  --shadow: 0 20px 60px rgba(53, 58, 42, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(183, 138, 71, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, #fbf5ee 100%);
  line-height: 1.7;
}

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

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

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

.narrow {
  width: min(820px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 237, 230, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--olive-dark);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.brand span {
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--olive-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--olive);
  margin: 5px 0;
}

.section-large {
  padding: 90px 0 70px;
}

.section {
  padding: 78px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 52px;
}

.hero-copy h1,
.page-hero h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  color: var(--olive-dark);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  letter-spacing: 0.025em;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: 0.025em;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

h3 {
  color: var(--olive-dark);
  margin: 0 0 8px;
  font-size: 1.12rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--olive);
  color: #fffaf4;
  box-shadow: 0 12px 30px rgba(80, 86, 63, 0.22);
}

.btn.primary:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  color: var(--olive-dark);
  border-color: var(--line);
  background: rgba(255, 250, 244, 0.55);
}

.btn.secondary:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn.full {
  width: 100%;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.9), rgba(239, 230, 220, 0.65));
  border-radius: 44px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.hero-card img {
  border-radius: 34px;
}

.page-hero {
  padding: 92px 0 54px;
  text-align: center;
}

.page-hero .lead {
  margin-inline: auto;
}

.split-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 32px;
}

.split-intro > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.testimonial-card,
.retreat-card,
.shop-card,
.content-panel,
.profile-card,
.contact-form,
.note-box {
  background: rgba(255, 250, 244, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(53, 58, 42, 0.07);
}

.feature-card span,
.shop-card span {
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.feature-card p,
.testimonial-card p,
.retreat-card p,
.shop-card p,
.content-panel p {
  color: var(--muted);
}

.band {
  background: rgba(80, 86, 63, 0.08);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band-grid p {
  color: var(--muted);
  max-width: 680px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.content-panel.soft {
  background: rgba(223, 226, 211, 0.52);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "•";
  color: var(--gold);
  font-size: 2rem;
  position: absolute;
  left: 4px;
  top: -2px;
}

.instructor-grid {
  grid-template-columns: 0.78fr 1.22fr;
}

.profile-card {
  text-align: center;
  position: sticky;
  top: 104px;
}

.profile-card img {
  width: 220px;
  margin: 0 auto 24px;
  border-radius: 28px;
}

.pill-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 28px;
}

.pill-wrap span {
  border: 1px solid var(--line);
  background: rgba(244, 237, 230, 0.75);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--olive-dark);
  font-size: 0.92rem;
}

.program-list {
  display: grid;
  gap: 18px;
}

.program-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(53, 58, 42, 0.06);
}

.program-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.program-card a {
  color: var(--gold-dark);
  font-weight: 800;
  white-space: nowrap;
}

.testimonial-card p {
  font-size: 1.08rem;
}

.testimonial-card span {
  color: var(--gold-dark);
  font-weight: 700;
}

.note-box {
  margin-top: 24px;
  color: var(--muted);
}

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

.shop-card small {
  display: block;
  color: var(--olive-dark);
  font-weight: 700;
  margin-top: 14px;
}

.shop-card.phase {
  background: rgba(223, 226, 211, 0.52);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 237, 230, 0.55);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.contact-list span {
  color: var(--muted);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--olive-dark);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fffaf4;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(183, 138, 71, 0.28);
  border-color: var(--gold);
}

/* Real photo gallery */
.gallery-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.gallery-section-head p {
  max-width: 780px;
  color: var(--muted);
}

.gallery-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--olive-dark);
  background: rgba(255, 250, 244, 0.82);
  font-weight: 600;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.88);
  box-shadow: 0 12px 28px rgba(53, 58, 42, 0.07);
}

.photo-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-card:hover img {
  transform: scale(1.045);
  filter: brightness(0.96);
}

.photo-card figcaption {
  padding: 12px 14px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.photo-card-error {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #b66;
  background: #fff4f4;
}

.photo-card-error figcaption {
  color: #8a1f1f;
  font-size: 0.8rem;
  word-break: break-all;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 32px;
  background: rgba(28, 31, 24, 0.86);
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox figure {
  margin: 0;
  max-width: min(92vw, 980px);
  max-height: 86vh;
  text-align: center;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox figcaption {
  margin-top: 14px;
  color: #fffaf4;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 250, 244, 0.35);
  background: rgba(255, 250, 244, 0.12);
  color: #fffaf4;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 250, 244, 0.22);
  transform: scale(1.04);
}

.lightbox-close {
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 999px;
  font-size: 3rem;
  line-height: 1;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.no-scroll {
  overflow: hidden;
}

.site-footer {
  background: var(--olive-dark);
  color: rgba(255, 250, 244, 0.82);
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer-brand {
  font-family: Cinzel, Georgia, serif;
  color: #fffaf4;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.site-footer h3 {
  color: #fffaf4;
}

.footer-cta {
  color: #fffaf4;
  border-bottom: 1px solid var(--gold);
  font-weight: 800;
}

.copyright {
  border-top: 1px solid rgba(255, 250, 244, 0.14);
  margin-top: 32px;
  padding-top: 20px;
  color: rgba(255, 250, 244, 0.58);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

@media (max-width: 980px) {
  .gallery-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #fffaf4;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 10px 8px;
  }

  .nav-link.active::after {
    display: none;
  }

  .hero-grid,
  .split-intro,
  .content-grid,
  .instructor-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .shop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .gallery-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .photo-card {
    border-radius: 18px;
  }

  .photo-card figcaption {
    font-size: 0.82rem;
  }

  .lightbox-nav {
    width: 42px;
    height: 54px;
    font-size: 2.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .section-large {
    padding: 54px 0;
  }

  .section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 64px 0 34px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .button-row,
  .band-grid,
  .program-card,
  .contact-list a {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid.two,
  .card-grid.three,
  .shop-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 18px;
    border-radius: 28px;
  }

  .hero-card img {
    border-radius: 22px;
  }
}

@media (max-width: 460px) {
  .gallery-photo-grid {
    grid-template-columns: 1fr;
  }
}