/* Mindgridbase — contemporary structure + creative restraint */
:root {
  --ink: #1a2e28;
  --ink-soft: #3d524a;
  --muted: #5c7168;
  --paper: #eef3f0;
  --paper-deep: #e2ebe6;
  --surface: #f7faf8;
  --accent: #0d6e5f;
  --accent-deep: #085447;
  --accent-soft: #c8ddd6;
  --copper: #b8793a;
  --copper-soft: #f0e0cc;
  --line: rgba(26, 46, 40, 0.12);
  --shadow: 0 18px 40px rgba(26, 46, 40, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Prompt", "Sarabun", sans-serif;
  --font-body: "Sarabun", "Prompt", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

*,
*::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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 110, 95, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(184, 121, 58, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 40%, var(--paper-deep) 100%);
  min-height: 100vh;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8e4e1;
  color: #7a2e24;
  border-bottom: 1px solid #e5c0b8;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(238, 243, 240, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(26, 46, 40, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  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: 42px;
  height: 42px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px 10px 14px;
  border: 2.5px solid #e8f2ef;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 100%, 0 100%);
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.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: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--accent-deep);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

.site-nav .nav-cta:hover {
  background: var(--accent-deep);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.25rem 0;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px 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(--accent);
  color: #fff;
}

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

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

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

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

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

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

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 22s ease-in-out infinite alternate;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  animation: riseIn 0.9s ease both;
}

.hero h1 {
  color: #fff;
  max-width: 14ch;
}

.hero .lead {
  color: rgba(245, 250, 248, 0.9);
  max-width: 32rem;
}

.hero .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  color: #d4ebe4;
}

.hero .btn-primary {
  background: #d4a056;
  color: #1a2e28;
}

.hero .btn-primary:hover {
  background: #e0b36e;
  color: #1a2e28;
}

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

.hero .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

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

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

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

.reveal {
  animation: fadeUp 0.7s ease both;
}

/* Split / panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

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

.split img,
.media-frame img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  min-height: 280px;
  max-height: 440px;
}

.media-frame {
  position: relative;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 14px -12px -12px 18px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  z-index: -1;
}

/* Offer / service grids — interaction containers, not decorative cards overload */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.offer-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.offer-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.offer-body h3 {
  margin-bottom: 0.4rem;
}

.offer-body p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* Quote / evidence */
.quote-list {
  display: grid;
  gap: 1.5rem;
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

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

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

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.rate-table th {
  font-family: var(--font-display);
  background: var(--accent-soft);
  color: var(--ink);
}

.rate-table tr:last-child td {
  border-bottom: 0;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

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

[aria-invalid="true"] {
  border-color: #b84a3a;
}

.field-error {
  min-height: 1.2em;
  color: #9a3a2e;
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

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

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  background: #dceee6;
  color: #0d4f3f;
}

.form-status.is-error {
  background: #f8e4e1;
  color: #7a2e24;
}

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

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

.blog-item:hover h3 {
  color: var(--accent-deep);
}

.blog-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

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

.prose {
  max-width: 42rem;
}

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

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

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

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  position: relative;
}

.page-hero.with-image {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.page-hero.with-image .page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero.with-image .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero.with-image .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 40, 34, 0.8), rgba(10, 40, 34, 0.35));
}

.page-hero.with-image .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
  padding-top: 4rem;
}

.page-hero.with-image h1,
.page-hero.with-image .lead {
  color: #fff;
}

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

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.2rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #14352e;
  color: rgba(245, 250, 248, 0.86);
  padding: 3rem 1.25rem 1.5rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: rgba(245, 250, 248, 0.72);
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

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

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

.site-footer a {
  color: rgba(245, 250, 248, 0.82);
  text-decoration: none;
}

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

.footer-address {
  white-space: pre-wrap;
  word-break: break-word;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(245, 250, 248, 0.6);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

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

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

/* Legal tables */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
}

.cookie-table th {
  background: var(--accent-soft);
  font-family: var(--font-display);
}

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

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

/* Contact block */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.contact-aside {
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #eef7f4;
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-aside a {
  color: #fff;
}

.contact-aside h2 {
  color: #fff;
}

/* Accent band */
.band {
  background:
    linear-gradient(120deg, rgba(13, 110, 95, 0.1), rgba(184, 121, 58, 0.08));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .split-reverse,
  .offer-grid,
  .footer-grid,
  .contact-grid,
  .blog-item,
  .form-row,
  .stat-note {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(247, 250, 248, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
  }

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

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

  .hero {
    min-height: 78vh;
  }

  .blog-item img {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

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