/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,600;1,400');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600');


/* Reset */
*,
*::before,
*::after {
  margin-block: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  background-size: cover;
  background-position: center;
  border: none;
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: "Roboto", sans-serif;
}

:root {
  --color-surface: #ffffff;
  --color-surface-muted: #f4f3ee;
  --color-surface-border: #ddd7c7;
  --color-surface-dark: 26, 32, 37;
  --color-surface-dark-alt: 34, 42, 49;
  --color-text-primary: #1a2025;
  --color-text-light: #ffffff;
  --color-accent: #1a8187;
  --color-accent-hover: #165a5d;
  --color-accent-border: #149796;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-icon-muted: #a6a195;
}

/* Text */
h1, h2, h3, h4 {
  font-family: "Roboto Slab", serif;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: clamp(0.6rem, 1vw, 1.2rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.4px;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.4px;
  text-wrap: pretty;
  margin-block-end: 0.4rem;
}

p:last-child {
  margin-block-end: 0;
}

a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--color-accent-border);
  border-radius: 0.2rem;
}

/* Layout */
body {
  background-color: var(--color-surface-muted);
  color: var(--color-text-primary);
  display: block;
}

section {
  display: grid;
  grid-template-columns:
    1fr 1.2rem [content-start] minmax(0, 1200px) [content-end] 1.2rem 1fr;
  margin-bottom: 3.6rem;
}

section.dark {
  padding-top: clamp(1.2rem, 5vw, 3.6rem);
  padding-bottom: clamp(1.2rem, 5vw, 3.6rem);
  background: linear-gradient(to bottom,
      rgb(var(--color-surface-dark-alt)),
      rgb(var(--color-surface-dark)));
  border-top: solid 1px var(--color-text-light);
  box-shadow: 0 16px 32px var(--color-shadow);
  color: var(--color-text-light);
}

section.dark.wedding {
  background-image:
    linear-gradient(to bottom,
      rgba(var(--color-surface-dark-alt), 0.7),
      rgba(var(--color-surface-dark), 0.7)),
    url('images/wedding-shoes.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

section.dark.funeral {
  background-image:
    linear-gradient(to bottom,
      rgba(var(--color-surface-dark-alt), 0.7),
      rgba(var(--color-surface-dark), 0.7)),
    url('images/white-flowers.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

section.dark.contact {
  flex-grow: 1;
  margin-bottom: 0;
  border-bottom: solid 1px var(--color-text-light);
}

.contact-height {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-column: content-start / content-end;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}

section.dark .row {
  gap: clamp(1.2rem, 5vw, 2.4rem);
}

.heading {
  grid-column: span 12;
}

/* Navigation */
section.navigation {
  background-color: rgba(var(--color-surface-dark), 1);
  margin-bottom: 0;
}

.nav-menu {
  grid-column: span 12;
  display: flex;
  flex-direction: row;
  gap: 2.4rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.nav-menu li a {
  font-weight: 600;
  letter-spacing: 0.3ch;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-light);
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:active {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

.navigation.mobile {
  display: none;
}

.nav-form {
  width: 100%;
  padding: 1.2rem;
}

.nav-form select {
  width: 100%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3ch;
  color: var(--color-text-light);
  border: 1px solid var(--color-text-light);
  border-radius: 0.4rem;
  padding: 0.8rem;
  cursor: pointer;
  text-align: center;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 2rem;
}

.nav-form select:focus {
  outline: 2px solid var(--color-accent-border);
}

/* Header and Footer */
.hero-text {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.hero-text p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.inner-hero-text {
  grid-column: span 12;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.inner-hero-text img {
  width: 8rem;
}

.inner-hero-text h1 {
  margin-bottom: 0;
}

.inner-hero-text span {
  font-weight: 600;
  letter-spacing: 0.3ch;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.hero-image {
  grid-column: span 5;
  aspect-ratio: 1 / 1;
  padding: 1.2rem;
  border-radius: 0.2rem;
  box-shadow: 0 16px 32px var(--color-shadow);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-signature {
  height: 4rem;
}

section.footer {
  margin-bottom: 0;
  border-bottom: solid 1px var(--color-text-light);
  border-top: 0;
}

.footer-image {
  grid-column: span 5;
  border-radius: 0.2rem;
  box-shadow: 0 16px 32px var(--color-shadow);
}

.footer-form {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.contact-label {
  margin-bottom: 0.4rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  background-color: var(--color-surface);
  border: solid 1px var(--color-surface-border);
  border-radius: 0.2rem;
  padding: 0.6rem;
  box-shadow: 0 2px 4px var(--color-shadow);
  margin-bottom: 1.2rem;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: 2px solid var(--color-accent-border);
}

.contact-button {
  width: 100%;
  background-color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text-light);
  border-radius: 0.2rem;
  padding: 0.6rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 4px var(--color-shadow);
}

.contact-button:hover,
.contact-input:hover,
.contact-textarea:hover {
  outline: 2px solid var(--color-accent-border);
}

.contact-button:focus {
  outline: 2px solid var(--color-accent-border);
}

.h-captcha{
  margin-bottom:1.2rem;
}

/* Feedback styles */
.feedback-card {
  grid-column: span 4;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-surface);
  outline: solid 1px var(--color-surface-border);
  border-radius: 0.2rem;
  box-shadow: 0 2px 4px var(--color-shadow);
}

.feedback-source {
  margin-top: auto;
}

.feedback-source h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.feedback-source p {
  font-size: 0.8rem;
  line-height: 0.9;
  letter-spacing: 0.1ch;
  text-transform: uppercase;
}

.feedback-decoration {
  height: 2rem;
  width: 2rem;
  background-color: var(--color-surface-muted);
  pointer-events: none;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: stretch;
  overflow: hidden;
  border: solid 1px var(--color-surface-border);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 290 290"><path d="M114.05 152.5c-16.34-15.14-41.68-18.41-57.97-3.87 6.84-23.69 25.16-47.85 43.37-65.15 15.05-14.3-7.74-37.03-22.76-22.76-36.64 34.79-78.36 100.55-42.1 149.32 16.49 22.17 49.63 32.17 73.62 15.31 23.73-16.68 27.55-52.73 5.84-72.85zm141 0c-16.34-15.14-41.68-18.41-57.97-3.87 6.84-23.69 25.16-47.85 43.37-65.15 15.05-14.3-7.74-37.03-22.76-22.76-36.64 34.8-78.36 100.56-42.09 149.32 16.49 22.17 49.63 32.17 73.62 15.31 23.72-16.68 27.54-52.73 5.83-72.85z" fill="%23A6A195"></path></svg>');
  background-size: 70%;
  background-repeat: no-repeat;
}

.feedback-card:hover .feedback-decoration {
  background-color: var(--color-accent);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 290 290"><path d="M114.05 152.5c-16.34-15.14-41.68-18.41-57.97-3.87 6.84-23.69 25.16-47.85 43.37-65.15 15.05-14.3-7.74-37.03-22.76-22.76-36.64 34.79-78.36 100.55-42.1 149.32 16.49 22.17 49.63 32.17 73.62 15.31 23.73-16.68 27.55-52.73 5.84-72.85zm141 0c-16.34-15.14-41.68-18.41-57.97-3.87 6.84-23.69 25.16-47.85 43.37-65.15 15.05-14.3-7.74-37.03-22.76-22.76-36.64 34.8-78.36 100.56-42.09 149.32 16.49 22.17 49.63 32.17 73.62 15.31 23.72-16.68 27.54-52.73 5.83-72.85z" fill="%23FFFFFF"></path></svg>');
  border-color: var(--color-accent-border);
}

.feedback-card:hover {
  box-shadow: 0 2px 30px var(--color-shadow);
  outline: solid 2px var(--color-accent);
}



.feedback-quote {
  display: block;
}

/* Service styles */
.service-details {
  grid-column: span 6;
  background-color: var(--color-surface);
  outline: solid 1px var(--color-surface-border);
  border-radius: 0.2rem;
  box-shadow: 0 2px 4px var(--color-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 1.2rem;
  gap: 1.2rem;
}

.service-details:hover {
  box-shadow: 0 2px 30px var(--color-shadow);
  outline: solid 2px var(--color-accent);
}

.service-details:hover .service-button {
  outline: solid 1px var(--color-accent-border);
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.service-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
  height: 100%;
}

.service-button {
  background-color: var(--color-surface-muted);
  outline: solid 1px var(--color-surface-border);
  border-radius: 0.1rem;
  padding: 0.6rem;
  box-shadow: 0 2px 4px var(--color-shadow);
}

.service-image {
  height: 15rem;
  overflow: hidden;
  background-position: top;
  border-radius: 0.2rem;
  box-shadow: 0 2px 4px var(--color-shadow);
  outline: solid 1px var(--color-surface-border);
}

.service-details:hover .service-image {
  opacity: 0.8;
}

.service-button p {
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.service-details a {
  text-decoration: none;
}

/* Service pages */
.service-expanded {
  grid-column-start: 1;
  grid-column-end: 12;
  background-color: var(--color-surface);
  outline: solid 1px var(--color-surface-border);
  border-radius: 0.2rem;
  box-shadow: 0 2px 4px var(--color-shadow);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  height: 100%;
  overflow: hidden;
  padding: 2rem;
  gap: 2rem;
}

.service-expanded.alt {
  flex-direction: row-reverse;
  grid-column-start: 2;
  grid-column-end: 13;
}

.service-expanded-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 50%;
}

.service-expanded:hover {
  outline: 2px solid var(--color-accent-border);
  box-shadow: 0 2px 30px var(--color-shadow);
}

.service-expanded:hover .service-expanded-image {
  opacity: 0.8;
}

.service-expanded-image {
  aspect-ratio: 4 / 3;
  min-height: 20rem;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--color-shadow);
  outline: solid 1px var(--color-surface-border);
  flex: 1 1 25%;
  border-radius: 0.2rem;
}

.service-expanded-spacer {
  display: block;
  height: 1.2rem;
  grid-column: span 12;
}

/* Responsive styles */
@media (max-width: 950px) {
  .feedback-card {
    grid-column: span 6;
  }

  .hero-text,
  .footer-form {
    grid-column: span 6;
  }

  .hero-image,
  .footer-image {
    grid-column: span 6;
    height: 100%;
    aspect-ratio: unset;
  }
}

@media (max-width: 700px) {
  .service-details {
    grid-column: span 12;
  }

  .feedback-card {
    grid-column: span 12;
  }

  .navigation.mobile {
    display: block;
  }

  .navigation {
    display: none;
  }

  .hero-text,
  .footer-form {
    grid-column: span 12;
  }

  section.footer,
  section.dark.contact {
    border-bottom: none;
  }

  .hero-image,
  .footer-image {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
    width: 100%;
  }

  .service-expanded-wrapper,
  .service-expanded-image {
    flex: 1 1 100%;
  }

  .service-expanded {
    padding: 1.2rem;
    gap: 1.2rem
  }

  .service-expanded-image {
    height: 15rem;
    min-height: unset;
  }

  .service-expanded {
    grid-column-end: 13;
  }

  .service-expanded.alt {
    grid-column-start: 1;
  }

  .service-expanded-spacer {
    display: none;
  }

}