/* -------------------------------------------------------------------------- */
/*                                  CSS RESET                                 */
/* -------------------------------------------------------------------------- */

/* Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
  box-sizing: border-box; /* default is content-box */
}

/* Remove browser default margin */
* {
  margin: 0; /* default adds extra margin to h1 etc */
}

html {
  /* Scroll to internal link instead of jump */
  scroll-behavior: smooth;
  /* Fix text resizing in landscape on mobile Safari and Firefox */
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Apply smooth scrolling. :focus-within means search jumps quickly instead */
html:focus-within {
  scroll-behavior: smooth;
}

/* Web Content Accessibility Guidelines states that line-height for body text should be at least 1.5. */
body {
  min-height: 100vh; /* in case browser does not support SVH */
  min-height: 100svh; /* SVH instead of DVH so it ins't janky */
  line-height: 1.5; /* default is usually 1.2 */
  -webkit-font-smoothing: antialiased; /* Better font smoothing on webkit browsers */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2; /* 1.5 is a bit much for headings */
}

/* If a line doesn't have any soft wrap opportunities, and it doesn't fit, it will cause the text to overflow: */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word; /* default is to softwrap */
}

/* Display images etc in a more intuitive way */
img,
picture,
video,
canvas,
svg {
  display: block; /* default is inline weirdly */
  max-width: 100%; /* auto resize based on parent */
}

/* Make it so form controls inherit typographical styles from their parents */
input,
button,
textarea,
select {
  font: inherit; /* they don't by default */
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding-inline-start: 0px;
  margin-block-start: 0px;
  margin-block-end: 0px;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

/* -------------------------------------------------------------------------- */
/*                                  VARIABLES                                 */
/* -------------------------------------------------------------------------- */

:root {
  --white: hsl(0, 0%, 100%); /* #fff */
  --grey: hsl(210, 40%, 98%); /* #f8fafc */
  --dark-grey: hsl(207, 10%, 18%); /* #292e32 */
  --black: hsl(190, 10%, 12%); /* #1B2021 */
  --brand-50: hsl(180, 52%, 95%); /* #ebf9f9 */
  --brand-100: hsl(180, 52%, 75%); /* #68cfcf */
  --brand-200: hsl(180, 52%, 61%); /* #68cfcf */
  --brand-400: hsl(180, 52%, 46%); /* #37b6b6 */
  --brand-800: hsl(180, 52%, 20%); /* #184e4e */
  --brand-900: hsl(180, 32%, 11%); /* #132525 */

  /* Light theme */
  --neutral-light: var(--grey);
  --brand-neutral-light: var(--brand-50);
  --body-text-color-light: var(--black);
  --headings-color-light: var(--black);
  --background-color-light: var(--white);
  --accent-color-light: var(--brand-200);
  --accent-text-color-light: var(--black);
  --bg-img-overlay-light: rgba(0, 0, 0, 0.6);
  --border-color-light: rgb(226 232 240);
  --button-border-color-light: rgb(29, 23, 15);
  --box-shadow-color-light: rgb(0 0 0 / 0.3);
  --form-background-color-light: rgb(225, 231, 239);

  /* Dark theme */
  --neutral-dark: var(--dark-grey);
  --brand-neutral-dark: var(--brand-800);
  --body-text-color-dark: var(--white);
  --headings-color-dark: var(--white);
  --background-color-dark: var(--brand-900);
  --accent-color-dark: var(--brand-400);
  --accent-text-color-dark: var(--black);
  --bg-img-overlay-dark: rgba(0, 0, 0, 0.8);
  --border-color-dark: rgb(29, 23, 15);
  --button-border-color-dark: var(--black);
  --box-shadow-color-dark: rgb(0 0 0 / 1);
  --form-background-color-dark: #3d3d3d;

  /* Change these to change theme */
  --neutral: var(--neutral-light);
  --brand-neutral: var(--brand-neutral-light);
  --body-text-color: var(--body-text-color-light);
  --headings-color: var(--headings-color-light);
  --background-color: var(--background-color-light);
  --accent-color: var(--accent-color-light);
  --accent-text-color: var(--accent-text-color-light);
  --bg-img-overlay: var(--bg-img-overlay-light);
  --border-color: var(--border-color-light);
  --button-border-color: var(--button-border-color-light);
  --box-shadow-color: var(--box-shadow-color-light);
  --form-background-color: var(var(--form-background-color-light));

  /* Text colors */
  --h2-color: var(--headings-color);
  --h3-color: var(--headings-color);
  --h1-color: var(--headings-color);
  --body-color: var(--body-text-color);

  /* Font sizes */
  --h1-font-size: clamp(2rem, 4vw + 3rem, 8rem);
  --h2-font-size: clamp(1.5rem, 3vw + 5rem, 4rem);
  --h3-font-size: clamp(1rem, 2vw + 5rem, 3rem);
  /* --body-font-size: calc(0.5vw + 0.5rem); */
  --body-font-size: clamp(1.2rem, calc(0.5vw + 0.5rem), 1.6rem);
  /* --body-font-size: clamp(0.5rem, 0.5vw + 1.5rem, 1.2rem); */

  /* Letter spacings */
  --h1-letter-spacing: clamp(0vw -0.1rem -0.2vw);
  --h2-letter-spacing: var(--h1-letter-spacing);
  --h3-letter-spacing: var(--h1-letter-spacing);
  --body-letter-spacing: clamp(1rem, -0.4rem -0.1rem);

  /* Header height */
  --header-height: 96px;

  background-color: var(--background-color);
}

/* -------------------------------------------------------------------------- */
/*                               PAGE STRUCTURE                               */
/* -------------------------------------------------------------------------- */

main {
  /* The height needs to be set to a fixed value for the effect to work.
  * 100vh is the full height of the viewport. */
  height: 100vh;
  height: 100svh;
  width: 100vw;
  /* The scaling of the images would add a horizontal scrollbar, so disable x overflow. */
  overflow-x: hidden;
  /* Enable scrolling on the page. */
  overflow-y: auto;
  /* Set the perspective to 2px. This is essentailly the simulated distance from the viewport to transformed objects.*/
  perspective: 2px;
  scroll-behavior: smooth;
}

section {
  transform-style: preserve-3d;

  position: relative; /* Needed for children to be absolutely positioned relative to the parent */

  min-height: 100vh; /* Fallback if browser doesn't support svh unit */
  min-height: 100svh; /* The height of the container. Must be set, doesn't matter what the value is */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: var(--headings-color);
}

section.static {
  background-color: var(--background-color);
  z-index: 99;
  min-height: unset;
  width: 100%;
  padding-block-end: 2rem;

  & h2 {
    width: 100%;
  }
}

section + section {
  padding-block-start: 2rem;
}

section.static:last-of-type {
  padding-block-end: 8rem;
}

section.static > * + * {
  margin-block-start: 1.5rem;
}

.content {
  cursor: default;
  z-index: 1;
  padding-inline: min(2vw, 2rem);
  text-wrap: pretty;

  & p {
    max-width: 75ch;
  }

  & cite {
    font-size: large;
    text-align: left;
  }

  & > * + * {
    margin-block-start: 3rem;
  }
}

.parallax {
  display: grid;
  align-items: center;
}

.parallax-text {
  max-width: 100vw;
  color: var(--body-text-color-dark);
  text-shadow: black 1px 1px 1px;

  & a {
    margin-top: 3rem;
  }
}

section:first-of-type .parallax-text {
  margin-block-start: var(--header-height);
}

.parallax::after {
  /* Display and position the pseudo-element */
  content: " ";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  /* Move the pseudo-element back away from the camera,
   * then scale it back up to fill the viewport.
   * Because the pseudo-element is further away, it appears to move more slowly, like in real life. */
  transform: translateZ(-1px) scale(1.5);
  /* Force the background image to fill the whole element. */
  background-size: 100%;
  /* Keep the image from overlapping sibling elements. */
  z-index: -1;
}

/* -------------------------------------------------------------------------- */
/*                                   IMAGES                                   */
/* -------------------------------------------------------------------------- */

img {
  border-radius: 0.25rem; /* 4px */
}

/* Lazy loaded images fade into view */

img[loading="lazy"] {
  opacity: 0;
  /* transform: translateX(-100%); */
  scale: 0;
  will-change: opacity, scale;
}

img[loading="lazy"][data-opt-lazy-loaded] {
  transition: opacity 1s ease, scale 0.5s ease;
  opacity: 1;
  scale: 1;
  /* transform: translateX(0); */
}

#header-logo {
  transition: none;
}

/* -------------------------------------------------------------------------- */
/*                              BACKGROUND IMAGES                             */
/* -------------------------------------------------------------------------- */

.bg-index-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-index-1::after {
  background-image: url("/assets/img/hero/index/bride-groom-grass-field-sunset.jpg");
  background-size: cover;
  background-position: 75% 80%;
}

.bg-index-2::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-index-2::after {
  background-image: url("/assets/img/hero/index/sylvie-officiating-smiling-couple.jpg");
  background-size: cover;
  background-position: 63% 0%;
}

.bg-index-3::before {
  z-index: -1;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-index-3::after {
  background-image: url("/assets/img/hero/index/sylvie-officiating-couple-in-garden.jpg");
  background-size: cover;
  background-position: 45%;
}

.bg-about-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-about-1::after {
  background-image: url("/assets/img/hero/about/sylvie-officiating-in-church.jpg");
  background-size: cover;
  background-position: 50% 0%;
}

.bg-weddings-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-weddings-1::after {
  background-image: url("/assets/img/hero/weddings/sylvie-officiating-smiling-couple.jpg");
  background-size: cover;
  background-position: 50% 0%;
}

.bg-faq-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-faq-1::after {
  background-image: url("/assets/img/hero/faq/bunch-of-pink-white-roses.jpg");
  background-size: cover;
  background-position: 50% 0%;
}
.bg-ceremonies-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-ceremonies-1::after {
  background-image: url("/assets/img/hero/ceremonies/bunch-of-flowers.jpg");
  background-size: cover;
  background-position: 50% 0%;
}
.bg-contact-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-contact-1::after {
  background-image: url("/assets/img/hero/contact/dogs-in-wedding.jpg");
  background-size: cover;
  background-position: 50% 0%;
}

.bg-404-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-404-1::after {
  background-image: url("/assets/img/hero/404/wedding-ceremony-chairs.jpeg");
  background-size: cover;
  background-position: 50% 0%;
}

.bg-testimonials-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-testimonials-1::after {
  background-image: url("/assets/img/hero/testimonials/couple-holding-hands.jpg");
  background-size: cover;
  background-position: 50% 0%;
}

.bg-blog-1::before {
  z-index: 0;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-img-overlay);
}

.bg-blog-1::after {
  background-image: url("/assets/img/hero/blog/sylvie-standing-with-wedding-party.jpg");
  background-size: cover;
  background-position: 50% 0%;
}

/* -------------------------------------------------------------------------- */
/*                                    FONTS                                   */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "Turbinado";
  font-style: normal;
  font-weight: 700;
  src: url(/assets/css/TurbinadoBoldPro.woff2) format("woff2");
}

h1,
h2,
h3 {
  color: inherit;
  font-family: "Turbinado", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-weight: 700;
}
h1 {
  font-size: var(--h1-font-size);
  letter-spacing: var(--h1-letter-spacing);
}
h2 {
  font-size: var(--h2-font-size);
  letter-spacing: var(--h2-letter-spacing);
}
h3 {
  font-size: var(--h3-font-size);
  letter-spacing: var(--h3-letter-spacing);
}
p,
a,
li,
form,
details {
  color: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial,
    Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-weight: 300;
  font-size: var(--body-font-size);
  letter-spacing: var(--body-letter-spacing);
}
cite,
figcaption,
figcaption > a {
  color: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial,
    Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-style: italic;
  font-size: clamp(0.8rem, 1.2vw, 1.2rem);
  letter-spacing: var(--body-letter-spacing);
}
/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */

header {
  padding: 1rem;
  z-index: 3;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  align-items: center;
}

.logo {
  box-shadow: none;
  width: 180px;
  height: auto;
}

.logo-menu-open:hover {
  filter: none !important;
}

.icon {
  & svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
    stroke: var(--white);
  }
}

.icon:hover {
  cursor: pointer;

  & svg {
    stroke: var(--accent-color);
  }
}

.icon-menu-open:hover {
  & svg {
    stroke: var(--white);
  }
}

.moon-icon {
  & svg {
    stroke: var(--white);
  }
}

.sun-icon {
  & svg {
    stroke: var(--white);
  }
}

.icon-dark {
  & svg {
    stroke: var(--white);
  }
}

.icon-light {
  & svg {
    stroke: var(--black);
  }
}

.toggle-switch {
  -webkit-tap-highlight-color: transparent; /* no outline on press on mobile */
  cursor: pointer;
  border: none;
  padding: 1rem;
  background: none;
}

.menu {
  display: none;
  z-index: 2;
  width: 100%;
  justify-content: center;
  align-items: center;

  > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    > li {
      padding: 1rem;

      > a {
        color: var(--white);
        display: block;
        text-align: center;
        width: 100%;
        text-decoration: none;
        font-size: smaller;
      }

      > a:hover {
        color: var(--accent-color);
      }
      > a.active {
        color: var(--accent-color);
      }
    }
  }
}

.mobile-menu {
  display: none;
  z-index: 2;
  position: fixed;
  width: 100vw;
  height: 100%;
  background-color: var(--accent-color);
  overflow: hidden;

  > ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    > li {
      width: 100%;
      padding: 1rem;
      padding-right: 2rem;
      display: grid;

      > a {
        color: var(--accent-text-color);
        display: block;
        text-align: end;
        width: 100%;
        text-decoration: none;
      }
      > a:hover {
        color: var(--white);
      }
      > a.active {
        font-weight: bold;
        color: var(--white);
      }
    }
  }
}

@keyframes nav-slide-in {
  0% {
    transform: translateX(-100vh);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes nav-slide-out {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* -------------------------------------------------------------------------- */
/*                                   BUTTONS                                  */
/* -------------------------------------------------------------------------- */

.button {
  display: block;
  margin-block-start: 1rem;
  -webkit-tap-highlight-color: transparent; /* no outline on press on mobile */
  cursor: pointer;
  user-select: none;
  z-index: 100;
  padding: 0.5rem 2rem;
  border: 1px solid var(--button-border-color);
  background-color: var(--accent-color);
  color: var(--accent-text-color);
  text-shadow: none;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  max-width: fit-content;
  align-self: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial,
    Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

.button {
  outline: none;
}
.button:focus-visible {
  outline-offset: 4px;
  outline: revert;
}

.button-primary {
  border-radius: 0.25rem;
  box-shadow: 0px 0px 0px 0px var(--box-shadow-color);
  will-change: transform;
  will-change: box-shadow;
  transition: box-shadow 0.1s ease, scale 0.1s ease;
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 1px 3px 0px 0px var(--box-shadow-color);
  /* box-shadow: 1px 3px 0px 0px var(--black); */
  transition: filter 250ms;
  filter: brightness(110%);
}

.button-primary:active {
  transform: scale(90%);
  /* transform: translate(1px, 2px); */
  box-shadow: 0px 0px 1px 1px var(--box-shadow-color);
}

/* -------------------------------------------------------------------------- */
/*                                    LINKS                                   */
/* -------------------------------------------------------------------------- */

.text-link {
  background: linear-gradient(to left, var(--background-color) 50%, var(--accent-color) 50%) right;
  background-size: 200% 100%;
  transition: 0.3s ease-out;

  text-underline-offset: -0.1rem;
  text-decoration-thickness: 0.25rem;
  text-decoration-skip-ink: none;
  text-decoration-color: var(--accent-color);
}

.text-link:hover {
  background-position: left;
  color: var(--body-text-color-light);
  text-decoration: none;
}

.text-link:active {
  background-position: left;
  color: var(--body-text-color-light);
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/*                                 COMPONENTS                                 */
/* -------------------------------------------------------------------------- */

.card {
  width: 100%;

  & p:not(p:last-of-type) {
    margin-bottom: 1rem;
  }
}

.card > h2 {
  text-align: left !important;
  margin-bottom: 1rem;
}

.card > h3 {
  text-align: left !important;
  margin-bottom: 1rem;
}

.icon-w-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1rem;

  > h2 {
    margin-top: 1rem;
    text-align: left;
  }
  > h3 {
    margin-top: 1rem;
    text-align: left;
  }
}

.gallery {
  display: grid;
  --min-column: 200px;
  grid-template-columns: repeat(auto-fit, minmax(var(--min-column), 1fr));
  gap: 1rem;
  grid-auto-flow: row;
  grid-auto-rows: 1fr;
  justify-items: center;

  & picture {
    width: 100%;
    height: 100%;

    & img {
      height: 100%;
      object-fit: cover;
    }
  }
}

blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 0.5rem;
  margin-bottom: 2rem;

  & p {
    margin-bottom: 0.5rem;
  }

  & cite {
    margin-left: 1rem;
  }
}

.logos {
  margin-inline: auto;
  margin-top: 1rem;
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
  align-items: center;
}

figcaption {
  width: 100%;
  text-align: center;
  color: (--body-text-color);
  font-size: small;

  & a {
    font-size: small;
  }
}

.wedding-content {
  /* max-width: 100%; */
  margin-inline: auto;
}

.packages {
  display: grid;
  gap: 1rem;
  --min-column-size: 220px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min-column-size), 100%), 1fr));

  justify-items: center;
  text-align: start;

  .card {
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allow the card to grow to fill the height of its parent */
  }

  .button {
    margin-top: 1rem;
  }
}

.wedding-ceremony {
  min-width: 240px;
  height: min-content;
  background-color: var(--neutral);
  padding: 1rem;
  border-radius: 0.25rem; /* 4px */
  border: solid 1px var(--border-color);
  box-shadow: 0 4px 6px -1px var(--box-shadow-color), 0 2px 4px -2px var(--box-shadow-color);
  display: flex;
  flex-direction: column;

  transition: box-shadow 0.3s ease, transform 0.3s ease;

  & span {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  & h2 {
    margin-top: 2rem;
    align-self: center;
    text-align: center;
  }

  & p {
    margin-top: 2rem;
  }

  & img {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

.wedding-ceremony:nth-of-type(1) {
  & h2 {
    width: 80%;
  }
}

.wedding-ceremony:nth-of-type(2) {
  background-color: var(--brand-neutral);
}

.wedding-ceremony:hover,
.wedding-ceremony:active {
  box-shadow: 0 20px 25px -5px var(--box-shadow-color), 0 8px 10px -6px var(--box-shadow-color);
  transform: translate(0px, -1px);
}

.inclusions-drop-down {
  margin-top: 0.5rem;

  & details {
    position: relative;
  }

  & details summary > * {
    display: inline;
  }

  & details summary {
    cursor: pointer;
    font-size: 1rem;
    background-color: unset;
    padding: 0.5rem;
  }

  & details summary:hover {
    color: var(--accent-color);
  }

  & details[open] summary {
    border-bottom: 1px solid var(--border-color);
  }
}

.inclusions {
  padding: 2rem !important;
  padding-top: 1rem !important;
  padding-bottom: 0px !important;
  padding-inline-start: 2rem !important;

  & li:before {
    padding-right: 1rem;
    content: "✓";
  }

  & li {
    text-align: start;
    margin-bottom: 2rem;
  }
}

.ceremony-content {
  max-width: 100%;
}

.other-ceremony {
  background-color: var(--neutral);
  border: solid 1px var(--border-color);
  border-radius: 0.25rem; /* 4px */
  box-shadow: 0 4px 6px -1px var(--box-shadow-color), 0 2px 4px -2px var(--box-shadow-color);

  display: flex;
  gap: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;

  transition: box-shadow 0.3s ease, transform 0.3s ease;

  & h2 {
    text-align: center;
  }

  & picture {
    width: 100%;
    display: flex;

    & img {
      height: 100%;
      object-fit: cover;
    }
  }

  & .description {
    flex-grow: 1;

    & p:before {
      padding-right: 1rem;
      content: "⭑";
    }
  }

  & .description > * + * {
    margin-block-start: 2rem;
  }
}

.other-ceremony:hover {
  box-shadow: 0 20px 25px -5px var(--box-shadow-color), 0 8px 10px -6px var(--box-shadow-color);
  transform: translate(0px, -1px);
}

.testimonial-content {
  width: 100%;

  & h2 {
    text-align: center;
  }
}

.testimonials {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial {
  background-color: var(--neutral);
  border: solid 1px var(--border-color);
  border-radius: 0.25rem; /* 4px */
  box-shadow: 0 4px 6px -1px var(--box-shadow-color), 0 2px 4px -2px var(--box-shadow-color);

  display: flex;
  flex-direction: column;
  padding: 0.5rem;

  transition: box-shadow 0.3s ease, transform 0.3s ease;

  & img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: 100% 30%;
    align-self: center;
    justify-self: center;
  }

  & figcaption {
    padding-bottom: 1rem;
  }

  & h3 {
    font-size: xx-large;
    flex-shrink: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center !important;
  }

  & p {
    padding-top: 1rem;
  }
  /* & p:first-of-type {
    padding-top: 0rem;
  } */
  & p:nth-last-of-type() {
    flex-grow: 1;
  }
}

.testimonial:hover {
  box-shadow: 0 20px 25px -5px var(--box-shadow-color), 0 8px 10px -6px var(--box-shadow-color);
  transform: translate(0px, -1px);
}

.testimonial-venue {
  display: flex;
  align-items: center;
  justify-content: center;

  & svg {
    margin-right: 0.5rem;
  }

  & p {
    padding: 0px;
  }
}

.faq {
  max-width: 65ch;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.faq:last-of-type {
  margin-bottom: 0;
}

.faq-links {
  > * {
    margin-block-end: 1.5rem;
  }
}

.faq-icon {
  display: flex;
  margin-bottom: 1rem;

  & svg {
    flex-shrink: 0;
  }
}

#back-to-questions {
  color: var(--body-color);
  text-decoration: none;
  height: min-content;
  margin-top: 2rem;
}
#back-to-questions:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/*                                  UTILITIES                                 */
/* -------------------------------------------------------------------------- */

.blur {
  filter: blur(5px);
}
.show {
  display: inline-block;
}
.hide {
  display: none;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.push-end {
  margin-inline-start: auto;
}

/* -------------------------------------------------------------------------- */
/*                                     BLOG                                   */
/* -------------------------------------------------------------------------- */

#blogposts {
  text-align: center;
  margin-bottom: 1em;
}

.posts {
  --min-column: 300px;

  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min-column), 1fr));
  gap: 1rem;
  list-style: none;

  & a {
    text-decoration: none;
  }

  & li {
    min-height: 350px;
    padding: 1rem;
    background-color: var(--neutral);
    border: solid 1px var(--border-color);
    border-radius: 0.25rem; /* 4px */
    box-shadow: 0 4px 6px -1px var(--box-shadow-color), 0 2px 4px -2px var(--box-shadow-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;

    & h3 {
      font-size: xx-large;
      margin-bottom: 1rem;
    }

    & p {
      font-size: medium;
      margin-bottom: 1rem;

      & span {
        text-decoration: underline;
        color: var(--accent-color);
      }
    }
  }

  & li:hover {
    box-shadow: 0 20px 25px -5px var(--box-shadow-color), 0 8px 10px -6px var(--box-shadow-color);
    transform: translate(0px, -1px);
  }
}

.post-heading {
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
  padding-inline: min(2vw, 2rem);
  margin-inline: auto;
  text-align: center;
  color: var(--body-color);
  text-wrap: pretty;
}

.post {
  margin-inline: auto;
  padding-inline: min(2vw, 2rem);
  max-width: 90ch;
  color: var(--body-color);
  text-wrap: pretty;

  & * {
    text-wrap: pretty;
  }

  & > * + * {
    margin-block-end: 1rem;
  }

  & a {
    background: linear-gradient(to left, var(--background-color) 50%, var(--accent-color) 50%) right;
    background-size: 200% 100%;
    transition: 0.3s ease-out;

    text-underline-offset: -0.1rem;
    text-decoration-thickness: 0.25rem;
    text-decoration-skip-ink: none;
    text-decoration-color: var(--brand-100);
  }

  & a:hover {
    background-position: left;
    text-decoration: none;
  }

  & a:active {
    background-position: left;
    text-decoration: none;
  }
}

.post-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.post-date {
  /* color: var(--bg-img-overlay); */
}

.post-author {
  /* color: var(--bg-img-overlay); */
  font-weight: 700;
}

.post-content {
  & h2 {
    font-size: var(--h3-font-size);
    margin-block-end: 1rem;
  }
  & p {
    margin-block-end: 1rem;
  }
  & ul {
    padding-inline-start: 1rem;
  }
  & ol {
    padding-inline-start: 1rem;
  }
  & li {
    margin-block-end: 1rem;
  }
}

.post-navigation {
  padding-inline: 2vw;
  margin-top: 4rem;
  margin-bottom: 4rem;
  max-width: 90ch;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;

  & a {
    color: var(--body-text-color);
    text-underline-offset: -0.1rem;
    text-decoration-thickness: 0.25rem;
    text-decoration-skip-ink: none;
    text-decoration-color: var(--brand-100);
  }

  & a:hover {
    text-decoration: none;
    color: var(--accent-color);
  }

  & a:active {
    background-position: left;
    text-decoration: none;
  }

  & a > div {
    width: 100%;
    font-size: small;
  }

  & a > p {
    width: 100%;
  }

  & a:nth-of-type(2) > div {
    text-align: end;
  }

  & a:nth-of-type(2) > p {
    text-align: end;
  }
}

/* -------------------------------------------------------------------------- */
/*                                CONTACT FORM                                */
/* -------------------------------------------------------------------------- */

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  color: var(--body-text-color);

  & input,
  textarea {
    line-height: 3rem;
    border: 1px solid var(--body-text-color);
    width: 100%;
    background-color: var(--form-background-color);
    color: var(--body-text-color);
  }

  & textarea {
    resize: none;
  }

  & select {
    color: var(--body-text-color);
  }

  & input[type="date"],
  select {
    /* width: unset; */
    border: 1px solid var(--body-text-color);
    background-color: var(--form-background-color);
    height: 3rem;
  }

  & legend {
    padding-inline: 0px;
  }

  & button {
    padding-block: 0.5rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

fieldset {
  border: 1px solid var(--border-color);
}

.cross::before {
  position: relative;
}

.cross::before {
  position: absolute;
  right: 5px;
  top: 35px;
  padding: 0.3rem;
  content: "✗";
  color: #fe5f55ed;
}

.tick::before {
  position: absolute;
  right: 5px;
  top: 35px;
  padding: 0.3rem;
  content: "✓";
  color: #157f1f;
}

.formError {
  padding: 0.3rem;
  width: 100%;
  color: var(--body-text-color);
  font-weight: bold;
  background-color: #fe5f55;
  border-radius: 0 0 0.25rem 0.25rem;
  display: block;
  background-color: #fe5f55ed;
}

.form > * {
  margin-bottom: 1rem;
}

.form-items {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns with equal width */
  gap: 1rem;
}

#turnstile {
  justify-content: center;
}

.privacy-policy {
  display: flex;
  flex-direction: column;
  align-items: center;

  > p {
    max-width: 450px;
    text-align: center !important;
  }
}

.privacy-policy > * {
  margin-block-end: 1rem;
}

.secure-icon {
  display: inline-block;
  & svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
    stroke: var(--body-text-color);
  }
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */

footer {
  position: relative;
  border-radius: 1000% 20% 100% 0 0 / 10%;
  cursor: default;
  padding: 2rem;

  background-color: var(--accent-color);
  color: var(--accent-text-color);

  & p:nth-of-type(1) {
    margin-top: 2rem;
  }

  & p {
    margin-top: 1rem;
  }

  & a {
    text-decoration: underline;
  }
}

.shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 45px;
}

.shape-divider-top .shape-fill {
  fill: var(--background-color);
}

.footer-button {
  padding: 0.5rem 1rem;
  background-color: var(--brand-100);
  /* margin-top: 1rem; */
  /* margin-bottom: 2.5rem; */
  display: block;
  margin-block-start: 2rem;
  margin-block-end: 2rem;
  width: max-content;
  border: 1px solid black;
}

.footer-icon:hover {
  /* transition: filter 250ms;
  filter: brightness(110%); */
  cursor: pointer;
  transform: scale(1.2, 1.2);
  /* transform-origin: left; */
}

.footer-link {
  background: linear-gradient(to left, var(--accent-color) 50%, var(--brand-100) 50%) right;
  background-size: 200% 100%;
  transition: 0.3s ease-out;

  text-underline-offset: -0.1rem;
  text-decoration-thickness: 0.25rem;
  text-decoration-skip-ink: none;
  text-decoration-color: var(--brand-100);
}

.footer-link:hover {
  background-position: left;
  text-decoration: none;
}

.footer-link:active {
  background-position: left;
  text-decoration: none;
}

#back-to-top {
  background-color: var(--brand-100);
  max-width: fit-content;
  align-self: center;
  padding: 1rem;

  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 120px;
  text-align: center;
  border-radius: 50%;

  will-change: filter;
  will-change: scale;
  animation: bounce 2s infinite;

  & svg {
    stroke-width: 2;
  }
}

#back-to-top:hover {
  transition: filter 250ms;
  filter: brightness(110%);
  scale: 110%;
}

#back-to-top:active {
  scale: 90%;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(5px);
    box-shadow: 2px 2px 3px 1px rgba(68, 68, 68, 0.167);
  }
  40% {
    transform: translateY(-8px);
    box-shadow: 2px 8px 3px 1px rgba(68, 68, 68, 0.267); /* The peak */
  }
  60% {
    transform: translateY(-5px);
    box-shadow: 2px 5px 3px 1px rgba(68, 68, 68, 0.267); /* Halfway */
  }
}

/* -------------------------------------------------------------------------- */
/*                                MEDIA QUERIES                               */
/* -------------------------------------------------------------------------- */

@media screen and (min-width: 1180px) {
  .mobile-menu {
    display: none;
  }

  #nav-toggle {
    display: none;
  }

  #menu {
    display: flex;
  }
}

@media screen and (min-width: 768px) {
  #header-logo {
    max-width: 350px;
    height: auto;
  }
}

@media screen and (max-height: 780px) {
  #header-logo {
    max-width: 170px;
    height: auto;
  }
}

@media screen and (min-width: 600px) {
  .testimonial-content {
    max-width: 80%;
  }
}

@media screen and (min-width: 1600px) {
  .wedding-content {
    max-width: 80%;

    & .packages {
      gap: 3rem;
    }
  }
}

@media screen and (min-width: 1600px) {
  .ceremony-content {
    max-width: 80%;
  }
}

@media screen and (min-width: 1600px) {
  .testimonials {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

/* If a user doesn't want motion, they won't get it */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
  }
}
