/*** VARIABLES ***/

:root {
  /* Colors */
  --color-text: #000;
  --color-link: #333;
  --color-link-hover: #666;
  --color-border: #666;
  --color-background: #fff;

  /* Fonts */
  --font-body: "Work Sans", sans-serif;
  --font-heading: "Work Sans", sans-serif;
}

/*** RESET  ***/
/*-- https://andy-bell.co.uk/a-modern-css-reset/ --*/

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

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/*** TYPOGRAPHY ***/
body {
  font-family: var(--font-body);
}

p {
  font-weight: 400;
  margin-bottom: 15px;
}

span {
}

li {
}

input {
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

a {
  color: var(--color-link);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

:hover {
  transition: all 0.3s ease-in-out;
}

a:hover {
  color: #666;
}

/****** HEADER ******/

/*--- Site Logo ---*/

.site-header {
  padding: 1em 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-center {
  text-align: center;
}

.header-logo img {
  max-height: 60px;
  height: auto;
}

/* --- Site Navigation --- */

.site-nav {
  position: relative;
  background: #fff;
}

/* Toggle Button */
.nav-toggle {
  display: block;
  cursor: pointer;
  background: none;
  border: none;
  padding: 1em;
  z-index: 1001;
}

.nav-toggle svg {
  width: 25px;
  height: 25px;
}

/* Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0; /* keep it at 0 */
  transform: translateX(-100%);
  height: 100vh;
  width: 80%;
  max-width: 320px;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 1000;
}

/* When menu is toggled */
.menu.show {
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

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

.menu-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #eee;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-toggle-icon {
  margin-left: auto;
  font-weight: bold;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  transition: max-height 0.3s ease;
  flex-direction: column;
}

.submenu--open {
  max-height: 500px;
}

.submenu li a {
  padding: 0.75em 1em;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900; /* less than .mobile-drawer (1000), more than page content */
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop Layout */
@media (min-width: 769px) {
  .logo-center .header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-drawer {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    background: transparent;
    box-shadow: none;
    display: block !important;
  }
  .menu {
    flex-direction: row;
    display: flex;
  }

  .menu-item {
    position: relative;
  }

  .menu-item > a {
    border: none;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    display: none;
    z-index: 1000;
  }

  .menu-item:hover > .submenu {
    display: block;
  }

  .menu-item > .submenu--open {
    border-bottom: 1px solid #ccc;
  }

  .menu-toggle-icon {
    display: none;
  }
}

/**** FOOTER ****/

footer {
  margin-top: 60px;
  margin-bottom: 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #666;
  padding: 25px 0;
}

.footer-menu ul {
  margin: 0;
  line-height: 1;
  text-align: center;
  margin-bottom: 5px;
}

.footer-menu ul li {
  list-style: none;
}

.footer-menu li {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.footer-menu li:after {
  content: "/";
  padding: 0 10px;
}

.footer-menu li:last-child:after {
  content: "";
}

.footer-menu li a:link,
.footer-menu li a:visited {
  color: var(--color-link);
}

.footer-menu li a:hover,
.footer-menu li a:focus {
  color: var(--color-link-hover);
}

.footer-copyright {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

@media screen and (min-width: 900px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-menu ul {
    text-align: right;
    margin-bottom: 0px;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media screen and (min-width: 1140px) {
  .footer-content-wrap {
    padding: 0;
  }
}

/*--- GENERAL  ---*/

.content-area {
  margin-top: 100px;
  margin-bottom: 100px;
  /* padding: 0 15px; */
}

.home-page .content-area {
  margin-top: 80px;
}

.content-width {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

@media screen and (min-width: 700px) {
  .content-width {
    padding: 0;
  }
  .content-area {
    margin-top: 130px;
  }
}

@media screen and (min-width: 1140px) {
  .content-width {
    padding: 0;
  }
}

/*** LAYOUT ***/

.flexbox {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.columns-1 > .card,
.columns-2 > .card,
.columns-3 > .card,
.columns-4 > .card {
  flex: 0 0 100%;
}

@media screen and (min-width: 600px) {
  .columns-2 > .card,
  .columns-3 > .card,
  .columns-4 > .card {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

@media screen and (min-width: 960px) {
  .columns-3 > .card {
    flex: 0 0 calc((100% - 2rem * 2) / 3);
  }

  .columns-4 > .card {
    flex: 0 0 calc((100% - 2rem * 3) / 4);
  }
}

.columns-top {
  align-content: flex-start;
}

.columns-center {
  align-content: center;
}

.columns-bottom {
  align-content: flex-end;
}

/*** SECTION BLOCKS ***/

.section-block-wrap {
  margin: 30px auto;
}

.section-block-wrap.divider {
  padding-bottom: 15px;
}

.section-block-wrap.divider:after {
  content: "";
  display: block;
  border-bottom: 1px solid #666;
  max-width: 1140px;
  margin: 30px auto 0 auto;
}

.section-block-wrap.divider:last-child:after {
  border-bottom: none;
}

.section-block-content-wrap,
.section-intro-wrap {
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 900px) {
  .section-block-content-wrap,
  .section-intro-wrap {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .section-block-wrap.divider:after {
    margin-left: auto;
    margin-right: auto;
  }
}

/*--- Overlay Positioning ---*/

/*--- Overlay Positioning ---*/

/* Shared positioning styles for imageBlock, slideshowBlock, and infoCardBlock */
.imageBlock.text-location-overlay .block-text,
.slideshowBlock .text-location-overlay .block-text,
.infoCardBlock.text-location-overlay .block-text {
  position: absolute;
  z-index: 2;
}

/* CENTER */
.imageBlock .overlay-center,
.slideshowBlock .overlay-center,
.infoCardBlock .overlay-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* TOP CENTER */
.imageBlock .overlay-top-center,
.slideshowBlock .overlay-top-center,
.infoCardBlock .overlay-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* BOTTOM CENTER */
.imageBlock .overlay-bottom-center,
.slideshowBlock .overlay-bottom-center,
.infoCardBlock .overlay-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Additional positions — only for imageBlock and slideshowBlock */
.imageBlock .overlay-top-left,
.slideshowBlock .overlay-top-left {
  top: 0;
  left: 0;
}

.imageBlock .overlay-top-right,
.slideshowBlock .overlay-top-right {
  top: 0;
  right: 0;
}

.imageBlock .overlay-bottom-left,
.slideshowBlock .overlay-bottom-left {
  bottom: 0;
  left: 0;
}

.imageBlock .overlay-bottom-right,
.slideshowBlock .overlay-bottom-right {
  bottom: 0;
  right: 0;
}

.imageBlock .overlay-center-left,
.slideshowBlock .overlay-center-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.imageBlock .overlay-center-right,
.slideshowBlock .overlay-center-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

/*--- SECTION BLOCKS - Image Block ---*/

.imageBlock .section-block-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imageBlock .block-image {
  position: relative;
  z-index: 1;
}

.imageBlock .full-width .block-image {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

.imageBlock .full-width .block-image img {
  max-width: none;
  height: auto;
}

.imageBlock .text-location-overlay .block-text {
  position: absolute;
  z-index: 2;
}

.imageBlock .block-text.align-left {
  text-align: left;
  align-items: flex-start;
}
.imageBlock .block-text.align-center {
  text-align: center;
  align-items: center;
}
.imageBlock .block-text.align-right {
  text-align: right;
  align-items: flex-end;
}

/*--- SECTION BLOCKS - Text Block ---*/

.textBlock .section-block-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.textBlock .block-text.align-left {
  text-align: left;
  align-items: flex-start;
}
.textBlock .block-text.align-center {
  text-align: center;
  align-items: center;
}
.textBlock .block-text.align-right {
  text-align: right;
  align-items: flex-end;
}

.textBlock .block-headline {
  margin-bottom: 1rem;
}

/*--- SECTION BLOCKS - Slideshow Block ---*/

.slideshowBlock .text-location-overlay .block-text {
  position: absolute;
  z-index: 2;
}

.slideshowBlock .block-text.align-left {
  text-align: left;
  align-items: flex-start;
}
.slideshowBlock .block-text.align-center {
  text-align: center;
  align-items: center;
}
.slideshowBlock .block-text.align-right {
  text-align: right;
  align-items: flex-end;
}

.swiper-slide:not(.swiper-slide-visible) .block-text {
  display: none;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--color-link);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: var(--color-link-hover);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.slider-pagination-wrap {
  margin-top: 5px;
}

.swiper-pagination-bullet-active {
  background: var(--color-link-hover);
}

/*--- SECTION BLOCKS - Info Card Block ---*/

.info-card-block-content-wrap {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.infoCardBlock .text-location-overlay .card-overlay-content {
  position: absolute;
  z-index: 2;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* Top aligned */
.infoCardBlock .overlay-top {
  top: 0;
  transform: translateX(-50%);
}

/* Center aligned */
.infoCardBlock .overlay-center {
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Bottom aligned */
.infoCardBlock .overlay-bottom {
  bottom: 0;
  transform: translateX(-50%);
}

.card-text-wrap {
  padding: 1em;
  text-align: center;
}

/*--- SECTION BLOCKS - Column Block ---*/

.column-block {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2em;
  align-items: center;
}

.column-block.layout-image-right {
  flex-direction: column-reverse;
}

.column-block.layout-image-left {
  flex-direction: column;
}

.column-block.layout-image-right.mobile-image-first {
  flex-direction: column;
}

/* Desktop layout — layout direction based on field */
@media screen and (min-width: 960px) {
  .column-block.layout-image-right {
    flex-direction: row-reverse;
  }

  .column-block.layout-image-right.mobile-image-first {
    flex-direction: row-reverse;
  }

  .column-block.layout-image-left {
    flex-direction: row;
  }

  .column-block > .col-100 {
    flex: 0 0 100%;
  }
  .column-block > .col-70 {
    flex: 0 0 calc(70% - 1em);
  }
  .column-block > .col-66 {
    flex: 0 0 calc(66.6667% - 1em);
  }
  .column-block > .col-60 {
    flex: 0 0 calc(60% - 1em);
  }
  .column-block > .col-50 {
    flex: 0 0 calc(50% - 1em);
  }
  .column-block > .col-40 {
    flex: 0 0 calc(40% - 1em);
  }
  .column-block > .col-33 {
    flex: 0 0 calc(33.3333% - 1em);
  }
  .column-block > .col-30 {
    flex: 0 0 calc(30% - 1em);
  }
}
