:root {
  /* --- สีและค่าอื่นๆ คงเดิม --- */
  --primary: #fc5b08;
  --primary-hover: #e04f05;
  --secondary: #333333;
  --text-light: #666666;
  --bg-cream: #f9f9f9;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --bg-dark: #111111;
  --card-dark: rgba(30, 30, 30, 0.9);
  --white: #ffffff;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --black-5: rgba(0, 0, 0, 0.05);

  --font-display: "Inter", "Kanit", sans-serif;
  --font-sans: "Inter", "Kanit", sans-serif;
  --font-thai: "Kanit", sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;

  --radius-md: 0.5rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-4xl: 2.5rem;

  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dark Mode Variables */
body.dark-mode {
  --secondary: #e5e5e5;
  --text-light: #a3a3a3;
  --bg-cream: #111111;
  --glass-bg: rgba(30, 30, 30, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  --black-5: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 200;
  color: var(--secondary);
  background-color: var(--bg-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition:
    background-color 0.3s,
    color 0.3s;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.material-icons {
  font-size: 24px;
  vertical-align: middle;
}

/* --- Backgrounds --- */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-color-layer {
  position: absolute;
  inset: 0;
  background-color: var(--bg-cream);
  transition: background-color 0.3s;
}

.bg-pattern-layer {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fc5b08' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.dark-mode .bg-pattern-layer {
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(252, 91, 8, 0.05);
  filter: blur(60px);
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  animation: pulse 8s infinite;
}

.blob-2 {
  top: 40%;
  left: -10%;
  width: 50%;
  height: 50%;
  opacity: 0.5;
}

.blob-3 {
  bottom: 10%;
  right: 10%;
  width: 40%;
  height: 40%;
  opacity: 0.6;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.4;
  }
}

.hero-bg-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-bg-image-wrapper {
    height: 120vh;
  }
}

.gradient-overlay-bottom {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent,
    transparent,
    var(--bg-cream)
  );
}

.gradient-overlay-top {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
}

body.dark-mode .gradient-overlay-top {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* --- Navigation --- */
/* ค้นหาและทับส่วน .navbar และ .main-container เดิมด้วยโค้ดนี้ */

.navbar {
  /* 🎯 แก้ไข: บังคับให้ชิดขอบบนสุดเสมอ */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 1024px) {
  .navbar {
    padding: 1.5rem 3rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  color: var(--primary);
  font-size: 1.875rem;
}

body.dark-mode .brand-icon {
  color: var(--white);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

body.dark-mode .nav-link {
  color: #d1d5db;
}

.nav-link:hover {
  color: var(--primary);
}

body.dark-mode .nav-link:hover {
  color: var(--white);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-actions {
    display: flex;
  }
}

/* Lang Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

body.dark-mode .lang-btn {
  border-color: var(--white-10);
  background-color: var(--white-10);
}

.lang-btn:hover {
  background-color: var(--white);
  border-color: rgba(252, 91, 8, 0.5);
}

.lang-icon {
  font-size: 0.875rem;
  color: var(--text-light);
}

.lang-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
}

.expand-icon {
  font-size: 0.75rem;
  color: var(--text-light);
}

.btn-contact {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(252, 91, 8, 0.4);
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s;
}

body.dark-mode .btn-contact {
  color: var(--white);
  border-color: var(--primary);
}

.btn-contact:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-theme-toggle {
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .btn-theme-toggle {
  background-color: rgba(0, 0, 0, 0.2);
}

.btn-mobile-menu {
  display: block;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
}

@media (min-width: 768px) {
  .btn-mobile-menu {
    display: none;
  }
}

.main-container {
  position: relative;
  z-index: 10;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  /* ✅ ลดระยะบนมือถือเหลือ 6rem */
  padding: 6rem 1.5rem 0 1.5rem;
  padding-bottom: 0 !important;
}

@media (min-width: 1024px) {
  .main-container {
    /* ✅ ลดระยะบนคอมพิวเตอร์เหลือ 6.5rem หรือ 7rem */
    padding: 6.5rem 3rem 0 3rem;
  }
}

/* จัดการส่วนเนื้อหาให้พอดีกับ Slider */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start; /* ✅ เปลี่ยนเป็น flex-start เพื่อดันเนื้อหาขึ้นไปด้านบน */
  min-height: auto; /* ✅ ปลดล็อกความสูง 80vh ทิ้งไปเลย */
}

@media (min-width: 1024px) {
  .hero-section {
    grid-template-columns: repeat(12, 1fr);
    /* 🎯 เปลี่ยนจาก flex-start หรือ center เป็น flex-end */
    align-items: flex-end;

    /* 🎯 ปรับระยะห่างด้านล่างให้พอดี */
    padding-bottom: 2rem;
    min-height: auto;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-column: span 5;
  }
}

.hero-title {
  font-size: 3rem;
  margin-top: 0; /* <--- แก้จาก 3rem เป็น 0 เพื่อลดพื้นที่ว่างเหนือตัวอักษร */
  line-height: 0.9;
  color: var(--secondary);
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.title-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
}

.tm-mark {
  font-size: 1.5rem;
  vertical-align: top;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-hero {
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
}

.btn-primary-hero:hover {
  background-color: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

/* Hero Visuals (Card) */
.hero-visuals {
  position: relative;
  padding-top: 3rem;
}

@media (min-width: 1024px) {
  .hero-visuals {
    grid-column: span 7;
    padding-top: 0;
  }
}

.glass-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-4xl);
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: visible;
}

@media (min-width: 1024px) {
  .glass-card {
    padding: 3rem;
  }
}

.card-header {
  position: relative;
  z-index: 20;
  margin-bottom: 8rem;
}

@media (min-width: 1024px) {
  .card-header {
    margin-bottom: 12rem;
  }
}

.tags-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

body.dark-mode .tag {
  border-color: #4b5563;
  background-color: rgba(0, 0, 0, 0.2);
  color: #d1d5db;
}

.tag-highlight {
  background-color: var(--primary);
  color: var(--white);
  border: none;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Roomtour Widget */
.roomtour-widget {
  position: absolute;
  top: 3rem;
  right: 1.5rem;
  z-index: 30;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 0.75rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 8rem;
  cursor: pointer;
  transition: transform 0.3s;
}

body.dark-mode .roomtour-widget {
  background-color: rgba(31, 41, 55, 0.9);
  border-color: var(--white-10);
}

.roomtour-widget:hover {
  transform: scale(1.05);
}

.widget-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-light);
}

.widget-image-box {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 4rem;
  width: 100%;
}

.widget-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 0.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
}

.play-btn span {
  font-size: 0.75rem;
  color: var(--primary);
}

.widget-connector {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  width: 2px;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 0;
}

.widget-dot {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--white);
  border-radius: 50%;
  border: 2px solid var(--primary);
  z-index: 20;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.house-cutout {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 110%;
  z-index: 10;
}

.house-cutout img {
  width: 100%;
  border-bottom-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
  box-shadow: var(--shadow-2xl);
  mask-image: linear-gradient(to bottom, transparent 5%, black 20%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 20%);
}

/* --- Partner / Trust Section --- */
.synto-partner-section {
  padding: 40px 20px;
  background-color: #fafafa;
  text-align: center;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.partner-heading p {
  font-size: 12px;
  letter-spacing: 2px;
  color: #888888;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 600;
}

.partner-logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-logo {
  max-height: 45px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%) opacity(60%);
  transition: all 0.4s ease-in-out;
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.05);
}

.partner-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #333;
}

.partner-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .partner-logo-container {
    gap: 20px;
  }

  .partner-logo {
    max-height: 35px;
    max-width: 100px;
  }
}

/* --- Status Section --- */
.status-section {
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 10;
}

.status-section .section-header {
  margin-bottom: 2rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(252, 91, 8, 0.1);
  border: 1px solid rgba(252, 91, 8, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.status-dot-wrapper {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.ping-dot {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.real-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
}

.title-with-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .title-with-stats {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.status-stats {
  display: flex;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .status-stats {
    gap: 3.5rem;
  }
}

.status-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-stats .stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: inline-block;
  min-width: 1.2ch;
  text-align: center;
}

.status-stats .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.limit-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(252, 91, 8, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  width: fit-content;
  font-family: var(--font-sans);
}

.limit-project-badge .material-icons {
  font-size: 0.875rem;
}

/* --- Designs Section --- */
.designs-section {
  margin-top: 8rem;
  margin-bottom: 3rem;
}

.designs-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

body.dark-mode .free-badge {
  color: var(--white);
}

.dot-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 2s infinite;
}

.designs-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .designs-title {
    font-size: 3.75rem;
  }
}

.highlight-italic {
  font-style: italic;
  color: var(--primary);
}

.designs-subtitle {
  color: var(--text-light);
  max-width: 36rem;
  font-weight: 300;
  font-size: 1.125rem;
}

/* --- ปรับระยะห่างของ Filter Bar --- */
.filter-bar {
  display: flex;
  flex-direction: row; /* บังคับแถวเดียว */
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* ลดระยะห่างระหว่างทุก Element ลงเหลือ 0.75rem */
  margin-top: 2.5rem;
  position: relative;
  z-index: 40;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- จัดการระยะห่างของ Separator --- */
.filter-separator {
  width: 1px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0 0.25rem; /* ลด Margin ซ้ายขวาของเส้นคั่น */
}

.style-filters {
  display: flex;
  padding: 0.375rem;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
}

body.dark-mode .style-filters {
  background-color: var(--white-10);
  border-color: var(--white-10);
}

/* --- ปรับปรุงปุ่ม Filter ให้ Smooth --- */
.btn-filter {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  /* เพิ่ม transition เพื่อให้สีสลับกันนุ่มนวล */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .btn-filter {
  color: var(--white);
}

.btn-filter.active {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-price-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

body.dark-mode .btn-price-filter {
  background-color: #27272a;
  border-color: var(--white-10);
  color: var(--white);
}

.btn-price-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.designs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .designs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .designs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.design-card {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2xl);
  transition: all 0.5s;
}

body.dark-mode .design-card {
  background-color: var(--card-dark);
  border-color: var(--white-10);
}

.design-card:hover {
  transform: translateY(-0.5rem);
}

.design-image-box {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.design-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.design-card:hover .design-image-box img {
  transform: scale(1.1);
}

.image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    transparent,
    transparent
  );
  opacity: 0.8;
}

.area-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.design-info-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: var(--white);
}

.design-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.design-specs {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.8);
}

.design-details {
  padding: 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.price-val {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

html.dark .price-val,
body.dark-mode .price-val {
  color: #ffffff;
}

.price-lbl {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.1rem;
}

.price-unit {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.25rem;
}

html.dark .price-unit,
body.dark-mode .price-unit {
  color: #9ca3af;
}

.feature-icons {
  display: flex;
  margin-left: 0.5rem;
}

.f-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #e5e7eb;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #4b5563;
  margin-left: -0.5rem;
}

.design-desc-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.design-desc {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

html.dark .design-desc,
body.dark-mode .design-desc {
  color: #9ca3af;
}

.check-icon {
  color: var(--primary);
  font-size: 1.125rem;
  margin-top: 0.125rem;
}

.btn-build {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-build:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-2xl);
}

.btn-build span {
  font-size: 0.875rem;
  transition: transform 0.2s;
}

.btn-build:hover span {
  transform: translateX(4px);
}

.view-he-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.link-view-all-designs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
}

html.dark .link-view-all-designs,
body.dark-mode .link-view-all-designs {
  color: rgba(255, 255, 255, 0.8);
}

.link-view-all-designs:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.link-view-all-designs:hover .material-icons {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

/* Package Brand Layout */
.package-brand {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: rgba(245, 245, 245, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

html.dark .package-brand,
body.dark-mode .package-brand {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.brand-header p {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin: 0 !important;
  font-weight: 500;
  white-space: nowrap;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 !important;
}

.brand-badge .material-icons {
  font-size: 12px;
}

.brand-badge.luxury {
  background: #111;
  color: #d4af37;
}

.brand-badge.standard {
  background: rgba(252, 91, 8, 0.1);
  color: var(--primary);
}

.brand-badge.basic {
  background: #f3f4f6;
  color: #6b7280;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.brand-logos img {
  height: 18px;
  max-width: 60px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.4);
  transition: filter 0.3s ease;
}

.package-brand:hover .brand-logos img {
  filter: grayscale(0%) opacity(0.9);
}

/* Best Seller Optimization */
.design-card.best-seller {
  border: 1px solid var(--primary);
  transform: translateY(-4px);
  animation: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.design-card.best-seller:hover {
  transform: scale(1.05) translateY(-8px);
}

.best-seller-badge {
  position: absolute;
  top: 1rem;
  right: -0.5rem;
  left: auto;
  background: linear-gradient(135deg, #fc5b08, #e04f05);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem 0.4rem 1rem;
  z-index: 30;
  box-shadow: 0 4px 10px rgba(252, 91, 8, 0.4);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px 0 0 8px;
}

.best-seller-badge::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  border-top: 0.5rem solid #c24000;
  border-right: 0.5rem solid transparent;
  border-left: none;
}

.best-seller-badge .material-icons {
  font-size: 1.1rem;
  color: #fffde7;
  animation: starPop 2s infinite;
}

@keyframes starPop {
  0%,
  100% {
    transform: scale(1);
    color: #ffffff;
  }

  50% {
    transform: scale(1.25);
    color: #ffe082;
  }
}

/* Elite Card Optimization */
.design-card.elite-card {
  background-color: var(--secondary);
  color: #ffffff;
  border: 3px solid #d4af37 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.masterpiece-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #111111;
  color: #d4af37;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  border-bottom-left-radius: 0.5rem;
  z-index: 30;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-family: var(--font-display);
}

.elite-card .price-val,
.elite-card .price-lbl {
  color: #d4af37 !important;
}

.elite-card .design-desc {
  color: rgba(255, 255, 255, 0.8);
}

.elite-card .f-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.elite-card .f-icon:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.elite-card .check-icon {
  color: #d4af37 !important;
}

.elite-card .btn-build {
  background-color: #d4af37;
  color: #111111;
}

.elite-card .btn-build:hover {
  background-color: #b5952f;
}

.elite-card .package-brand {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7),
    rgba(30, 30, 30, 0.6)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.elite-card .package-brand p {
  color: rgba(255, 255, 255, 0.6);
}

.elite-card .package-brand img {
  filter: brightness(0) invert(1) grayscale(100%);
  opacity: 0.6;
}

.elite-card .package-brand:hover img {
  filter: brightness(0) invert(1) grayscale(0%);
  opacity: 1;
}

/* Mid/Entry Brands */
.standard-card .package-brand {
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
}

.basic-card .package-brand {
  background: #fafafa;
  border: 1px dashed #e5e7eb;
}

/* Recommended Badge */
.recommended-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  border-bottom-left-radius: 1rem;
  z-index: 30;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-family: var(--font-display);
}

/* --- Testimonials & CTA --- */
.testimonials-cta-section {
  margin-top: 8rem;
  margin-bottom: 3rem;
}

.testimonials-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .testimonials-wrapper {
    grid-template-columns: repeat(12, 1fr);
  }
}

.testimonials-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .testimonials-content {
    grid-column: span 5;
  }
}

.testimonials-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .testimonials-title {
    font-size: 3rem;
  }
}

.testimonials-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-light);
}

.review-card {
  background-color: var(--glass-bg);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

body.dark-mode .review-card {
  background-color: var(--card-dark);
  border-color: var(--white-20);
}

.quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(252, 91, 8, 0.2);
  font-size: 3rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviewer-info img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.reviewer-name {
  font-weight: 700;
  color: var(--secondary);
}

.reviewer-role {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.review-text {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.6;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
  color: #eab308;
}

.stars span {
  font-size: 0.875rem;
}

.cta-banner {
  background-color: var(--primary);
  border-radius: 2.5rem;
  padding: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  height: 100%;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-banner {
    grid-column: span 7;
    padding: 3rem;
  }
}

.cta-bg-blobs {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.cta-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .cta-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-text {
  flex: 1;
}

.cta-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 24rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn-consult {
  background-color: var(--white);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-consult:hover {
  background-color: #f3f4f6;
}

.btn-contact-outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-contact-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.booking-widget {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 240px;
  transform: rotate(3deg);
  transition: transform 0.5s;
}

.booking-widget:hover {
  transform: rotate(0);
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.booking-lines div {
  height: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.l1 {
  width: 75%;
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.l2 {
  width: 100%;
}

.l3 {
  width: 85%;
}

.booking-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calendar-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-icon span {
  font-size: 0.875rem;
}

.booking-date {
  font-size: 0.75rem;
  font-weight: 700;
}

.booking-slots {
  font-size: 0.625rem;
  opacity: 0.7;
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  margin: 0;
  padding: 4rem 0;
  background-color: #111111;
  color: #ffffff;
  border-radius: 0 !important;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .footer-brand-col {
    grid-column: span 4;
  }

  .footer-links-col {
    grid-column: span 2;
  }

  .footer-contact-col {
    grid-column: span 4;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand .brand-icon {
  color: var(--primary);
  font-size: 1.875rem;
}

.footer-brand .brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-desc {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--white-5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s;
}

.social-btn i {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background-color: var(--primary);
}

.footer-list,
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.footer-list a:hover {
  color: var(--primary);
  padding-left: 0.25rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.875rem;
  align-items: flex-start;
}

.contact-list li span:first-child {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid var(--white-10);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

#standards-map-placeholder {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: block;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 95%;
  max-width: 64rem;
  aspect-ratio: 16/9;
  height: auto;
  max-height: 85vh;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-body {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  border-radius: 2rem;
  overflow: hidden;
}

.modal-close-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: none;
}

.modal-close-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

/* --- Particles & Animations --- */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: pulse 4s infinite;
}

.p1 {
  top: 25%;
  left: 25%;
  width: 0.5rem;
  height: 0.5rem;
  background-color: rgba(252, 91, 8, 0.1);
}

.p2 {
  top: 75%;
  right: 25%;
  width: 0.75rem;
  height: 0.75rem;
  background-color: rgba(252, 91, 8, 0.05);
  animation-duration: 7s;
}

.p3 {
  bottom: 25%;
  left: 50%;
  width: 0.25rem;
  height: 0.25rem;
  background-color: rgba(51, 51, 51, 0.05);
  animation-duration: 5s;
}

.designs-header,
.design-card,
.link-view-all-designs,
.testimonials-title,
.testimonials-subtitle,
.review-card,
.cta-content {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.designs-header.visible,
.design-card.visible,
.link-view-all-designs.visible,
.testimonials-title.visible,
.testimonials-subtitle.visible,
.review-card.visible,
.cta-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================= */
/* HERO SECTION: INTERACTIVE SERVICE SLIDER (ADDED OPTIMIZATION) */
/* ================================================================= */

/* ปรับการซ้อนกันของภาพแบคกราวด์ เพื่อสร้างเอฟเฟกต์ Crossfade */
.hero-bg-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: #111;
}

@media (min-width: 1024px) {
  .hero-bg-image-wrapper {
    height: 120vh;
  }
}

/* ส่วนภาพ Hero (ตรวจสอบให้แน่ใจว่ามีคลาส active) */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.hero-bg-image.active {
  opacity: 1;
  z-index: 1;
}

/* จัดการส่วนเนื้อหาให้พอดีกับ Slider */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 80vh;
}

@media (min-width: 1024px) {
  .hero-section {
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    padding-bottom: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-column: span 6;
    padding-bottom: 2rem;
  }
}

.hero-visuals {
  position: relative;
  z-index: 20;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-visuals {
    grid-column: span 6;
    padding-top: 0;
  }
}

.hero-services-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

body.dark-mode .hero-services-title {
  color: #9ca3af;
}

/* การ์ดบริการที่เรียงกัน */
.hero-services-slider {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-services-slider {
    flex-direction: row;
  }
}

.service-nav-card {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  flex: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

body.dark-mode .service-nav-card {
  background-color: rgba(30, 30, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.service-nav-card:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
}

body.dark-mode .service-nav-card:hover {
  background-color: rgba(40, 40, 40, 0.9);
}

/* สถานะ Active ของการ์ด */
.service-nav-card.active {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 15px 30px -5px rgba(252, 91, 8, 0.15);
}

body.dark-mode .service-nav-card.active {
  background-color: #1a1a1a;
}

.card-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.svc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

body.dark-mode .svc-title {
  color: #ffffff;
}

.service-nav-card.active .svc-title {
  color: var(--primary);
}

.svc-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Micro-Trust Indicators (โลโก้วัสดุ) */
.svc-trust {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark-mode .svc-trust {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.svc-trust span {
  font-size: 0.55rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #9ca3af;
}

.svc-logos {
  display: flex;
  gap: 0.5rem;
}

.svc-logos img {
  height: 14px;
  max-width: 40px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.4);
  transition: all 0.4s ease;
}

/* ทำให้โลโก้สว่างขึ้นเมื่อการ์ด Active */
.service-nav-card.active .svc-logos img {
  filter: grayscale(0%) opacity(1);
}

/* Progress Line Animation */
.progress-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
}

.progress-fill {
  height: 100%;
  width: 0;
  background-color: var(--primary);
}

/* 6s คือเวลาสไลด์ที่ตั้งไว้ใน JS */
.service-nav-card.active .progress-fill {
  width: 100%;
  transition: width 6s linear;
}

/* =========================================
   กลุ่มปุ่ม Hero & Secondary Button
   ========================================= */

/* จัดกลุ่มปุ่มให้อยู่บรรทัดเดียวกัน */
.hero-buttons-group {
  display: flex;
  flex-wrap: wrap; /* เผื่อหน้าจอมือถือเล็ก จะได้ปัดลงบรรทัดใหม่ให้อัตโนมัติ */
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* สไตล์สำหรับปุ่ม Secondary CTA (แบบโปร่งใส มีเส้นขอบ) */
.btn-secondary-hero {
  background-color: transparent;
  color: var(--secondary);
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--secondary);
  cursor: pointer;
  box-shadow: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* เอฟเฟกต์เมื่อ Hover */
.btn-secondary-hero:hover {
  background-color: var(--secondary);
  color: var(--bg-cream);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* รองรับ Dark Mode สำหรับปุ่มใหม่ */
body.dark-mode .btn-secondary-hero {
  color: var(--white);
  border-color: var(--white);
}

body.dark-mode .btn-secondary-hero:hover {
  background-color: var(--white);
  color: var(--bg-dark);
}

/* ================================================================= */
/* TRUST BAR - OVERLAY & MARQUEE ANIMATION */
/* ================================================================= */

.trust-bar {
  position: relative;
  z-index: 55;
  width: 100%;

  /* 💡 ใช้ Glassmorphism แต่ปรับให้เบลอเนียนขึ้น */
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  /* 💡 ลบเส้นขอบและเงาที่ทำให้ดูเป็นกรอบสี่เหลี่ยมแข็งๆ ออก */
  border: none;
  box-shadow: none;

  margin-top: -40px;
  margin-bottom: 1rem;
  padding: 1rem 0;

  overflow: hidden;
  white-space: nowrap;

  /* 💡 ไฮไลท์สำคัญ: เพิ่ม Mask ขอบซ้าย-ขวา ให้ค่อยๆ เฟดกลืนหายไปกับภาพ Hero */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

/* 💡 แทร็กสำหรับวิ่งแอนิเมชัน (คลุม Inner 2 อัน) */
.trust-bar__track {
  display: flex;
  width: max-content;
  /* เปลี่ยนความเร็วได้ที่ค่า 25s (ยิ่งน้อยยิ่งเร็ว) */
  animation: marqueeLeft 25s linear infinite;
}

/* ออปชันเสริม: หากเอาเมาส์ชี้ แอนิเมชันจะหยุดให้คนอ่าน */
.trust-bar__track:hover {
  animation-play-state: paused;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem; /* เว้นระยะก่อนเริ่มชุดที่ 2 */
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
}

body.dark-mode .trust-bar__item {
  color: #e5e7eb;
}

.trust-bar__icon {
  color: var(--primary);
  font-size: 1.2rem;
}

.trust-bar__divider {
  color: var(--text-light);
  opacity: 0.3;
}

/* ================== KEYFRAMES ================== */
@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    /* เลื่อนไป 50% ของ track (เท่ากับความยาวของ 1 ชุดพอดี) ทำให้ลูปเนียน */
    transform: translateX(-50%);
  }
}

.testimonial-card__materials-logos {
  display: flex;
  gap: 12px;
  align-items: center;
}
.testimonial-card__materials-logos img {
  height: 24px;
  width: auto;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(80%);
}
.testimonial-card__materials-label {
  font-size: 0.75rem;
  color: #999;
  display: block;
  margin-bottom: 6px;
}
.star-filled {
  color: #c9a84c;
  font-size: 18px;
}
@media (max-width: 640px) {
  .testimonial-card {
    grid-template-columns: 1fr;
  }
  .testimonial-card__project-img img {
    min-height: 200px;
    max-height: 220px;
  }
}

/* Container ของกลุ่มปุ่มราคา */
.price-options-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap; /* รองรับมือถือให้ปัดลงบรรทัดใหม่ */
}

/* สไตล์ปุ่มตัวเลือกราคา (Chips) */
.btn-price-option {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-price-option:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(252, 91, 8, 0.02);
}

/* สถานะ Active ของปุ่มราคา */
.btn-price-option.active {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support */
body.dark-mode .btn-price-option {
  background-color: var(--card-dark);
  border-color: var(--white-10);
  color: var(--text-light);
}

body.dark-mode .btn-price-option.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ปรับระยะห่างบนมือถือ */
@media (max-width: 768px) {
  .filter-bar {
    gap: 1rem;
  }
  .price-options-group {
    justify-content: center;
  }
}

/* กำหนดระยะห่างระหว่าง เส้นคั่น (|) กับ กลุ่มปุ่มราคา */
#search-filters-container {
  display: flex;
  align-items: center;
  /* เพิ่ม gap เพื่อสร้างระยะห่างระหว่างเส้นคั่นกับปุ่มแรก */
  gap: 1rem;
}

/* ปรับระยะห่างของเส้นคั่นภายในส่วนค้นหาให้สมดุล */
#search-filters-container .filter-separator {
  margin: 0; /* ล้าง margin เดิมเพื่อใช้ gap จาก container แทน */
}

/* ตอบโจทย์มือถือ: ถ้าจอปุ่มเบียดกัน ให้เว้นระยะห่างบรรทัด */
@media (max-width: 768px) {
  #search-filters-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  /* ซ่อนเส้นคั่นบนมือถือถ้าปุ่มราคาตกลงมาบรรทัดใหม่ เพื่อความสวยงาม */
  #search-filters-container .filter-separator {
    display: none;
  }
}

/* สไตล์สำหรับข้อความติดตามโซเชียล */
.social-follow-text {
  display: block; /* บังคับให้ขึ้นบรรทัดใหม่คนเดียว */
  font-weight: 700; /* ตัวหนาตามต้องการ */
  margin-bottom: 1rem; /* ระยะห่างจากปุ่มด้านล่าง */
  font-family: var(--font-display); /* ใช้ฟอนต์หลักของเว็บ */
  font-size: 1rem;
  color: #ffffff; /* สีข้อความตามธีมปกติ */
  transition: color 0.3s ease;
}

/* ปรับสีเมื่อเปิด Dark Mode */
body.dark-mode .social-follow-text {
  color: var(--white);
}

/* ตรวจสอบว่า Container ของ Social ไม่ขยับตำแหน่ง */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* =========================================================
   HERO SERVICES BACKGROUND
   ========================================================= */

.hero-visuals {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Background image */
.hero-services-bg {
  position: absolute;
  inset: 0;
  z-index: -2;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url("index_asset/images/hero-services-bg.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  pointer-events: none;
}

/* Make content stay above background */
.hero-services-title,
.hero-services-slider {
  position: relative;
  z-index: 2;
}
