@font-face {
  font-family: Arizonia;
  src: url(./fonts/Arizonia-Regular.ttf);
  font-display: swap;
}

:root {
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;

  /* colors */
  --bg-primary: #56278f;
  --bg-accent: #3e2a57;
  --text-light: #d4af37;
  --text-dark: #5c4c19;

  /* breakpoints */
  --laptop-bp: 1200px;

  @media (min-width: 1200px) {
    font-size: 20px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-light);
}

.container {
  max-width: var(--laptop-bp);
  margin-inline: auto;
  padding: 1rem;
}

.text {
  text-wrap: pretty;
  font-weight: 600;
  color: var(--text-light);
}

.cta {
  display: inline-block;
  padding: 12px 24px;
  color: var(--text-light);
  font-weight: 600;
  background-color: var(--bg-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.5s;
}

.cta:hover {
  @media (hover: hover) {
    background-color: var(--bg-accent);
  }
}

.header {
  color: var(--text-light);
  padding: 1rem;
  text-align: center;
  background: linear-gradient(var(--bg-primary), transparent);
}

.header-logo {
  font-family: Arizonia;
  font-size: 6rem;
  line-height: 5rem;
  background: linear-gradient(
    var(--text-dark) 20%,
    var(--text-light),
    var(--text-dark) 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-description {
  font-size: 0.9rem;
  font-weight: 700;
}

.header-navigation {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.header-navigation a {
  color: var(--text-light);
}

.section-hero {
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: #3f1405;
  background-image: url("./images/hero.jpg");
  background-image: -webkit-image-set(
    url("./images/hero.avif"),
    url("./images/hero.jpg")
  );
  background-image: image-set(
    url("./images/hero.avif") type("image/avif"),
    url("./images/hero.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-container {
  margin-top: auto;
  padding: 2rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(transparent, #56278f);
}

.section-about {
  h2 {
    font-family: Arizonia;
    font-size: 3rem;
  }
}

.image-divider {
  position: relative;
  height: 400px;
  background-image: url("./images/divider.jpg");
  background-image: -webkit-image-set(
    url("./images/divider.avif"),
    url("./images/divider.jpg")
  );
  background-image: image-set(
    url("./images/divider.avif") type("image/avif"),
    url("./images/divider.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  @media only screen and (min-width: 1024px) {
    background-attachment: fixed;
  }
}

.image-divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    var(--bg-primary),
    transparent 10% 90%,
    var(--bg-primary)
  );
}

.section-services {
  h2 {
    font-family: Arizonia;
    font-size: 3rem;
  }
}

.services-container {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.services-container::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url("./images/book.jpg");
  background-image: -webkit-image-set(
    url("./images/book.avif"),
    url("./images/book.jpg")
  );
  background-image: image-set(
    url("./images/book.avif") type("image/avif"),
    url("./images/book.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  @media only screen and (min-width: 1024px) {
    background-attachment: fixed;
  }
  filter: blur(4px);
}

.services-container::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    var(--bg-primary),
    transparent 10% 90%,
    var(--bg-primary)
  );
}

.service-card-container {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid;
  border-radius: 8px;
}

.service-card-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.service-card-description {
  font-size: 0.9rem;
  text-align: justify;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.service-card-price {
  font-weight: 700;
}

.service-card-price:first-child {
  margin-top: auto;
}

.section-contacts {
  h2 {
    font-family: Arizonia;
    font-size: 3rem;
  }

  a {
    color: var(--text-light);
  }
}

.contacts-container {
  display: grid;
  grid-template-columns: min-content 1fr;
  align-items: center;
  column-gap: 8px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.map-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/1;
  @media screen and (max-width: 512px) {
    aspect-ratio: 1/1;
  }
}

.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  font-size: 14px;
  padding: 1rem;
  display: flex;
  align-items: end;
  background-image: url("./images/dark.jpg");
  background-image: -webkit-image-set(
    url("./images/dark.avif"),
    url("./images/dark.jpg")
  );
  background-image: image-set(
    url("./images/dark.avif") type("image/avif"),
    url("./images/dark.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
