:root {
  --sapphire-950: #061833;
  --sapphire-900: #0b2d5c;
  --sapphire-700: #114a8c;
  --sapphire-500: #1e6fbf;
  --cyan-glass: #3ec6e8;
  --cyan-soft: #7ed7ff;
  --white-glow: #f4fbff;
  --indigo-shadow: rgba(26, 16, 64, 0.4);
  --ink: #0a1c33;
  --muted: #3d5670;
  --line: rgba(126, 215, 255, 0.28);
  --glass: rgba(244, 251, 255, 0.72);
  --glass-deep: rgba(11, 45, 92, 0.55);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(6, 24, 51, 0.22);
  --font-display: "Bai Jamjuree", 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(1200px 600px at 10% -10%, rgba(62, 198, 232, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(30, 111, 191, 0.22), transparent 50%),
    linear-gradient(180deg, #e8f4fc 0%, #d5e8f7 35%, #eef6fb 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--sapphire-950);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

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

.narrow { width: min(760px, calc(100% - 2.5rem)); }

.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(14px);
  background: rgba(244, 251, 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.65rem;
  text-decoration: none;
  color: var(--sapphire-950);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 40%),
    conic-gradient(from 180deg, #7ed7ff, #114a8c, #3ec6e8, #0b2d5c, #7ed7ff);
  box-shadow: 0 0 0 3px rgba(126, 215, 255, 0.25);
  animation: pulse-mark 4.5s ease-in-out infinite;
}

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

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero-band {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 24, 51, 0.82) 0%, rgba(6, 24, 51, 0.55) 42%, rgba(17, 74, 140, 0.28) 70%, rgba(62, 198, 232, 0.12) 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(126, 215, 255, 0.05) 18px 19px);
  pointer-events: none;
  z-index: 1;
  animation: veil-shift 16s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 4rem;
  max-width: 44rem;
  margin-left: max(calc((100% - var(--shell)) / 2), 1.25rem);
  margin-right: auto;
  width: min(44rem, calc(100% - 2.5rem));
}

.hero-copy h1,
.hero-copy .lede,
.hero-band .brand-signal {
  color: var(--white-glow);
  text-shadow: 0 8px 30px rgba(6, 24, 51, 0.45);
}

.brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  line-height: 0.95;
}

.brand-signal-ink {
  color: var(--sapphire-950);
  text-shadow: none;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hero-copy h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  max-width: 28rem;
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.1rem;
  max-width: 40rem;
  color: var(--muted);
}

.hero-copy .lede {
  color: rgba(244, 251, 255, 0.9);
}

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

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.methodology-hero {
  margin-bottom: 0;
}

.methodology-hero img {
  min-height: 320px;
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

.page-hero {
  padding: 4rem 0 1rem;
}

.page-hero .lede {
  max-width: 40rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--sapphire-500);
  font-weight: 600;
}

.section {
  padding: 4.5rem 0;
}

.section-tint {
  background:
    linear-gradient(135deg, rgba(244, 251, 255, 0.65), rgba(126, 215, 255, 0.12));
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 36rem;
  color: var(--muted);
}

.section-cta {
  text-align: center;
}

.section-cta .narrow {
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(17, 74, 140, 0.92), rgba(6, 24, 51, 0.95));
  color: var(--white-glow);
  box-shadow: var(--shadow);
}

.section-cta h2,
.section-cta p {
  color: var(--white-glow);
}

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

.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.3);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  border: 1px solid rgba(126, 215, 255, 0.55);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

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

.btn:hover::after,
.btn:focus-visible::after {
  animation: crystal-wave 1.1s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #1e6fbf, #0b3a7a 55%, #114a8c);
  color: var(--white-glow);
  box-shadow: 0 10px 28px rgba(17, 74, 140, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(244, 251, 255, 0.2);
  border-color: rgba(244, 251, 255, 0.45);
  color: var(--white-glow);
  backdrop-filter: blur(8px);
}

.section .btn-ghost,
.page-hero .btn-ghost,
.contact-form .btn-ghost {
  color: var(--sapphire-900);
  border-color: var(--line);
  background: rgba(244, 251, 255, 0.55);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--sapphire-700);
}

.offer-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(244, 251, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.offer-row h3 {
  margin-bottom: 0.25rem;
}

.offer-row a {
  text-decoration: none;
  color: inherit;
}

.offer-meta {
  color: var(--sapphire-700);
  font-weight: 600;
  white-space: nowrap;
}

.quote-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

blockquote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--cyan-glass);
  background: linear-gradient(90deg, rgba(126, 215, 255, 0.16), rgba(244, 251, 255, 0.4));
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p {
  font-size: 1.05rem;
  color: var(--sapphire-950);
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(244, 251, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(6, 24, 51, 0.08);
}

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

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

.service-body a {
  text-decoration: none;
}

.check-list {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
}

.check-list li {
  margin-bottom: 0.45rem;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.process-flow article {
  padding: 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(244, 251, 255, 0.8), rgba(62, 198, 232, 0.12));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan-glass);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

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

.blog-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.blog-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.blog-item h2 a {
  text-decoration: none;
  color: inherit;
}

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

.blog-hero-img {
  margin: 1.5rem 0 2rem;
}

.prose :is(h2, h3) {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.tag-row span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 111, 191, 0.12);
  color: var(--sapphire-700);
  font-size: 0.85rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(244, 251, 255, 0.68);
  backdrop-filter: blur(12px);
}

.field {
  margin-bottom: 1rem;
}

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

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(17, 74, 140, 0.22);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(62, 198, 232, 0.55);
  border-color: var(--cyan-glass);
}

.field-error,
.js-error,
.form-status[data-state="error"] {
  color: #9b1c2e;
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.form-status[data-state="success"] {
  color: #0f6a4c;
  font-weight: 600;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, rgba(11, 45, 92, 0.95), #061833);
  color: rgba(244, 251, 255, 0.88);
}

.site-footer a {
  color: #a9e8ff;
  text-decoration: none;
}

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

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

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

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

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(126, 215, 255, 0.18);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(6, 24, 51, 0.94);
  border-top: 1px solid rgba(126, 215, 255, 0.28);
  color: var(--white-glow);
  box-shadow: 0 -12px 40px rgba(6, 24, 51, 0.35);
}

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

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

.cookie-inner a {
  color: #7ed7ff;
}

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

.error-page {
  text-align: center;
  padding: 5rem 0;
}

@keyframes crystal-wave {
  0% {
    inset: 38%;
    opacity: 0.8;
  }
  100% {
    inset: -30%;
    opacity: 0;
  }
}

@keyframes veil-shift {
  from { opacity: 1; filter: hue-rotate(0deg); }
  to { opacity: 0.94; filter: hue-rotate(8deg); }
}

@keyframes pulse-mark {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.06); filter: saturate(1.15); }
}

@media (max-width: 900px) {
  .split,
  .service-grid,
  .process-flow,
  .contact-layout,
  .footer-grid,
  .blog-item {
    grid-template-columns: 1fr;
  }

  .offer-row {
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: rgba(244, 251, 255, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .hero-band {
    min-height: 92vh;
  }

  .hero-copy {
    margin-left: 1.25rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

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