/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --deep-blue: #0B1F3A;
  --gold: #F5C518;
  --flame-red: #E63946;
  --dark-bg: #0A0E18;
  --light-text: #F0F0F0;
  --dark-text: #1A1A1A;
  --mid-gray: #5A5A5A;
  --transparent-gold: rgba(245,197,24,0.3);
  --card-bg: rgba(255,255,255,0.05);
  --success-green: #2ECC71;
  --site-max-width: 1200px;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --heading-weight: 800;
  --body-weight: 400;
  --base-font-size: 1rem;
  --line-height: 1.6;
  --transition: 0.3s ease;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  font-size: var(--base-font-size);
  line-height: var(--line-height);
  color: var(--light-text);
  background-color: var(--deep-blue);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--flame-red); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* ===== Container ===== */
.container { width: 100%; max-width: var(--site-max-width); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ===== Skip Link ===== */
.skip-link {
  position: absolute; top: -1000px; left: 0; background: var(--gold); color: var(--dark-text);
  padding: 0.5rem 1rem; z-index: 100; font-weight: 600; font-family: var(--font-heading);
}
.skip-link:focus { top: 0; }

/* ===== Header ===== */
.site-header {
  background-color: var(--dark-bg);
  border-bottom: 2px solid var(--gold);
  padding: 0.75rem 0;
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.site-brand {
  display: flex; align-items: baseline; gap: 0.25rem;
}
.site-brand__name {
  font-family: var(--font-heading); font-weight: var(--heading-weight); text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--gold); letter-spacing: 0.05em;
}
.site-brand__tagline {
  font-family: var(--font-body); font-size: 0.85rem; color: var(--mid-gray); display: none;
}
@media (min-width: 480px) { .site-brand__tagline { display: inline; } }

/* ===== Navigation ===== */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 60;
}
.nav-toggle__bar {
  display: block; width: 24px; height: 2px; background-color: var(--gold); transition: transform var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.site-nav { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.site-nav[data-open] { max-height: 500px; }
.site-nav__list { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0 0.5rem; }
.site-nav__list a {
  display: block; padding: 0.5rem 0.75rem; font-family: var(--font-heading);
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--light-text); border-left: 3px solid transparent; transition: all var(--transition);
}
.site-nav__list a:hover { background: var(--card-bg); border-left-color: var(--gold); }
.site-nav__list a[aria-current="page"] { color: var(--gold); border-left-color: var(--gold); font-weight: 600; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav { flex-basis: auto; max-height: none; overflow: visible; }
  .site-nav__list { flex-direction: row; gap: 0.25rem; padding: 0; }
  .site-nav__list a { border-left: none; border-bottom: 2px solid transparent; padding: 0.25rem 0.75rem; }
  .site-nav__list a:hover { border-bottom-color: var(--gold); background: none; }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--dark-bg);
  border-top: 2px solid var(--mid-gray);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer__inner {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer__brand .site-brand__name { color: var(--gold); font-size: 1.4rem; }
.site-footer__tagline { display: block; margin-top: 0.5rem; color: var(--mid-gray); font-size: 0.9rem; }
.site-footer__info p { margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--light-text); }
.site-footer__contact a { color: var(--light-text); }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__icp { color: var(--mid-gray); font-size: 0.8rem; }
.site-footer__copyright { color: var(--mid-gray); font-size: 0.8rem; }
.site-footer__nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__nav-list a { color: var(--light-text); font-size: 0.9rem; }
.site-footer__nav-list a:hover { color: var(--gold); }

/* ===== Progress Bar (JS) ===== */
.progress-bar {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--flame-red));
  z-index: 99; transition: width 0.15s ease-out;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 80;
  background: var(--gold); color: var(--dark-text); border: none;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); transition: opacity var(--transition), transform var(--transition);
  pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.back-to-top[data-visible] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--flame-red); color: #fff; }

/* ===== Base Components ===== */
.btn {
  display: inline-block; padding: 0.6rem 1.8rem; font-family: var(--font-heading);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.btn--primary { background: var(--flame-red); color: #fff; border-color: var(--flame-red); }
.btn--primary:hover { background: transparent; color: var(--flame-red); }
.btn--ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--dark-text); }

.badge {
  display: inline-block; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; border-radius: 2px;
  background: var(--transparent-gold); color: var(--gold); border: 1px solid var(--gold);
}
.badge--success { background: rgba(46,204,113,0.15); color: var(--success-green); border-color: var(--success-green); }

.card {
  background: var(--card-bg); border: 1px solid transparent; padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}
.card:hover { border-color: var(--mid-gray); }
.card--highlight { border-color: var(--gold); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 0;
  font-size: 0.85rem; color: var(--mid-gray);
}
.breadcrumbs a { color: var(--mid-gray); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .current { color: var(--light-text); }

/* ===== Grid Helpers ===== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3,1fr); } }

/* ===== Image container placeholder ===== */
.img-container {
  background: var(--dark-bg); border: 1px solid var(--mid-gray);
  overflow: hidden; position: relative;
}
.img-container::before { content: ''; display: block; padding-top: 56.25%; }
.img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--heading-weight); text-transform: uppercase; letter-spacing: 0.03em; color: var(--gold); }
h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.accent { font-family: var(--font-heading); font-weight: 600; font-style: italic; color: var(--flame-red); }
.text-mid { color: var(--mid-gray); }
