:root {
  --header-offset: 108px;
  --ink-900: #130d08;
  --ink-800: #1b120b;
  --ink-700: #28170c;
  --brown-700: #4d2f1c;
  --brown-600: #6f4423;
  --brown-500: #92603a;
  --gold-400: #c5924a;
  --gold-300: #dfb56e;
  --gold-200: #f2d59a;
  --cream-100: #f8f0e4;
  --cream-050: #fffaf2;
  --text-900: #2a1e14;
  --text-700: #5d4c3b;
  --line: rgba(213, 168, 103, 0.28);
  --line-soft: rgba(213, 168, 103, 0.16);
  --shadow-lg: 0 26px 70px rgba(18, 10, 4, 0.28);
  --shadow-md: 0 14px 34px rgba(28, 15, 8, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", "Tahoma", sans-serif;
  color: var(--text-900);
  background:
    radial-gradient(80% 90% at 12% 8%, rgba(201, 153, 87, 0.2), transparent 60%),
    radial-gradient(68% 90% at 88% 92%, rgba(126, 79, 41, 0.2), transparent 56%),
    linear-gradient(180deg, #f3e9da 0%, #efe2d0 100%);
  line-height: 1.6;
}

.site-shell {
  width: min(1430px, calc(100% - 28px));
  margin: 14px auto;
  border-radius: 20px;
  overflow: clip;
  border: 1px solid rgba(105, 72, 45, 0.2);
  box-shadow: 0 24px 70px rgba(33, 18, 8, 0.22);
  background: linear-gradient(180deg, #f7efe2 0%, #f3e8d8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: min(1320px, calc(100% - 34px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(22, 13, 7, 0.97) 0%, rgba(19, 11, 6, 0.93) 100%),
    repeating-linear-gradient(125deg, rgba(227, 176, 99, 0.07) 0 2px, transparent 2px 12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream-100);
  min-width: 280px;
}

.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(214, 168, 103, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.brand-name {
  font-family: "Cinzel", "Noto Sans Thai", serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--gold-200);
}

.brand-sub {
  font-size: 12px;
  color: #dbc6a0;
  margin-top: 6px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  flex: 1;
  color: #f1e4ce;
}

.menu a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  padding: 9px 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.menu a:hover {
  color: var(--gold-200);
  opacity: 1;
}

.menu a:hover::after {
  transform: scaleX(1);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #2a1809;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  border: 1px solid rgba(239, 209, 152, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.4), 0 8px 16px rgba(39, 23, 12, 0.24);
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(223, 186, 126, 0.52);
  color: var(--gold-200);
  background: rgba(255, 255, 255, 0.03);
  font-size: 20px;
  border-radius: 10px;
  width: 42px;
  height: 38px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(13, 7, 4, 0.96) 0%, rgba(13, 7, 4, 0.85) 42%, rgba(15, 9, 5, 0.32) 100%),
    url("../image/pic_c001.jpg");
  background-size: cover;
  background-position: center;
  color: var(--cream-100);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px dashed rgba(223, 179, 102, 0.36);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
}

.hero-visual {
  display: none;
}

.hero-content {
  width: min(730px, 100%);
  padding: 84px 8px 80px;
  animation: fade-rise 0.75s ease;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(223, 179, 102, 0.5);
  background: rgba(223, 179, 102, 0.12);
  color: var(--gold-200);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Cinzel", "Noto Sans Thai", serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  color: var(--gold-200);
  letter-spacing: 0.01em;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.24;
  color: #fdf1db;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 30px;
  color: #ecd6b7;
  font-size: 18px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  color: #2f1b0c;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  box-shadow: 0 14px 28px rgba(25, 13, 6, 0.3);
}

.btn-dark {
  border: 1px solid rgba(234, 197, 139, 0.45);
  color: var(--cream-100);
  background: rgba(39, 23, 11, 0.55);
}

section {
  padding: 62px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-600);
}

.section-title h2 {
  margin: 8px 0 10px;
  font-family: "Cinzel", "Noto Sans Thai", serif;
  font-size: clamp(30px, 5vw, 42px);
  color: var(--ink-800);
}

.section-title p {
  margin: 0 auto;
  max-width: 780px;
  color: var(--text-700);
  font-size: 15px;
}

#services {
  padding-top: 26px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  direction: rtl;
}

.service-card {
  background: linear-gradient(180deg, #fffbf4 0%, #f7ebda 100%);
  border: 1px solid rgba(119, 81, 50, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(73, 43, 22, 0.1);
  transition: transform 0.22s ease, border-color 0.22s ease;
  direction: ltr;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(203, 149, 75, 0.6);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card-content {
  padding: 10px 10px 12px;
}

.service-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--brown-700);
  font-weight: 700;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-700);
  line-height: 1.45;
}

.portfolio-section {
  background:
    linear-gradient(180deg, rgba(20, 12, 7, 0.99) 0%, rgba(17, 10, 6, 0.98) 100%),
    radial-gradient(circle at 50% 0, rgba(213, 168, 103, 0.18), transparent 60%);
  border-top: 1px solid rgba(214, 168, 103, 0.25);
  border-bottom: 1px solid rgba(214, 168, 103, 0.25);
}

.portfolio-section .section-title {
  margin-bottom: 24px;
}

.portfolio-section .section-title h2 {
  color: var(--gold-200);
}

.portfolio-section .section-title p {
  color: #d6bf9c;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-btn {
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid rgba(226, 186, 125, 0.34);
  color: #f8ebd5;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active {
  color: #2d190b;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(224, 185, 125, 0.3);
  background: #211209;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.before-after {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(280px, 30vw, 380px);
  overflow: hidden;
}

.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-300), transparent);
}

.label {
  position: absolute;
  bottom: 8px;
  z-index: 4;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.label.before {
  left: 8px;
}

.label.after {
  right: 8px;
}

.work-content {
  padding: 10px 10px 12px;
}

.work-content h3 {
  margin: 0 0 6px;
  color: #f2dbc0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.work-content p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #cfb797;
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #2c1a0d;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
}

.gallery-section {
  background:
    radial-gradient(circle at 18% 0%, rgba(233, 191, 129, 0.16), transparent 45%),
    radial-gradient(circle at 82% 100%, rgba(186, 132, 74, 0.18), transparent 50%),
    linear-gradient(180deg, #f4e7d2 0%, #f8efdf 100%);
}

.gallery-masonry {
  column-count: 4;
  column-gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  break-inside: avoid;
  margin-bottom: 16px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1f1209;
  cursor: zoom-in;
  box-shadow: 0 10px 26px rgba(43, 25, 11, 0.16);
  opacity: 0;
  transform: translateY(20px);
  animation: galleryFadeUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

@keyframes galleryFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(242, 213, 154, 0);
  transition: box-shadow 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.gallery-item-media {
  display: block;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(20, 12, 5, 0) 45%, rgba(20, 12, 5, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.gallery-item-zoom {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 12, 5, 0.42);
  border: 1px solid rgba(242, 213, 154, 0.6);
  color: var(--gold-200);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transform: scale(0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item-zoom svg {
  width: 24px;
  height: 24px;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(43, 25, 11, 0.3);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-item-zoom,
.gallery-item:focus-visible .gallery-item-zoom {
  transform: scale(1);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  box-shadow: inset 0 0 0 1.5px rgba(242, 213, 154, 0.55);
}

.gallery-item:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .gallery-item img,
  .gallery-item-zoom {
    transition: none;
  }
}

.gallery-empty {
  text-align: center;
  color: var(--text-700);
  padding: 14px;
  font-size: 15px;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.gallery-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid rgba(124, 82, 45, 0.3);
  background: linear-gradient(180deg, #2a190d 0%, #1f1209 100%);
  color: var(--gold-200);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(43, 25, 11, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-more-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 213, 154, 0.7);
  box-shadow: 0 18px 34px rgba(43, 25, 11, 0.3);
}

.gallery-more-btn:active {
  transform: translateY(0);
}

.gallery-more-count {
  font-weight: 500;
  font-size: 13px;
  color: rgba(242, 213, 154, 0.7);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(10, 6, 4, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: galleryLightboxFade 0.3s ease forwards;
}

@keyframes galleryLightboxFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-lightbox-image {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  border-radius: 14px;
  border: 1px solid rgba(236, 199, 143, 0.48);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  animation: galleryLightboxZoom 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

@keyframes galleryLightboxZoom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(236, 199, 143, 0.56);
  background: rgba(0, 0, 0, 0.4);
  color: #f8e8cc;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.gallery-lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(242, 213, 154, 0.2);
  border-color: rgba(242, 213, 154, 0.85);
}

#about {
  background: linear-gradient(180deg, #f5ecdf 0%, #f8f0e5 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.about-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(118, 79, 49, 0.28);
  box-shadow: var(--shadow-md);
  width: min(100%, 520px);
  max-width: 520px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h2 {
  margin: 0 0 12px;
  font-family: "Cinzel", "Noto Sans Thai", serif;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--ink-800);
}

.about-content p {
  margin: 0;
  color: var(--text-700);
  font-size: 15px;
  line-height: 1.8;
}

.features {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.feature {
  border: 1px solid rgba(139, 99, 64, 0.24);
  background: linear-gradient(180deg, #fffcf7 0%, #f4e7d4 100%);
  border-radius: 12px;
  padding: 12px;
}

.feature strong {
  display: block;
  color: var(--brown-700);
  font-size: 14px;
  margin-bottom: 2px;
}

.feature span {
  font-size: 12px;
  color: var(--text-700);
}

.testimonial-section {
  padding-top: 0;
  background: linear-gradient(180deg, #f8f0e5 0%, #f0e3cf 100%);
}

.testimonial-wrap {
  border: 1px solid rgba(121, 84, 52, 0.26);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 15, 8, 0.98) 0%, rgba(24, 14, 8, 0.96) 100%),
    repeating-linear-gradient(45deg, rgba(205, 160, 89, 0.07) 0 1px, transparent 1px 11px);
  color: #f2e2cb;
  box-shadow: var(--shadow-md);
}

.testimonial-intro {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.testimonial-intro h3 {
  margin: 0;
  font-family: "Cinzel", "Noto Sans Thai", serif;
  font-size: 28px;
  color: var(--gold-200);
}

.testimonial-intro p {
  margin: 6px 0 0;
  color: #dcc7a8;
  font-size: 14px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.testimonial-card {
  border: 1px solid rgba(222, 180, 112, 0.26);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.testimonial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.testimonial-head strong {
  font-size: 14px;
  color: #f8e4c6;
}

.testimonial-head span {
  font-size: 12px;
  color: #f1cf88;
}

.testimonial-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #d8c2a1;
  line-height: 1.6;
}

.testimonial-card small {
  color: #f0d392;
  font-size: 11px;
}

.contact-section {
  background:
    radial-gradient(60% 70% at 100% 0, rgba(213, 168, 103, 0.15), transparent 60%),
    linear-gradient(180deg, #1a1009 0%, #0d0704 100%);
  color: var(--cream-100);
  border-top: 1px solid var(--line-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 22px;
}

.contact-channels {
  display: grid;
  gap: 10px;
}

.contact-ch-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(217, 173, 107, 0.25);
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.contact-ch-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 20px;
  border: 1px solid rgba(217, 173, 107, 0.3);
  background: rgba(217, 173, 107, 0.14);
}

.contact-ch-info {
  flex: 1;
}

.contact-ch-label {
  color: #dfc8a4;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-ch-value {
  color: #fff0d8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-ch-arrow {
  color: #f0cf8f;
}

.contact-side {
  display: grid;
}

.contact-qr-box {
  border-radius: 14px;
  border: 1px solid rgba(217, 173, 107, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  padding: 18px;
}

.contact-qr-label {
  margin: 0;
  color: #f3dba8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.contact-qr-img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 2px solid rgba(217, 173, 107, 0.48);
}

.contact-map-wide {
  margin-top: 14px;
}

.map-preview {
  position: relative;
  width: 100%;
  min-height: 240px;
  border: 1px solid rgba(231, 190, 124, 0.55);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(244, 211, 157, 0.08);
  padding: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(197, 146, 74, 0.18), transparent 70%),
    linear-gradient(160deg, #1d1109 0%, #261508 60%, #1a0f06 100%);
  transition: box-shadow 0.3s ease;
}

.map-preview:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 211, 157, 0.32);
}

/* grid lines */
.map-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(215, 172, 100, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 172, 100, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* glow pulse behind pin */
.map-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  top: calc(50% - 72px);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 168, 79, 0.22) 0%, transparent 70%);
  animation: map-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes map-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.3); opacity: 0.4; }
}

/* pin */
.map-pin {
  position: absolute;
  top: calc(50% - 82px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.map-preview:hover .map-pin {
  transform: translateX(-50%) translateY(-4px);
}

/* address card */
.map-addr-card {
  position: absolute;
  top: calc(50% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  gap: 3px;
  text-align: center;
  min-width: 240px;
  max-width: min(400px, calc(100% - 60px));
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(231, 190, 124, 0.32);
  background: rgba(14, 8, 4, 0.72);
  backdrop-filter: blur(6px);
  line-height: 1.35;
}

.map-addr-name {
  font-family: "Cinzel", "Noto Sans Thai", serif;
  font-size: 15px;
  font-weight: 700;
  color: #f2d59a;
  white-space: nowrap;
}

.map-addr-detail {
  font-size: 12px;
  color: #d8be97;
  line-height: 1.5;
}

/* bottom overlay */
.map-preview-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.35;
  color: #fff3db;
  background: linear-gradient(180deg, transparent, rgba(8, 4, 2, 0.88));
}

.map-preview-overlay-left {
  display: grid;
  gap: 2px;
}

.map-preview-overlay strong {
  font-size: 15px;
  font-weight: 700;
  color: #f2d59a;
}

.map-preview-overlay small {
  font-size: 11px;
  color: #c9aa7a;
}

.map-preview-overlay-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.map-preview-frame {
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(244, 211, 157, 0.32);
  border-radius: 10px;
  pointer-events: none;
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(217, 173, 107, 0.36);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  line-height: 0;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(6, 3, 2, 0.78);
  backdrop-filter: blur(4px);
}

.map-modal-dialog {
  width: min(1240px, 100%);
  height: min(88vh, 860px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(225, 182, 118, 0.48);
  background: #120b06;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.52);
  display: grid;
  grid-template-rows: auto 1fr;
}

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(225, 182, 118, 0.26);
  color: #f6dfb7;
}

.map-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.map-modal-close {
  border: 1px solid rgba(225, 182, 118, 0.44);
  color: #f6dfb7;
  background: rgba(255, 255, 255, 0.05);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.map-modal-body {
  min-height: 0;
}

.seo-link-wrap {
  margin: 24px auto 0;
  max-width: 1040px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.seo-link-group {
  border-radius: 12px;
  border: 1px solid rgba(118, 79, 49, 0.2);
  background: linear-gradient(180deg, #fffdf8 0%, #f6ebdb 100%);
  padding: 12px;
}

.seo-link-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--brown-700);
}

.seo-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.seo-link-card {
  border: 1px solid rgba(139, 99, 64, 0.26);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4d3522;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.seo-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 146, 74, 0.66);
}

.footer {
  background: #090503;
  color: #bda888;
  text-align: center;
  border-top: 1px solid rgba(217, 173, 107, 0.2);
  padding: 16px;
  font-size: 12px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 260;
  display: flex;
  justify-content: center;
}

.cookie-banner-content {
  width: min(820px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(223, 186, 126, 0.42);
  background:
    linear-gradient(180deg, rgba(25, 15, 9, 0.98) 0%, rgba(18, 10, 6, 0.98) 100%),
    repeating-linear-gradient(130deg, rgba(223, 186, 126, 0.05) 0 2px, transparent 2px 10px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  color: #e8d7b8;
  padding: 14px 16px;
}

.cookie-banner-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #f2d59a;
}

.cookie-banner-text {
  margin: 8px 0 12px;
  font-size: 13px;
  color: #ceb893;
  line-height: 1.55;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 9px 14px;
}

.hidden {
  display: none !important;
}

.login-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.64);
  z-index: 200;
  backdrop-filter: blur(3px);
}

.login-container {
  position: relative;
  width: min(360px, 92vw);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(130, 92, 59, 0.3);
  background: linear-gradient(180deg, #fffefb 0%, #f4eadc 100%);
  box-shadow: var(--shadow-lg);
}

.login-container h2 {
  margin: 0 0 18px;
  text-align: center;
  color: var(--ink-800);
}

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.form-group label {
  font-weight: 700;
  font-size: 13px;
  color: var(--brown-700);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(114, 76, 47, 0.25);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: inherit;
  background: #fffdf8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(188, 136, 67, 0.72);
  box-shadow: 0 0 0 3px rgba(207, 157, 90, 0.16);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.cms-section {
  background: #fff4e5;
}

.cms-panel {
  border-radius: 16px;
  border: 1px solid rgba(118, 80, 47, 0.2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: #fff;
}

.cms-header {
  padding: 18px;
  background: linear-gradient(180deg, #2a180d 0%, #1d120b 100%);
  color: #f7e8ce;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cms-header h2 {
  margin: 0;
  color: var(--gold-200);
  font-size: 24px;
}

.cms-body {
  padding: 18px;
}

.cms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid rgba(124, 87, 54, 0.2);
  background: #f8ecdb;
  color: var(--brown-700);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: #2a180d;
  color: #f2dfc0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.admin-table-wrap {
  border: 1px solid rgba(123, 85, 52, 0.24);
  border-radius: 10px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th {
  text-align: left;
  background: #1b1008;
  color: #f0d89d;
  font-size: 13px;
  padding: 12px;
}

td {
  border-bottom: 1px solid rgba(132, 95, 62, 0.16);
  padding: 12px;
  font-size: 13px;
}

.thumb-pair {
  display: flex;
  gap: 8px;
}

.thumb-pair img {
  width: 70px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #195f28;
  background: #daf5de;
}

.action-btn {
  border: 0;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.edit {
  background: #f1cd8a;
  color: #2f1b0c;
}

.delete {
  background: #ffd9d1;
  color: #a62217;
}

@media (max-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-masonry {
    column-count: 3;
  }
}


@media (max-width: 1024px) {
  .site-shell {
    width: min(100%, calc(100% - 16px));
    margin: 8px auto;
  }

  .brand-sub,
  .call-btn {
    display: none;
  }

  .menu {
    display: none;
  }

  .menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 12px;
    min-width: 170px;
    padding: 12px;
    border-radius: 10px;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    background: rgba(18, 10, 6, 0.98);
    border: 1px solid rgba(217, 173, 107, 0.28);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  }

  .menu a {
    width: 100%;
    text-align: right;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 64px 8px;
  }

  .hero p {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-masonry {
    column-count: 2;
  }

  .about-grid,
  .contact-grid,
  .testimonial-grid,
  .form-grid,
  .seo-link-wrap {
    grid-template-columns: 1fr;
  }

  .contact-qr-box {
    min-height: 240px;
  }

  .map-preview {
    min-height: 200px;
  }

  .map-addr-card {
    padding: 9px 13px;
    min-width: 180px;
  }

  .map-addr-name {
    font-size: 13px;
  }

  .map-addr-detail {
    font-size: 11px;
  }

  .map-preview-overlay {
    padding: 10px 14px;
  }

  .map-preview-overlay strong {
    font-size: 13px;
  }

  .map-preview-overlay small {
    font-size: 10px;
  }

  .map-preview-frame {
    inset: 8px;
  }

  .map-modal {
    padding: 8px;
  }

  .map-modal-dialog {
    width: 100%;
    height: 88vh;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-content {
    padding: 12px;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 96px;
  }

  .container {
    width: min(100%, calc(100% - 20px));
  }

  .nav {
    min-height: 82px;
    padding: 0 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero {
    min-height: 460px;
  }

  .hero::after {
    inset: 7px;
  }

  .hero-content {
    padding: 54px 6px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-content {
    padding: 10px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    column-count: 1;
  }

  .before-after {
    height: 320px;
  }

  .about-image {
    margin: 0 auto;
  }

  .about-image img {
    min-height: 0;
    height: auto;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .section-title p {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-offset: 90px;
  }

  .site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-ch-value {
    font-size: 13px;
  }

  .contact-ch-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .contact-qr-img {
    width: 138px;
    height: 138px;
  }

  .footer {
    font-size: 11px;
  }
}
