:root {
  --ink: #152628;
  --ink-soft: #3a4a4c;
  --teal: #0d3b3e;
  --teal-mid: #1a5559;
  --teal-soft: #d7e6e7;
  --mist: #eef3f2;
  --paper: #f5f7f6;
  --gold: #c9a66b;
  --gold-deep: #a67c42;
  --line: rgba(13, 59, 62, 0.14);
  --shadow: 0 18px 40px rgba(21, 38, 40, 0.08);
  --radius: 14px;
  --header-h: 4.5rem;
  --font-display: "Noto Serif Thai", "Noto Serif", Georgia, serif;
  --font-body: "Sarabun", "Tahoma", sans-serif;
  --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.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 166, 107, 0.16), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(13, 59, 62, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper), var(--mist) 48%, var(--paper));
  min-height: 100vh;
}

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(--gold-deep);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 246, 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: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal);
  max-width: min(22rem, 58vw);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(135deg, var(--teal) 55%, var(--gold) 55%);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}

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

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal) !important;
}

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

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

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

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

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

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

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 59, 62, 0.28) 0%, rgba(13, 59, 62, 0.72) 72%, rgba(13, 59, 62, 0.88) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 42rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.4rem;
}

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

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

.btn-primary {
  background: var(--gold);
  color: var(--teal);
}

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

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

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

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

.section {
  padding: 4.5rem 0;
}

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

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

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

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

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

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

.frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

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

.frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(13, 59, 62, 0.35));
  pointer-events: none;
}

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

@media (min-width: 760px) {
  .offer-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.offer {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

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

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

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

.quote-block {
  background: var(--teal);
  color: #eef6f6;
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.quote-block::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(201, 166, 107, 0.18);
  top: -3rem;
  right: -2rem;
}

.quote-block p {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
}

.quote-meta {
  position: relative;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.95rem;
}

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

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

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

.page-hero p {
  max-width: 40rem;
  color: var(--ink-soft);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
}

.rate-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .rate-row {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.rate-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.rate-panel .price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--teal);
  margin: 0.2rem 0 0.8rem;
}

.review-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review {
  background: rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.3rem;
}

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

.review cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.story {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

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

@media (min-width: 760px) {
  .blog-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease);
}

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

.blog-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.blog-card .body {
  padding: 1.1rem 1.15rem 1.3rem;
}

.blog-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

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

.article-hero img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
}

.form {
  display: grid;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--teal);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--ink);
}

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

.form .error {
  color: #8b2e2e;
  font-size: 0.88rem;
  font-weight: 400;
  min-height: 1.1em;
}

.form .field-error input,
.form .field-error select,
.form .field-error textarea {
  border-color: #8b2e2e;
}

.form-status {
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e5f3ea;
  color: #1f5a34;
}

.form-status.is-error {
  display: block;
  background: #f8e8e8;
  color: #7a2b2b;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-card {
  background: var(--teal);
  color: #edf5f5;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card a {
  color: var(--gold);
}

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

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

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

.site-footer {
  margin-top: 3rem;
  background: var(--teal);
  color: #d9e7e8;
  padding: 3rem 0 2rem;
}

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

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

.footer-tag {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-cols {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 800px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-heading {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

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

.footer-links a,
.footer-address,
.site-footer a {
  color: #d9e7e8;
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--gold);
}

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

.footer-address {
  font-style: normal;
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 34rem;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: riseIn 0.45s var(--ease);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.inline-error {
  margin: 0.75rem auto;
  width: min(100% - 2rem, var(--max));
  background: #f8e8e8;
  color: #7a2b2b;
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
}

.team-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.person {
  display: grid;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 560px) {
  .person {
    grid-template-columns: 10rem 1fr;
  }
}

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

.person .info {
  padding: 1rem 1rem 1.2rem 0;
}

@media (max-width: 559px) {
  .person .info {
    padding: 0 1rem 1.2rem;
  }
}

.timeline {
  display: grid;
  gap: 1rem;
  border-left: 2px solid var(--teal-soft);
  padding-left: 1.2rem;
}

.timeline-item h3 {
  margin-bottom: 0.25rem;
}

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

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

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

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

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

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 0.4rem);
    left: 1rem;
    right: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

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

  .hero-media img {
    transform: none;
  }
}
