@font-face {
  font-family: "Marcellus"; /* ตั้งชื่อฟอนต์ตามต้องการ */
  src: url("./fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* ช่วยให้เบราว์เซอร์แสดงฟอนต์สำรองก่อนโหลดเสร็จ */
}

@font-face {
  font-family: "Jost";
  src: url("./fonts/Jost-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  font-family: Jost, sans-serif;
}

h1,
h2,
h3 {
  font-family: Marcellus, sans-serif;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 5px;
}

a,
a:visited {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: aquamarine;
}

section {
  padding: 0em 1em 5em 1em;
}

.container {
  max-width: 1024px;
  margin: auto;
}

.header {
  min-height: 100svh;
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
    url("./images/hero.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}

.header .header-content {
  color: white;
  text-align: center;
}

.header .header-content h1 {
  font-size: 4rem;
}

.welcome-content {
  display: grid;
  gap: 1em;
  place-items: center;
  text-align: center;
  padding-top: 5em;
}

.welcome-content img {
  height: auto;
}

.welcome-content .text-2 {
  max-width: 860px;
}

.welcome-images {
  padding-top: 3em;
  display: grid;
  gap: 1em;

  @media (min-width: 42em) {
    grid-template-columns: 1fr 1fr;
  }
}

/* Feature start */

.feature-section {
  margin-bottom: 2em;
}

.feature-section h2 {
  text-align: center;
  margin-bottom: 2em;
}

.feature-box {
  display: grid;
  gap: 1em;
  @media (min-width: 42em) {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.feature-box .feature-content {
  display: grid;
  place-items: center;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 1px 5px 8px rgb(181, 224, 210, 0.4);
  font-size: 1.25rem;
}

/* service start */

.section-1 {
  background-color: rgb(181, 224, 210);
}

.service-container {
  display: grid;
}

.service-heading,
.service-icon-box {
  text-align: center;
}

.service-heading {
  margin: 2em 0;
}

.text-service {
  text-align: center;
}

.service-icons-container {
  margin-bottom: 2em;
  @media (min-width: 42em) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    place-items: center;
  }
}

.service-images {
  display: grid;
  gap: 1em;

  @media (min-width: 672px) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  @media (min-width: 1024px) {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

/* ==========================================
       FOOTER STYLES
    ========================================== */
footer {
  width: 100%;
  color: #ffffff;
  background-color: #1a1a1a;
  position: relative;
}

/* ------------------------------------------
       1. TOP SECTION (Map + Contact Us + Drop a Line)
    ------------------------------------------ */
.footer-top {
  display: flex;
  flex-wrap: wrap;
}

.footer-top .map-box {
  flex: 1;
  display: grid;
  min-height: 340px;
}

.footer-top .map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-top .contact-box {
  flex: 1;
  background-color: #1e1e1e;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 340px;
}

.footer-top .drop-line-box {
  flex: 1;
  background-color: #1c4d46;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  gap: 2em;
}

.info-icon {
  font-size: 30px;
  margin-bottom: 20px;
  color: #ffffff;
}

.box-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.info-group p {
  text-align: center;
}

.info-group .val {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

/* ------------------------------------------
       3. BOTTOM SECTION (Nav Links + Offer Badge)
    ------------------------------------------ */
.footer-bottom {
  background-color: #121212;
  padding: 20px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Responsive Design */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}
