:root {
  --ink: #171817;
  --ink-soft: #303331;
  --paper: #fffdfa;
  --paper-warm: #f5f2ed;
  --line: #ddd9d2;
  --muted: #6a6f6b;
  --accent: #e85042;
  --accent-dark: #bf342b;
  --green: #55796b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(22, 24, 23, 0.12);
  --shell: min(1180px, calc(100% - 40px));
  --radius: 18px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  font-size: 1.45rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--dark {
  color: var(--white);
  background: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(23, 24, 23, 0.08);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header--overlay {
  position: fixed;
  inset-inline: 0;
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(to bottom, rgba(12, 13, 13, 0.56), transparent);
  backdrop-filter: none;
}

.site-header--overlay.is-scrolled,
.site-header.is-scrolled {
  color: var(--ink);
  border-bottom-color: transparent;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 8px 30px rgba(20, 22, 21, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--white);
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--accent);
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1;
}

.primary-nav,
.primary-nav ul {
  display: flex;
  align-items: center;
}

.primary-nav {
  gap: 24px;
}

.primary-nav ul {
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav ul a::after {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.primary-nav ul a:hover::after,
.primary-nav ul a:focus-visible::after,
.primary-nav ul a[aria-current="page"]::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline-start: 22px;
  border-inline-start: 1px solid currentColor;
  opacity: 0.86;
}

.language-switch:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  place-items: center;
  color: inherit;
  border: 0;
  background: transparent;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.menu-close,
.menu-toggle[aria-expanded="true"] .menu-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(920px, 100svh);
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #202221;
}

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

.hero-media {
  background: url("/assets/images/intro-2.jpg") center 34% / cover no-repeat;
  transform: scale(1.015);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 21, 21, 0.88) 0%, rgba(20, 21, 21, 0.6) 48%, rgba(20, 21, 21, 0.15) 100%),
    linear-gradient(0deg, rgba(20, 21, 21, 0.5), transparent 45%);
}

[dir="rtl"] .hero-shade {
  background:
    linear-gradient(-90deg, rgba(20, 21, 21, 0.88) 0%, rgba(20, 21, 21, 0.6) 48%, rgba(20, 21, 21, 0.15) 100%),
    linear-gradient(0deg, rgba(20, 21, 21, 0.5), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-height) + 80px) 100px;
}

.hero-content > * {
  max-width: 760px;
}

.hero h1 {
  max-width: 920px;
  margin-block-end: 22px;
  font-size: clamp(3rem, 7vw, 6.3rem);
}

.hero h1 span {
  color: #ff6658;
}

.eyebrow {
  margin-block-end: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #ff8a7f;
}

.hero-lines {
  margin-block-end: 14px;
  font-weight: 700;
}

.hero-text {
  max-width: 670px;
  margin-block-end: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(232, 80, 66, 0.24);
}

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

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.button--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

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

.button--secondary:hover {
  color: var(--white);
  background: var(--ink);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  inset-block-end: 28px;
  inset-inline-start: 50%;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--white);
  animation: scroll-cue 1.8s infinite;
  transform: translateX(-50%);
}

@keyframes scroll-cue {
  0%, 100% { opacity: 0.25; transform: translate(-50%, 0); }
  45% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 14px); }
}

.section-heading {
  max-width: 730px;
  margin-block-end: clamp(42px, 6vw, 70px);
}

.section-heading h2 {
  margin-block-end: 16px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

.section--dark .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px;
}

.training-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 rgba(22, 24, 23, 0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.training-card:nth-child(4),
.training-card:nth-child(5),
.training-card:nth-child(6),
.training-card:nth-child(7) {
  grid-column: span 3;
}

.training-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.training-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 0.78;
  background: var(--paper-warm);
}

.training-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.training-card:hover .training-card__image img {
  transform: scale(1.04);
}

.training-card__content {
  padding: 27px;
}

.training-card__content h3 {
  margin-block-end: 12px;
}

.training-card__content h3 a {
  text-decoration: none;
}

.training-card__content p {
  min-height: 5.25em;
  margin-block-end: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

[dir="rtl"] .text-link svg,
[dir="rtl"] .button svg {
  transform: scaleX(-1);
}

.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  position: absolute;
  top: -100px;
  inset-inline-end: -80px;
  width: 400px;
  height: 400px;
  content: "“";
  color: rgba(255, 255, 255, 0.03);
  font-family: Georgia, serif;
  font-size: 32rem;
  line-height: 1;
}

.testimonial-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.testimonial-grid blockquote {
  margin: 0;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.testimonial-grid img {
  width: 70px;
  height: 70px;
  margin-block-end: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-grid p {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.5;
}

.testimonial-grid cite {
  color: #ff887d;
  font-size: 0.9rem;
  font-style: normal;
}

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

.gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--paper-warm);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.gallery a:hover img {
  filter: saturate(1.1);
  transform: scale(1.06);
}

.gallery--compact {
  max-width: 300px;
  gap: 5px;
}

.gallery--compact a {
  border-radius: 4px;
}

.lightbox {
  width: min(1000px, calc(100% - 30px));
  max-width: none;
  max-height: calc(100dvh - 30px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(12, 13, 13, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox button {
  position: absolute;
  z-index: 2;
  top: -12px;
  inset-inline-end: -12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 90px);
  border-radius: 10px;
  object-fit: contain;
}

.lightbox figcaption {
  padding-block-start: 8px;
  text-align: center;
}

.page-hero {
  padding-block: clamp(80px, 11vw, 145px);
  background:
    radial-gradient(circle at 10% 20%, rgba(232, 80, 66, 0.08), transparent 30%),
    var(--paper-warm);
}

.page-hero h1 {
  margin-block-end: 22px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

.page-hero .narrow > p:last-child {
  max-width: 700px;
  margin-block-end: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.detail-hero {
  position: relative;
  display: grid;
  min-height: 570px;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.detail-hero > img,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-hero > img {
  object-fit: cover;
}

.detail-hero__shade {
  background: linear-gradient(0deg, rgba(16, 17, 17, 0.9) 0%, rgba(16, 17, 17, 0.25) 70%);
}

.detail-hero__content {
  position: relative;
  padding-block: 80px;
}

.detail-hero__content h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
}

.detail-hero__content .eyebrow a {
  color: #ff8a7f;
}

.article-copy {
  padding-block: clamp(65px, 9vw, 110px);
}

.article-copy p {
  margin-block-end: 1.45em;
}

.article-copy .lead,
.info-page .lead {
  margin-block-end: 1.7em;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 650;
  line-height: 1.55;
}

.article-cta {
  margin-block-start: 60px;
  padding: clamp(30px, 6vw, 55px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
}

.article-cta h2 {
  margin-block-end: 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-end: clamp(70px, 10vw, 130px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-pagination a {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  padding: 25px 32px;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.article-pagination a + a {
  border-inline-start: 1px solid var(--line);
  text-align: end;
}

.article-pagination a:hover {
  color: var(--white);
  background: var(--ink);
}

.article-pagination span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-pagination a:hover span {
  color: rgba(255, 255, 255, 0.65);
}

.table-wrap {
  margin-block: 40px 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(22, 24, 23, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

thead th {
  color: var(--white);
  background: var(--ink);
}

tbody th {
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: var(--paper-warm);
}

.note {
  margin-block-end: 34px;
  padding: 18px 22px;
  border-inline-start: 4px solid var(--accent);
  color: var(--muted);
  background: var(--paper-warm);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(45px, 8vw, 100px);
}

.about-photo {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.about-layout .article-copy {
  max-width: 700px;
  padding: 0;
}

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

.contact-card {
  display: grid;
  min-height: 210px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.contact-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.contact-card svg {
  width: 34px;
  height: 34px;
  margin-block-end: 26px;
  color: var(--accent);
}

.contact-card > span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-card strong {
  margin-block-start: 4px;
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.contact-card--whatsapp {
  color: var(--white);
  border-color: #217b51;
  background: #217b51;
}

.contact-card--whatsapp svg,
.contact-card--whatsapp > span {
  color: rgba(255, 255, 255, 0.8);
}

.empty-state {
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-block-end: 12px;
  color: var(--accent);
  font-size: 3rem;
}

.empty-state h2 {
  margin-block-end: 32px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.site-footer {
  padding-block-start: clamp(70px, 9vw, 110px);
  color: rgba(255, 255, 255, 0.78);
  background: #111312;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: clamp(40px, 7vw, 90px);
}

.site-footer h2 {
  margin-block-end: 24px;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

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

.footer-links li + li {
  margin-block-start: 9px;
}

.footer-links a,
.footer-contact a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 14px;
  font-style: normal;
}

.footer-contact > * {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact svg {
  min-width: 19px;
  color: #ff7569;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-block-start: 70px;
  padding-block: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
}

.footer-bottom a {
  color: inherit;
}

.language-landing {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 30px;
  text-align: center;
  background: var(--paper-warm);
}

.language-landing main {
  max-width: 650px;
}

.language-landing .brand-mark {
  margin-inline: auto;
}

.language-landing h1 {
  margin-block: 24px 36px;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease var(--delay, 0ms), transform 500ms ease var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    z-index: -1;
    inset: var(--header-height) 0 auto;
    display: block;
    max-height: calc(100dvh - var(--header-height));
    padding: 28px 20px 36px;
    overflow-y: auto;
    color: var(--ink);
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 35px rgba(22, 24, 23, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav ul {
    display: grid;
    gap: 0;
  }

  .primary-nav ul a {
    display: block;
    padding-block: 13px;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .primary-nav ul a::after {
    display: none;
  }

  .language-switch {
    margin-block-start: 22px;
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .training-card,
  .training-card:nth-child(n) {
    grid-column: span 6;
  }

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

  .footer-grid section:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  body {
    font-size: 16px;
  }

  .section {
    padding-block: 70px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background-position: 58% center;
  }

  [dir="rtl"] .hero-media {
    background-position: 44% center;
  }

  .hero-shade,
  [dir="rtl"] .hero-shade {
    background: linear-gradient(0deg, rgba(18, 19, 19, 0.88) 0%, rgba(18, 19, 19, 0.55) 65%, rgba(18, 19, 19, 0.38) 100%);
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .button-row .button {
    width: 100%;
  }

  .training-grid {
    gap: 18px;
  }

  .training-card,
  .training-card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .training-card__content p {
    min-height: auto;
  }

  .testimonial-grid,
  .about-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: relative;
    top: auto;
    max-width: 460px;
    margin-inline: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

  .detail-hero {
    min-height: 470px;
  }

  .detail-hero__content {
    padding-block: 55px;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-pagination a + a {
    border-block-start: 1px solid var(--line);
    border-inline-start: 0;
  }

  th,
  td {
    min-width: 190px;
    padding: 16px;
  }

  .footer-grid section:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    gap: 20px;
  }
}

/* Fitness Assist legal pages */
.legal-page {
  color: #18312d;
  background: #f6f8f6;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #dce5e1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.legal-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #12352f;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-brand__mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #198c72, #55b879);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 650;
}

.legal-nav a {
  color: #526762;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: #08765f;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 300px);
  justify-content: center;
  gap: 64px;
  padding-block: 76px 100px;
}

.legal-document {
  min-width: 0;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: #08765f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 0;
  color: #102824;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-updated {
  margin: 18px 0 0;
  color: #6b7d78;
  font-size: 14px;
}

.legal-intro {
  margin: 36px 0 56px;
  color: #314b45;
  font-size: 20px;
  line-height: 1.65;
}

.legal-section {
  padding-block: 32px;
  border-top: 1px solid #dce5e1;
}

.legal-section h2,
.legal-contact h2 {
  margin: 0 0 16px;
  color: #12352f;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-section p,
.legal-section li,
.legal-contact p {
  color: #3c514c;
  font-size: 16px;
  line-height: 1.78;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-contact {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid #cce0d8;
  border-radius: 22px;
  background: #eaf4ef;
}

.legal-contact p {
  margin: 0;
}

.legal-contact a,
.legal-aside a {
  color: #08765f;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-aside {
  position: sticky;
  top: 116px;
  align-self: start;
  padding: 28px;
  border: 1px solid #dce5e1;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(24, 49, 45, 0.06);
}

.legal-aside strong {
  display: block;
  color: #12352f;
  font-size: 21px;
}

.legal-aside p {
  margin: 12px 0 20px;
  color: #526762;
  font-size: 15px;
  line-height: 1.65;
}

.legal-footer {
  border-top: 1px solid #dce5e1;
  background: #ffffff;
}

.legal-footer > div {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #647670;
  font-size: 13px;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer a {
  color: #36514a;
}

@media (max-width: 880px) {
  .legal-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-block: 16px;
  }

  .legal-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 52px 72px;
  }

  .legal-aside {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  .legal-document h1 {
    font-size: 42px;
  }

  .legal-intro {
    margin-block: 28px 42px;
    font-size: 18px;
  }

  .legal-section {
    padding-block: 26px;
  }

  .legal-footer > div {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Legacy JA Jason theme fidelity */
:root {
  --ink: #171717;
  --paper: #ffffff;
  --paper-warm: #f6f6f6;
  --line: #e5e5e5;
  --muted: #666666;
  --accent: #f56a14;
  --accent-dark: #d95708;
  --header-height: 150px;
  --radius: 0px;
  --shadow: none;
  --shell: min(1200px, calc(100% - 40px));
}

body {
  color: #666666;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.625;
}

h1,
h2,
h3 {
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: normal;
}

h1 { font-size: 42px; }
h2 { font-size: 31px; }
h3 { font-size: 25px; }

.section {
  padding-block: 88px;
}

.site-header,
.site-header--overlay {
  height: var(--header-height);
  border: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header--overlay {
  position: absolute;
  color: #ffffff;
  background: transparent;
}

.site-header--overlay.is-scrolled,
.site-header.is-scrolled {
  color: inherit;
  background: inherit;
  box-shadow: none;
  backdrop-filter: none;
}

.header-inner {
  height: 40px;
  padding-block-start: 110px;
  box-sizing: content-box;
}

.brand {
  width: 40px;
  min-width: 40px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.primary-nav {
  flex: 1;
  justify-content: center;
  gap: 0;
}

.primary-nav ul {
  gap: 0;
}

.primary-nav ul a {
  display: block;
  margin-inline: 11px;
  padding-block: 9px;
  color: inherit;
  font-size: 13px;
  line-height: 22px;
}

.primary-nav ul a::after {
  inset-block-end: 0;
  height: 2px;
  background: #f56a14;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-switch {
  gap: 6px;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

.site-sidebar {
  position: fixed;
  z-index: 310;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250px;
  padding-block-end: 30px;
  overflow-y: auto;
  color: #a6a6a6;
  background: #171717;
  transform: translateX(-100%);
  transition: transform 400ms ease;
}

.sidebar-open .site-sidebar {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  background: rgba(10, 10, 12, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.site-header,
main,
.site-footer {
  transition: transform 400ms ease;
}

.sidebar-open .site-header,
.sidebar-open main,
.sidebar-open .site-footer {
  transform: translateX(250px);
}

.sidebar-heading {
  position: relative;
  height: 38px;
  color: #ffffff;
  border-bottom: 1px solid #303030;
  text-align: center;
  text-transform: uppercase;
}

.sidebar-heading strong {
  font-size: 14px;
  line-height: 38px;
}

.sidebar-heading button {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 38px;
  height: 38px;
  color: #777777;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.sidebar-cta {
  display: block;
  margin: 24px 20px 20px;
  padding: 8px 10px;
  color: #ffffff;
  border: 1px solid #aaaaaa;
  text-align: center;
  text-decoration: none;
}

.sidebar-menu,
.sidebar-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-menu a {
  display: block;
  padding: 8px 24px;
  color: #a6a6a6;
  border-bottom: 1px solid #242424;
  font-size: 13px;
  text-decoration: none;
}

.sidebar-menu a:hover,
.sidebar-menu a:focus-visible,
.sidebar-menu a[aria-current="page"] {
  color: #f56a14;
}

.sidebar-menu .has-children > ul a {
  padding-inline-start: 38px;
  border-bottom: 0;
}

.sidebar-menu--secondary {
  margin-block-start: 20px;
  padding-block-start: 14px;
  border-top: 1px solid #303030;
}

.sidebar-menu--secondary a {
  border-bottom: 0;
}

.hero {
  min-height: 733px;
  align-items: start;
}

.hero-media {
  background-position: center 34%;
}

.hero-shade,
[dir="rtl"] .hero-shade {
  background: rgba(25, 26, 35, 0.79);
}

.hero-content {
  padding-block: 240px 80px;
}

.hero-content > * {
  max-width: 900px;
}

.hero h1 {
  margin-block-end: 0;
  color: #ffffff;
  font-size: clamp(58px, 6.4vw, 81px);
  font-weight: 700;
  line-height: 1.086;
  letter-spacing: -2px;
}

.hero-rotator {
  position: relative;
  height: 98px;
  max-width: 1000px;
  margin-block-end: 16px;
}

.hero-rotator p {
  position: absolute;
  inset: 0;
  margin: 0;
  color: #ff3334;
  font-size: clamp(58px, 6.4vw, 81px);
  font-weight: 700;
  line-height: 1.086;
  letter-spacing: -2px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-rotator p:nth-child(2) { color: #62bd51; }
.hero-rotator p:nth-child(3) { color: #44a7e8; }

.hero-rotator p.is-active {
  opacity: 1;
  transform: none;
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: #b5b5b5;
  font-size: 14px;
}

.hero-text a {
  color: #f56a14;
  font-weight: 700;
}

.scroll-cue {
  border-radius: 13px;
}

.training-showcase {
  padding-block: 40px 80px;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-inline: -20px;
  direction: ltr;
}

.training-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 40px;
  padding-inline: 20px;
}

.training-card,
.training-card:nth-child(n) {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.training-card:hover {
  box-shadow: none;
  transform: none;
}

.training-card__image {
  display: block;
  aspect-ratio: auto;
  overflow: hidden;
  background: #f5f5f5;
}

.training-card__image img {
  width: 100%;
  height: auto;
  object-fit: initial;
  transition: none;
}

.training-card:hover .training-card__image img {
  transform: none;
}

.training-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  color: #ffffff;
  background: rgba(245, 106, 20, 0.93);
  transform: translate(100%, 100%);
  transition: transform 400ms ease;
}

[dir="rtl"] .training-card__content {
  direction: rtl;
}

.training-card:hover .training-card__content,
.training-card:focus-within .training-card__content {
  transform: translate(0, 0);
}

.training-card__content h3 {
  margin-block-end: 18px;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.5;
}

.training-card__content h3 a,
.training-card__content p,
.training-card__content .text-link {
  color: #ffffff;
}

.training-card__content p {
  min-height: 0;
  margin-block-end: 14px;
  font-size: 14px;
}

.training-card__content .text-link {
  margin-block-start: auto;
  font-size: 12px;
}

.testimonials .section-heading {
  display: none;
}

.testimonials {
  padding-block: 100px;
  background: #171717;
}

.testimonial-grid {
  position: relative;
  display: block;
  min-height: 250px;
}

.testimonial-grid blockquote {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  color: #888888;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.testimonial-grid blockquote.is-active {
  display: block;
  animation: testimonial-in 500ms ease both;
}

.testimonial-grid img {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
}

.testimonial-grid p {
  margin-block-end: 12px;
  font-size: 31px;
  line-height: 1.5;
}

.testimonial-grid cite {
  color: #666666;
}

@keyframes testimonial-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.gallery-section {
  display: none;
}

.site-footer {
  padding-block-start: 75px;
  color: #a8a8a8;
  background: #f6f6f6;
}

.site-footer h2 {
  color: #272727;
  font-size: 16px;
  line-height: 1;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #272727;
}

.footer-contact svg {
  color: #777777;
}

.footer-bottom {
  border-top-color: #e5e5e5;
}

.page-hero {
  padding-block: 68px 25px;
  background: #ffffff;
}

.page-hero .eyebrow {
  display: none;
}

.page-hero h1 {
  margin-block-end: 12px;
  color: #000000;
  font-size: 42px;
  line-height: 1;
}

.page-hero .narrow > p:last-child {
  color: #666666;
  font-size: 14px;
}

.detail-hero {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  color: #000000;
  background: #ffffff;
}

.detail-hero__shade {
  display: none;
}

.detail-hero__content {
  order: 1;
  width: var(--shell);
  margin-inline: auto;
  padding-block: 68px 22px;
}

.detail-hero__content .eyebrow {
  display: none;
}

.detail-hero__content h1 {
  margin: 0;
  color: #000000;
  font-size: 42px;
  line-height: 1;
}

.detail-hero > img {
  position: static;
  order: 2;
  width: var(--shell);
  height: auto;
  margin-inline: auto;
  object-fit: initial;
}

.article-copy {
  width: var(--shell);
  max-width: 1200px;
  padding-block: 40px 70px;
}

.article-copy .lead,
.info-page .lead {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.625;
}

.article-copy p {
  margin-block-end: 11px;
}

.article-cta {
  display: none;
}

.article-pagination {
  max-width: 1200px;
  margin-block-end: 70px;
  border-radius: 0;
}

.about-layout .article-copy {
  font-size: 14px;
}

.contact-card,
.table-wrap,
.about-photo {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .site-header,
  .site-header--overlay {
    position: absolute;
    height: 70px;
  }

  .header-inner {
    height: 70px;
    padding-block-start: 0;
    box-sizing: border-box;
  }

  .primary-nav {
    display: none;
  }

  .header-tools {
    margin-inline-start: auto;
  }

  .site-header--overlay.is-scrolled,
  .site-header.is-scrolled {
    color: inherit;
    background: inherit;
  }

  .hero-content {
    padding-block-start: 180px;
  }

  .training-card__content {
    justify-content: flex-end;
    padding: 28px;
    background: linear-gradient(0deg, rgba(23, 23, 23, 0.9), rgba(23, 23, 23, 0.05) 75%);
    transform: none;
  }

  .training-card__content p {
    display: none;
  }

  .training-card__content .text-link {
    margin-block-start: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 1200px);
  }

  .sidebar-open .site-header,
  .sidebar-open main,
  .sidebar-open .site-footer {
    transform: translateX(250px);
  }

  .language-switch {
    font-size: 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-block: 165px 60px;
  }

  .hero h1,
  .hero-rotator p {
    font-size: clamp(39px, 12vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
  }

  .hero-rotator {
    height: 125px;
  }

  .training-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-inline: 0;
  }

  .training-column {
    gap: 24px;
    padding-inline: 0;
  }

  .testimonial-grid p {
    font-size: 22px;
  }

  .page-hero,
  .detail-hero__content {
    padding-block-start: 42px;
  }

  .page-hero h1,
  .detail-hero__content h1 {
    font-size: 34px;
  }
}
