:root {
  --ink: #1c2421;
  --ink-soft: #3d4a45;
  --muted: #6b7873;
  --paper: #f3efe8;
  --paper-2: #e8e2d6;
  --surface: #faf7f2;
  --teal: #0d5c63;
  --teal-deep: #08474d;
  --teal-soft: #d5e8e6;
  --amber: #b8923a;
  --amber-soft: #f0e4c4;
  --line: rgba(28, 36, 33, 0.12);
  --danger: #9b2c2c;
  --ok: #1f6b4a;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(13, 92, 99, 0.08);
  --font-display: "Prompt", "Sarabun", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --max: 1120px;
}

*,
*::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(13, 92, 99, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 146, 58, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 40%, var(--paper-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

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

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

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

.inline-error {
  background: #fde8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border-left: 3px solid var(--danger);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 232, 0.88);
  border-bottom: 1px solid var(--line);
  animation: dropIn 0.55s ease both;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(244, 239, 230, 0.25);
  position: relative;
  flex-shrink: 0;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 28% 30% 28% 30%;
  border: 2px solid #f4efe6;
  border-radius: 2px;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateY(-10%);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand__text small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-nav .nav-cta {
  background: var(--teal);
  color: #faf7f2;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  margin-left: 0.25rem;
}

.site-nav .nav-cta::after {
  display: none;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.55rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

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

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

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

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

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

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

.btn--amber {
  background: var(--amber);
  color: #1c2421;
}

.btn--amber:hover {
  background: #a47f2e;
  color: #1c2421;
}

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

/* Hero home — full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #faf7f2;
  overflow: hidden;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 18s ease-in-out alternate infinite;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 71, 77, 0.88) 0%, rgba(8, 71, 77, 0.55) 48%, rgba(28, 36, 33, 0.35) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 3.5rem;
  max-width: 36rem;
  animation: rise 0.8s 0.15s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero__lede {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 0;
}

.hero .btn--primary {
  background: var(--amber);
  color: var(--ink);
}

.hero .btn--primary:hover {
  background: #c9a34a;
}

.hero .btn--ghost {
  border-color: rgba(250, 247, 242, 0.65);
  color: #faf7f2;
}

.hero .btn--ghost:hover {
  background: rgba(250, 247, 242, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section__head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

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

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--flip > :first-child {
    order: 2;
  }
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  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: 28%;
  background: linear-gradient(transparent, rgba(13, 92, 99, 0.35));
  pointer-events: none;
}

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

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

.offer {
  background: rgba(250, 247, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
  animation: rise 0.7s ease both;
}

.offer:nth-child(2) {
  animation-delay: 0.1s;
}
.offer:nth-child(3) {
  animation-delay: 0.2s;
}

.offer:hover {
  border-color: rgba(13, 92, 99, 0.35);
  transform: translateY(-3px);
}

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

.offer__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer__body h3 {
  margin-bottom: 0.4rem;
}

.offer__body p {
  color: var(--ink-soft);
  flex: 1;
  font-size: 0.98rem;
}

.offer__body a {
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}

.quote-strip {
  background: var(--teal);
  color: #f4efe6;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.quote-strip::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 40px solid rgba(184, 146, 58, 0.15);
  border-radius: 50%;
  right: -60px;
  top: -80px;
}

.quote-strip blockquote {
  margin: 0;
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.45;
  position: relative;
}

.quote-strip cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.95rem;
  opacity: 0.85;
  font-family: var(--font-body);
}

.cta-band {
  padding: 3.5rem 0 5rem;
}

.cta-band__box {
  background:
    linear-gradient(135deg, var(--teal-soft) 0%, rgba(240, 228, 196, 0.55) 100%);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 720px) {
  .cta-band__box {
    grid-template-columns: 1.4fr auto;
  }
}

/* Page heroes (inner) */
.page-hero {
  padding: 3.25rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(213, 232, 230, 0.45), transparent);
}

.page-hero--media {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  color: #faf7f2;
  overflow: hidden;
  border-bottom: none;
  background: none;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

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

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 71, 77, 0.9), rgba(8, 71, 77, 0.45));
}

.page-hero--media .shell {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
  padding-top: 4rem;
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
}

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

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

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

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

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

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

/* Pricing */
.rate-block {
  display: grid;
  gap: 1.25rem;
}

.rate-row {
  display: grid;
  gap: 0.5rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .rate-row {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

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

.rate-note {
  background: rgba(250, 247, 242, 0.8);
  border-left: 3px solid var(--amber);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.5rem;
}

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

.review {
  background: rgba(250, 247, 242, 0.75);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

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

.review footer {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.story {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--teal-soft);
  border: 1px solid var(--line);
}

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

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

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

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

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

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

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

.contact-card {
  background: rgba(250, 247, 242, 0.8);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.field {
  margin-bottom: 1.15rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px 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 var(--teal);
  outline-offset: 1px;
}

.field__error {
  display: none;
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.field--error .field__error {
  display: block;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--danger);
}

.form-status {
  margin-top: 1rem;
  min-height: 1.4em;
}

.form-status--ok {
  color: var(--ok);
  font-weight: 600;
}

.form-status--err {
  color: var(--danger);
  font-weight: 600;
}

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

.step {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(250, 247, 242, 0.7);
  border: 1px solid var(--line);
  position: relative;
  padding-left: 4.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--amber);
}

/* Team */
.team {
  display: grid;
  gap: 1.5rem;
}

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

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

@media (min-width: 500px) {
  .person {
    grid-template-columns: 140px 1fr;
    align-items: start;
  }
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d9d4cb;
  padding: 3rem 0 0;
  margin-top: 2rem;
}

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

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #faf7f2;
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

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

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

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.5rem;
  font-size: 0.88rem;
  opacity: 0.75;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(28, 36, 33, 0.96);
  color: #f3efe8;
  padding: 1.15rem 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  animation: rise 0.4s ease both;
}

.cookie-banner__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  align-items: center;
}

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

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

.cookie-banner a {
  color: var(--amber-soft);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-banner .btn--ghost {
  border-color: rgba(243, 239, 232, 0.45);
  color: #f3efe8;
}

.cookie-banner .btn--primary {
  background: var(--amber);
  color: var(--ink);
}

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

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin: 0;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

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

.faq details p {
  margin-top: 0.65rem;
  color: var(--ink-soft);
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

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

/* Mobile nav */
@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.15rem;
  }

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

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

  .site-header__bar {
    position: relative;
  }
}
