/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
:root {
  --primary-dark: #0a192f;
  --gold-accent: #d4af37;
  --cta-orange: #ff6b35;
  --text-light: #f0f4f8;
  --text-muted: #8892b0;
  --bg-card: #112240;
  --bg-section-alt: #1a2d4d;
  --white: #ffffff;
  --success-green: #2ecc71;
  --error-red: #e74c3c;
  --heading-font: Impact, 'Arial Black', sans-serif;
  --body-font: Inter, 'Segoe UI', sans-serif;
  --header-height: 60px;
  --nav-width: 280px;
  --max-width: 1200px;
}
body {
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--primary-dark);
  min-height: 100vh;
}
a { color: var(--gold-accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--cta-orange); }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold-accent); outline-offset: 2px; }

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold-accent);
  color: var(--primary-dark);
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ===== Header ===== */
.site-header {
  background: var(--primary-dark);
  border-bottom: 2px solid var(--gold-accent);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--gold-accent);
  letter-spacing: 2px;
}
.brand-icon { font-size: 1.8rem; }
.brand-name { text-transform: uppercase; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: transform 0.3s;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  padding: 4px 12px;
}
.search-input {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: var(--body-font);
  font-size: 0.9rem;
  padding: 4px 0;
  width: 160px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-icon { margin-left: 6px; color: var(--text-muted); font-size: 1rem; }

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--nav-width);
  height: calc(100vh - var(--header-height));
  background: var(--bg-card);
  border-right: 2px solid var(--gold-accent);
  padding: 24px 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 800;
  overflow-y: auto;
}
.site-nav[data-open] { transform: translateX(0); }
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 12px 24px;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--bg-section-alt);
  border-left-color: var(--gold-accent);
  color: var(--gold-accent);
}
.nav-list a[aria-current="page"] {
  border-left-color: var(--cta-orange);
  color: var(--cta-orange);
  background: linear-gradient(90deg, rgba(255,107,53,0.1) 0%, transparent 100%);
}
@media (min-width: 1024px) {
  .site-header { left: var(--nav-width); width: calc(100% - var(--nav-width)); }
  .site-nav { transform: translateX(0); }
  .nav-toggle { display: none !important; }
  .search-box { display: flex; }
}
@media (max-width: 1023px) {
  .site-header { left: 0; width: 100%; }
  .nav-toggle { display: block; }
  .search-box { display: none; }
  .site-nav[data-open] { box-shadow: 4px 0 20px rgba(0,0,0,0.5); }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  border-top: 2px solid var(--gold-accent);
  padding: 48px 20px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col .footer-logo {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  color: var(--gold-accent);
  margin-bottom: 12px;
}
.footer-brand .brand-icon { font-size: 1.6rem; }
.footer-desc, .footer-contact {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-contact a { color: var(--gold-accent); }
.footer-contact a:hover { color: var(--cta-orange); }
.footer-heading {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  color: var(--gold-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  text-align: center;
  border-top: 1px solid var(--gold-accent);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-icp, .footer-legal {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-legal .sep { margin: 0 8px; color: var(--text-muted); }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--gold-accent); }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== General Components ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--gold-accent);
  color: var(--gold-accent);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  letter-spacing: 1px;
}
.btn:hover, .btn:focus-visible {
  background: var(--gold-accent);
  color: var(--primary-dark);
}
.btn-cta {
  background: var(--cta-orange);
  border-color: var(--cta-orange);
  color: var(--white);
}
.btn-cta:hover, .btn-cta:focus-visible {
  background: transparent;
  color: var(--cta-orange);
}
.btn-gold {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  color: var(--primary-dark);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold-accent);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: '/'; margin-left: 6px; color: var(--text-muted); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--gold-accent); }
.breadcrumb [aria-current="page"] { color: var(--text-light); font-weight: 600; }

/* Section containers */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
}
.section--wide { max-width: 100%; padding-left: 40px; padding-right: 40px; }
.section--narrow { max-width: 800px; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card-item {
  background: var(--bg-card);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 0;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.card-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(212,175,55,0.15);
  border-color: var(--gold-accent);
}

/* Image wrapper */
.image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--bg-section-alt);
  border: 1px solid var(--gold-accent);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(212,175,55,0.1) 20px),
              repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(212,175,55,0.1) 20px);
  pointer-events: none;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold-accent); }
.text-muted { color: var(--text-muted); }
.mt-12 { margin-top: 12px; }

/* ===== Progress Bar ===== */
[data-progress-bar] {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cta-orange), var(--gold-accent));
  z-index: 999;
  transition: width 0.1s linear;
}
@media (min-width: 1024px) {
  [data-progress-bar] { left: var(--nav-width); width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-progress-bar] { display: none; }
}

/* ===== Responsive Typography ===== */
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 900; line-height: 1.1; }
h1 { font-size: 4rem; }   /* 64px */
h2 { font-size: 2.8rem; } /* 44.8px */
h3 { font-size: 2rem; }   /* 32px */
p { margin-bottom: 1rem; }
small, .small { font-size: 0.875rem; }
.caption { font-size: 0.75rem; color: var(--text-muted); }

/* ===== Main content skip target ===== */
#main-content { padding-top: calc(var(--header-height) + 20px); }

/* ===== Scroll behavior reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
