:root {
  --ink: #1a2e26;
  --ink-soft: #3d5248;
  --muted: #6a7d73;
  --bg: #eef3ef;
  --bg-deep: #d8e4dc;
  --surface: #fafcfb;
  --accent: #1e4a3c;
  --accent-mid: #2f6b57;
  --accent-soft: #8fb09f;
  --brass: #b08a52;
  --brass-soft: #d4bc8e;
  --line: rgba(30, 74, 60, 0.14);
  --danger: #8b3a3a;
  --success: #1e5c45;
  --shadow: 0 18px 40px rgba(26, 46, 38, 0.08);
  --radius: 4px;
  --font-display: "Cormorant Garamond", "Sarabun", Georgia, serif;
  --font-body: "Sarabun", "Noto Sans Thai", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(176, 138, 82, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 107, 87, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #f4f7f5 40%, var(--bg-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--accent-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  background: #f8e8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0b4b4;
  font-size: 0.95rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 252, 251, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(26, 46, 38, 0.06);
  background: rgba(250, 252, 251, 0.95);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--accent-mid), var(--accent)),
    var(--accent);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 8px 8px 10px;
  border-left: 2px solid var(--brass-soft);
  border-bottom: 2px solid var(--brass-soft);
  transform: skewX(-12deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: #f5faf7 !important;
  padding: 0.55rem 1rem !important;
  border-radius: var(--radius);
  margin-left: 0.35rem;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-mid); color: #fff !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--accent);
  color: #f7fbf9;
}

.btn-primary:hover {
  background: var(--accent-mid);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(30, 74, 60, 0.06);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.btn-brass {
  background: var(--brass);
  color: #fff;
}

.btn-brass:hover {
  background: #9a7644;
  color: #fff;
}

/* Hero — asymmetric composition */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(250, 252, 251, 0.96), rgba(232, 240, 235, 0.9));
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 0;
  width: 4px;
  height: 120px;
  background: linear-gradient(180deg, var(--brass), var(--accent-soft));
  animation: drawBar 1s ease forwards;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: riseIn 0.8s 0.15s ease forwards;
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 28ch;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: riseIn 0.8s 0.3s ease forwards;
}

.hero-support {
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 2rem;
  opacity: 0;
  animation: riseIn 0.8s 0.45s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: riseIn 0.8s 0.55s ease forwards;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  animation: kenBurns 18s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(238, 243, 239, 0.35), transparent 35%);
  pointer-events: none;
}

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

@keyframes drawBar {
  from { height: 0; }
  to { height: 120px; }
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section- Tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Offer grid — not cards by default; use editorial list */
.offer-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.offer-item {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}

.offer-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.92);
}

.offer-item h3 {
  margin-bottom: 0.4rem;
}

.offer-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.offer-item a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  color: var(--accent);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.split-reverse .split-media { order: 2; }

/* Quote strip */
.quote-strip {
  background: var(--accent);
  color: #e8f0eb;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.quote-strip blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.45;
  max-width: 38rem;
}

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

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.page-hero-media {
  margin-top: 2rem;
}

.page-hero-media img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* Service list */
.service-list {
  display: grid;
  gap: 2.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.service-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.service-meta {
  font-size: 0.88rem;
  color: var(--brass);
  margin-bottom: 0.5rem;
}

/* Detail blocks */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin: 2rem 0;
}

.detail-block {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.detail-block p,
.detail-block ul {
  color: var(--ink-soft);
  margin: 0;
}

.detail-block ul {
  padding-left: 1.1rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
}

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

.rate-table th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.rate-note {
  background: rgba(30, 74, 60, 0.06);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brass);
}

/* Reviews */
.review-stack {
  display: grid;
  gap: 2rem;
}

.review {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.review p {
  font-size: 1.08rem;
}

.review-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.case-study {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.case-study h3 {
  color: var(--accent);
}

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

.blog-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
}

.blog-item h2 {
  font-size: 1.35rem;
}

.blog-item h2 a {
  text-decoration: none;
  color: var(--ink);
}

.blog-item h2 a:hover {
  color: var(--accent-mid);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details p {
  margin-bottom: 0.75rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent-mid);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  background: #e4f2ea;
  color: var(--success);
}

.form-status.is-error {
  background: #f8e8e8;
  color: var(--danger);
}

/* Process steps */
.process-steps {
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass);
  line-height: 1;
  min-width: 3rem;
}

/* Legal */
.legal-body {
  max-width: 46rem;
}

.legal-body h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

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

.legal-body th {
  background: rgba(30, 74, 60, 0.06);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c5d4cb;
  margin-top: 3rem;
  padding: 3.5rem 0 0;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #f0f5f2;
  margin-bottom: 0.75rem;
}

.footer-heading {
  color: var(--brass-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #c5d4cb;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(197, 212, 203, 0.15);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(26, 46, 38, 0.12);
  animation: riseIn 0.4s ease;
}

.cookie-banner-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 4rem) 0;
}

.cta-band p {
  max-width: 36ch;
  margin-inline: auto;
  color: var(--muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-role {
  color: var(--brass);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 320px;
    order: -1;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, transparent 40%, rgba(238, 243, 239, 0.85));
  }

  .offer-rail,
  .blog-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .split-reverse .split-media,
  .service-row,
  .contact-layout,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-media { order: 0; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1.25rem;
    display: none;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    padding: 2rem 1.25rem 2.5rem;
  }

  .rate-table {
    font-size: 0.9rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}
