:root {
  --quartz: #f4f7fb;
  --quartz-deep: #e4eef6;
  --ink: #16324a;
  --muted: #3d5a70;
  --emerald: #1f9d78;
  --emerald-bright: #3ce6b0;
  --violet: #6f5bdc;
  --violet-soft: #c4b5fd;
  --cyan: #5fd6ea;
  --silver: #f8fbff;
  --line: rgba(111, 91, 220, 0.22);
  --font: "Noto Sans Thai", "Segoe UI", sans-serif;
  --display: "Instrument Serif", "Noto Sans Thai", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(60, 230, 176, 0.28), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(111, 91, 220, 0.22), transparent 50%),
    radial-gradient(700px 400px at 70% 80%, rgba(95, 214, 234, 0.2), transparent 45%),
    linear-gradient(180deg, var(--quartz) 0%, var(--quartz-deep) 100%);
  min-height: 100vh;
  line-height: 1.7;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 40%, transparent 60%);
  mix-blend-mode: overlay;
  opacity: 0.7;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--violet);
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--emerald);
  font-weight: 600;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.crystal {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(232, 255, 248, 0.35) 40%, rgba(196, 181, 253, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 40px rgba(22, 50, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 251, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

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

.brand-mark {
  width: 1.5rem;
  height: 1.7rem;
  clip-path: polygon(50% 0, 100% 28%, 78% 100%, 22% 100%, 0 28%);
  background: linear-gradient(160deg, var(--emerald-bright), var(--violet), var(--cyan));
}

.nav-toggle {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--silver);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

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

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

.nav-cta {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(60, 230, 176, 0.2);
}

@media (max-width: 860px) {
  .header-row {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.8rem;
  }

  .site-nav[hidden] {
    display: none;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }

  .site-nav[hidden] {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  color: #083226;
  background: linear-gradient(120deg, var(--emerald-bright), var(--cyan));
}

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

.btn-pulse {
  animation: crystal-pulse 2.4s ease-out infinite;
}

@keyframes crystal-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(60, 230, 176, 0.55), 0 0 0 0 rgba(111, 91, 220, 0.3);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(60, 230, 176, 0), 0 0 28px 6px rgba(95, 214, 234, 0.16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(60, 230, 176, 0);
  }
}

.hero-split {
  width: min(1280px, 100%);
  margin: 0 auto 2.5rem;
}

.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.hero-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  right: auto;
  width: min(36rem, calc(100% - 2.4rem));
  padding: 1.4rem 1.5rem 1.6rem;
}

.hero-caption h1 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.block {
  padding: 2.2rem 0 3rem;
}

.lead-row {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  overflow: hidden;
}

.feature-card img {
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.feature-card > div {
  padding: 1.4rem 1.4rem 1.6rem 0.4rem;
}

.offer-list,
.blog-index,
.team-grid,
.quote-grid,
.case-wall {
  display: grid;
  gap: 1.1rem;
  padding-left: 0;
  list-style: none;
}

.offer-list,
.blog-index,
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.offer-item,
.blog-index li,
.team-grid li,
.quote-grid blockquote,
.case-card {
  margin: 0;
  padding: 0.9rem;
}

.offer-item img,
.blog-index img,
.team-grid img,
.case-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

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

.quote-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quote-grid blockquote {
  margin: 0;
}

.quote-grid footer {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  padding: 1.6rem 1.4rem;
  margin-bottom: 3rem;
}

.page-intro {
  padding: 2.4rem 0 1rem;
}

.service-index {
  list-style: none;
  padding: 0 0 3rem;
  display: grid;
  gap: 1.2rem;
}

.service-index li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 0.8rem;
}

.service-index img {
  height: 150px;
  width: 100%;
  object-fit: cover;
}

.article {
  padding-bottom: 3rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

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

.price-table {
  width: min(1120px, calc(100% - 2rem));
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.45);
}

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

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  margin-bottom: 3rem;
}

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

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

.field-error,
.island-error {
  color: #9b1c4a;
  margin: 0.3rem 0 0;
}

.form-success {
  color: var(--emerald);
  font-weight: 600;
}

.legal {
  padding-bottom: 3.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.4rem;
  background: rgba(255, 255, 255, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.footer-grid a {
  display: block;
  width: fit-content;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.footer-label {
  font-weight: 700;
}

.footer-copy {
  margin-top: 1.4rem;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 0 1rem;
  background: linear-gradient(160deg, rgba(248, 251, 255, 0.95), rgba(196, 181, 253, 0.28));
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(22, 50, 74, 0.12);
}

.cookie-inner {
  display: grid;
  gap: 0.7rem;
}

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

@media (max-width: 720px) {
  .hero-caption {
    position: static;
    width: auto;
    margin: 0;
    border-radius: 0;
  }

  .feature-card,
  .service-index li {
    grid-template-columns: 1fr;
  }

  .feature-card > div {
    padding: 0.9rem;
  }
}
