:root {
  --sapphire: #0b3d91;
  --sapphire-mid: #1a56b8;
  --sapphire-deep: #072a66;
  --cyan-glass: #7fdbda;
  --cyan-soft: #b8f0ef;
  --indigo: #1a1b4b;
  --indigo-soft: #2a2c6b;
  --frost: #f4f9ff;
  --mist: #e7f1fb;
  --ink: #10122e;
  --muted: #3d4570;
  --line: rgba(26, 27, 75, 0.12);
  --glass: rgba(244, 249, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.55);
  --shadow: 0 20px 48px rgba(11, 61, 145, 0.16);
  --radius: 1.15rem;
  --font-display: "Prompt", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(127, 219, 218, 0.38), transparent 55%),
    radial-gradient(800px 480px at 96% 4%, rgba(26, 86, 184, 0.22), transparent 50%),
    radial-gradient(700px 500px at 50% 100%, rgba(26, 27, 75, 0.08), transparent 55%),
    linear-gradient(180deg, #eef5ff 0%, #e3ecf8 45%, #d9e4f4 100%);
  min-height: 100vh;
  line-height: 1.7;
}

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

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(238, 245, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

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

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.75), transparent 42%),
    linear-gradient(145deg, var(--cyan-glass), var(--sapphire-mid), var(--indigo));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 0 rgba(127, 219, 218, 0.45);
  animation: crystalPulse 5.5s ease-in-out infinite;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

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

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

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--sapphire-mid), var(--indigo));
  color: #f4f9ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

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

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

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.btn-primary {
  color: #f4f9ff;
  background:
    radial-gradient(circle at 28% 20%, rgba(184, 240, 239, 0.45), transparent 42%),
    linear-gradient(145deg, var(--sapphire-mid), var(--sapphire) 48%, var(--indigo));
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 240, 239, 0.7);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}

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

.btn-primary:hover::after {
  animation: waveExpand 1.1s ease-out;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  color: var(--sapphire-deep);
  background: rgba(244, 249, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.btn-ghost:active {
  transform: scale(0.97);
}

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

/* Full-bleed crystal hero */
.hero-crystal {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-crystal > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: slowDrift 22s ease-in-out infinite alternate;
}

.hero-crystal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 42, 102, 0.35) 0%, rgba(10, 24, 70, 0.55) 42%, rgba(8, 18, 52, 0.82) 100%),
    radial-gradient(600px 280px at 20% 30%, rgba(127, 219, 218, 0.28), transparent 60%);
  pointer-events: none;
}

.hero-crystal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 18px,
      rgba(184, 240, 239, 0.035) 18px,
      rgba(184, 240, 239, 0.035) 19px
    );
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: echoShift 14s linear infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3.5rem;
  color: var(--frost);
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  text-shadow: 0 10px 40px rgba(7, 42, 102, 0.45);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: rgba(244, 249, 255, 0.95);
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(232, 244, 255, 0.82);
  max-width: 34rem;
}

.hero-copy .btn-row .btn-ghost {
  color: var(--frost);
  background: rgba(244, 249, 255, 0.12);
  border-color: rgba(184, 240, 239, 0.35);
}

.section {
  padding: 4rem 0;
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--indigo);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.glass-panel {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(127, 219, 218, 0.12) 45%, rgba(26, 86, 184, 0.08)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.service-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.service-feature img {
  border-radius: 1.35rem;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-item {
  padding: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.offer-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--indigo);
}

.offer-item p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.offer-meta {
  font-size: 0.9rem;
  color: var(--sapphire);
  font-weight: 700;
  font-family: var(--font-display);
}

.quote-band {
  margin: 1rem 0 0;
  padding: 2.5rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(125deg, rgba(11, 61, 145, 0.95), rgba(26, 27, 75, 0.94)),
    linear-gradient(90deg, var(--cyan-glass), var(--sapphire-mid));
  color: var(--frost);
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto;
  height: 120%;
  background: radial-gradient(circle, rgba(127, 219, 218, 0.28), transparent 62%);
  animation: echoShift 11s ease-in-out infinite reverse;
}

.quote-band blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 42rem;
}

.quote-band cite {
  position: relative;
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--cyan-soft);
  font-weight: 600;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  color: var(--indigo);
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.bleed-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.bleed-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bleed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 42, 102, 0.2), rgba(16, 18, 46, 0.78));
}

.bleed-copy {
  position: relative;
  z-index: 1;
  color: var(--frost);
  padding: 3rem 0;
}

.bleed-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}

.bleed-copy p {
  margin: 0;
  max-width: 36rem;
  color: rgba(232, 244, 255, 0.88);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  margin: 2rem 0 0.75rem;
  color: var(--indigo);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose code {
  font-size: 0.92em;
  background: rgba(127, 219, 218, 0.18);
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-glass), var(--sapphire-mid));
  box-shadow: 0 0 0 3px rgba(127, 219, 218, 0.22);
}

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

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

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--frost);
  background: linear-gradient(145deg, var(--sapphire-mid), var(--indigo));
}

.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--indigo);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card img {
  border-radius: 1.15rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  margin-bottom: 0.85rem;
}

.team-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  color: var(--indigo);
}

.team-card p {
  margin: 0;
  color: var(--muted);
}

.meta {
  font-size: 0.9rem;
  color: var(--sapphire);
  font-weight: 600;
  font-family: var(--font-display);
}

.price-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.blog-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.35rem 0 0.5rem;
  color: var(--indigo);
  line-height: 1.35;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

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

.form-grid label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--indigo);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  font: inherit;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

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

.field-error {
  color: #9b1c3a;
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  font-weight: 600;
}

.form-status[data-state="success"] {
  background: rgba(127, 219, 218, 0.25);
  color: var(--sapphire-deep);
}

.form-status[data-state="error"] {
  background: rgba(155, 28, 58, 0.12);
  color: #9b1c3a;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(11, 61, 145, 0.06)),
    rgba(244, 249, 255, 0.55);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--indigo);
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--sapphire);
}

.footer-text {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

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

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

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--sapphire-deep);
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(16, 18, 46, 0.92);
  color: var(--frost);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(127, 219, 218, 0.28);
  padding: 1rem 0 1.15rem;
}

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

.cookie-inner p {
  margin: 0;
  max-width: 46rem;
}

.cookie-inner a {
  color: var(--cyan-soft);
}

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

.cookie-error {
  margin: 0.5rem auto 0;
  width: var(--shell);
  color: #ffb4c0;
}

.not-found {
  padding: 6rem 0;
  text-align: center;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--indigo);
  margin: 0 0 0.75rem;
}

.not-found p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 28rem;
}

@keyframes crystalPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(127, 219, 218, 0.4);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 0 0 10px rgba(127, 219, 218, 0);
  }
}

@keyframes waveExpand {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

@keyframes slowDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes echoShift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-3%);
  }
}

@media (max-width: 900px) {
  .service-feature,
  .grid-2,
  .offer-list,
  .blog-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .site-nav a {
    padding: 0.75rem 0;
  }

  .hero-crystal {
    min-height: 72vh;
  }

  .page-hero h1,
  .bleed-copy h1 {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}
