:root {
  --ink: #1a2e2a;
  --forest: #1e4d3d;
  --forest-deep: #14352b;
  --sage: #6f9082;
  --mist: #d7e5df;
  --paper: #f0f4f2;
  --white: #fafcfb;
  --gold: #b08d2e;
  --gold-soft: #e6d7a8;
  --line: rgba(30, 77, 61, 0.16);
  --shadow: 0 18px 40px rgba(20, 53, 43, 0.08);
  --radius: 14px;
  --font-display: "Kanit", "Sarabun", sans-serif;
  --font-body: "Sarabun", 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(1200px 500px at 10% -10%, rgba(176, 141, 46, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(111, 144, 130, 0.18), transparent 50%),
    linear-gradient(180deg, #e8f0ec 0%, var(--paper) 28%, #eef3f0 100%);
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

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

.inline-error {
  background: #f8e6e4;
  color: #7a2e28;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--forest);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
  border-radius: 8px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(240, 244, 242, 0.88);
  border-bottom: 1px solid var(--line);
  animation: headerIn 0.7s ease both;
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, var(--gold-soft), transparent 55%),
    linear-gradient(215deg, var(--forest), var(--forest-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px 10px 11px 10px;
  border: 2px solid rgba(232, 240, 236, 0.9);
  border-radius: 4px;
  border-right-color: transparent;
  transform: rotate(-18deg);
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest-deep);
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--sage);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--forest);
  display: block;
}

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

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

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

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--forest);
  color: var(--white) !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px;
  text-decoration: none !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--forest-deep);
  color: var(--white) !important;
}

/* Layout */
.page-main {
  overflow-x: clip;
}

.section {
  padding: 4.5rem 1.25rem;
}

.section-tight {
  padding: 3rem 1.25rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  max-width: 18ch;
}

.section-lead {
  max-width: 58ch;
  color: rgba(26, 46, 42, 0.82);
  font-size: 1.08rem;
}

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

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

.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(30, 77, 61, 0.22);
}

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

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--forest-deep);
}

.btn-gold {
  background: linear-gradient(135deg, #c9a63a, #9a7a22);
  color: #1a180f;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.8s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}
.reveal-delay-2 {
  animation-delay: 0.24s;
}
.reveal-delay-3 {
  animation-delay: 0.36s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Home hero — full-bleed photographic plane */
.hero-home {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}

.hero-home-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 53, 43, 0.88) 0%, rgba(20, 53, 43, 0.55) 48%, rgba(20, 53, 43, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 53, 43, 0.75) 0%, transparent 45%);
}

.hero-home-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1.25rem 4rem;
  width: 100%;
}

.hero-home h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  max-width: 12ch;
  margin-bottom: 0.5rem;
}

.hero-home .brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-home p {
  max-width: 36ch;
  font-size: 1.15rem;
  color: rgba(250, 252, 251, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Content bands */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

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

.offer-item {
  padding: 1.4rem 1.3rem 1.5rem;
  border-top: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.45);
}

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

.offer-item p {
  margin-bottom: 0.9rem;
  color: rgba(26, 46, 42, 0.8);
  font-size: 0.98rem;
}

.offer-item a {
  font-weight: 600;
  text-decoration: none;
}

.quote-band {
  background: linear-gradient(135deg, var(--forest-deep), var(--forest));
  color: var(--white);
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  max-width: 28ch;
}

.quote-band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  color: var(--gold-soft);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
  margin-top: 2rem;
}

.step {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 1.05rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: 4.5rem 1.25rem 2.5rem;
  position: relative;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 54ch;
  font-size: 1.1rem;
}

.page-hero-visual {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 360px;
}

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

/* Service cards — interaction containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  font-size: 1.15rem;
}

.service-card p {
  flex: 1;
  color: rgba(26, 46, 42, 0.8);
  font-size: 0.98rem;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.rate-table th {
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
}

.rate-note {
  font-size: 0.95rem;
  color: rgba(26, 46, 42, 0.75);
}

.factor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.factor-item {
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.45);
}

/* Reviews */
.review-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.review {
  padding: 1.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review p {
  margin-bottom: 0.85rem;
}

.review footer {
  font-size: 0.92rem;
  color: var(--sage);
}

.case-story {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.case-story img {
  border-radius: var(--radius);
  width: 100%;
  height: 280px;
  object-fit: cover;
}

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

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.blog-card time {
  font-size: 0.85rem;
  color: var(--sage);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

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

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}

.article-cover img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

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

.contact-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h2 {
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

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

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

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

.form-group .is-invalid {
  border-color: #b34a42;
}

.field-error {
  color: #8d3530;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.form-status--success {
  background: #dff0e6;
  color: #1e4d3d;
}

.form-status--error {
  background: #f8e6e4;
  color: #7a2e28;
}

.form-status--pending {
  background: #eef2ef;
  color: var(--ink);
}

/* Legal */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

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

.cookie-table th {
  background: var(--mist);
}

/* Area map style list */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.area-item {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.area-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

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

.detail-meta div {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.detail-meta strong {
  display: block;
  font-family: var(--font-display);
  color: var(--forest);
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(250, 252, 251, 0.88);
  margin-top: 3rem;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 0.7rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 1.25rem 1.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(250, 252, 251, 0.65);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

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

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

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

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

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.2rem;
}

/* Prose utilities */
.text-muted {
  color: rgba(26, 46, 42, 0.75);
}

.mt-2 {
  margin-top: 2rem;
}

.stack > * + * {
  margin-top: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .split-reverse,
  .case-story,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .offer-strip,
  .card-grid,
  .blog-grid,
  .area-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .detail-meta,
  .factor-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(240, 244, 242, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

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

  .nav-list a {
    padding: 0.55rem 0.2rem;
  }

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

  .offer-strip,
  .card-grid,
  .blog-grid,
  .area-grid,
  .steps,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-home-content {
    padding-top: 6rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}
