/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; background: #0A2342; color: #FFFFFF; font-family: "Source Sans Pro", Helvetica, Arial, sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
a { color: #D4A843; text-decoration: none; transition: color 0.25s ease; }
a:hover { color: #e6b94f; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid #D4A843; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ===== css variables ===== */
:root {
  --color-primary: #0A2342;
  --color-accent: #D4A843;
  --color-secondary-accent: #C23B22;
  --color-background-light: #F5F3EE;
  --color-text-primary: #111111;
  --color-text-on-dark: #FFFFFF;
  --color-link: #D4A843;
  --color-border: #2A3F5F;
  --font-heading: "Arial Black", Impact, "Franklin Gothic Bold", sans-serif;
  --font-body: "Source Sans Pro", Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --header-width: 270px;
  --header-collapsed: 70px;
  --radius-capsule: 50px;
  --radius-card: 20px;
  --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --z-header: 100;
  --z-nav: 200;
  --z-skip: 300;
}

/* ===== skip link ===== */
.skip-link {
  position: fixed; top: 0; left: 0; z-index: var(--z-skip);
  padding: 12px 24px; background: #D4A843; color: #0A2342;
  font-weight: 700; font-size: 0.95rem;
  transform: translateY(-120%); transition: transform 0.25s ease;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { transform: translateY(0); }

/* ===== header / side rail ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: var(--header-width); height: 100vh;
  background: linear-gradient(145deg, #0A2342 0%, #0D2B52 100%);
  border-right: 1px solid var(--color-border);
  z-index: var(--z-header);
  display: flex; flex-direction: column;
  overflow: hidden; transition: width var(--transition-default);
}
.site-header__inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 32px 20px 20px; position: relative;
}

/* brand */
.brand { margin-bottom: 40px; }
.logo {
  display: block; font-family: var(--font-heading); font-size: 1.8rem;
  color: var(--color-accent); letter-spacing: 0.02em;
  line-height: 1.2; text-transform: uppercase;
}
.logo:hover { color: #e6b94f; }
.tagline {
  display: block; font-size: 0.75rem; color: rgba(255,255,255,0.55);
  font-family: var(--font-body); letter-spacing: 0.3em; margin-top: 4px;
  text-transform: uppercase;
}

/* nav toggle (mobile) */
.nav-toggle {
  display: none; position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; padding: 8px;
  background: rgba(212,168,67,0.12); border-radius: 8px;
  z-index: 10;
}
.nav-toggle__bar {
  display: block; width: 26px; height: 3px; background: var(--color-accent);
  border-radius: 3px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.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: translateY(-8px) rotate(-45deg); }

/* site nav */
.site-nav { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.nav-list { display: flex; flex-direction: column; gap: 6px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 10px 12px 10px 28px;
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 400;
  color: rgba(255,255,255,0.78); letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative; width: 100%;
}
.nav-link:hover { color: var(--color-accent); background: rgba(212,168,67,0.08); }
.nav-link[aria-current="page"] { color: var(--color-accent); background: rgba(212,168,67,0.15); }
.nav-indicator {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(212,168,67,0.3);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-item::before {
  content: ""; position: absolute; left: 3.5px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, transparent, rgba(212,168,67,0.25), transparent);
  pointer-events: none;
}
.nav-link[aria-current="page"] + .nav-indicator { background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 8px rgba(212,168,67,0.5); }

/* cta in nav */
.site-nav__cta { margin-top: 24px; align-self: stretch; text-align: center; }

/* btn capsule */
.btn-capsule {
  display: inline-block; padding: 12px 32px;
  background: linear-gradient(135deg, #D4A843, #c49a3c);
  color: #0A2342; font-family: var(--font-heading); font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-capsule); transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 15px rgba(212,168,67,0.25);
}
.btn-capsule:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,67,0.35); color: #0A2342; }
.btn-capsule:active { transform: translateY(0); }

/* scroll progress */
.scroll-progress {
  width: 100%; height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 4px; margin-top: 16px; overflow: hidden; flex-shrink: 0;
  position: relative;
}
.scroll-progress::after {
  content: ""; display: block; width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #e6b94f);
  border-radius: 4px; transition: width 0.1s linear;
}
.scroll-progress[aria-label]::after { width: var(--progress, 0%); }

/* ===== main content wrapper ===== */
#main-content {
  margin-left: var(--header-width); min-height: 100vh;
  background: var(--color-primary);
  position: relative; z-index: 1;
}

/* ===== footer ===== */
.footer {
  background: #0A2342; border-top: 1px solid var(--color-border);
  padding: 60px 40px 32px; margin-left: var(--header-width);
}
.footer__inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer__logo {
  font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-accent);
  text-transform: uppercase; display: inline-block; margin-bottom: 8px;
}
.footer__tagline { font-size: 0.8rem; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; margin-bottom: 12px; }
.footer__trust { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.6; max-width: 280px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.footer__link { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.25s ease; }
.footer__link:hover { color: var(--color-accent); }
.footer__contact { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.footer__contact p { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer__bottom { text-align: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--color-border); }
.footer__copyright { font-size: 0.75rem; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }

/* ===== shared components ===== */
.data-card {
  background: var(--color-background-light); color: var(--color-text-primary);
  border-radius: var(--radius-card); padding: 28px 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.data-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.12); transform: translateY(-4px); }
.gradient-section {
  background: linear-gradient(135deg, #0A2342 0%, #0D2B52 60%, #1a3a6a 100%);
  border-radius: var(--radius-card); padding: 48px 40px;
}
.data-mono { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.02em; color: var(--color-accent); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-accent); line-height: 1.2; }
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
body, p { font-family: var(--font-body); color: rgba(255,255,255,0.88); }
a { color: var(--color-link); }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  :root { --header-width: 240px; }
  .site-header { width: var(--header-width); }
  #main-content { margin-left: var(--header-width); }
  .footer { margin-left: var(--header-width); padding: 40px 24px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-header {
    width: 100%; height: auto; position: relative;
    border-right: none; border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, #0A2342 0%, #0D2B52 100%);
  }
  .site-header__inner { padding: 12px 16px; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .brand { margin-bottom: 0; flex: 1; }
  .logo { font-size: 1.3rem; }
  .tagline { font-size: 0.6rem; letter-spacing: 0.15em; }
  .nav-toggle { display: flex; position: relative; top: auto; right: auto; }
  .site-nav {
    display: none; width: 100%; flex-direction: column;
    padding: 16px 0 8px; order: 3;
  }
  .site-nav[data-open] { display: flex; }
  .nav-list { gap: 2px; }
  .nav-link { padding: 10px 16px 10px 32px; font-size: 0.85rem; }
  .nav-indicator { left: 8px; }
  .nav-item::before { left: 11.5px; }
  .site-nav__cta { margin-top: 16px; }
  .scroll-progress { display: none; }
  #main-content { margin-left: 0; }
  .footer { margin-left: 0; padding: 32px 20px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer__links { align-items: center; }
  .footer__contact { align-items: center; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  .data-card { padding: 20px 16px; }
  .gradient-section { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .site-header__inner { padding: 10px 12px; }
  .logo { font-size: 1.1rem; }
  .tagline { display: none; }
  .nav-link { font-size: 0.8rem; padding: 8px 12px 8px 28px; }
  .nav-indicator { width: 6px; height: 6px; left: 6px; }
  .nav-item::before { left: 8.5px; }
  .footer { padding: 24px 16px 20px; }
}

/* ===== image container base ===== */
.img-container {
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  background: var(--color-border);
}
.img-container img { width: 100%; height: 100%; object-fit: cover; }
.img-container--landscape { aspect-ratio: 16 / 9; }
.img-container--portrait { aspect-ratio: 3 / 4; }
.img-container--square { aspect-ratio: 1 / 1; }

/* ===== utility ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }
