/* Neuracloud — forest ink on cool stone */
:root {
  --color-bg: #e8eee9;
  --color-bg-deep: #d5e0d8;
  --color-surface: #f7faf7;
  --color-ink: #14261c;
  --color-ink-soft: #3d5346;
  --color-brand: #1b4332;
  --color-brand-hover: #0f2f22;
  --color-accent: #c45c26;
  --color-line: #b7c7bc;
  --color-error: #9b2c2c;
  --color-ok: #1b4332;
  --font-display: "Bai Jamjuree", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --wrap: 70rem;
  --wrap-narrow: 42rem;
  --radius: 0.25rem;
  --shadow-soft: 0 12px 40px rgba(20, 38, 28, 0.08);
  --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.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(197, 92, 38, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(27, 67, 50, 0.1), transparent 45%),
    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-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-brand);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 var(--space-md); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 var(--space-sm); }
h3 { font-size: 1.25rem; margin: 0 0 var(--space-xs); }

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

.visually-hidden {
  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(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, var(--wrap-narrow));
}

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

.site-header__inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  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.35rem;
  color: var(--color-brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

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

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ink-soft);
}

.site-nav a:hover {
  color: var(--color-brand);
}

.site-nav__cta {
  background: var(--color-brand);
  color: #f7faf7 !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-brand-hover);
  color: #fff !important;
}

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

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

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

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

.btn--primary {
  background: var(--color-brand);
  color: #f7faf7;
}

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

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

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

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.1em;
}

/* Hero home — full-bleed */
.hero--home {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  color: #f7faf7;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 47, 34, 0.88) 0%, rgba(15, 47, 34, 0.55) 48%, rgba(15, 47, 34, 0.25) 100%),
    linear-gradient(0deg, rgba(15, 47, 34, 0.75) 0%, transparent 55%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - var(--wrap)) / 2));
  animation: rise-in 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-sm);
  color: #f7faf7;
}

.hero__title {
  color: #f7faf7;
  margin-bottom: var(--space-md);
}

.hero__lead {
  font-size: 1.125rem;
  color: rgba(247, 250, 247, 0.9);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hero__actions .btn--ghost {
  border-color: rgba(247, 250, 247, 0.7);
  color: #f7faf7;
}

.hero__actions .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tight { padding-top: var(--space-xl); }

.section--band {
  background: rgba(247, 250, 247, 0.65);
  border-block: 1px solid var(--color-line);
}

.section--cta {
  text-align: center;
  padding-block: var(--space-2xl);
}

.section__title { margin-bottom: var(--space-sm); }

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

.section__more { margin-top: var(--space-md); }

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero--media .page-hero__figure {
  width: min(100%, var(--wrap));
  margin: var(--space-lg) auto 0;
  padding-inline: 1rem;
}

.page-hero--media .page-hero__figure img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

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

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

.offer-list__item {
  padding: var(--space-md) 0;
  border-top: 2px solid var(--color-brand);
  animation: rise-in 0.7s var(--ease) both;
}

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

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

/* Split */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

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

.split__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

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

.quote {
  margin: 0;
  padding: var(--space-lg);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
}

.quote footer {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

/* Services */
.service-grid,
.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

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

.service-card,
.post-card {
  background: var(--color-surface);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover,
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.service-card__link,
.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card__img,
.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card__body,
.post-card__body {
  padding: var(--space-md);
}

.service-detail__grid {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

@media (min-width: 900px) {
  .service-detail__grid {
    grid-template-columns: 1fr 18rem;
    align-items: start;
  }
}

.service-meta {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-md);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.service-meta dl { margin: 0 0 var(--space-md); }
.service-meta dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: var(--space-sm);
}
.service-meta dd { margin: 0.2rem 0 0; }

/* People / reviews / process */
.people-list,
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.people-list__item {
  display: grid;
  gap: var(--space-md);
  align-items: start;
}

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

.people-list__item img {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.people-list__role {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.review-list__item blockquote {
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-left: 3px solid var(--color-brand);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
  display: grid;
  gap: var(--space-md);
}

.process-steps__item {
  padding: var(--space-md);
  background: var(--color-surface);
  border-top: 3px solid var(--color-brand);
}

.process-steps__item h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.process-steps__item h2 span {
  color: var(--color-accent);
  font-size: 1.75rem;
}

/* Tables */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.98rem;
}

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

.rate-table th {
  font-family: var(--font-display);
  background: var(--color-brand);
  color: #f7faf7;
}

@media (max-width: 640px) {
  .rate-table { display: block; overflow-x: auto; }
}

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

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

.contact-layout__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin: var(--space-md) 0 var(--space-xs);
}

.contact-layout__note {
  margin-top: var(--space-md);
  color: var(--color-ink-soft);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-lg);
}

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

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

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

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: var(--color-error);
}

.form-field__error {
  color: var(--color-error);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

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

.form-status.is-success {
  background: rgba(27, 67, 50, 0.12);
  color: var(--color-ok);
}

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

/* Prose */
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h2 { margin-top: var(--space-lg); }

.post__back { margin-top: var(--space-xl); }

/* Footer */
.site-footer {
  background: var(--color-brand);
  color: rgba(247, 250, 247, 0.88);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

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

.site-footer__inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: var(--space-lg);
}

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

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f7faf7;
  margin: 0 0 var(--space-xs);
}

.site-footer__label {
  font-family: var(--font-display);
  font-weight: 600;
  color: #f7faf7;
  margin: 0 0 var(--space-sm);
}

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

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

.site-footer__bottom {
  width: min(100% - 2rem, var(--wrap));
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(247, 250, 247, 0.2);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-surface);
  border-top: 2px solid var(--color-brand);
  box-shadow: 0 -8px 30px rgba(20, 38, 28, 0.12);
  padding: var(--space-md);
  animation: rise-in 0.45s var(--ease) both;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 18rem;
}

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