:root {
  --quartz: #f4fbff;
  --mist: #e7f4f6;
  --emerald: #3dcfb0;
  --emerald-deep: #0f6f62;
  --violet: #7b6cff;
  --cyan: #5ce1ff;
  --silver: #c9d8de;
  --ink: #16323a;
  --muted: #3e5c66;
  --glass: rgba(255, 255, 255, 0.52);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 50px rgba(20, 70, 82, 0.12);
  --radius: 22px;
  --font: "Noto Sans Thai", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", "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 600px at 10% -10%, rgba(92, 225, 255, 0.35), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(123, 108, 255, 0.28), transparent 50%),
    radial-gradient(800px 500px at 70% 90%, rgba(61, 207, 176, 0.22), transparent 55%),
    linear-gradient(180deg, #edf7fa 0%, #f7fbff 42%, #e9f3f4 100%);
  min-height: 100vh;
  line-height: 1.7;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.18) 48%, transparent 56%),
    linear-gradient(18deg, rgba(255, 255, 255, 0.04) 25%, transparent 26%);
  mix-blend-mode: screen;
  z-index: 0;
}

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

a {
  color: var(--emerald-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(244, 251, 255, 0.72);
  border-bottom: 1px solid rgba(201, 216, 222, 0.7);
}

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

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

.brand-mark {
  width: 1.35rem;
  height: 1.7rem;
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
  background: linear-gradient(160deg, #fff, var(--cyan), var(--violet));
  box-shadow: 0 0 16px rgba(92, 225, 255, 0.6);
}

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

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

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

.nav-toggle {
  display: none;
}

.crystal {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
  padding: 3.2rem 0 2.4rem;
  align-items: end;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  border-radius: 8px;
}

.hero-caption {
  position: absolute;
  left: 8%;
  bottom: 1.4rem;
  right: 18%;
  padding: 0.9rem 1rem;
}

.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--emerald-deep);
  margin: 0 0 0.6rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.7rem;
}

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

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

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

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--emerald), var(--cyan) 55%, var(--violet));
  color: #062226;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(61, 207, 176, 0.28);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-120%);
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: crystal-pulse 0.9s ease;
}

@keyframes crystal-pulse {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--silver);
}

.section {
  padding: 2.6rem 0;
}

.primary-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  padding: 1.4rem;
}

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

.offer-grid,
.card-grid,
.team-grid,
.quote-grid,
.gallery-grid,
.price-grid {
  display: grid;
  gap: 1.1rem;
}

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

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

.card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card img,
.gallery-card img,
.team-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

.team-card img {
  height: 220px;
}

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

.legal {
  padding: 2.4rem 0 3rem;
}

.legal h1 {
  margin-bottom: 1rem;
}

.legal h2 {
  margin-top: 1.6rem;
}

form {
  display: grid;
  gap: 0.85rem;
  padding: 1.3rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

input, textarea, select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--silver);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.field-error,
.form-status {
  color: #8a2040;
  font-size: 0.9rem;
  margin: 0;
}

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

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

.site-foot {
  margin-top: 3rem;
  padding: 2rem 0 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(123, 108, 255, 0.08));
  border-top: 1px solid rgba(201, 216, 222, 0.8);
}

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

.foot-grid a,
.site-foot p {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0.2rem 0;
}

.foot-brand,
.foot-label {
  color: var(--ink);
  font-weight: 700;
}

.foot-copy {
  opacity: 0.8;
  padding-top: 1rem;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(244, 251, 255, 0.92);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
}

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

.page-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  margin-bottom: 1.4rem;
}

.list {
  padding-left: 1.1rem;
}

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

@media (max-width: 880px) {
  .hero,
  .primary-block,
  .split,
  .offer-grid,
  .card-grid,
  .team-grid,
  .quote-grid,
  .gallery-grid,
  .price-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    height: 320px;
    clip-path: none;
    border-radius: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--silver);
    background: var(--glass);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font: inherit;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: rgba(244, 251, 255, 0.96);
    border: 1px solid var(--silver);
    border-radius: 16px;
    padding: 0.8rem;
    flex-direction: column;
  }

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