:root {
  --ink: #142428;
  --ink-soft: #3a4f54;
  --paper: #f3f6f4;
  --paper-deep: #e4ece8;
  --teal: #0a4f56;
  --teal-deep: #073940;
  --teal-mid: #1a6b73;
  --gold: #c9a05a;
  --gold-soft: #e8c27a;
  --mist: #d7e4df;
  --line: rgba(10, 79, 86, 0.14);
  --shadow: 0 18px 40px rgba(7, 57, 64, 0.1);
  --radius: 4px;
  --font-display: "Prompt", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 160, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(26, 107, 115, 0.12), transparent 50%),
    linear-gradient(165deg, #f7faf8 0%, var(--paper) 45%, #eef4f1 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

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

a {
  color: var(--teal-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

p {
  margin: 0 0 1rem;
}

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

.inline-error {
  position: relative;
  z-index: 100;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fde8e8;
  color: #7a1f1f;
  text-align: center;
}

[data-include] {
  display: contents;
}

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

.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;
}

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

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background:
    linear-gradient(145deg, var(--teal) 0%, var(--teal-mid) 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(232, 194, 122, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 18%;
  top: 48%;
  height: 2px;
  background: var(--gold-soft);
  box-shadow:
    -4px -5px 0 -0.5px var(--gold-soft),
    5px 4px 0 -0.5px var(--gold-soft);
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-deep);
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--teal);
  margin: 4px 0;
}

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

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

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

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: var(--radius);
}

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

.nav-cta:hover {
  background: var(--teal-deep);
  color: #fff !important;
}

/* Layout */
main {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

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

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

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 79, 86, 0.22);
}

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

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

.btn-ghost:hover {
  background: rgba(10, 79, 86, 0.06);
  color: var(--teal-deep);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8893f 100%);
  color: #1a160e;
}

.btn-gold:hover {
  color: #1a160e;
  filter: brightness(1.05);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero home — full-bleed visual plane */
.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #f5faf8;
  overflow: hidden;
}

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

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

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 57, 64, 0.88) 0%, rgba(7, 57, 64, 0.55) 48%, rgba(7, 57, 64, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 57, 64, 0.65) 0%, transparent 45%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
  animation: riseIn 0.9s ease both;
}

.hero-home .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.hero-home h1 {
  color: var(--gold-soft);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  max-width: 28rem;
  margin-bottom: 0.85rem;
}

.hero-home .hero-support {
  max-width: 32rem;
  color: rgba(245, 250, 248, 0.88);
  font-size: 1.05rem;
}

.hero-home .btn-primary {
  background: var(--gold);
  color: #1a160e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero-home .btn-primary:hover {
  background: var(--gold-soft);
  color: #1a160e;
}

.hero-home .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero-home .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, 1%);
  }
}

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

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

.reveal {
  animation: fadeSlide 0.8s ease both;
}

.reveal-delay {
  animation-delay: 0.15s;
}

/* Page hero (inner) */
.page-hero {
  padding: 3.25rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(215, 228, 223, 0.55), transparent 60%);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 18ch;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}

.page-hero-split img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px 48px 2px 2px;
  box-shadow: var(--shadow);
}

/* Offer preview */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.offer-item {
  position: relative;
  padding-top: 0.25rem;
}

.offer-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}

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

.offer-item h3 a {
  text-decoration: none;
  color: inherit;
}

.offer-item h3 a:hover {
  color: var(--teal-mid);
}

/* Flagship band */
.flagship-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--teal-deep);
  color: #e8f2f0;
  overflow: hidden;
}

.flagship-band img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.flagship-copy {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flagship-copy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.flagship-copy p {
  color: rgba(232, 242, 240, 0.88);
}

/* Evidence / quotes */
.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote-block {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.quote-block p {
  font-size: 1.08rem;
  color: var(--ink);
}

.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

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

.split-narrative img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 48px 2px 48px 2px;
}

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

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

.rate-table th {
  font-family: var(--font-display);
  color: var(--teal);
  font-weight: 600;
}

.rate-note {
  background: var(--paper-deep);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--teal);
}

.price-figure {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal-deep);
  font-weight: 600;
}

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

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

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

.blog-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.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;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

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

.review-item.wide {
  grid-column: 1 / -1;
}

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

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

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

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--teal-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(26, 107, 115, 0.35);
  border-color: var(--teal-mid);
}

.field-error {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: #9b2c2c;
  margin-top: 0.25rem;
}

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

.form-status.is-success {
  background: #e3f4ea;
  color: #1d5c38;
}

.form-status.is-error {
  background: #fde8e8;
  color: #7a1f1f;
}

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

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

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

.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: var(--paper-deep);
}

/* 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, 10vw, 5rem);
  color: var(--teal);
}

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: rgba(232, 242, 240, 0.88);
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-tag {
  max-width: 28rem;
  color: rgba(232, 242, 240, 0.7);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 2rem;
}

.footer-col h2 {
  font-size: 0.95rem;
  color: var(--gold-soft);
  margin-bottom: 0.75rem;
}

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

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

.footer-col a {
  color: rgba(232, 242, 240, 0.88);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(232, 242, 240, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 6px;
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
}

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

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

/* Service detail */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
}

.detail-meta dt {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--teal);
  margin-bottom: 0.15rem;
}

.detail-meta dd {
  margin: 0 0 0.75rem;
  color: var(--ink);
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .offer-grid,
  .flagship-band,
  .split-narrative,
  .page-hero-split,
  .contact-layout,
  .review-grid,
  .blog-card,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .flagship-band img {
    min-height: 240px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(243, 246, 244, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 480px;
  }

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

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

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

@media (max-width: 600px) {
  .hero-home {
    min-height: 85vh;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }
}
