@font-face {
  font-family: "Noto Sans Thai";
  src: url("/fonts/NotoSansThai-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("/fonts/NotoSansThai-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("/fonts/NotoSansThai-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

html,
body {
  font-family: "Noto Sans Thai", Arial, sans-serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans Thai", sans-serif;
  color: #2a211c;
  background: #f7f1e8;
  line-height: 1.6;
}

.container {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
  background:
    linear-gradient(rgba(42, 33, 28, 0.15), rgba(42, 33, 28, 0.29)),
    url("../images/hero.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.brand {
  margin-bottom: 64px;
}

.logo {
  width: 210px;
}

.tagline {
  margin-left: 10px;
  font-size: 14px;
  opacity: 0.88;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 1);
}

h1 {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.04em;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-text {
  max-width: 560px;
  font-size: 23px;
  margin-bottom: 60px;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 1);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-icon {
  width: 32px;
  color: #fff;
}

.btn {
  min-height: 60px;
  padding: 0 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: #6f7a4e;
  color: #1f1712;
  padding: 14px 28px;
}

.btn-primary svg {
  color: #1f1712;
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
  object-fit: contain;
}

.btn-primary span, .btn-secondary span {
  display: block;
  line-height: 1;
  margin: 0;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.1);
  padding: 14px 28px;
  color: #fff;
}
/* เริ่ม Animation ส่วน HERO */
/* สถานะเริ่มต้น */
.logo,
.tagline,
.hero-title,
.hero-text,
.hero-buttons {
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.8s ease-out forwards;
}

/* ให้มองภาพพื้นหลังก่อนเล็กน้อย */
.logo, .tagline {
  animation-delay: 0.8s;
}
.hero-title {
  animation-delay: 1.5s;
}

.hero-text {
  animation-delay: 2s;
}

.hero-buttons {
  animation-delay: 2.4s;
}

/* Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* รองรับคนที่ปิด Animation ในระบบ */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-text,
  .hero-buttons,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* เริ่ม Animation ในส่วน Section */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* เริ่ม SECTION ต่างๆ */
.section {
   padding: 68px 17px 36px;
}

.section h2 {
  font-size: 34px;
  margin: 0 0 36px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 32px;
}

.about {
  background: #fffaf2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.product-card {
  background: #fffaf2;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(42, 33, 28, 0.08);
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.see-more {
  position: absolute;

  right: 8px;
  bottom: 102px;

  padding: 2px 6px;
  color: #fff;

  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  text-decoration: none;
  font-size: 10px;

  transition: .25s;
}

.see-more:hover {
    background: rgb(85, 85, 85);
    transform: translateY(-2px);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 16px;
    gap: 16px;
}

.product-text {
    flex: 1;
}

.product-text h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.product-text p {
    margin: 0;
    color: #777;
    font-size: 15px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;

    color: #777;
    white-space: nowrap;
}

.product-meta span:first-child {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
}

.product-meta span:last-child {
    font-size: 14px;
}

.why {
  background: #2a211c;
  color: #fff;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.why-card {
  padding: 30px 24px 26px;
  border-radius: 20px;
  background: #3b302c;
}

.why-icon {
  display: block;
  width: 78px;
  height: 78px;
  color: #e2b99b;
  object-fit: contain;
  margin: 0 0 20px;
}

.why-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.why-card p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact {
  background: #fffaf2;
}

.link-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  max-width: 620px;
}

.link-list a {
  display: inline-block;
  width: 100%;
  min-height: 60px;
  padding: 12px 18px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.line-btn {
background: #6f7a4e;
}

.facebook-btn, .instagram-btn, .email-btn, .phone-btn {
background: #3b322e;
}

.contact-icon{
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-bottom: 0px;
}

svg .contact-icon span {
  line-height: 1.2;
}

/* ปุ่มสุดท้ายกรณีมีทั้งหมด 5 ปุ่ม */
.contact-button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 7px);
  justify-self: center;
}

footer {
  padding: 24px 0;
  background: #1f1712;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 86vh;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .brand {
    margin-bottom: 48px;
  }

  .logo {
    width: 165px;
  }

  .tagline {
    font-size: 11px;
    margin-left: 9px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.12;
    margin-bottom: 16px;
  }

  .product-grid,
  .why-list {
    grid-template-columns: 1fr;
  }

  .hero-text {
    font-size: 17px;
    line-height: 1.55;
  }

  .section {
    padding: 56px 0;
  }

  .btn {
    padding: 11px 22px;
    font-size: 14px;
  }

  .btn-secondary {
    padding: 11px 22px;
  }
}

@media (max-width: 390px) {
  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-button:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}