@charset "UTF-8";
:root {
  --color-bg: #205781;
  --color-bg-secondary: #006b80;
  --color-bg-main: #f6f8d5;
  --color-link: #4f959d;
  --color-secondary: #98d2c0;
  --color-secondary-accent: #4f959d;
  --color-text: #205781;
  --outer-border-radius: 0 25px 0 25px;
  --outer-border-radius-small: 0 10px 0 10px;
  --border: 2px solid rgba(255, 255, 255, 0.2);
  --width-content: 1300px;
  --line-height: 1.8;
}

* {
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  padding: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
nav {
  font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.2rem;
}

h4,
h5,
h6 {
  font-size: 1rem;
}

body > header {
  background: var(--color-bg-secondary);
  border-radius: var(--outer-border-radius);
  border: var(--border);
  margin-top: 1rem;
  width: var(--width-content);
  max-width: 100%;
  position: relative;
  color: var(--color-bg-main);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
body > header h1 {
  z-index: 2;
  position: relative;
}
body > header .banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
main {
  padding: 3rem 0 2rem; /* mobile only */
  width: var(--width-content);
  max-width: 100%;
}
main .content img,
main .content .image-wrapper {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: var(--outer-border-radius-small);
}
main .content img.fade-in {
  animation: 0.1s linear fade-in 0s 1;
}

img {
  background-size: cover !important;
  color: transparent;
  position: relative;
}

.image-wrapper {
  position: relative;
  display: block;
  background-size: cover; /* your LQIP blur behind */
  background-position: center;
  aspect-ratio: 1/1; /* modern browsers get a perfect square */
}

body > footer {
  background: var(--color-bg-secondary);
  color: var(--color-bg-main);
  border-radius: var(--outer-border-radius);
  border: var(--border);
  width: var(--width-content);
  max-width: 100%;
  margin-bottom: 1rem;
  text-align: center;
  padding: 1rem;
}
body > footer a {
  color: var(--color-bg-main);
}
body > footer p {
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
body > footer .socials {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
body > footer .socials li {
  padding: 0;
}
body > footer .socials li a img {
  width: 3rem;
  height: auto;
  filter: invert(99%) sepia(47%) saturate(588%) hue-rotate(9deg) brightness(108%) contrast(95%);
  transition: all 0.3s ease-in-out;
}
body > footer .socials li a:hover img {
  transform: scale(120%);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  filter: invert(99%) sepia(47%) saturate(588%) hue-rotate(9deg) brightness(108%) contrast(95%) drop-shadow(0px 0px 3px #fff);
}

nav,
article {
  border-radius: var(--outer-border-radius);
  padding: 1rem;
  margin-bottom: 2rem;
  background: linear-gradient(#f6f8d5, #f6f8d5) padding-box, linear-gradient(125deg, #94ddaa, transparent 20rem) border-box, linear-gradient(to bottom, white, transparent) border-box;
  border: 3px solid transparent;
}

nav {
  flex-wrap: wrap;
  font-size: 1.2rem;
}
nav .toggle-label,
nav .toggle {
  display: none;
}
nav a.active {
  color: var(--color-secondary);
}

@media (min-width: 769px) {
  body.left-nav main {
    grid-template-columns: 10rem 1fr;
    grid-template-rows: 1fr min-content;
    grid-template-areas: "nav content" "nav right";
  }
}
@media (min-width: 769px) and (min-width: 1000px) {
  body.left-nav main {
    grid-template-columns: 13rem 1fr 16rem;
    grid-template-areas: "nav content right";
  }
}
@media (min-width: 769px) {
  body.horizontal-nav main {
    grid-template-columns: 1fr 16rem;
    grid-template-rows: min-content;
    grid-template-areas: "nav nav" "content right";
  }
  main {
    display: grid;
    gap: 0 1rem;
    min-height: 30rem;
    padding: 1rem 0 0;
  }
  main nav {
    grid-area: nav;
  }
  main .content {
    grid-area: content;
    margin: 0 0 1rem;
    padding-bottom: 2rem;
  }
  main .right {
    grid-area: right;
    margin: 0 0 1rem;
  }
  main .right h3 {
    text-align: center;
  }
  main .right ul {
    list-style-type: none;
    padding: 0;
  }
}
@media (max-width: 768px) {
  body.sticky-mobile-nav nav {
    background: var(--color-bg-secondary);
  }
  body.sticky-mobile-nav nav .toggle-label span,
  body.sticky-mobile-nav nav .toggle-label span::before,
  body.sticky-mobile-nav nav .toggle-label span::after {
    background: white;
  }
  body.sticky-mobile-nav nav > ul {
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  body.sticky-mobile-nav nav > ul li {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
  }
  body.sticky-mobile-nav nav > ul li:last-child {
    border-bottom: none;
  }
}
.contact-form {
  background: white;
  border-radius: var(--outer-border-radius);
  box-shadow: var(--box-shadow);
}
.contact-form button {
  width: 100%;
  margin-top: 1rem;
}
.contact-form input[type=text],
.contact-form input[type=password],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%;
}

ul.items {
  gap: 1.5rem;
}
ul.items > * {
  background: white;
  border-radius: var(--outer-border-radius);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  transition: all 0.3s ease;
}
ul.items > *:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
ul.items > * h3 {
  color: var(--color-bg-secondary);
  margin-top: 0.5rem;
}

a.image-link {
  display: block;
}

body.product .content {
  display: grid;
  grid-template-areas: "title" "gallery" "description" "contact";
}
body.product .content .title {
  grid-area: title;
}
body.product .content .gallery {
  grid-area: gallery;
}
body.product .content .description {
  grid-area: description;
}
body.product .content .contact {
  grid-area: contact;
}
@media (min-width: 900px) {
  body.product.one-column .content {
    grid-template-areas: "title title" "gallery description" "contact description";
    grid-template-columns: 450px 1fr;
    grid-template-rows: min-content min-content 1fr;
  }
  body.product.one-column .description {
    padding: 0 0 1rem 1rem;
  }
}
@media (min-width: 1100px) {
  body.product.two-columns .content {
    grid-template-areas: "title title" "gallery description" "contact description";
    grid-template-columns: 400px 1fr;
    grid-template-rows: min-content min-content 1fr;
  }
  body.product.two-columns .description {
    padding: 0 0 1rem 1rem;
  }
}

ul.image-gallery li a {
  border: 1px solid #eee;
}
ul.image-gallery li a:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
ul.image-gallery li a:hover img {
  transform: scale(1.05);
}
ul.image-gallery li figcaption {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

ul.team {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
ul.team li {
  margin: 2rem 0;
  padding: 0;
}
ul.team li::after {
  content: "";
  display: block;
  clear: both;
}
ul.team li.has-image {
  padding-left: 11rem;
  min-height: 10rem;
  position: relative;
}
ul.team li.has-image .image-link {
  position: absolute;
  width: 10rem;
  left: 0;
  top: 0;
}

ul.news-posts {
  list-style-type: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

dl dt {
  font-weight: bold;
}

body.team-member .content .image-wrapper {
  width: 50%;
  margin: 2rem auto;
}
body.product .current-image {
  margin-bottom: 1rem;
}
body.product .gallery-full-size-images {
  display: none;
}

.gallery-single-image {
  max-width: 100%;
  max-height: 100%;
  margin: 2rem 0;
}
.gallery-single-image figure {
  margin: 0;
}
.gallery-single-image img.full-size-image {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.gallery-single-image figcaption {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

.gallery-navigation {
  margin: 2rem 0;
}
.gallery-navigation a {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 3px;
}
.gallery-navigation a:hover {
  text-decoration: underline;
}

/* fallback for iOS-Safari that doesn’t support aspect-ratio pre-15.4 */
@supports not (aspect-ratio: 1/1) {
  .image-wrapper::before {
    content: "";
    display: block;
    padding-top: 100%; /* 1:1 aspect via old padding trick */
  }
}
/* make the picture fill that square */
.image-wrapper picture {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  display: block;
}

/* and size the img to fill it without distortion */
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or cover if you prefer a crop */
  display: block;
}