
body {
    padding: 0;
    margin: 0;
}
h1 {
    text-transform: uppercase;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-family: "gill-sans-nova", sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1;
}

h2 {
    color: #516a9a;
    font-size: 1.2rem;
    font-family: "gill-sans-nova", sans-serif;
    text-transform: uppercase;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.2em;
    padding-bottom: 5px;
    border-bottom: 1px solid #516a9a;
}

h3 {
    color: #80909f;
    font-size: 1.2rem;
    font-family: "lato", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    text-wrap: balance;
}

h4 {
    font-size: 0.8rem;
    font-family: "gill-sans-nova", sans-serif;
    text-transform: uppercase;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.2em;
}

h5 {
    font-size: 1.1rem; 
    font-family: "lato", sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: #516a9a; 
}

p {
    font-size: 1rem; 
    font-family: "lato", sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #516a9a;
}

.gap {
    display: inline-block;
    width: 1em;
    letter-spacing: 0; /* ensures no inherited spacing interference */
}

/* HEADER */


.background-container {
  position: relative;
  background-image: url('images/header.jpg');
  background-size: cover;
  background-position: center;
  min-height: 350px; /* or whatever minimum height you like */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50%;
    z-index: 2;
    padding-top: 30px;
}

.header-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;
  text-align: center;
  padding: 40px 30px; /* minimal vertical padding */
  flex-grow: 1;
  min-height: 50%; /* ensures it grows to fill lower half of header */
}

.header-text {
    z-index: 2;
    color: white;
}

.background-container img {
    height: 150px;
    width: auto;
    display: inline-block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(128, 144, 159, 0.9);
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none;
}

.header-text h1,
.header-text h2,
.header-text h3,
.header-text h4,
.header-text h5 {
    color: #ffffff;
    border-bottom: none;
}

/* SECTIONS */

.center {
    text-align: center;
}

.intro {
    max-width: 850px;
    margin: 0 auto;
    padding: 100px 30px 100px 30px;
}

.main {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 30px 100px 30px;
}
.main--wide {
    max-width: 1600px;
}

.grey {
    background-color: #f1f2f2;
    margin: 0 auto; 
}

.block h5 {
    margin-bottom: 5px;
}

.block p {
    margin: 0;
}

.white p {
    font-weight: 400;
}

.button {
    padding: 10px 30px;
    font-family: gill-sans-nova, sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.1em;
    background-color: #ffffff;
    color: #516a9a;
    margin-top: 20px;
    border: none;
    text-decoration: none;
    display: inline-block;
}

/* SLIDER */

.glide {
    padding-left: 120px;
    padding-right: 120px;

}

.glide__slide {
    aspect-ratio: 600/450;
}
.glide__slide img {
    max-width: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    
}

.glide__arrows .glide__arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    border: solid 1px #e6e7e8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.glide__arrow--left svg {
    transform: translateX(-4px);
}

.glide__arrow--right svg {
    transform: translateX(4px);
}

.glide__arrows .glide__arrow svg {
    width: 24px;
    height: 24px;
}

/* COLUMNS */

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

.column {
    box-sizing: border-box;
}

.col-50 {
    width: calc(50% - 20px);  
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 15px; /* space between icon and text */
}

.icon {
    width: 30px;
    height: auto;
    margin: 10px;
}

.icon-text p /* ensure centre to icon */ {
  margin: 0;
}


/* ACCORDIONS */

.accordion {
    background-color: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  color: #516a9a;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-family: "gill-sans-nova", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid #516a9a;
  position: relative; /* needed for arrow positioning */
    padding: 5px 0;
}

/* Arrow triangle (rotates on open) */
.accordion .arrow {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: solid #516a9a;
  border-width: 0 2px 2px 0;
  padding: 5px;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.accordion.active .arrow {
  transform: translateY(-50%) rotate(-135deg);
}

/* Panel styles */
.accordion-panel {
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}



/* MEDIA QUERIES */


@media (max-width: 1600px) {
    .header {
    margin: -50px auto 0 auto;
    padding-top: 100px;
    }
}

@media (max-width: 1250px) {
    .header {
    margin: 0 auto 0 auto;
    padding-top: 50px;
    }
}

@media (max-width: 1024px) {
    .glide {
    padding-left: 80px;
    padding-right: 80px;
    }

    .glide__arrows .glide__arrow {
    width: 30px;
    height: 30px;
    padding: 0;
    }

    .glide__arrow--left svg {
      transform: translateX(-2px);
    }

    .glide__arrow--right svg {
      transform: translateX(2px);
    }

    .glide__arrows .glide__arrow svg {
      width: 12px;
      height: 12px;
    }
}

@media (max-width: 768px) {

    .header-text h4 {
    letter-spacing: 0.1em;    
    }

    .gap {
    display: inline-block;
    width: 0.5em;
    letter-spacing: 0; /* ensures no inherited spacing interference */
    }
    
    .intro {
      padding: 30px; 
    }
    
    .main {
        padding: 40px 30px;
    }

    .row {
        gap: 0;
    }

    .col-50 {
    width: 100%;
    }
    
    .button {
        margin-top: 0;
    }

    .glide {
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
    }

    .glide .glide__arrows {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 20px;
    gap: 20px;
    }

    .glide__arrow {
    position: static !important;
    transform: none !important;
    }

    .glide__arrow--left,
    .glide__arrow--right {
    position: static !important;
    }
}

.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio, adjust if needed */
  height: 0;
  overflow: hidden;
  width: 100%;
  flex: 1;
  margin-top: 40px;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

