* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding-inline: 1rem;
  color: #041b03;
  text-align: center;
  background-color: #f9fafb;
  background-image:
    linear-gradient(rgba(249, 250, 251, 0.72), rgba(249, 250, 251, 0.72)),
    url("images/background.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: min(100%, 70rem);
  min-width: 0;
  padding-block: clamp(2rem, 8vh, 6rem);
}

section {
  min-width: 0;
}

h1 {
  margin-bottom: 0;
  color: #041b03;
  font-family: "Merriweather", serif;
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h4 {
  margin-top: 0;
  color: #041b03;
  font-family: "Merriweather", serif;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.2;
}

.service-separator {
  margin-inline: 0.5em;
}

h4 a {
  text-decoration: none;
}

h4 a:hover,
h4 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

p {
  font-family: "Merriweather", serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
}

a {
  color: #041b03;
  overflow-wrap: anywhere;
}

.divider {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0 auto 0.75rem;
}

#banner h1 a {
  color: inherit;
  text-decoration: none;
}

#banner h1 a:hover,
#banner h1 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

#text {
  width: min(100%, 48rem);
  margin-inline: auto;
  text-align: center;
}

#text p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}

#banner {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

#banner h1 {
  margin-top: 0;
}

#banner h4 {
  margin-bottom: 0;
}

#banner::before {
  position: absolute;
  z-index: -1;
  inset: -2.667px auto;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    #babbbb 0 2.667px,
    #fff 2.667px calc(100% - 2.667px),
    #babbbb calc(100% - 2.667px)
  );
  content: "";
}

.clover {
  display: block;
  width: 4rem;
  height: 4rem;
  margin: 1rem auto;
  overflow: visible;
  filter: drop-shadow(0 0 0.6rem #041b0340);
}

.clover-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: clover-aura 5s ease-in-out infinite;
}

footer {
  width: min(100%, 70rem);
  padding-block: 1rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-family: "Merriweather", serif;
}

footer small {
  font-size: 14px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border: 1px solid #000;
}

@keyframes clover-aura {
  50% {
    opacity: 0.45;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clover-aura {
    animation: none;
  }
}
