/* ===== Global Styles ===== */
p, h1, h2, h3 {
  padding: 0 20px;
}

p {
  font-size: large;
}

#services, #values, #about {
  scroll-margin-top: 150px;
}

/* ===== Hero Section ===== */
#welcome {
  font-family: 'Lora', serif;
}

.hero {
  background: url("../assets/backgrounds/hero_background.jpg") center/cover no-repeat;
  position: relative;
  height: 570px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.3em;
}

.hero p {
  font-size: x-large;
  margin-top: 0.2em;
}


/* ===== CTA Button ===== */
.cta-button {
  text-decoration: none;
  color: #F9F7E9;
  font-size: x-large;
  font-weight: 500;
  border: solid #d56b35;
  background-color: #d56b35;
  border-radius: 5px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 20px;
  padding: 5px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  font-weight: bold;
  background-color: #c25d21;
  border-color: #c25d21;
}

/* ===== Services Section ===== */
#services {
  height: auto;
  padding-bottom: 20px;
}

/* ===== Gallery Categories ===== */
#gallery-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  padding-top: 40px;
  text-align: center;
}

.category-container {
  width: 200px;
  height: 200px;
  background-color: #ae8962;
  border-radius: 5px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.category-container:hover {
  width: 205px;
  height: 205px;
}

#gallery-categories a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: #F8F6E8;
  font-family: 'Poppins', sans-serif;
  font-size: large;
  box-sizing: border-box;
}

#gallery-categories a:hover {
  font-weight: bold;
}

#gallery-categories a img:first-child {
  width: 200px;
  height: 70%;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

#gallery-categories a img:first-child:hover {
  width: 205px;
}

#gallery-categories a span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30%;
  padding: 5px;
  border: solid #ae8962;
  width: 100%;
  box-sizing: border-box;
}

#gallery-categories a span img {
  height: 16px !important;
  width: auto !important;
}

/* ===== Contact ===== */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-container p {
  font-weight: bold;
  padding-top: 40px;
}

/* ===== Values Section ===== */
#values {
  background: url("../assets/backgrounds/values_background.jpg") top/cover no-repeat;
  position: relative;
  padding-bottom: 20px;
  overflow: hidden;
}

#values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

#values * {
  position: relative;
  z-index: 2;
}

#values h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
}

#values img {
  height: 50px;
  width: auto;
}


/* ===== About Section ===== */
#about {
  height: auto;
  padding-bottom: 50px;
}

#portrait {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  padding-right: 70px;
  padding-bottom: 20px;
}

#portrait img {
  height: 350px;
  width: auto;
  border-radius: 5px;
}


/* ===== Anchor Offset ===== */
.anchor-offset {
  height: 150px;
  margin-top: -150px;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  #portrait {
    flex-direction: column;
    padding-right: 10px;
    padding-bottom: 50px;
    gap: 40px;
    text-align: justify;
  }

  #portrait img {
    height: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5em;
  }

  .hero p,
  .cta-button {
    font-size: large;
  }

  p, #gallery-categories a {
    font-size: medium;
  }
}
