:root {
  --ink: #142a26;
  --ink-soft: #3a4a47;
  --muted: #5f6f6b;
  --paper: #f3f6f4;
  --paper-deep: #e4ebe7;
  --surface: #ffffff;
  --teal: #134e4a;
  --teal-mid: #1a6b64;
  --teal-soft: #d7ebe7;
  --brass: #b08d57;
  --brass-deep: #8a6b3d;
  --line: rgba(19, 78, 74, 0.14);
  --shadow: 0 18px 40px rgba(20, 42, 38, 0.08);
  --radius: 4px;
  --radius-lg: 18px;
  --font-display: "Fraunces", "Sarabun", Georgia, serif;
  --font-body: "Sarabun", "Noto Sans Thai", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --header-h: 4.5rem;
}

*,
*::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, 141, 87, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(19, 78, 74, 0.1), transparent 50%),
    linear-gradient(180deg, #eef4f1 0%, var(--paper) 28%, #f7f9f8 100%);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

p {
  margin: 0 0 1rem;
}

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

.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: -3rem;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: var(--radius);
}

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

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fde8e4;
  color: #7a2e22;
  border-bottom: 1px solid #f0c4ba;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 244, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  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.4rem;
  height: 2.4rem;
  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(196, 165, 116, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 38% 22% 38%;
  background: var(--brass);
  border-radius: 1px;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  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: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

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

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  box-shadow: 0 8px 18px rgba(19, 78, 74, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  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(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(19, 78, 74, 0.2);
}

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

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

.btn-secondary:hover {
  background: var(--teal-soft);
  color: var(--teal);
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 36, 34, 0.82) 0%, rgba(10, 36, 34, 0.55) 42%, rgba(10, 36, 34, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 36, 34, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4rem;
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  animation: riseIn 0.9s ease both;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  max-width: 28ch;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 38ch;
  animation: riseIn 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: riseIn 0.9s ease 0.32s both;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

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

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

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

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

.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

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

.offer-list {
  display: grid;
  gap: 1.25rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.offer-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.offer-row img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.offer-row h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.offer-row p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.offer-row a {
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
}

.band {
  background: linear-gradient(135deg, var(--teal) 0%, #0f3d39 100%);
  color: #fff;
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.band h2,
.band p {
  color: #fff;
}

.band p {
  opacity: 0.9;
  margin-bottom: 0;
}

.quote-stack {
  display: grid;
  gap: 1.5rem;
}

.quote {
  background: var(--surface);
  border-left: 3px solid var(--brass);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.quote p {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.quote cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

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

.page-hero p {
  max-width: 42rem;
  color: var(--muted);
}

.page-hero-media {
  margin-top: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 360px;
  box-shadow: var(--shadow);
}

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

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

.service-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
}

.service-item h3 {
  font-size: 1.25rem;
  margin: 0;
}

.service-item p {
  color: var(--muted);
  flex: 1;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.price-table th {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

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

.blog-list {
  display: grid;
  gap: 1.75rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.35rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.blog-card:hover h3 {
  color: var(--teal);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

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

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

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

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

.article ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.article li {
  margin-bottom: 0.4rem;
}

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

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

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

.contact-card address {
  font-style: normal;
  margin-bottom: 1rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(19, 78, 74, 0.35);
  border-color: var(--teal-mid);
}

.field-error {
  color: #9b2c1f;
  font-size: 0.88rem;
}

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

.form-status.is-success {
  background: #e5f4ea;
  color: #1d5c36;
}

.form-status.is-error {
  background: #fde8e4;
  color: #7a2e22;
}

.legal {
  max-width: 760px;
}

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

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

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

.legal th {
  background: var(--teal-soft);
}

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

.team-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

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

.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 3rem;
  background: #0f2f2c;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 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.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

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

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

.footer-address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

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

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

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

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

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@media (max-width: 960px) {
  .split,
  .split-reverse,
  .contact-layout,
  .service-grid,
  .footer-grid,
  .facts,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .band {
    grid-template-columns: 1fr;
  }

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

  .offer-row img,
  .blog-card img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(243, 246, 244, 0.98);
    padding: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .site-nav.is-open {
    transform: none;
  }

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

  .site-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

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

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

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

  .hero-media img {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
