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

:root {
  --bg: #0D0D0D;
  --accent: #FF7A00;
  --accent-soft: #FF9E2C;
  --text: #F5F5F5;
  --keyword: #FF7A00;
  --accent-ghost: rgba(255, 122, 0, 0.12);
  --accent-hover: #FFB35C;
  --border: rgba(255, 122, 0, 0.35);
  --surface: #161616;
  --surface-2: #1E1E1E;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --radius: 8px;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 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; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0D0D0D;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 0 0 rgba(255, 122, 0, 0.15);
}
.site-header__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
}
.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0D0D0D;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

/* ---------- Hamburger (required) ---------- */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-toggle-btn { display: none; }
@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(--accent);
  }
  .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;
  }
}
.feature-row, .contact-grid, .split { gap: 1.5rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #0D0D0D;
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.28);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #0D0D0D;
  box-shadow: 0 8px 26px rgba(255, 158, 44, 0.45);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--ghost:hover {
  background: var(--accent-ghost);
  color: var(--accent-soft);
}
.header-cta { padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* ---------- Hero / Page hero ---------- */
.hero, .page-hero, .section {
  padding-inline: 1rem;
}
.hero, .page-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 38px, rgba(255, 122, 0, 0.04) 38px 39px),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero > *, .page-hero > *, .section > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}
.hero h1, .page-hero h1 { color: var(--text); }
.hero h1 em, .page-hero h1 em,
.hero h1 .kw, .page-hero h1 .kw { color: var(--keyword); font-style: normal; }

.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;
  border: 1px solid var(--accent);
  background: var(--accent-ghost);
  color: var(--accent);
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  position: static;
  float: none;
  left: auto;
}

.lede {
  color: #D8D8D8;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 62ch;
  margin-inline: auto;
}

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

/* ---------- Sections & content blocks ---------- */
.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg);
}
.section > * + * { margin-top: 1.5rem; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(255, 122, 0, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature h3 { color: var(--accent); }

.card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-grid, .split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.cta-panel {
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.18), transparent 70%),
    var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.08), var(--shadow);
}

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 1.25rem;
  margin-top: 3rem;
  color: #BDBDBD;
  font-size: 0.95rem;
}
.site-footer .shell { padding-inline: 1rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__name {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.2rem;
}
.site-footer__name::before {
  content: '';
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  background: var(--accent);
  border-radius: 2px;
}
.site-footer__tagline { color: #9A9A9A; margin: 0; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer__links a { color: #D0D0D0; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__heading {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer__bar {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 122, 0, 0.2);
  text-align: center;
  color: #7A7A7A;
  font-size: 0.85rem;
}

/* 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;
}
