@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@700;800&family=Sarabun:wght@400;500&display=swap');

:root {
  --bg: #0B0B0F;
  --bg-raised: #15151C;
  --bg-soft: #1C1C26;
  --accent: #FF7A00;
  --accent-hover: #FFD400;
  --accent-soft: rgba(255, 122, 0, 0.14);
  --secondary: #FFD400;
  --secondary-soft: rgba(255, 212, 0, 0.12);
  --text: #F5F5F5;
  --text-muted: rgba(245, 245, 245, 0.72);
  --keyword: #FFD400;
  --border: rgba(255, 212, 0, 0.22);
  --border-strong: rgba(255, 122, 0, 0.55);
  --gradient: linear-gradient(120deg, #FF7A00 0%, #FFD400 100%);
  --glow: 0 0 22px rgba(255, 122, 0, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --font-head: 'Prompt', 'Sarabun', sans-serif;
  --font-body: 'Sarabun', 'Prompt', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--keyword); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

.shell {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  box-shadow: var(--glow);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-toggle-btn { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--accent-hover); }
.nav__link:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #0B0B0F;
  box-shadow: var(--glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #0B0B0F;
  box-shadow: 0 0 28px rgba(255, 212, 0, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
  border-radius: var(--radius-sm);
}
.btn--ghost:hover {
  background: var(--secondary-soft);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.header-cta { padding: .55rem 1.1rem; font-size: .95rem; }

/* ---------- Hero / Page hero ---------- */
.hero,
.page-hero,
.section {
  padding-inline: 1rem;
  position: relative;
}
.hero > *,
.page-hero > *,
.section > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 122, 0, 0.18), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(50% 60% at 80% 0%, rgba(255, 212, 0, 0.1), transparent 70%),
    var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: block;
  width: max-content;
  max-width: calc(100% - 2rem);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  position: static;
  float: none;
  left: auto;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--secondary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.18);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section > * + * { margin-top: 1.5rem; }

.feature-row,
.contact-grid,
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature,
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.feature::before,
.card::before {
  content: '';
  position: absolute;
  left: 1.6rem;
  top: 0;
  width: 56px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gradient);
}
.feature:hover,
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--glow);
  transform: translateY(-3px);
}
.feature h3,
.card h3 { color: var(--accent); }

.cta-panel {
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.14), rgba(255, 212, 0, 0.06)),
    var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow: var(--glow);
}

.prose { max-width: 70ch; color: var(--text); }
.prose h2 { color: var(--accent); }
.prose h3 { color: var(--secondary); }
.prose strong { color: var(--keyword); }
.prose a { border-bottom: 1px dashed var(--keyword); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-top: 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.site-footer__tagline { color: var(--text-muted); margin: 0; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__heading {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: .5rem;
}
.site-footer__bar {
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle-btn {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    border: 1px solid currentColor;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
  }
  .nav-toggle-btn::before {
    content: '';
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  }
  .nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:checked ~ .nav .nav__list {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-row, .contact-grid, .split, .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .site-footer__links { justify-content: flex-start; }
}

/* image-gallery: generated in code */
section.image-gallery .image-gallery__grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 1rem;
  width: 100%;
}
section.image-gallery figure.image-gallery__item {
  box-sizing: border-box;
  display: block !important;
  flex: 0 1 calc((100% - 2rem) / 3) !important;
  width: calc((100% - 2rem) / 3) !important;
  max-width: calc((100% - 2rem) / 3) !important;
  margin: 0 !important;
}
section.image-gallery .image-gallery__grid--count-1 figure.image-gallery__item {
  flex-basis: min(360px, 100%) !important;
  width: min(360px, 100%) !important;
  max-width: min(360px, 100%) !important;
}
section.image-gallery .image-gallery__grid--count-2 figure.image-gallery__item {
  flex-basis: min(360px, calc((100% - 1rem) / 2)) !important;
  width: min(360px, calc((100% - 1rem) / 2)) !important;
  max-width: min(360px, calc((100% - 1rem) / 2)) !important;
}
section.image-gallery .image-gallery__item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover;
}
@media (max-width: 720px) {
  section.image-gallery figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-1 figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-2 figure.image-gallery__item {
    flex-basis: calc((100% - 1rem) / 2) !important;
    width: calc((100% - 1rem) / 2) !important;
    max-width: calc((100% - 1rem) / 2) !important;
  }
}
@media (max-width: 480px) {
  section.image-gallery figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-1 figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-2 figure.image-gallery__item {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* slot-media: homepage images assigned in code */
.slot-media {
  margin: 1rem 0;
  width: 100%;
}
.slot-media__grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 0.75rem;
  width: 100%;
}
.hero--stack .slot-media__grid,
.hero--center .slot-media__grid,
.hero .slot-media__grid--count-1 {
  justify-content: center !important;
}
.slot-media figure.slot-media__item {
  box-sizing: border-box;
  display: block !important;
  flex: 0 1 calc((100% - 1.5rem) / 3) !important;
  width: calc((100% - 1.5rem) / 3) !important;
  max-width: calc((100% - 1.5rem) / 3) !important;
  margin: 0 !important;
}
.slot-media .slot-media__grid--count-1 figure.slot-media__item {
  flex-basis: min(520px, 100%) !important;
  width: min(520px, 100%) !important;
  max-width: min(520px, 100%) !important;
}
.slot-media .slot-media__grid--count-2 figure.slot-media__item,
.slot-media .slot-media__grid--count-many figure.slot-media__item {
  flex-basis: min(360px, calc((100% - 0.75rem) / 2)) !important;
  width: min(360px, calc((100% - 0.75rem) / 2)) !important;
  max-width: min(360px, calc((100% - 0.75rem) / 2)) !important;
}
.shell.split .slot-media figure.slot-media__item {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.shell.split .slot-media .slot-media__grid--count-2 figure.slot-media__item,
.shell.split .slot-media .slot-media__grid--count-many figure.slot-media__item {
  flex-basis: calc((100% - 0.75rem) / 2) !important;
  width: calc((100% - 0.75rem) / 2) !important;
  max-width: calc((100% - 0.75rem) / 2) !important;
}
.slot-media .slot-media__item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover;
  border-radius: 0.75rem;
}
.hero--center > .slot-media--banner,
.hero--stack > .slot-media--banner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
.hero--center > .slot-media--banner .slot-media__grid,
.hero--stack > .slot-media--banner .slot-media__grid {
  justify-content: center !important;
}
.hero--center > .slot-media--banner figure.slot-media__item,
.hero--center > .slot-media--banner .slot-media__grid--count-1 figure.slot-media__item,
.hero--stack > .slot-media--banner figure.slot-media__item,
.hero--stack > .slot-media--banner .slot-media__grid--count-1 figure.slot-media__item {
  flex: 0 1 100% !important;
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.hero--center > .slot-media--banner .slot-media__item img,
.hero--stack > .slot-media--banner .slot-media__item img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 0.75rem;
}
@media (max-width: 720px) {
  .hero--center > .slot-media--banner,
  .hero--stack > .slot-media--banner {
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
  }
}

/* middle count-1: full width, height capped — not hero, not split */
.section > .shell:not(.split) .slot-media .slot-media__grid--count-1 figure.slot-media__item {
  flex: 0 1 100% !important;
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.section > .shell:not(.split) .slot-media .slot-media__grid--count-1 .slot-media__item img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 28rem !important;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

@media (max-width: 720px) {
  .section > .shell:not(.split) .slot-media .slot-media__grid--count-1 .slot-media__item img {
    max-height: 20rem !important;
  }
}

/* typography rhythm: generated in code */
.section .shell:not(.cta-panel) > h2 { margin-bottom: 1rem; }
.section .shell:not(.cta-panel) > * + * { margin-top: 1.25rem; }
.section .shell:not(.cta-panel) > h2 + * { margin-top: 0; }
.prose > * + * { margin-top: 1rem; }
.prose > h2, .prose > h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0; }

/* hero-img: spacing between hero image and following text */
.hero .shell > img, .page-hero .shell > img {
  margin: 0 auto 1.75rem;
  border-radius: 0.75rem;
}

/* brand logo: generated in code */
.site-header__inner { padding-block: 0.4rem; }
.brand__logo {
  display: block;
  width: auto !important;
  height: 2.75rem !important;
  max-width: 11rem;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 720px) {
  .brand__logo { height: 2.25rem !important; max-width: 8.5rem; }
}
