:root {
  --bg: #f8f4ec;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --navy: #0d2343;
  --navy-soft: #1e3557;
  --gold: #c8a56b;
  --gold-soft: #efe1c5;
  --text: #182131;
  --muted: #6f6a60;
  --line: rgba(13, 35, 67, 0.12);
  --shadow: 0 24px 60px rgba(24, 33, 49, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#hero,
#products,
#portfolio,
#services,
#about,
#contact {
  scroll-margin-top: 108px;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 165, 107, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

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

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

.container {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 35, 67, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(8, 18, 34, 0.16);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.72);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.phone-chip,
.quote-chip,
.btn,
.detail-btn,
.cta-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.phone-chip {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.quote-chip,
.btn-light {
  background: linear-gradient(135deg, #d5b47e, #c29a54);
  color: #11243e;
  box-shadow: 0 16px 30px rgba(194, 154, 84, 0.28);
}

.hero {
  padding: 26px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 0;
  align-items: stretch;
  background: var(--surface-strong);
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 74px 56px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 244, 0.92)),
    radial-gradient(circle at top left, rgba(200, 165, 107, 0.12), transparent 32%);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--navy-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(24, 33, 49, 0.12);
}

.hero-cta-call {
  background: rgba(13, 35, 67, 0.08);
  color: var(--navy);
  border: 1px solid rgba(13, 35, 67, 0.12);
}

.hero-cta-line {
  background: linear-gradient(135deg, #06c755, #04a748);
  color: #fff;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(200, 165, 107, 0.14);
  color: var(--navy-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-dark,
.detail-btn,
.cta-action {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 30px rgba(13, 35, 67, 0.18);
}

.btn-light {
  background: transparent;
  border: 1px solid rgba(200, 165, 107, 0.6);
  box-shadow: none;
  color: #9c753d;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.trust-row {
  background: var(--surface);
  border-bottom: 1px solid rgba(13, 35, 67, 0.08);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 22px 0;
}

.trust-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.trust-item strong {
  color: var(--navy-soft);
  font-size: 1rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 44px 0 0;
}

.section-layout {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 26px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(13, 35, 67, 0.08);
}

.reverse {
  grid-template-columns: 0.68fr 0.32fr;
}

.reverse .gallery-combo {
  order: 1;
}

.reverse .section-copy {
  order: 2;
}

.section-copy {
  padding: 0 12px;
}

.section-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  color: var(--navy);
  line-height: 1.08;
}

.section-copy h3 {
  margin: 8px 0 0;
  font-size: 1.65rem;
  color: #bb9151;
  font-weight: 500;
}

.section-copy p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.9;
}

.gallery-equal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-thumb,
.reviewer img {
  border-radius: var(--radius-md);
}

.gallery-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-thumb:hover img {
  transform: scale(1.02);
}

.detail-btn {
  margin-top: 22px;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.product-actions .detail-btn {
  margin-top: 0;
  min-height: 52px;
  width: 100%;
  padding: 0 14px;
}

.product-call-btn {
  background: rgba(13, 35, 67, 0.08);
  color: var(--navy);
  border: 1px solid rgba(13, 35, 67, 0.12);
  box-shadow: none;
}

.product-line-btn {
  background: linear-gradient(135deg, #06c755, #04a748);
  color: #fff;
}

.testimonials {
  padding-bottom: 24px;
}

.center-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--navy);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.review-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.stars {
  color: #c89d58;
  letter-spacing: 0.18em;
  font-size: 1rem;
}

.review-card p {
  color: var(--muted);
  line-height: 1.8;
  min-height: 104px;
}

.reviewer {
  display: flex;
  gap: 14px;
  align-items: center;
}

.reviewer img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
}

.reviewer strong {
  display: block;
  color: var(--navy);
}

.reviewer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 18px 0 6px;
  color: #8b847a;
  font-weight: 700;
  text-align: center;
}

.brand-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(13, 35, 67, 0.08);
  box-shadow: 0 12px 24px rgba(24, 33, 49, 0.05);
  white-space: nowrap;
}

.cta-band {
  padding-top: 18px;
}

.compact-info {
  padding-top: 24px;
}

.service-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fact-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.fact-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 16px 30px rgba(24, 33, 49, 0.08);
}

.fact-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.2rem;
}

.fact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cta-band-inner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 22px;
}

.cta-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-item {
  display: grid;
  gap: 6px;
}

.cta-item strong {
  font-size: 1.55rem;
}

.cta-item span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  line-height: 1.8;
}

.cta-visual {
  border-radius: 20px;
  overflow: hidden;
  min-height: 190px;
  box-shadow: 0 18px 36px rgba(8, 18, 34, 0.22);
}

.cta-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  margin-top: 30px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.9fr 0.95fr;
  gap: 30px;
  padding: 42px 0 28px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  display: block;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-bottom div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-hero {
  padding: 30px 0 10px;
}

.detail-hero-box {
  background: var(--surface-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
}

.detail-copy {
  padding: 48px;
}

.detail-copy h1 {
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1.04;
  color: var(--navy);
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.detail-copy ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.detail-hero-box img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--navy-soft);
  font-weight: 700;
}

.detail-actions {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 35, 67, 0.04), rgba(13, 35, 67, 0.08));
  border: 1px solid rgba(13, 35, 67, 0.08);
}

.detail-actions .back-link {
  margin-top: 0;
}

.detail-action-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

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

.detail-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 18px 34px rgba(24, 33, 49, 0.16);
}

.detail-call {
  background: linear-gradient(135deg, #0d2343, #23416b);
  color: #fff;
}

.detail-line {
  background: linear-gradient(135deg, #06c755, #04a748);
  color: #fff;
}

.detail-actions-bottom {
  justify-content: center;
  margin-top: 24px;
}

.detail-gallery-section {
  padding-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.detail-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.detail-note {
  margin-top: 14px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .topbar-inner,
  .trust-grid,
  .section-layout,
  .review-grid,
  .brand-strip,
  .footer-grid,
  .service-facts {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    display: grid;
  }

  .hero-grid,
  .detail-hero-box,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .reverse .section-copy {
    order: initial;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  #hero,
  #products,
  #portfolio,
  #services,
  #about,
  #contact {
    scroll-margin-top: 88px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .topbar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }

  .brand-title,
  .brand-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    order: 3;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: rgba(13, 35, 67, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(8, 18, 34, 0.26);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    white-space: normal;
    font-size: 0.92rem;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
  }

  .top-actions {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    order: 2;
  }

  .phone-chip,
  .quote-chip,
  .btn,
  .detail-btn,
  .cta-action {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .phone-chip,
  .quote-chip {
    white-space: nowrap;
    border-radius: 16px;
  }

  .phone-chip {
    min-width: 108px;
  }

  .quote-chip {
    min-width: 118px;
  }

  .hero-copy {
    padding: 26px 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-visual img {
    min-height: 220px;
  }

  .hero-badges {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-cta-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cta {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
  }

  .hero-badges span {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .product-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-actions .detail-btn {
    min-height: 48px;
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .brand-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-template-columns: none;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding: 18px 0 10px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .brand-strip::-webkit-scrollbar {
    display: none;
  }

  .brand-strip span {
    min-width: 132px;
    scroll-snap-align: start;
  }

  .gallery-equal-grid,
  .detail-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-equal-grid::-webkit-scrollbar,
  .detail-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb,
  .detail-grid img {
    scroll-snap-align: start;
  }

  .detail-copy {
    padding: 32px 24px;
  }

  .detail-actions {
    padding: 16px;
  }

  .detail-quick-actions {
    grid-template-columns: 1fr;
  }

  .detail-contact,
  .detail-actions .back-link {
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band-inner,
  .cta-copy {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-copy {
    gap: 16px;
  }

  .cta-visual {
    min-height: 220px;
  }
}
