/* beKind SA - designed on a 1440 grid. Sizes below are the 1920 Figma values scaled to 1440 (x0.75). */

:root {
  --orange: #f4900e;
  --yellow: #fdee6c;
  --ink: #030303;
  --gutter: clamp(1rem, 13vw, 188px);
  --content: 885px;
  --border: 4px solid #000;
  --h2: clamp(2rem, 4.17vw, 3.75rem);
  --lead: clamp(1.0625rem, 1.67vw, 1.5rem);
  --text: clamp(0.9375rem, 1.25vw, 1.125rem);
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #000;
}

h1, h2 {
  font-weight: 900;
  font-size: var(--h2);
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  margin: 0;
}

.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 1rem;
}

.wrap-wide {
  max-width: 1066px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.gradient {
  background: linear-gradient(to bottom, var(--orange) 13%, var(--yellow));
}

.panel {
  background: #fff;
  border: var(--border);
}

/* Header + side menu */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(0.25rem, 1.4vw, 1.25rem) var(--gutter);
}

.site-logo {
  display: block;
  width: clamp(100px, 14vw, 200px);
  height: auto;
}

.menu-toggle {
  padding: 0;
  border: 0;
  background: none;
}

.menu-toggle img {
  display: block;
  width: clamp(26px, 3.2vw, 46px);
  height: auto;
}

.site-menu {
  --bs-offcanvas-width: min(280px, 80vw);
  background: #111;
  color: #fff;
}

.site-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.site-menu a:hover {
  color: var(--orange);
}

.menu-contact {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.menu-contact a {
  display: inline;
  padding: 0;
  font-size: inherit;
  font-weight: 500;
  text-transform: none;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .site-header {
    padding-block: 1rem;
  }

  .site-logo {
    width: 160px;
  }

  .menu-toggle img {
    width: 44px;
  }
}

/* Hero */

.hero {
  position: relative;
  height: clamp(440px, 64vw, 924px);
  overflow: hidden;
  container-type: size;
  background: #222 url('../images/hero.jpg') center / cover;
}

.hero iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-play {
  position: absolute;
  width: clamp(150px, 22.7vw, 327px);
  opacity: 0.9;
}

.hero-logo {
  position: relative;
  width: clamp(200px, 32vw, 460px);
}

.hero-tagline {
  position: relative;
  margin: 0;
  padding: 0.25rem 1rem;
  background: linear-gradient(to right, #e9b85a, #e8a55a);
  color: #fff;
  font-size: clamp(0.875rem, 2.5vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Intro */

.intro {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.intro p {
  max-width: 1065px;
  margin: 0 auto clamp(1.5rem, 2.5vw, 2rem);
  padding-inline: 1rem;
  font-size: var(--lead);
  font-weight: 600;
  line-height: 1.56;
}

.intro img {
  display: block;
  width: 75.5%;
  max-width: 1088px;
  height: auto;
  margin: 0 auto;
}

/* Programmes */

.programmes {
  padding-block: clamp(2rem, 7.8vw, 113px);
}

.programme {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1rem, 3vw, 43px);
  margin-bottom: clamp(1.5rem, 2.4vw, 35px);
}

.programme:last-child {
  margin-bottom: 0;
}

.programme img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--border);
}

.programme h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: #000;
}

.programme p {
  margin: 0;
  font-size: var(--text);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .programme {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 4.5vw, 65px);
  }

  .programme img {
    flex: 0 0 38%;
    min-width: 0;
  }
}

/* About */

.about {
  padding-block: clamp(2rem, 3.75vw, 54px) clamp(2rem, 5.3vw, 76px);
}

.about .team {
  margin-block: clamp(1.5rem, 3.5vw, 51px) 0;
}

.about .team img {
  display: block;
  width: 100%;
  aspect-ratio: 365 / 455;
  object-fit: cover;
  border: var(--border);
}

.about p {
  max-width: var(--content);
  margin: 0 auto 1.25em;
  text-align: center;
  font-size: var(--text);
  line-height: 1.67;
}

.about p:last-child {
  margin-bottom: 0;
}

/* News */

.news {
  padding-block: clamp(1.5rem, 6.8vw, 98px) clamp(2rem, 5vw, 72px);
}

.news .wrap-wide {
  padding-top: clamp(1.5rem, 3.5vw, 51px);
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: var(--border);
}

.news-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}

.news-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.read-more {
  margin-top: auto;
  padding: 0.4rem 1rem;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}

.news-card:hover .read-more {
  background: var(--orange);
  color: #000;
}

.news-empty {
  text-align: center;
  font-size: var(--lead);
  font-weight: 600;
  margin: 0;
}

/* Blog pages */

.blog-head {
  padding: clamp(1.5rem, 4vw, 3.5rem) 1rem;
}

.blog-head h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
}

@media (max-width: 767px) {
  .blog-head {
    padding: 2.5rem var(--gutter);
  }

  .blog-body .wrap {
    padding-inline: var(--gutter);
  }

  .blog-head h1 {
    font-size: 2.25rem;
  }
}

.blog-body {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.post-hero {
  max-width: 1440px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
}

.post-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: var(--border);
}

.post-content {
  font-size: var(--text);
  line-height: 1.7;
}

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

/* Footer */

.site-footer {
  background: #000;
  color: #fdfcfc;
  padding: clamp(1.5rem, 3.1vw, 42px) 1rem;
}

.site-footer p {
  margin: 0;
  font-size: var(--text);
  line-height: 1.25;
}

.site-footer a {
  color: inherit;
}

.footer-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-address {
  margin: 0;
}

.footer-legal p + p {
  margin-top: 1.25em;
}

@media (min-width: 768px) {
  .footer-details {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    text-align: left;
  }

  .footer-address {
    flex: 0 1 435px;
    padding-right: clamp(1.5rem, 4vw, 54px);
    text-align: right;
  }

  .footer-legal {
    flex: 0 1 435px;
    padding-left: clamp(1.5rem, 4vw, 54px);
    border-left: 2px solid #fff;
  }
}

.partners {
  padding: clamp(1rem, 1.8vw, 25px) 1rem;
}

.partners img {
  display: block;
  width: 100%;
  max-width: 885px;
  height: auto;
  margin: 0 auto;
}

/* Mobile: all content sits inside the header's side margins */
@media (max-width: 767px) {
  :root {
    --gutter: clamp(1.25rem, 8vw, 3rem);
  }

  .wrap,
  .wrap-wide,
  .intro h1,
  .intro p,
  .news > h2,
  .site-footer,
  .partners {
    padding-inline: var(--gutter);
  }

  .intro img {
    width: calc(100% - 2 * var(--gutter));
  }
}

.news-card-full .post-content {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.news-card-full .post-content > :last-child {
  margin-bottom: 0;
}
