:root {
  --ink: #1d1d1d;
  --muted: #60656f;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #ded8ce;
  --red: #b7222b;
  --red-dark: #81151d;
  --gold: #c39a3b;
  --green: #315d48;
  --charcoal: #262626;
  --shadow: 0 18px 50px rgba(31, 27, 22, 0.16);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.62;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 1) 430px),
    var(--paper);
}

a {
  color: var(--red-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

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

.topbar {
  background: var(--charcoal);
  color: #f4efe4;
  font-size: 0.92rem;
}

.topbar__inner,
.site-header__inner,
.section,
.footer__inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.topbar a {
  color: #fff3da;
  text-decoration: none;
}

.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(38, 38, 38, 0.12);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 800;
}

.brand__name {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand__tagline {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 21px;
  height: 2px;
  background: currentColor;
  display: block;
}

.nav-toggle {
  gap: 5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.78rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #f0e8d9;
  color: var(--red-dark);
}

.button,
.wp-content .maxbutton,
.page-body .button-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(129, 21, 29, 0.2);
}

.button:hover,
.wp-content .maxbutton:hover,
.page-body .button-submit:hover {
  background: var(--red-dark);
  color: white;
}

.button--secondary {
  background: var(--green);
  box-shadow: 0 8px 20px rgba(49, 93, 72, 0.2);
}

.button--plain {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  min-height: 570px;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  color: white;
  background-color: #1e211c;
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0.42) 58%, rgba(13, 13, 13, 0.16)),
    linear-gradient(0deg, rgba(13, 13, 13, 0.72), rgba(13, 13, 13, 0.06) 45%);
}

.hero__inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.2rem 0 4.5rem;
}

.hero__eyebrow,
.page-hero__eyebrow,
.section__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 650px;
  margin: 1.1rem 0 0;
  color: #fbf7ef;
  font-size: 1.24rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.section {
  padding: 4.2rem 0;
}

.section--tight {
  padding-top: 2.5rem;
}

.section--band {
  width: 100%;
  max-width: none;
  background: #f1eadc;
  border-block: 1px solid var(--line);
}

.section--band > .section__inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section__header {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.section h2,
.page-body h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section__lead,
.page-hero__lead,
.lead {
  color: var(--muted);
  font-size: 1.13rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.class-card,
.news-card,
.detail-card {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 27, 22, 0.08);
}

.class-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
}

.class-card__image {
  aspect-ratio: 4 / 3;
  background: #d7d1c5;
  object-fit: cover;
  width: 100%;
}

.class-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.class-card h3,
.news-card h3,
.detail-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  line-height: 1.18;
}

.class-card p,
.news-card p,
.detail-card p {
  margin-top: 0;
  color: var(--muted);
}

.class-card .button {
  margin-top: auto;
  width: fit-content;
}

.offer-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: center;
  gap: 2rem;
}

.offer-band img {
  width: 100%;
  border: 1px solid rgba(38, 38, 38, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-hero {
  background: #ece3d3;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 3.6rem 0 3rem;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}

.page-body {
  min-width: 0;
  font-size: 1.02rem;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4 {
  line-height: 1.18;
  letter-spacing: 0;
}

.page-body h1 {
  margin-top: 0;
  font-size: 2.5rem;
}

.page-body h3 {
  font-size: 1.45rem;
}

.page-body h4 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.18rem;
}

.page-body p {
  margin: 0 0 1rem;
}

.page-body ul,
.page-body ol {
  padding-left: 1.35rem;
}

.page-body iframe {
  max-width: 100%;
}

.wp-content .wp-block-columns {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.wp-content .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.wp-content .alignleft {
  float: left;
  margin: 0.25rem 1.15rem 0.65rem 0;
}

.wp-content .alignright {
  float: right;
  margin: 0.25rem 0 0.65rem 1.15rem;
}

.wp-content figure {
  margin: 1rem 0;
}

.wp-content figure img,
.wp-content p > img,
.capture-gallery img {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f4efe4;
}

.wp-content::after {
  display: table;
  clear: both;
  content: "";
}

.sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}

.sidebar__panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.1rem;
}

.sidebar h2,
.sidebar h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

.sidebar ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar a {
  color: var(--ink);
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f1;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.28rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9c0b4;
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  background: white;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  display: grid;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #d8d0c3;
}

.capture-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.capture-gallery figure {
  margin: 0;
}

.capture-gallery figcaption,
.gallery-caption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-card {
  padding: 1.1rem;
}

.news-card time {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-weight: 800;
  font-size: 0.9rem;
}

.asset-page img {
  display: block;
  width: min(100%, 920px);
  margin: 1rem 0;
}

.lightbox {
  width: min(1000px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #111;
  color: white;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  color: white;
  cursor: pointer;
}

.footer {
  background: var(--charcoal);
  color: #f5efe5;
  margin-top: 3rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer h2,
.footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.footer a {
  color: #fff3da;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #d7d0c5;
  padding: 0.9rem 0;
}

@media (max-width: 900px) {
  .topbar__inner,
  .site-header__inner {
    width: min(100% - 24px, 760px);
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(31, 27, 22, 0.16);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 510px;
  }

  .hero__inner,
  .page-hero__inner,
  .section,
  .section--band > .section__inner,
  .footer__inner {
    width: min(100% - 24px, 760px);
  }

  .class-card {
    grid-column: span 6;
  }

  .offer-band,
  .page-layout,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .brand__name {
    font-size: 1.28rem;
  }

  .brand__tagline {
    font-size: 0.78rem;
  }

  .hero__copy,
  .section__lead,
  .page-hero__lead {
    font-size: 1rem;
  }

  .class-card {
    grid-column: 1 / -1;
  }

  .contact-form__row,
  .wp-content .wp-block-columns {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .wp-content .alignleft,
  .wp-content .alignright {
    float: none;
    margin: 0.5rem 0 1rem;
  }
}
