:root {
  --ice: #eef7fb;
  --quartz: #f7fbff;
  --silver: #c9d6e3;
  --ink: #122033;
  --muted: #3d5368;
  --emerald: #34d399;
  --violet: #8b7cff;
  --cyan: #5eead4;
  --deep: #071018;
  --slab: rgba(247, 251, 255, 0.12);
  --stroke: rgba(201, 214, 227, 0.35);
  --font: "IBM Plex Sans Thai", "Outfit", sans-serif;
  --display: "Outfit", "IBM Plex Sans Thai", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ice);
  font-family: var(--font);
  line-height: 1.7;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(52, 211, 153, 0.28), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(139, 124, 255, 0.32), transparent 50%),
    radial-gradient(800px 500px at 70% 90%, rgba(94, 234, 212, 0.18), transparent 45%),
    linear-gradient(180deg, #061018 0%, #0b1a28 42%, #0a1420 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.04) 42%, transparent 46%),
    linear-gradient(160deg, transparent 60%, rgba(94, 234, 212, 0.05) 63%, transparent 68%);
  animation: aurora-shift 18s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes aurora-shift {
  from { opacity: 0.55; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-12px); }
}

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

main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.site-header,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 2;
}

.site-header {
  border-bottom: 1px solid var(--stroke);
  background: rgba(7, 16, 24, 0.55);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--quartz);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 1.15rem;
  height: 1.7rem;
  background: linear-gradient(160deg, #f4fbff, var(--emerald), var(--violet), var(--cyan));
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.45);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font: inherit;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.hero-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 72vh;
  border-bottom: 1px solid var(--stroke);
}

.hero-photo {
  position: relative;
  min-height: 420px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: rgba(7, 16, 24, 0.62);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.2rem 8% 3rem 2rem;
}

.place-line {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 1.2rem;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--quartz);
}

.lede {
  font-size: 1.05rem;
  color: var(--silver);
  max-width: 38ch;
}

.inline-cta {
  margin-top: 1.6rem;
  color: var(--quartz);
  font-weight: 600;
}

.slab {
  background: linear-gradient(160deg, rgba(247, 251, 255, 0.14), rgba(52, 211, 153, 0.08) 40%, rgba(139, 124, 255, 0.1));
  border: 1px solid var(--stroke);
  border-radius: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.section {
  padding: 4.2rem 0;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}

.section-intro {
  max-width: 58ch;
  color: var(--silver);
}

.primary-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
}

.primary-block img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 1rem;
}

.offer-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.offer-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.offer-card img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.offer-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.offer-card p {
  margin: 0;
  color: var(--silver);
  font-size: 0.95rem;
}

.voices {
  display: grid;
  gap: 1rem;
}

.voices blockquote {
  margin: 0;
  padding: 1.2rem 1.3rem;
}

.voices p {
  margin: 0 0 0.6rem;
}

.voices cite {
  font-style: normal;
  color: var(--emerald);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font: inherit;
  cursor: pointer;
  background: linear-gradient(120deg, var(--emerald), var(--cyan) 55%, var(--violet));
  color: var(--deep);
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  color: var(--quartz);
  border-color: var(--stroke);
}

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

.btn.is-firing {
  animation: crystal-pulse 0.7s ease-out 1;
}

@keyframes crystal-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 124, 255, 0.55), 0 0 12px rgba(52, 211, 153, 0.35);
  }
  55% {
    box-shadow: 0 0 0 14px rgba(94, 234, 212, 0), 0 0 28px rgba(139, 124, 255, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 124, 255, 0), 0 0 10px rgba(52, 211, 153, 0.2);
  }
}

.card-grid,
.portrait-grid,
.case-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.media-card,
.portrait,
.case-card {
  overflow: hidden;
  padding: 0.85rem;
}

.media-card img,
.portrait img,
.case-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.9rem;
}

.portrait img {
  height: 220px;
}

.media-card h3,
.portrait h3,
.case-card h3 {
  margin: 0.8rem 0 0.3rem;
}

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

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

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.8rem;
  max-width: 18ch;
}

.prose {
  max-width: 68ch;
}

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

.legal .prose p {
  color: var(--silver);
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--stroke);
  background: rgba(7, 16, 24, 0.55);
  color: var(--quartz);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error,
.island-error {
  color: #fecaca;
  font-size: 0.88rem;
  margin: 0.15rem 0 0;
}

.form-status {
  margin: 0.4rem 0 0;
}

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

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--stroke);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--stroke);
  background: rgba(7, 16, 24, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.4rem;
  padding: 2.4rem 0;
}

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

.footer-label {
  color: var(--emerald);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(420px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  background: linear-gradient(165deg, rgba(247, 251, 255, 0.16), rgba(11, 26, 40, 0.92));
  border: 1px solid var(--stroke);
  border-radius: 1.1rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.lost {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 0.8rem 1rem 1rem;
    background: rgba(7, 16, 24, 0.95);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
  }

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

  .hero-split,
  .primary-block,
  .offer-card,
  .card-grid,
  .portrait-grid,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 2rem 1rem 2.4rem;
  }

  .offer-card img {
    width: 100%;
    height: 160px;
  }
}
