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

:root {
  --bg-primary: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --accent-gold: #D4AF37;
  --accent-gold-dark: #a6841e;
  --accent-gold-light: #f5e49e;
  --accent-crimson: #8A0303;
  --accent-crimson-bright: #aa0404;
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-gold: #D4AF37;
  --gold-gradient: linear-gradient(135deg, #f5e49e 0%, #D4AF37 50%, #9e7d18 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #e6c55d 50%, #b89326 100%);
  --red-gradient: linear-gradient(135deg, #aa0404 0%, #8A0303 100%);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-glow: rgba(212, 175, 55, 0.6);
  --border-crimson: rgba(138, 3, 3, 0.4);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.18);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.8);
  --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background-image: radial-gradient(circle at 50% 0%, rgba(138, 3, 3, 0.15) 0%, transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

a:hover {
  color: var(--accent-gold-light);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  padding-block: 0.85rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__logo {
  height: 2.75rem;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--accent-gold);
}

.nav__link:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--gold-gradient);
  color: #0A0A0A;
  font-weight: 700;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  background: var(--gold-gradient-hover);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.btn--ghost {
  background: rgba(10, 10, 10, 0.8);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn--ghost:hover {
  background: var(--accent-gold);
  color: #0A0A0A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.header-cta {
  padding: 0.55rem 1.35rem;
  font-size: 0.85rem;
}

.hero, .page-hero, .section {
  padding-inline: 1rem;
}

.hero > *, .page-hero > *, .section > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.hero, .page-hero {
  padding-block: 4.5rem 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(138, 3, 3, 0.22) 0%, rgba(10, 10, 10, 0) 70%),
              radial-gradient(circle at 80% 10%, rgba(212, 175, 55, 0.08) 0%, rgba(10, 10, 10, 0) 50%);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
}

.hero h1, .page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.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-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(138, 3, 3, 0.4);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.section {
  padding-block: 4rem;
  position: relative;
}

.section > * + * {
  margin-top: 1.5rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

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

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0.7;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.feature h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-gold);
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-gold-glow);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), var(--shadow-gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.cta-panel {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(138, 3, 3, 0.25) 100%);
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  position: relative;
}

.cta-panel h2, .cta-panel h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.cta-panel p {
  color: var(--text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.prose {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose strong {
  color: var(--text-gold);
  font-weight: 600;
}

.prose h2, .prose h3 {
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-block: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  background: #050505;
  border-top: 1px solid var(--border-gold);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: 5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer__tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.site-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.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;
    padding-top: 1rem;
    gap: 0.75rem;
  }
  .nav-toggle:checked ~ .nav .nav__link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }
  .feature-row, .contact-grid, .split, .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .site-header__inner {
    justify-content: space-between;
  }
}

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