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

:root {
  --bg: #0F0F10;
  --bg-elevated: #17171A;
  --accent: #D71920;
  --accent-hover: #FF3B3F;
  --accent-soft: rgba(215, 25, 32, 0.12);
  --accent-line: linear-gradient(90deg, rgba(215, 25, 32, 0) 0%, #D71920 50%, rgba(215, 25, 32, 0) 100%);
  --steel: #8A8F98;
  --steel-soft: rgba(138, 143, 152, 0.18);
  --text: #FFFFFF;
  --keyword: #FF3B3F;
  --text-muted: #8A8F98;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 10px 30px -12px rgba(215, 25, 32, 0.55);
  --font-head: 'Prompt', system-ui, sans-serif;
  --font-body: 'Sarabun', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(215, 25, 32, 0.10), transparent 60%),
    linear-gradient(180deg, #0F0F10 0%, #0B0B0C 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: #FFFFFF;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-soft);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent-line);
  opacity: .9;
}
.site-header__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--text);
  padding: .3rem .7rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(215,25,32,.22), rgba(215,25,32,0));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

/* hamburger (required, no JS) */
.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;
  }
  .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;
  }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(255, 59, 63, .7);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--steel);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}
.header-cta { padding: .6rem 1.05rem; font-size: .88rem; }

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

.hero, .page-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .page-hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--accent-line);
  opacity: .7;
}

.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;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--keyword);
  background: var(--accent-soft);
  border: 1px solid rgba(215, 25, 32, .45);
}

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

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

/* ---------- Sections & content ---------- */
.section {
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.section > * + * { margin-top: 1.5rem; }
.section > h2 { position: relative; padding-bottom: .75rem; }
.section > h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

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

.feature, .card {
  background: linear-gradient(180deg, var(--bg-elevated), #121214);
  border: 1px solid var(--steel-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.feature::before, .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 36px;
  height: 2px;
  background: var(--accent);
}
.feature:hover, .card:hover {
  border-color: rgba(215, 25, 32, .5);
  transform: translateY(-2px);
}
.feature h3, .card h3 { margin-top: .4rem; }
.feature p, .card p { color: #C9CCD3; margin-bottom: 0; }

.contact-grid .card, .split > * {
  background: linear-gradient(180deg, var(--bg-elevated), #121214);
}

.cta-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, .22), rgba(215, 25, 32, 0) 60%),
    var(--bg-elevated);
  border: 1px solid rgba(215, 25, 32, .4);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.cta-panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent-line);
}

.prose {
  max-width: 68ch;
  margin-inline: auto;
  color: #D8DAE0;
  line-height: 1.7;
}
.prose h2, .prose h3 { color: var(--text); }
.prose a { border-bottom: 1px solid rgba(255, 59, 63, .4); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0A0A0B;
  border-top: 1px solid var(--steel-soft);
  padding-block: 3rem 1.25rem;
  position: relative;
  margin-top: 2rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accent-line);
}
.site-footer__grid {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .04em;
  color: var(--text);
}
.site-footer__tagline { color: var(--text-muted); margin: 0; font-size: .95rem; }
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.site-footer__links a { color: #D8DAE0; font-size: .95rem; }
.site-footer__links a:hover { color: var(--keyword); }
.site-footer__heading {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--steel-soft);
}
.site-footer__bar {
  width: min(1120px, 100%);
  margin: 2.5rem auto 0;
  padding: 1.1rem 1.25rem 0;
  border-top: 1px solid var(--steel-soft);
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Focus & motion ---------- */
:focus-visible {
  outline: 2px solid var(--keyword);
  outline-offset: 3px;
}

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

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