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

/* ===== Body ===== */
body {
  font-family: 'Prompt', sans-serif;
  background: #fff;
  color: #222;
}

h1, h2, h3 {
  font-weight: 700;
}

p {
  font-weight: 400;
}

/* ===== Side Navigation ===== */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-nav .dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  transition: 0.3s;
  display: block;
}

.side-nav .dot:hover {
  background: #ff7a00;
  transform: scale(1.3);
}

.side-nav .dot.active {
  background: linear-gradient(45deg, #ff7a00, #d4af37);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(255,122,0,0.7);
}

/* ===== Navbar ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: #ff7a00; /* ดำตัดส้ม */
  position: sticky;
  top: 0;
  z-index: 100;
}

nav h2 {
  color: #8B4500;
  font-weight: bold;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

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

nav a:hover {
  color: #8B4500;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  flex-shrink: 0;
}

.logo-group h2 {
  margin: 0;
  font-size: 22px;
  color: #8B4500;
}

.logo-group h4 {
  margin: 0;
  font-size: 14px;
  color: #8B4500;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 140px;
  text-align: left;
  color: white;
}

/* layer รูป */
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-bg span {
  position: absolute;
  inset: 0;
  
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  opacity: 0;
  animation: fade 25s infinite;
}

/* delay แต่ละรูป */
.hero-bg span:nth-child(1) { animation-delay: 0s; }
.hero-bg span:nth-child(2) { animation-delay: 5s; }
.hero-bg span:nth-child(3) { animation-delay: 10s; }
.hero-bg span:nth-child(4) { animation-delay: 15s; }
.hero-bg span:nth-child(5) { animation-delay: 20s; }

/* effect ละลาย */
@keyframes fade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

/* overlay ดำ */
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.2);
}

/* content อยู่ด้านบน */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 52px;
  margin-bottom: 15px;
  color: #fff;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* ===== Button ===== */
button {
  background: linear-gradient(45deg, #ff7a00, #ffb347);
  border: none;
  padding: 14px 35px;
  color: white;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255,122,0,0.4);
  transition: 0.3s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,122,0,0.6);
}

/* ===== Section ===== */
section {
  padding: 80px 20px;
  text-align: center;
}

section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ff7a00;
}

/* ===== About ===== */
#about {
  background: #fff7f0; /* ส้มอ่อน */
}

/* ===== Cards ===== */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 35px;
  width: 260px;
  border-radius: 15px;
  border-top: 5px solid #ff7a00;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255,122,0,0.3);
}

/* ===== Process ===== */
.steps {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.steps div {
  background: linear-gradient(45deg, #ff7a00, #d4af37);
  color: white;
  padding: 25px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 160px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ===== Contact (Desktop: ซ้าย-ขวา / Mobile: บน-ล่าง) ===== */
#contact {
  background: #FFD79F;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 80px 10%;
  flex-wrap: wrap;
}

#contact .text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.contact-qr-group {
  flex: 0 0 auto;
  text-align: center; /* รูปอยู่กลางบล็อกตัวเอง */
}

.contact-qr-img {
  max-width: 250px; /* ขนาดในคอม */
  width: 100%;     /* ให้หดตัวได้ตามจอมือถือ */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 2px solid #ff7a00;
}

/* ===== Story (Grid 2x2 Hover Effect) ===== */
#story.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 10%;
}

#story .image {
  flex: 0 0 500px;
  max-width: 100%;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.story-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.story-grid img:hover {
  transform: translateY(-10px) scale(1.05); /* เด้ง ๆ */
  box-shadow: 0 15px 35px rgba(255,122,0,0.3);
}

/* ===== Responsive จัดทุกส่วนไม่ให้ล้น ===== */
@media (max-width: 768px) {
  /* Contact: ข้อความบน รูปขยับมาล่างกลาง */
  #contact {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  #contact .text {
    text-align: center;
    min-width: 100%;
  }

  .contact-qr-img {
    max-width: 200px;
  }

  /* Story: เรียงแนวตั้ง */
  #story.split {
    flex-direction: column;
    text-align: center;
  }

  #story .image {
    flex: 0 0 auto;
    width: 100%;
  }

  .story-grid img {
    height: 150px;
  }
}

/* ===== Footer ===== */
footer {
  background: #ff7a00;
  color: #8B4500;
  padding: 20px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .steps {
    flex-direction: column;
  }
}

/* ===== Split Layout ===== */
.split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 80px 10%;
}

.split .text {
  flex: 1;
  text-align: left;
}

.split .image {
  flex: 1;
}

.split img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* สลับด้าน */
.reverse {
  flex-direction: row-reverse;
}

/* ===== Card Image ===== */
.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* ===== Section spacing upgrade ===== */
section {
  padding: 100px 20px;
}

/* ===== Title luxury ===== */
section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ff7a00;
}

/* ===== Text spacing ===== */
p {
  line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .split {
    flex-direction: column;
  }

  .reverse {
    flex-direction: column;
  }

  .split .text {
    text-align: center;
  }
}

/* ===== Slider Container ===== */
.slider {
  position: relative;
  width: 100%;
  height: 400px; /* สูงแบบดูโปร */
  overflow: hidden;
  border-radius: 20px;
}

/* ===== Slider ===== */
.slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
}

/* wrapper */
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

/* แต่ละรูป */
.slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dots */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: linear-gradient(45deg, #ff7a00, #d4af37);
  transform: scale(1.3);
}

/* ===== Mobile layout ===== */
/* ===== Overlay ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 998;
}

.overlay.active {
  display: block;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    font-size: 28px;
    color: #ff7a00;
    cursor: pointer;
  }

  /* เมนูขวา */
  .nav-links {
    position: fixed;
    top: 0;
    right: -250px; /* ซ่อน */
    width: 250px;
    height: 100%;
    background: #111;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  /* ตอนเปิด */
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: white;
    font-size: 18px;
  }
}

/* ===== Map Section ===== */
#map-section {
  background: #fff;
  padding: 80px 10%;
}

.map-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 5px solid #ff7a00; /* ขอบส้ม */
}

.map-container iframe {
  display: block;
}

/* ระยะห่างหัวข้อ หน้าแผนที่ */
#map-section h2 {
  margin-bottom: 40px;
}

/* ===== Contact QR Code ===== */
.contact-qr-group {
  margin-top: 25px;
  text-align: left;
}

.contact-qr-img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* เงา*/
  border: 2px solid #ff7a00; /* ขอบส้ม */
}

/* ระยะห่างส่วน Contact */
#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 100px 10%;
}

/* ขนาดแผนที่ */
#contact .image img {
  width: 150px !important;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* จัดการ Layout Story */
#story.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px; 
}

/* บล็อกข้อความฝั่งซ้าย */
#story .text {
  flex: 1;
}

/* บล็อกรูปฝั่งขวา */
#story .image {
  flex: 0 0 500px;
  max-width: 100%;
}

/* ตารางรูปภาพ 2x2 */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px; /* ระยะห่างระหว่างรูป */
}

.story-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: block;
  transition: all 0.3s ease; /* เด้ง */
  cursor: pointer;
}

/* เอฟเฟกต์ชี้แล้วเด้ง */
.story-grid img:hover {
  transform: translateY(-10px) scale(1.05); /* เด้งขึ้นบน ขยายขนาดนิดหน่อย */
  box-shadow: 0 15px 35px rgba(255,122,0,0.3); /* เงาสีส้ม */
}

/* สำหรับมือถือ แสดงเรียงเป็นแนวตั้ง */
@media (max-width: 768px) {
  #story.split {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  #story .image {
    flex: 0 0 auto;
    width: 100%;

  }
}

/* highlight block */
.service-highlight {
  margin: 30px auto 10px;
  text-align: center;
  max-width: 600px;
}

/* แต่ละบรรทัด */
.service-highlight p {
  font-size: 20px;
  margin: 8px 0;
  color: #444;
  letter-spacing: 0.5px;
}

/* บรรทัดสุดท้าย (เน้นแบรนด์) */
.service-highlight .brand {
  margin-top: 15px;
  font-weight: 600;
  color: #ff7a00;
  font-size: 22px;
}
