:root {
  --bg: #f2f3f1;
  --bg-elevated: #fafaf8;
  --surface: #ffffff;
  --ink: #1a221f;
  --ink-soft: #3d4a44;
  --muted: #6b776f;
  --line: #d8ddd8;
  --accent: #2f3d38;
  --accent-hover: #24302c;
  --accent-soft: #e4ebe6;
  --accent-mid: #5a7266;
  --focus: #3d5c4e;
  --error: #8b3a3a;
  --success: #2d5a45;
  --radius: 2px;
  --radius-lg: 6px;
  --shadow: 0 12px 40px rgba(26, 34, 31, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 var(--space-sm);
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 243, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #f7f8f6 !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: fadeSlide 0.35s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  animation: riseIn 0.8s var(--ease) both;
}

.reveal-delay {
  animation: riseIn 0.9s var(--ease) 0.15s both;
}

.reveal-delay-2 {
  animation: riseIn 1s var(--ease) 0.28s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #f7f8f6;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* Hero variants */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--accent);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 1.2s var(--ease);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 34, 31, 0.25) 0%,
    rgba(26, 34, 31, 0.55) 45%,
    rgba(26, 34, 31, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0 var(--space-xl);
  color: #f4f6f4;
  max-width: 40rem;
}

.hero-content h1 {
  color: #f7f8f6;
}

.hero-content p {
  color: rgba(247, 248, 246, 0.88);
  font-size: 1.125rem;
  max-width: 34rem;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(232, 237, 233, 0.85);
  margin-bottom: var(--space-sm);
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(168, 189, 176, 0.22), transparent 50%),
    linear-gradient(180deg, #e9ece8 0%, var(--bg) 100%);
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  max-width: 38rem;
  font-size: 1.125rem;
}

.page-hero-split {
  display: grid;
  gap: var(--space-lg);
  align-items: end;
}

@media (min-width: 860px) {
  .page-hero-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.page-hero-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-tight {
  padding: var(--space-lg) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: var(--space-lg);
}

.section-intro p {
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Offer / course cards — interactive containers */
.offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.offer-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
}

.offer-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.offer-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.offer-card h3 {
  font-size: 1.25rem;
}

.offer-card h3 a {
  color: inherit;
  text-decoration: none;
}

.offer-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Feature band */
.feature-band {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 860px) {
  .feature-band {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .feature-band.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .feature-band.reverse .feature-copy {
    order: 2;
  }
}

.feature-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.feature-copy h2 {
  max-width: 16ch;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Quotes */
.quote-list {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 800px) {
  .quote-list {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent-mid);
  padding: 1.5rem 1.5rem 1.35rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1rem;
}

.quote footer {
  font-size: 0.9rem;
  color: var(--muted);
}

.quote.compact p {
  font-size: 1.05rem;
}

/* Pricing */
.price-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}

.price-block .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  margin: 0.5rem 0;
}

.price-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.form-row textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent-mid);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  display: none;
}

.form-row.has-error .field-error {
  display: block;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--error);
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e8f2ec;
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: #f7eaea;
  color: var(--error);
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details dt {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Blog */
.post-list {
  display: grid;
  gap: var(--space-md);
}

.post-item {
  display: grid;
  gap: 1rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .post-item {
    grid-template-columns: 14rem 1fr;
    align-items: start;
  }
}

.post-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: var(--space-lg);
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.article-hero img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: var(--space-md) 0 var(--space-lg);
}

/* Reviews */
.review-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 800px) {
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review-card {
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.review-card.wide {
  grid-column: 1 / -1;
}

.story-block {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 800px) {
  .story-block {
    grid-template-columns: 1fr 1fr;
  }
}

/* Team */
.team-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.team-card h3 {
  margin-bottom: 0.2rem;
}

.team-role {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: var(--space-lg);
  font-size: 1.5rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--accent-soft);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 1rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: rgba(247, 248, 246, 0.88);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2,
.site-footer h3 {
  color: #f7f8f6;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(232, 237, 233, 0.92);
}

.site-footer a:hover {
  color: #fff;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(232, 237, 233, 0.2);
  font-size: 0.88rem;
  color: rgba(232, 237, 233, 0.7);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  max-width: 32rem;
  margin-left: auto;
  display: none;
  animation: riseIn 0.45s var(--ease);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Open days schedule */
.schedule {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.schedule-row:last-child {
  border-bottom: none;
}

@media (min-width: 700px) {
  .schedule-row {
    grid-template-columns: 10rem 1fr 8rem;
    align-items: center;
    gap: 1rem;
  }
}

.schedule-date {
  font-weight: 600;
  color: var(--ink);
}

.schedule-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Misc */
.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-mid);
  margin-bottom: 0.5rem;
}

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

.list-plain li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.list-plain li:last-child {
  border-bottom: none;
}

.cta-band {
  background: var(--accent);
  color: #f4f6f4;
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band h2 {
  color: #f7f8f6;
}

.cta-band p {
  color: rgba(247, 248, 246, 0.85);
  max-width: 34rem;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #f7f8f6;
  color: var(--accent);
}

.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--accent-hover);
}

.cta-band .btn-secondary {
  border-color: rgba(247, 248, 246, 0.4);
  color: #f7f8f6;
}

.cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.img-placeholder {
  background: var(--accent-soft);
  min-height: 12rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
