
body {
  /* padding: 5vh clamp(1rem, 5vw, 3rem) 1rem; */
  font-family: system-ui, sans-serif;
  background-color: var(--color-background);
  background-image: linear-gradient(
    96deg,
    var(--primary-100),
    var(--primary-light-300),
    var(--primary-dark-100)
  );
  color: var(--color-text);
  line-height: 1.5;
  /* font-size: 68.5%; */

  width: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  background: var(--accent-600);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  z-index: 1000;
}
.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid var(--primary-600);
}

img {
  max-width: 100%;
  /* height: auto; */
}

main {
  width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
}
.bg-wrapper {
  width: 100vw;
  background-image: url("assets/img/boogjes11.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: CENTER;
}
/* Typografie */
h1,
h2,
h3 {
  color: var(--accent-500);
  letter-spacing: 0.1rem;
  text-shadow: 0px 1px 3px var(--primary-dark-400);
}
:is(h1, h2, h3) {
  line-height: 1.2;
}

:is(h2, h3):not(:first-child) {
  margin-top: 2em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
}

header svg {
  filter: drop-shadow(0px 2px 3px var(--primary-dark-500));
}

/* Header */
header {
  text-align: center;
  padding: 2rem;
}

header img {
  max-width: 150px;
}

h2.subheader {
  margin: unset
}
/* Navigatie */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  height: 5rem;
  background-color: var(--color-background);
  background-image: linear-gradient(var(--primary-light-gradient));

  box-shadow: var(--shadow-elevation-medium);
  position: sticky;
  width: 100vw;
  width: 100dvw;
  top: 0;
  z-index: 100;
}

nav img {
  width: min(100%, 125px);
  padding: 0.5rem;
}

nav ul {
  list-style: none;
  padding-right: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-right: 1rem;
  margin-bottom: unset;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

nav a:hover {
  color: var(--color-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Current page highlighting */
nav a[aria-current="page"] {
  color: var(--color-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 600;
}

.nav-open, .nav-close {
    display: none;
    border: 1px solid var(--color-text);
    padding: 0.5rem;
    border-radius: 0.5rem;
    position: absolute;
    right: 0;
    box-sizing: content-box;
    background: var(--color-background);
    color: var(--color-text);
    min-width: unset;
    min-height: unset;
}
.nav-open {
  z-index: 101;
}

.nav-close {
  z-index: 102;
}


/* Grid */

/* Secties */
section {
  display: grid;
  gap: 1rem;
  place-items: center;
  padding-inline: clamp(1rem, 5vw + 1rem, 3rem);
  border-bottom: 1px solid var(--primary-dark-400);
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

section#home {
    position: relative;
    grid-template-columns: 1fr;
    padding: 0;
    width: 100%;
    min-height: min(100vh - var(--layout-spacing), 760px);
    /* place-content: center; */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

section#diensten {
  padding-top: 0;
}
section#diensten header {
  margin-top: -2rem;
}

/* // even section  */
section:nth-child(odd) {
  background: var(--gradient-primary);
}

.article-wrap {
  display: grid;
  place-content: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  grid-template-rows: auto;
  gap: 1rem;
}

/* Artikelen */
/* article, section#home header {
  box-shadow: var(--shadow-elevation-high);
  border: 1px solid var(--primary-dark-200);
  margin: auto;
  } */

section#home header {
    /* height: min(100vh - var(--layout-spacing), 500px); */
    /* background-color: var(--primary-300); */
    background-color: var(--primary-light-600);
    background-image: linear-gradient(var(--primary-light-gradient));
    margin: 0;
    padding: 0;
    align-items: center;
    /* border-radius: var(--border-radius); */
    color: var(--primary-100) !important;
    width: 100%;
}
section#home p {
  text-wrap: balance;
}

section .home-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  /* box-shadow: var(--shadow-elevation-medium); */
  z-index: -1;
  overflow: hidden;
}

.home-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, hsl(0 0% 0% / 0.05), hsl(0 0% 0% / 0.15) 60%, hsl(0 0% 0% / 0.20));
  opacity: 0.85;
}

.home-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transform-origin: center;
  animation: hero-zoom 12s ease-out both;
}

.hero-content {
  display: grid;
  gap: 1rem;
  align-items: center;
  justify-items: start;
  padding: clamp(1rem, 4vw, 3rem);
  margin: 0 auto 0 0;
  width: min(100%, 74ch);
  text-align: left;
}

.hero-title { 
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  color: var(--primary-100);
  text-shadow: 0 2px 6px rgb(0 0 0 / 45%);
  animation: fade-slide 900ms ease-out both; 
}
.hero-subtitle {
    color: var(--primary-100);
    font-size: clamp(1rem, 1vw + .75rem, 1.25rem);
    max-width: 65ch;
    text-wrap: pretty;
    animation: fade-slide 1100ms ease-out both;
    animation-delay: 120ms;
}
.hero-actions { 
  display: flex; gap: 1rem; flex-wrap: wrap; 
  animation: fade-slide 1200ms ease-out both; 
  animation-delay: 200ms;
}

@keyframes hero-zoom {
  0% { transform: scale(1.12); filter: saturate(1); }
  100% { transform: scale(1.05); filter: saturate(1.05); }
}

@keyframes fade-slide {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.top-shift-header {
    position: relative;
    z-index: 1;
    margin-top: -3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary-100);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-dark-200);
    border-radius: var(--border-radius);
    text-align: center;
}
.card {
  --img-ratio: 3/2;

  display: grid;
  grid-template-rows: 4rem auto auto 3rem;
  gap: 1rem;
  box-shadow: var(-shadow-md);
  border: 1px solid var(--primary-dark-200);
  border-radius: var(--border-radius);
  height: 100%;
}

.card.diensten {
  grid-template-rows: auto;
}



.card > img {
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
  object-position: 33% 66%;
  width: 100%;
}

.card > img:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}

.card > img:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
  margin-top: auto;
}

.card > :not(img) {
  margin-left: 1rem;
  margin-right: 1rem;

  /* Prevent typography "orphans" */
  text-wrap: pretty;
}

.card > :not(img):first-child {
  margin-top: 1rem;
}

/* Enhanced `:not()` accepts a selector list,
but as a fallback you can chain `:not()` instead */
.card > :last-of-type:not(img, h2, h3, h4) {
  margin-bottom: 1rem;
}


.card > a {
  align-self: start;
}

p {
  line-height: 1.5;
  font-size: 1.15rem;
  /* Smol Responsive Padding FTW! */
  padding: 0.5rem clamp(0.75rem, 3%, 2rem);
  /* width: min(100%, 74ch); */
  /* Help prevent overflow of long words/names/URLs */
  word-break: break-word;
  /* Optional, not supported for all languages */
  hyphens: auto;
}


section p {
  margin-inline: auto;
  max-width: 66ch;

}

/* Galerij */
#galerij img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}



/* Footer */
footer {
  
  background-color: var(--color-background);
  background-image: linear-gradient(var(--primary-gradient));
  
}

.footer-wrap {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-wrap > * {
    flex: 1 1 min(250px, 100%);
    padding: 1.5rem clamp(1rem, 5vw, 3rem);
    margin: auto;
    text-align: center;
}

.footer-wrap li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  height: 2rem;
}

.footer-wrap ul:nth-child(2) li{
  justify-content: center;
 
}

.footer-wrap > *
 {
  display: inline-block;
  

}


.logo {
  width: min(100%, 125px);
}

footer p {
  border-top: 1px solid #ccc;
  padding-top: 0.25em;
  font-size: 0.9rem;
  /* color: #767676; */
}

.btn-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: start;
  gap: 1rem;
  margin-top: 1rem;
}

.bible-verses blockquote {
  background: var(--primary-light-800);
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 5px solid var(--primary-600);
  font-style: italic;
  border-radius: var(--border-radius-md);
  color: var(--heading-color);
}

.bible-verses blockquote div  {
  margin-top: 0.5rem;
  font-weight: bold;
  text-align: right;
  color: var(--primary-700);
}

#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-600);
  color: white;
  border: none;
  border-radius: 50%;
  outline: 1px solid transparent;
  outline-offset: 3px;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevation-medium);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out , visibility 0.3s ease-in-out, background 0.4s ease-in-out, outline-color 0.2s ease-in-out;
    z-index: 100;

}

#scroll-to-top:hover,
#scroll-to-top:focus
 {
  background: var(--accent-500);
  outline-color: var(--accent-500);
  }

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.bg-wrapper {
    background-size: 179%;
    background-position: 93% -15%;
}

  section {
  place-content: center;

  }
  #section#home {
    min-height: min(100vh - var(--layout-spacing), 620px);
  }

  section#home .home-img img {
    object-position: 29%;
  }

  section#home header {
    margin: 0;
  }

  .hero-subtitle {
       max-width: 33ch;
  }

  .btn-container {
  padding-bottom: 2rem;

  }
nav ul {
    margin: unset;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-background);
    padding: 4.5rem 1.5rem 2rem 1.5rem;
    box-shadow: var(--shadow-elevation-medium);
    border: unset;
    border-radius: 0 0 1rem 1rem;
    z-index: 101;
    transform: translate3d(0, calc(-100% - 1rem), 0);
    transition: transform 0.3s ease-in-out;
}

  nav.open ul { transform: translate3d(0, 0, 0); }

  .nav-open {
    display: flex;
    margin-inline: 1rem;
    transition: opacity 500ms ease-out;
  }

  .nav-close {
    opacity: 0;
    transition: opacity 300ms ease-out;
  }


nav.open .nav-open {
  opacity: 0;
}

nav.open .nav-close {
  opacity: 1;
}

nav.open .nav-close {
      display: flex;

  margin-inline: 1rem;

  animation: nav-close 0.5s forwards;
}

/* nav-open animation  */
@keyframes nav-open {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(45deg);
  }
}

@media screen and (max-width: 500px) {
  section#home .home-img img {
    aspect-ratio: 1/1;
  }
  
}
