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

/* CMS blocks: the content comes from Strapi; this file only controls presentation. */
.brand-logo {
  width: auto;
  max-width: 240px;
  max-height: 68px;
  object-fit: contain;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
  background: var(--cms-primary);
  border: 1px solid var(--cms-primary);
  border-radius: 6px;
  text-decoration: none;
}

.button--secondary {
  color: var(--cms-primary);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  align-items: center;
  gap: 40px;
  padding: 36px;
  background: #fff;
  border-radius: 8px;
}

.hero h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 68px); line-height: 1.05; }
.hero p { margin: 0; color: #555; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__media { width: 100%; max-height: 420px; object-fit: contain; }

.card-grid { grid-template-columns: repeat(var(--cms-columns, 3), minmax(0, 1fr)); }
.portfolio-card { padding-bottom: 24px; }
.portfolio-card h3 { min-height: 0; padding: 24px 28px 12px; font-size: 28px; }
.portfolio-card p,
.portfolio-card .eyebrow,
.portfolio-card > a { display: block; margin: 0; padding: 0 28px 12px; }
.card__icon { display: block; padding: 24px 28px 0; color: var(--cms-primary); font-size: 28px; font-weight: 700; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 28px 14px; }
.card__tags span { padding: 4px 8px; background: #eee; border-radius: 4px; font-size: 12px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-block img { width: 100%; height: auto; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 30px 42px;
  background: #fff;
}
.site-footer__brand img { max-width: 220px; max-height: 58px; }
.site-footer__brand p { margin: 8px 0 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 991.98px) {
  .hero { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; }
  .site-header__tools .button { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

body {
  margin: 0;
  color: #202124;
  font-family: var(--cms-font-family);
  background: #e7e7e7;
}

a {
  color: inherit;
}

.site-header {
  min-height: 86px;
  padding: 0;
  background: #ffffff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
  z-index: 20;
}

.site-header__inner {
  min-height: 86px;
  padding: 0 24px 0 38px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  align-items: stretch;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  color: var(--cms-primary);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--cms-primary);
}

.brand-mark {
  width: 54px;
  height: 54px;
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f6f6f6 48%, #d6d6d6 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 13px;
  background: var(--cms-primary);
  transform-origin: center;
}

.brand-mark::before {
  left: 10px;
  transform: skewY(-28deg);
}

.brand-mark::after {
  right: 10px;
  transform: skewY(28deg);
}

.site-header__toggle {
  display: none;
}

.site-header__nav {
  display: flex;
  justify-content: center;
}

.site-header__nav .template-nav {
  width: min(100%, 950px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav .template-nav__item {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
}

.site-header__nav .template-nav__link {
  min-width: 118px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
  border-bottom: 4px solid transparent;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.site-header__nav .template-nav__link:hover,
.site-header__nav .template-nav__link.active {
  color: var(--cms-primary);
  border-bottom-color: var(--cms-primary);
}

.template-nav--child {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 30;
}

.template-nav__item:hover > .template-nav--child {
  display: block;
}

.site-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
}

.template-control {
  width: 52px;
  height: 52px;
  padding: 0;
  color: #9b9b9b;
  background: transparent;
  border: 0;
  font-size: 45px;
  line-height: 1;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  padding: 0;
  color: #171717;
  background: transparent;
  border: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.language-switcher__caret {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #171717;
}

.language-switcher {
  position: relative;
}

.language-switcher__menu {
  display: none;
  min-width: 160px;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  padding: 6px 0;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 40;
}

.language-switcher:hover .language-switcher__menu {
  display: block;
}

.language-switcher__item {
  display: block;
  padding: 9px 14px;
  color: #202124;
  text-decoration: none;
}

.language-switcher__item.active,
.language-switcher__item:hover {
  color: #ffffff;
  background: var(--cms-primary);
}

.page {
  width: min(100%, 1510px);
  max-width: none;
  margin: 0 auto;
  padding: 42px 42px 80px;
}

.section {
  margin: 0;
}

.section + .section {
  margin-top: 34px;
}

.section-heading h2 {
  margin: 0 0 18px;
  color: #555555;
  font-size: clamp(48px, 4.3vw, 68px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.portfolio-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.34);
}

.portfolio-card__media {
  height: 360px;
  overflow: hidden;
  background: #333333;
}

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

.portfolio-card h3 {
  min-height: 146px;
  margin: 0;
  padding: 42px 34px 28px;
  color: #202124;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}

.portfolio-card p,
.portfolio-card .eyebrow,
.portfolio-card > a {
  display: none;
}

.site-footer {
  display: none;
}

@media (max-width: 991.98px) {
  .site-header {
    min-height: 146px;
  }

  .site-header__inner {
    min-height: 146px;
    padding: 0 28px;
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    gap: 0;
    position: relative;
  }

  .site-header__toggle {
    width: 64px;
    height: 64px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    box-shadow: none;
    justify-self: start;
    grid-column: 1;
    grid-row: 1;
  }

  .site-header__toggle:focus {
    box-shadow: none;
  }

  .site-header__toggle-icon {
    width: 55px;
    height: 48px;
    background-image: linear-gradient(#9b9b9b, #9b9b9b);
    background-size: 55px 8px;
    background-position: center 6px;
    background-repeat: no-repeat;
    position: relative;
  }

  .site-header__toggle-icon::before,
  .site-header__toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 55px;
    height: 8px;
    background: #9b9b9b;
    border-radius: 2px;
  }

  .site-header__toggle-icon::before {
    top: 20px;
  }

  .site-header__toggle-icon::after {
    top: 34px;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .brand-name {
    display: none;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .site-header__tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 0;
  }

  .template-control {
    display: none;
  }

  .language-switcher__button {
    gap: 18px;
    font-size: 37px;
    font-weight: 400;
  }

  .language-switcher__caret {
    border-left-width: 14px;
    border-right-width: 14px;
    border-top-width: 12px;
  }

  .site-header__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 0 0 20px;
    background: #ffffff;
  }

  .site-header__nav:not(.is-open) {
    display: none;
  }

  .site-header__nav .template-nav {
    width: 100%;
    display: block;
  }

  .site-header__nav .template-nav__link {
    min-width: 0;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 8px;
    border-bottom-width: 0;
    font-size: 22px;
  }

  .page {
    width: 100%;
    padding: 55px 36px 34px;
  }

  .section-heading h2 {
    margin-bottom: 24px;
    font-size: 67px;
    line-height: 1;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portfolio-card__media {
    height: auto;
    aspect-ratio: 650 / 333;
  }

  .portfolio-card h3 {
    min-height: 220px;
    padding: 56px 43px 34px;
    font-size: 64px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 104px;
  }

  .site-header__inner {
    min-height: 104px;
    padding: 0 20px;
    grid-template-columns: 64px minmax(0, 1fr) 72px;
  }

  .site-header__toggle-icon,
  .site-header__toggle-icon::before,
  .site-header__toggle-icon::after {
    width: 40px;
    height: 6px;
  }

  .site-header__toggle-icon {
    background-size: 40px 6px;
  }

  .site-header__toggle-icon::before {
    top: 17px;
  }

  .site-header__toggle-icon::after {
    top: 29px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .language-switcher__button {
    gap: 12px;
    font-size: 28px;
  }

  .language-switcher__caret {
    border-left-width: 10px;
    border-right-width: 10px;
    border-top-width: 9px;
  }

  .page {
    padding: 43px 28px 30px;
  }

  .section-heading h2 {
    font-size: 52px;
  }

  .portfolio-card h3 {
    min-height: 158px;
    padding: 45px 34px 26px;
    font-size: 48px;
  }
}

.card-grid { grid-template-columns: repeat(var(--cms-columns, 3), minmax(0, 1fr)); }
.portfolio-card { padding-bottom: 24px; }
.portfolio-card h3 { min-height: 0; padding: 24px 28px 12px; font-size: 28px; }
.portfolio-card p,
.portfolio-card .eyebrow,
.portfolio-card > a { display: block; margin: 0; padding: 0 28px 12px; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }

@media (max-width: 991.98px) {
  .card-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
