:root {
  --bg: #f6f2ec;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #2d2c2a;
  --muted: #68635d;
  --line: #ded6ca;
  --primary: #70806e;
  --primary-dark: #5f6f5d;
  --accent: #c8ab78;
  --shadow: 0 10px 30px rgba(38, 34, 29, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f4efe8 0%, #f8f5f0 100%);
  line-height: 1.6;
}

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

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

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

.card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.card-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
}

[data-include="header"] {
  position: sticky;
  top: 0;
  z-index: 50;
}

[data-include="header"] > .site-header {
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: blur(12px);
  background: rgba(248, 245, 240, 0.82);
  border-bottom: 1px solid rgba(222, 214, 202, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b8c3b4, var(--primary));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.brand-title {
  font-size: 1.7rem;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.brand-logo {
  display: block;
  height: 78px;
  width: auto;
  max-width: min(100%, 620px);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.98rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a,
.nav-trigger {
  color: var(--muted);
}

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

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-trigger::after,
.nav-item:focus-within .nav-trigger::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(222, 214, 202, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(18, 77, 96, 0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.nav-item.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 18px;
}

.nav-submenu a {
  line-height: 1.4;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-button {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: white !important;
  box-shadow: var(--shadow);
}

.breadcrumb-wrap {
  padding: 18px 0 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4efe8 0%, #f8f5f0 100%);
}

.breadcrumb-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 171, 120, 0.14), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(112, 128, 110, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 50%);
  pointer-events: none;
}

.breadcrumb {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem; /* ~14px */
}

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

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

.breadcrumb-separator {
  color: var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 171, 120, 0.14), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(112, 128, 110, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: stretch;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 540px;
}

.hero-copy {
  padding: 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin: 0 0 8px;
  font-weight: 700;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.76);
}

h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.7rem);
  line-height: 0.98;
  margin: 0 0 14px;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 500;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0;
  font-weight: 500;
}

.hero-tagline {
  font-size: 1.22rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 22px;
}

.hero-copy p:not(.eyebrow):not(.hero-tagline):not(.hero-note) {
  font-size: 1.08rem;
  color: #4a4540;
  margin: 0 0 14px;
  max-width: 54ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(222, 214, 202, 0.95);
  color: var(--text);
}

.button-secondary:hover {
  background: white;
}

.hero-note {
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem; /* ~14px */
}

.hero-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 25%),
    radial-gradient(circle at 75% 25%, rgba(200, 171, 120, 0.3), transparent 18%),
    linear-gradient(135deg, #d8dacc 0%, #c2c8bb 30%, #b8af9f 60%, #ebe4da 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.65;
}

.hero-orb-1 {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.55);
  top: 60px;
  right: 90px;
}

.hero-orb-2 {
  width: 240px;
  height: 240px;
  background: rgba(112, 128, 110, 0.15);
  bottom: 80px;
  left: 40px;
}

.hero-orb-3 {
  width: 120px;
  height: 120px;
  background: rgba(200, 171, 120, 0.35);
  bottom: 170px;
  right: 160px;
}

.hero-panel {
  position: absolute;
  inset: auto 24px 24px 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-panel strong {
  font-size: 1.05rem;
}

.hero-panel span {
  color: var(--muted);
}

.section {
  scroll-margin-top: 100px;
  padding: 34px 0 18px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-intro {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.offer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offer-visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e1d5;
  display: block;
}

.offer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.offer-body p,
.course-card p,
.split-content p,
.contact-card p,
.feature-content p,
.hero-panel span,
.contact-list span {
  color: var(--muted);
}

.offer-body .button,
.course-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.course-card {
  padding: 30px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-meta {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #4b4742;
  font-size: 0.98rem;
}

.course-meta p {
  margin: 0 0 12px;
}

.feature-band {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(247, 243, 236, 0.2), rgba(70, 80, 72, 0.12)),
    linear-gradient(180deg, #eee3d4, #d0c6b8 52%, #8fa08a 100%);
}

.feature-band-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(90deg, rgba(38, 31, 24, 0.55), rgba(38, 31, 24, 0.14) 55%, rgba(255, 255, 255, 0.04));
}

.feature-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 48px;
  color: white;
}

.feature-content h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 12px;
}

.feature-content p:not(.eyebrow) {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
  max-width: 44ch;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.split-visual,
.split-content,
.contact-card,
.map-card {
  min-height: 100%;
}

.split-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e7dccd, #c9c6bb, #dde6d2);
}

.room-shape {
  position: absolute;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.room-shape-1 {
  left: 8%;
  bottom: 12%;
  width: 44%;
  height: 26%;
}

.room-shape-2 {
  right: 10%;
  bottom: 20%;
  width: 26%;
  height: 38%;
}

.room-shape-3 {
  left: 14%;
  top: 16%;
  width: 58%;
  height: 34%;
}

.split-content {
  padding: 36px;
}

.split-content p {
  margin: 0 0 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.contact-card,
.map-card {
  padding: 34px;
}

.contact-card p {
  margin: 0 0 14px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  color: #4a4540;
}

.contact-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.map-placeholder {
  min-height: 290px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(0deg, #ebe5db 0 24px, #e2dbcf 24px 25px),
    repeating-linear-gradient(90deg, #ebe5db 0 24px, #e2dbcf 24px 25px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 58%;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-footer {
  padding: 26px 0 44px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-layout,
  .contact-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 > .course-card:last-child {
    grid-column: 1 / -1;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.94rem;
  }
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0 18px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .nav-trigger::after,
  .nav-submenu {
    display: none;
  }

  .hero-grid,
  .split-layout,
  .contact-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual {
    min-height: auto;
  }

  .hero-copy {
    padding: 42px 28px;
  }

  .hero-visual {
    min-height: 400px;
  }

  .feature-content {
    padding: 34px 26px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .breadcrumb {
    font-size: 0.9rem;
    gap: 6px;
  }

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

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    font-size: 0.88rem;
  }

  .hero-copy p:not(.eyebrow):not(.hero-tagline):not(.hero-note) {
    font-size: 1rem;
  }

  .split-content,
  .contact-card,
  .map-card,
  .course-card,
  .offer-body {
    padding: 24px;
  }

  .feature-content {
    padding: 28px 22px;
  }
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: inherit;
}

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

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(18, 77, 96, 0.14);
  border-radius: 14px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(18, 77, 96, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #124d60;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    max-width: min(100%, 300px);
    height: auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid rgba(18, 77, 96, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(18, 77, 96, 0.10);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .main-nav .nav-button,
  .nav-trigger {
    width: 100%;
    justify-content: center;
  }

  .nav-item {
    width: 100%;
  }

  .hero-grid,
  .split-layout,
  .contact-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) {
  .main-nav {
    display: flex !important;
  }
}

/* Subpages */
body.subpage .hero-copy {
  gap: 0;
}

body.subpage .hero-copy .eyebrow {
  margin-bottom: 18px;
}

body.subpage .hero-copy h1 {
  margin-bottom: 22px;
}

body.subpage .split-content h2 {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 24px;
}

body.subpage .split-content p,
body.subpage .split-content li,
body.subpage .split-content strong {
  color: #4a4540;
}

body.subpage .split-content p {
  margin: 0 0 18px;
  line-height: 1.75;
}

body.subpage .split-content ul {
  list-style: none;
  margin: 0;
  padding-left: 1.75rem;
}

body.subpage .split-content li {
  position: relative;
  margin: 0 0 10px;
  line-height: 1.75;
}

body.subpage .split-content li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: -1.1rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
}

body.subpage .participants-line {
  margin-top: 30px;
}

body.subpage .split-content h2 + ul + h2 {
  margin-top: 40px;
}
