/* =================================
   BOTTOMAN FUNERAL DIRECTORS
   Elegant Website Design
================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: #eeeae1;
  color: #344047;
  line-height: 1.7;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

section {
  padding: 85px 40px;
  max-width: 1100px;
  margin: 35px auto;
  background: #f7f5f0;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(32, 45, 53, 0.06);
}

section h2 {
  color: #202d35;
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 25px;
}
#about h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  background-color: #c5a46d;
  margin: 15px auto 0;
}

section p {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 1.05rem;
}

/* HEADER */
header {
  background: #202d35;
  color: white;
  padding: 25px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* LOGO AND COMPANY NAME */
header > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 35px;
  width: 100%;
}

header > div > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

header img {
  width: 420px;
  max-width: 90%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

header h1 {
  font-size: 2.3rem;
  color: #d6b77c;
  margin-bottom: 8px;
}

header p {
  font-size: 1rem;
  color: #e5e5e5;
  margin: 0;
  letter-spacing: 1px;
}

/* NAVIGATION */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 35px;
  padding: 10px 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
}

nav a:hover {
  color: #d6b77c;
}

/* HOME SECTION */
#home {
  width: 100%;
  max-width: none;
  min-height: 65vh;
  margin: 0;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 25px;
  background-color: #eeeae1;
  box-shadow: none;
  border-top: 3px solid #c5a46d;
}

#home > div {
  max-width: 850px;
}

#home h2 {
  color: #202d35;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 25px;
}

#home h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #c5a46d;
  margin: 20px auto 0;
}

#home p {
  color: #555555;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

/* ABOUT SECTION */
#about {
  background: #eeeae1;
  border-top: 3px solid #c5a46d;
}

/* ABOUT - VISION AND MISSION */
.vision-mission {
  max-width: 950px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.vision-box,
.mission-box {
  background: #202d35;
  padding: 30px;
  border-radius: 10px;
  border-top: 4px solid #c5a46d;
  box-shadow: 0 5px 20px rgba(32, 45, 53, 0.08);
}

.vision-mission h3 {
  font-family: "Playfair Display", serif;
  color: #d6b77c;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 15px;
}

.vision-mission p {
  color: #f7f5f0;
  font-size: 0.98rem;
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .vision-mission {
    grid-template-columns: 1fr;
  }
}

/* SERVICES SECTION */
#services {
  background: #eeeae1;
  border-top: 3px solid #c5a46d;
}

#services ul {
  max-width: 850px;
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

#services li {
  background: #fffdf9;
  padding: 28px 24px;
  border-radius: 10px;
  border: 1px solid #e5d7bd;
  border-left: 4px solid #c5a46d;
  font-size: 1.05rem;
  font-weight: 600;
  color: #202d35;
  transition: all 0.3s ease;
}

#services li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(32, 45, 53, 0.1);
  border-color: #c5a46d;
}
/* CONTACT SECTION */
#contact {
  border-top: 4px solid #c5a46d;
}

#contact ul {
  list-style: none;
  max-width: 650px;
  margin: 30px auto 0;
  padding: 0;
}

#contact li {
  background: #eeeae1;
  padding: 15px 20px;
  margin-bottom: 12px;
  border-radius: 7px;
  font-size: 1rem;
}

#contact a {
  color: #344750;
  text-decoration: none;
  font-weight: 600;
}

#contact a:hover {
  color: #b18c50;
}

/* FOOTER */
footer {
  background: #202d35;
  color: #e5e5e5;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  header img {
    width: 260px;
    height: 260px;
    object-fit: contain;
  }

  header h1 {
    font-size: 1.7rem;
  }
  header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  header > div {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  section {
    margin: 20px 15px;
    padding: 50px 22px;
  }

  #home {
    min-height: 65vh;
  }

  #home h2 {
    font-size: 2.2rem;
  }

  #home p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.9rem;
  }

  #services ul {
    grid-template-columns: 1fr;
  }
}
