:root {
  --bg: #f7f3ee;
  --bg-soft: #fffdf9;
  --text: #3a332c;
  --muted: #7a6f63;
  --accent: #c9a96b;
  --accent-dark: #aa8b52;
  --line: #e7dccf;
  --card: #fcfaf7;
  --shadow: 0 10px 30px rgba(80, 60, 30, 0.08);
  --max-width: 1200px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans Thai", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}
.section {
  padding: 88px 0;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.section-subtitle {
  max-width: 700px;
  color: var(--muted);
  margin-bottom: 40px;
}
.about-title-small {
  font-size: 2rem;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 107, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
}
.logo span {
  color: var(--accent-dark);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  color: var(--muted);
  font-size: 0.98rem;
}
.nav-links a:hover {
  color: var(--accent-dark);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d9bb82);
  color: #2f271f;
  box-shadow: 0 8px 20px rgba(201, 169, 107, 0.24);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d1b274, #e2c68f);
}
.btn-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
}
.hero {
  padding: 84px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 169, 107, 0.35);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-card {
  background: linear-gradient(180deg, #fdfbf8, #f5eee5);
  border: 1px solid rgba(201, 169, 107, 0.2);
  padding: 24px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-image {
  width: 100%;
  min-height: 500px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(58, 51, 44, 0.1), rgba(58, 51, 44, 0.08)),
    url("[images.unsplash.com](https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1200&q=80)") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.floating-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(201, 169, 107, 0.28);
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 240px;
}
.floating-note strong {
  display: block;
  font-family: "Playfair Display", serif;
  margin-bottom: 6px;
  color: var(--text);
}
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-box,
.contact-card,
.service-card,
.portfolio-card,
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-highlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.mini-stat {
  padding: 18px;
  border-radius: 18px;
  background: #f8f2ea;
  border: 1px solid rgba(201, 169, 107, 0.2);
}
.mini-stat strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.services-grid,
.portfolio-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card h3,
.portfolio-card h3,
.feature-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(201, 169, 107, 0.18), rgba(201, 169, 107, 0.08));
  color: var(--accent-dark);
  font-size: 1.4rem;
  font-weight: 700;
}
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.portfolio-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.portfolio-card p {
  color: var(--muted);
}

/* Portfolio category tabs */
.portfolio-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), #d9bb82);
  border-color: transparent;
  color: #2f271f;
  box-shadow: 0 8px 20px rgba(201, 169, 107, 0.24);
}

.portfolio-panel {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Portfolio slider (single card, multiple slides) */
.portfolio-slider {
  position: relative;
  padding: 20px 20px 64px;
  max-width: 760px;
  margin: 0 auto;
}

.slider-viewport {
  overflow: hidden;
  border-radius: 18px;
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
}

.slide .portfolio-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

.slide .portfolio-image:hover {
  filter: brightness(0.94);
}

.slide figcaption h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.slide figcaption p {
  color: var(--muted);
}

.slider-arrow {
  position: absolute;
  top: calc(50% - 22px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.slider-arrow:hover {
  background: var(--accent);
  color: #2f271f;
  border-color: var(--accent);
}

.slider-prev {
  left: 4px;
}

.slider-next {
  right: 4px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(201, 169, 107, 0.35);
  cursor: pointer;
  padding: 0;
  transition: 0.2s ease;
}

.slider-dot.active {
  background: var(--accent-dark);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .portfolio-slider {
    padding: 14px 14px 56px;
  }
  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .slider-prev {
    left: 0;
  }
  .slider-next {
    right: 0;
  }
}

/* Lightbox for full-size image viewing */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 16, 12, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fdfbf8;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fdfbf8;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 640px) {
  .lightbox-overlay {
    padding: 16px;
  }
  .lightbox-close {
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

.quote-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #f6efe6, #fbf8f3);
  border-top: 1px solid rgba(201, 169, 107, 0.15);
  border-bottom: 1px solid rgba(201, 169, 107, 0.15);
}
.quote-box {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.quote-box h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}
.quote-box p {
  color: var(--muted);
  font-size: 1.05rem;
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.contact-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-list strong {
  color: var(--text);
  display: inline-block;
  min-width: 90px;
}
.contact-list a {
  color: var(--accent-dark);
  word-break: break-word;
}
.contact-list a:hover {
  text-decoration: underline;
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdfa;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 169, 107, 0.12);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
footer {
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .services-grid,
  .portfolio-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    min-height: 420px;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }
  .nav-links.active {
    display: flex;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    padding-top: 54px;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .about-highlight {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .floating-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}