:root {
  --color-bg: #eef1f4;
  --color-bg-deep: #dfe6ec;
  --color-surface: #f8f9fb;
  --color-ink: #1a2330;
  --color-ink-muted: #5a6575;
  --color-accent: #0d5c5c;
  --color-accent-dark: #094545;
  --color-gold: #c9a227;
  --color-gold-soft: #e8d48a;
  --color-border: #c5ced8;
  --color-error: #9b2c2c;
  --color-success: #1f6b4a;
  --font-display: "Prompt", sans-serif;
  --font-body: "IBM Plex Sans Thai", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 2px;
  --shadow-soft: 0 12px 40px rgba(26, 35, 48, 0.08);
  --max: 72rem;
  --header-h: 4.25rem;
  --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(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(13, 92, 92, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(201, 162, 39, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 var(--space-md);
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

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

.main {
  min-height: 60vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 249, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header__brand:hover {
  color: var(--color-accent);
}

.site-header__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.55rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.site-header__toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--color-ink);
}

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

.site-header__list a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header__list a:hover,
.site-header__list a[aria-current="page"] {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    display: none;
  }

  .site-header__nav.is-open {
    display: block;
    animation: slideDown 0.35s var(--ease);
  }

  .site-header__list {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

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

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

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

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

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

.btn--gold:hover {
  background: var(--color-gold-soft);
  color: var(--color-ink);
}

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

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 28, 32, 0.88) 0%, rgba(10, 28, 32, 0.55) 48%, rgba(10, 28, 32, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 28, 32, 0.75) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  animation: fadeUp 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-sm);
  color: #fff;
}

.hero__brand-rule {
  display: block;
  width: 4.5rem;
  height: 3px;
  background: var(--color-gold);
  margin-bottom: var(--space-md);
  transform-origin: left;
  animation: lineGrow 0.8s var(--ease) 0.35s both;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  max-width: 22ch;
  margin: 0 0 var(--space-md);
  color: #f5f3ee;
}

.hero__support {
  max-width: 38ch;
  color: rgba(245, 243, 238, 0.88);
  margin-bottom: var(--space-lg);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.section--narrow {
  max-width: 48rem;
}

.section__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.section__lead {
  color: var(--color-ink-muted);
  max-width: 42rem;
}

.band {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--color-border);
}

.offer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.offer {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .offer {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}

.offer__image {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.offer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.offer:hover .offer__image img {
  transform: scale(1.04);
}

.offer__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.offer__title a {
  color: var(--color-ink);
  text-decoration: none;
}

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

.offer__text {
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

.flagship {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

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

.flagship__image {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.flagship__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  display: grid;
  gap: var(--space-md);
}

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

.evidence {
  padding: var(--space-md) 0;
  border-top: 2px solid var(--color-gold);
}

.evidence__quote {
  font-size: 1.02rem;
  margin-bottom: var(--space-sm);
}

.evidence__meta {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

.cta-band {
  margin: var(--space-xl) auto;
  max-width: var(--max);
  padding: var(--space-xl) var(--space-md);
  background:
    linear-gradient(135deg, var(--color-accent) 0%, #146868 55%, #0a3f3f 100%);
  color: #fff;
  border-radius: var(--radius);
}

.cta-band a.btn--gold {
  text-decoration: none;
}

.cta-band__title {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.cta-band__text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin-bottom: var(--space-md);
}

/* Page chrome */
.page__header {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.35);
}

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

.page__eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.page__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 18ch;
}

.page__lead {
  color: var(--color-ink-muted);
  max-width: 40rem;
  font-size: 1.1rem;
}

.page__body {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.page__body--narrow {
  max-width: 46rem;
}

.prose h2 {
  margin-top: var(--space-xl);
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: var(--space-lg);
  font-size: 1.15rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: var(--space-md) 0 var(--space-lg);
}

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

.prose th {
  background: rgba(13, 92, 92, 0.08);
  font-weight: 600;
}

/* Service / blog listing */
.listing {
  display: grid;
  gap: var(--space-lg);
}

.listing-item {
  display: grid;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .listing-item {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.listing-item__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
}

.listing-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-item__meta {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-xs);
}

.detail-hero {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 800px) {
  .detail-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.detail-hero__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.detail-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  gap: var(--space-lg);
}

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

.detail-block h2 {
  font-size: 1.2rem;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: var(--space-xs);
  display: inline-block;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--space-md);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

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

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

.rate-note {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

/* Process page */
.process-flow {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.process-step {
  padding-top: var(--space-md);
  border-top: 3px solid var(--color-accent);
  animation: fadeUp 0.7s var(--ease) both;
}

.process-step:nth-child(2) {
  animation-delay: 0.1s;
  border-top-color: #1a7a7a;
}

.process-step:nth-child(3) {
  animation-delay: 0.2s;
  border-top-color: var(--color-gold);
}

.process-step:nth-child(4) {
  animation-delay: 0.3s;
  border-top-color: #8a7420;
}

.process-step__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

/* Reviews */
.review-block {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.review-block__quote {
  font-size: 1.15rem;
  max-width: 40rem;
}

.review-block--long .review-block__quote {
  font-size: 1.05rem;
}

.story {
  background: rgba(255, 255, 255, 0.5);
  padding: var(--space-lg);
  border-left: 3px solid var(--color-gold);
  margin: var(--space-xl) 0;
}

/* Forms */
.contact-layout {
  display: grid;
  gap: var(--space-xl);
}

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

.field {
  margin-bottom: var(--space-md);
}

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

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

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

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

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

.form-status {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
}

.form-status--success {
  background: rgba(31, 107, 74, 0.12);
  color: var(--color-success);
}

.form-status--error {
  background: rgba(155, 44, 44, 0.12);
  color: var(--color-error);
}

.contact-aside {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--color-border);
}

.contact-aside p {
  margin-bottom: var(--space-md);
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  background: #152028;
  color: #d5dbe3;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.site-footer a {
  color: #e8d48a;
}

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

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
}

.site-footer__tag {
  color: #9aa5b2;
}

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

.site-footer__nav li {
  margin-bottom: 0.4rem;
}

.site-footer__copy {
  max-width: var(--max);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #8a95a3;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(26, 35, 48, 0.12);
  padding: var(--space-md);
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-banner__desc {
  margin: 0;
  color: var(--color-ink-muted);
  max-width: 40rem;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* 404 */
.error-page {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-accent);
  margin: 0;
  line-height: 1;
}

.team-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.team-member__image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

.team-member__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__role {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.factors {
  columns: 1;
  gap: var(--space-lg);
}

@media (min-width: 700px) {
  .factors {
    columns: 2;
  }
}

.factors > * {
  break-inside: avoid;
  margin-bottom: var(--space-md);
}
