:root {
  --ink: #17333a;
  --ink-soft: #3d555c;
  --paper: #f6f3ec;
  --paper-deep: #ebe4d6;
  --mist: #d7e3e1;
  --teal: #1e4a52;
  --teal-mid: #2f6b74;
  --teal-soft: #8fb4b8;
  --accent: #c4a35a;
  --accent-deep: #9a7a35;
  --line: rgba(23, 51, 58, 0.14);
  --white: #fffdf8;
  --danger: #8b3a3a;
  --ok: #2b6a4f;
  --shadow: 0 18px 40px rgba(23, 51, 58, 0.1);
  --radius: 18px;
  --font-display: "Prompt", "Sarabun", sans-serif;
  --font-body: "Sarabun", "Prompt", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(143, 180, 184, 0.35), transparent 38%),
    radial-gradient(circle at 88% 0%, rgba(196, 163, 90, 0.18), transparent 32%),
    linear-gradient(180deg, #f8f5ee 0%, #eef3f1 48%, #f6f3ec 100%);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

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

.inline-error {
  margin: 0;
  padding: 0.85rem 1.2rem;
  background: #f7e4e4;
  color: var(--danger);
  border-bottom: 1px solid #e2bdbd;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 243, 236, 0.86);
  border-bottom: 1px solid var(--line);
}

.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: var(--ink);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(145deg, var(--teal) 0%, var(--teal-mid) 55%, #4f8a90 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.18);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.55rem 0.65rem;
  border-left: 2px solid #f3efe6;
  border-bottom: 2px solid #f3efe6;
  transform: skewX(-12deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

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

.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

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

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white) !important;
  box-shadow: 0 8px 18px rgba(30, 74, 82, 0.22);
}

.nav-cta:hover {
  background: var(--teal-mid);
}

main {
  overflow: clip;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(30, 74, 82, 0.24);
}

.btn-primary:hover {
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(30, 74, 82, 0.35);
  color: var(--teal);
}

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

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: var(--white);
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 34, 39, 0.78) 0%, rgba(16, 34, 39, 0.45) 48%, rgba(16, 34, 39, 0.2) 100%),
    linear-gradient(180deg, rgba(16, 34, 39, 0.15) 0%, rgba(16, 34, 39, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em;
  line-height: 1.05;
  animation: rise-in 0.9s ease both;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 500;
  max-width: 28rem;
  margin-bottom: 0.9rem;
  animation: rise-in 0.9s ease 0.12s both;
}

.hero p {
  max-width: 32rem;
  color: rgba(255, 253, 248, 0.88);
  animation: rise-in 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
  animation: rise-in 0.9s ease 0.32s both;
}

.hero .btn-secondary {
  border-color: rgba(255, 253, 248, 0.45);
  color: var(--white);
}

.page-hero {
  padding: 3.8rem 1.25rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

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

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

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

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

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.media-frame:hover img {
  transform: scale(1.04);
}

.offer-grid,
.card-grid,
.blog-grid,
.review-grid {
  display: grid;
  gap: 1.4rem;
}

.offer-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.offer-item,
.content-panel,
.price-block,
.review-card,
.blog-card,
.faq-item,
.legal-block,
.statute-list li {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.offer-item {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.offer-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.offer-item h3 {
  font-size: 1.2rem;
  margin: 0;
}

.offer-item p {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.offer-item a {
  font-weight: 600;
  text-decoration: none;
}

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

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
}

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

.quote {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

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

.price-list {
  display: grid;
  gap: 1rem;
}

.price-block h3 {
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--teal);
  margin: 0.4rem 0 0.8rem;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.8rem;
}

.contact-details p {
  margin-bottom: 0.55rem;
}

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

.field {
  margin-bottom: 1rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(30, 74, 82, 0.28);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(47, 107, 116, 0.35);
  border-color: var(--teal-mid);
}

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

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

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

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--danger);
}

.article-body {
  max-width: 46rem;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-cover {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  margin: 0 0 2rem;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.legal-block + .legal-block {
  margin-top: 1rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 253, 248, 0.8);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.cookie-table th {
  background: rgba(30, 74, 82, 0.08);
}

.site-footer {
  margin-top: 3rem;
  background: #13282e;
  color: rgba(255, 253, 248, 0.86);
}

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

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

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

.site-footer a:hover {
  color: var(--white);
}

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

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

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

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: rise-in 0.55s ease both;
}

.cookie-banner-inner {
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.band {
  background: linear-gradient(120deg, rgba(30, 74, 82, 0.08), rgba(196, 163, 90, 0.12));
  border-block: 1px solid var(--line);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.story-block {
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 253, 248, 0.7);
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 74, 82, 0.08);
  font-size: 0.9rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

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

@keyframes slow-pan {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 960px) {
  .offer-grid,
  .card-grid,
  .blog-grid,
  .review-grid,
  .split,
  .split-reverse,
  .contact-layout,
  .footer-inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(246, 243, 236, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1.2rem;
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    justify-content: center;
  }

  .hero {
    min-height: 78vh;
  }
}

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