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

:root {
  --bg: #8B0A1A;
  --bg-deep: #5e0711;
  --panel: #0D0D0D;
  --panel-soft: rgba(13, 13, 13, 0.82);
  --gold: #D4AF37;
  --gold-hover: #e3c25a;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --gold-faint: rgba(212, 175, 55, 0.14);
  --gold-glow: rgba(212, 175, 55, 0.4);
  --text: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.85);
  --radius: 12px;
  --radius-lg: 18px;
  --font-head: 'Kanit', sans-serif;
  --font-body: 'Prompt', sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%),
    repeating-linear-gradient(45deg, transparent 0 38px, var(--gold-faint) 38px 39px);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h2 { color: var(--gold); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-soft); }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-hover); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--panel);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 1px 0 var(--gold-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
  margin-right: auto;
}
.brand__logo {
  display: block;
  height: 2.5rem;
  width: auto;
  filter: drop-shadow(0 0 8px var(--gold-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: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--text);
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--gold);
  background: var(--gold-faint);
  border-bottom-color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary {
  background: linear-gradient(135deg, #f0d77a 0%, var(--gold) 50%, #a88622 100%);
  color: var(--panel);
}
.btn--primary:hover {
  color: var(--panel);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
}
.btn--ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--gold);
}
.btn--ghost:hover {
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 14px var(--gold-soft);
}
.header-cta { padding: 0.55rem 1.2rem; font-size: 0.95rem; }

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

/* Hero */
.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem);
  background:
    radial-gradient(ellipse at 80% 30%, var(--gold-faint), transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 55%, var(--panel) 100%);
  border-bottom: 1px solid var(--gold-soft);
}
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.55), transparent),
    var(--bg-deep);
  border-bottom: 1px solid var(--gold-soft);
}
.hero h1, .page-hero h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.lede {
  font-size: 1.15rem;
  max-width: 62ch;
  color: var(--text);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.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(--panel);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  box-shadow: 0 0 12px var(--gold-faint);
}

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section:nth-of-type(even) {
  background: rgba(13, 13, 13, 0.45);
  border-block: 1px solid var(--gold-faint);
}
.section > * + * { margin-top: 1.5rem; }

.feature-row, .contact-grid, .split {
  display: grid;
  gap: 1.5rem;
}
.feature-row { grid-template-columns: repeat(3, 1fr); }
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.split { grid-template-columns: 1fr 1fr; align-items: center; }

.feature, .card {
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature {
  position: relative;
  border-top: 3px solid var(--gold);
}
.feature:hover, .card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 18px var(--gold-faint);
}
.feature h3, .card h3 { color: var(--gold); }
.feature p:last-child, .card p:last-child { margin-bottom: 0; }

.cta-panel {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--gold-faint), transparent 65%),
    var(--panel);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3rem) 1.5rem;
  box-shadow: 0 0 30px var(--gold-faint), 0 14px 34px rgba(0, 0, 0, 0.5);
}
.cta-panel .btn { margin: 0.3rem; }

.prose { max-width: 75ch; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--text-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--gold); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4);
  padding-top: 2.5rem;
  color: var(--text-soft);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer__brand { max-width: 46ch; }
.site-footer__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.site-footer__tagline { margin: 0; color: var(--text-soft); }
.site-footer__heading {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer__links a { color: var(--text-soft); }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__bar {
  border-top: 1px solid var(--gold-faint);
  padding-block: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}

@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(--gold);
  }
  .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;
  }
  .header-cta { order: 2; }
  .hero__actions .btn { flex: 1 1 100%; }
}

.feature-row, .contact-grid, .split { gap: 1.5rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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