:root {
  --color-ink: #1a221c;
  --color-ink-soft: #3d4a40;
  --color-muted: #5c6b60;
  --color-paper: #f3efe6;
  --color-paper-deep: #e7e0d2;
  --color-white: #fffcf7;
  --color-forest: #1f4a3a;
  --color-forest-deep: #143328;
  --color-moss: #3d6b54;
  --color-brass: #c4a574;
  --color-brass-deep: #9a7a4a;
  --color-line: #cfc6b4;
  --color-error: #8b2e2e;
  --color-ok: #1f4a3a;
  --font-display: "Bai Jamjuree", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 2px;
  --shadow-soft: 0 12px 40px rgba(26, 34, 28, 0.08);
  --header-h: 4.25rem;
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(61, 107, 84, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(196, 165, 116, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-brass-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-forest-deep);
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}

.btn--primary:hover {
  background: var(--color-forest-deep);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn--ghost:hover {
  background: var(--color-forest);
  color: var(--color-white);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-forest-deep);
  border-color: var(--color-white);
}

.btn--light:hover {
  background: var(--color-brass);
  border-color: var(--color-brass);
  color: var(--color-ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-forest-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.site-header__toggle span:not(.visually-hidden) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--color-ink);
  margin: 0 auto;
  position: relative;
}

.site-header__toggle span:not(.visually-hidden)::before,
.site-header__toggle span:not(.visually-hidden)::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
}

.site-header__toggle span:not(.visually-hidden)::before { top: -6px; }
.site-header__toggle span:not(.visually-hidden)::after { top: 6px; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-forest);
}

@media (max-width: 860px) {
  .site-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem 1rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0.75rem; }
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  background: var(--color-forest-deep);
  color: #d7e0da;
  padding: var(--space-xl) 0 var(--space-md);
}

.site-footer a { color: var(--color-brass); }
.site-footer a:hover { color: var(--color-white); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.site-footer__heading {
  font-size: 1rem;
  color: var(--color-brass);
  margin-bottom: 0.75rem;
}

.site-footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li { margin-bottom: 0.4rem; }

.site-footer__base {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-white);
  border-top: 2px solid var(--color-forest);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
  animation: slideUp 0.45s var(--ease);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Home hero — brand-forward, full-bleed */
.home-hero {
  position: relative;
  min-height: min(92vh, 44rem);
  display: grid;
  align-items: end;
  color: var(--color-white);
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 18s var(--ease) infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(20, 51, 40, 0.92) 0%, rgba(20, 51, 40, 0.55) 48%, rgba(20, 51, 40, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 51, 40, 0.75) 0%, transparent 45%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0 var(--space-xl);
  max-width: 38rem;
  animation: fadeRise 0.9s var(--ease) both;
}

.home-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: var(--color-white);
}

.home-hero__line {
  width: 3.5rem;
  height: 3px;
  background: var(--color-brass);
  margin-bottom: 1.1rem;
  transform-origin: left;
  animation: growLine 0.8s 0.3s var(--ease) both;
}

@keyframes growLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.home-hero__text {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #e8efe9;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding-top: var(--space-lg);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}

.section__head p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.flagship {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg);
  align-items: center;
}

.flagship__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-height: 18rem;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.flagship__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
  margin-bottom: 0.5rem;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-list__item {
  border-top: 2px solid var(--color-forest);
  padding-top: 1rem;
}

.offer-list__item img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
}

.offer-list__item h3 {
  margin: 0 0 0.4rem;
}

.offer-list__item p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.offer-list__item a {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.quote-strip {
  background: var(--color-forest);
  color: #e7efe9;
  padding: var(--space-xl) 0;
}

.quote-strip blockquote {
  margin: 0;
  max-width: 42rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
  line-height: 1.55;
}

.quote-strip cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-brass);
}

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: var(--space-lg);
}

.band img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

/* Page hero */
.page-hero--plain {
  padding: var(--space-xl) 0 var(--space-md);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: var(--space-lg);
}

.page-hero--image {
  position: relative;
  min-height: 18rem;
  display: grid;
  align-items: end;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__veil {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(0deg, rgba(20, 51, 40, 0.88), rgba(20, 51, 40, 0.35));
  color: var(--color-white);
}

.page-hero__title {
  color: var(--color-white);
  margin: 0 0 0.5rem;
}

.page-hero__lead {
  margin: 0;
  max-width: 36rem;
  color: #e4ebe6;
  font-size: 1.1rem;
}

.prose {
  max-width: 46rem;
}

.prose--wide {
  max-width: none;
}

.page__body {
  padding-bottom: var(--space-xl);
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-teaser {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-teaser:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.service-teaser img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.service-teaser__body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.service-teaser h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.service-teaser h2 a {
  color: inherit;
  text-decoration: none;
}

.service-detail__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: start;
}

.service-detail__aside {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.service-detail__aside dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-moss);
  margin-top: 0.85rem;
}

.service-detail__aside dd {
  margin: 0.25rem 0 0;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-brass);
  border-radius: 1px;
}

/* Pricing */
.rate-block {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.rate-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.rate-row strong {
  font-family: var(--font-display);
  color: var(--color-forest-deep);
}

.rate-row__price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-moss);
}

/* Reviews */
.review-list {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
}

.review-item {
  background: var(--color-white);
  border-left: 3px solid var(--color-forest);
  padding: 1.2rem 1.3rem;
}

.review-item__meta {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

.review-item__service {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-brass-deep);
  margin-bottom: 0.4rem;
}

.case-story {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  max-width: 48rem;
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.post-teaser {
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.post-teaser img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.post-teaser__body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.post-teaser__date {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.post-teaser h2 {
  font-size: 1.2rem;
  margin: 0.35rem 0 0.5rem;
}

.post-teaser h2 a {
  color: inherit;
  text-decoration: none;
}

.post-article {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.post-article__cover {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  margin: 1.25rem 0;
  border-radius: var(--radius);
}

.post-article__meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Process timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  max-width: 44rem;
}

.timeline__item {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
  border-left: 2px solid var(--color-brass);
}

.timeline__item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-forest);
  border: 2px solid var(--color-brass);
  border-radius: 50%;
}

.timeline__step {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brass-deep);
  letter-spacing: 0.04em;
}

/* Forms */
.form {
  max-width: 36rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 1.5rem;
}

.form__field {
  margin-bottom: 1.1rem;
}

.form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
  color: var(--color-ink);
}

.form textarea { min-height: 8rem; resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--color-moss);
  outline-offset: 1px;
}

.form__error {
  color: var(--color-error);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  display: none;
}

.form__field.is-invalid .form__error { display: block; }
.form__field.is-invalid input,
.form__field.is-invalid select,
.form__field.is-invalid textarea {
  border-color: var(--color-error);
}

.form__status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form__status.is-success {
  display: block;
  background: #e4efe8;
  color: var(--color-ok);
  border: 1px solid var(--color-moss);
}

.form__status.is-error {
  display: block;
  background: #f7e8e8;
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-aside {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 1.25rem;
}

.contact-aside h2 {
  font-size: 1.15rem;
  margin-top: 0;
}

/* About people */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.person img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.person h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.person p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 1rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1;
  margin: 0;
}

/* Legal */
.legal h2 {
  margin-top: 2rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
  background: var(--color-white);
}

.legal th,
.legal td {
  border: 1px solid var(--color-line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--color-paper-deep);
  font-family: var(--font-display);
}

@media (max-width: 900px) {
  .flagship,
  .band,
  .service-detail__layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .offer-list,
  .people {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .rate-row {
    grid-template-columns: 1fr;
  }
  .service-detail__aside {
    position: static;
  }
}
