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

:root {
  /* COLOR PALETTE */
  --color-bg: #0E1018;            /* dark gunmetal background (DARK) */
  --color-bg-alt: #141923;
  --color-bg-card: #171C26;
  --color-primary: #C8D4DC;        /* platinum silver */
  --color-accent: #5B6EF0;         /* electric indigo */
  --color-text: #F0F4F8;            /* near-white */
  --color-text-muted: #8090A8;
  --color-text-on-primary: #111111; /* contrast for light primary */
  --color-border: #2A3344;
  --color-shadow: rgba(0,0,0,0.6);

  /* TYPOGRAPHY SCALE */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-hero: 3.5rem;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* SPACING & BORDERS */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-base: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;

  --radius: 4px;
}

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

html, body { margin: 0; padding: 0; }
html, body { height: auto; max-width: 100%; overflow-x: hidden; background: var(--color-bg); color: var(--color-text); font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: var(--line-height-base); }

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

a { color: var(--color-text); text-decoration: none; }

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto; /* MUST: centered at every breakpoint */
  padding: 0 1rem;
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  min-height: 64px; /* NOT fixed height */
  overflow: visible;
  z-index: 100;
  background: rgba(14, 16, 24, 0.92);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
}

.site-logo { display:flex; align-items:center; flex-shrink:0; overflow:hidden; max-height:52px; text-decoration:none; }

.site-logo img {
  height: 44px; /* mandatory height */
  width: auto;
  max-width: 160px; /* mandatory max width */
  object-fit: contain;
  display: block;
}

/* MOBILE NAV TOGGLE (CSS-ONLY) */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  z-index: 200;
  border-radius: 6px;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff; /* ALWAYS white bars */
  border-radius: 2px;
  transition: 0.2s ease;
}

/* NAV (desktop/mobile) */
.site-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; z-index: 500; background: var(--color-bg); border-top: 1px solid var(--color-border); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

/* NAV LIST */
.nav-list { display: flex; flex-direction: column; gap: 0; padding: 0.5rem 0; margin: 0; list-style: none; }

/* NAV ITEMS & LINKS */
.nav-item { }

/* NAV LINK typography */
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-xs);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.nav-link:hover { color: #fff; text-decoration: underline; }

/* DROPDOWN NAV (desktop/mobile) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius, 6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.5rem 1.25rem;
  width: 100%;
  border-bottom: none;
  color: var(--color-text);
}
.nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }

/* MOBILE dropdown adjustments (within mobile stack) */
@media (max-width: 767px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  /* open by default in simple mobile stacks via details-like behavior if needed */
}

/* HERO */
.hero {
  min-height: 40vh;
  background: linear-gradient(135deg, #0E1018 0%, #141824 60%, #0E1018 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner { width: 100%; max-width: 1260px; padding: 0 1rem; display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; }

/* Extra hero variant styles (provided in prompt) */
.hero-inner--reverse { display:flex; align-items:center; gap:3rem; flex-direction: row-reverse; }
.hero-text { flex: 1 1 50%; }
.hero-media { flex: 1 1 45%; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 480px; display: block; }
.hero-badge { display: inline-block; background: var(--color-primary); color: var(--color-text-on-primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }

/* RESPONSIVE HERO ADJUSTMENTS */
@media (max-width: 767px) {
  .hero-inner--reverse { flex-direction: column; }
  .hero-media { width: 100%; }
}
@media (min-width: 768px) {
  .nav-link { font-size: var(--font-size-sm); }
  .site-header .container { justify-content: center; gap: 2rem; }
  .site-nav { display: flex; position: static; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 1.5rem; padding: 0; margin: 0; }
  .nav-toggle-label { display: none; }

  /* NAV toggle interaction on tablet/desktop (if ever used) */
  .nav-toggle-input:checked ~ .site-nav { display: flex; }

  .hero { min-height: 60vh; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { flex-direction: row; }
}
@media (min-width: 1024px) {
  .container { max-width: 1260px; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}

/* TYPOGRAPHY UTILITIES & STRUCTURE (section density & borders) */
.section {
  padding: 2rem 0; /* compact by default per DESIGN REQUIREMENTS */
  background: var(--color-bg);
  border-top: 1px solid var(--color-border); /* subtle separation between sections */
}
.section-title { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); margin: 0 0 0.5rem; }

/* BASE HEADINGS FOLLOWING TYPOGRAPHY SCALE */
h1 { font-size: var(--font-size-3xl); font-weight: 700; margin: 0 0 0.5rem; line-height: var(--line-height-tight); color: var(--color-text); }
h2 { font-size: var(--font-size-2xl); font-weight: 700; margin: 0 0 0.5rem; }
h3 { font-size: var(--font-size-xl); font-weight: 700; margin: 0 0 0.5rem; }
h4 { font-size: var(--font-size-lg); font-weight: 700; margin: 0 0 0.5rem; }

/* BODY TEXT / LINKS */
p { font-size: var(--font-size-base); line-height: var(--line-height-base); margin: 0 0 0.75rem; color: var(--color-text); }
strong { font-weight: 700; }
em { font-style: italic; }

/* LISTS */
ul, ol { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: 0.25rem 0; }

/* FORMS */
input, textarea, select { width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius); border: 1px solid var(--color-border); background: #fff; color: #111; font-family: inherit; font-size: 1rem; }
label { display: block; font-size: var(--font-size-sm); margin-bottom: 0.25rem; color: var(--color-text); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(91,110,240,0.15); }

/* CARD SYSTEM (MANDATORY) */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-body { padding: 1rem 1.25rem; }
.card h3, .card h4 { margin-top: 0; margin-bottom: 0.5rem; }
.card p { margin: 0; line-height: var(--line-height-base); color: var(--color-text-muted); }

/* CARD GRID (MANDATORY) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* TABLES */
table { width: 100%; border-collapse: collapse; border-spacing: 0; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { background: var(--color-bg-card); font-weight: 700; }

/* FOOTER */
.site-footer { background: var(--color-bg); padding: 2rem 0; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0 1rem; gap: 1rem; }

/* LINKS & HOVER STATE (global) */
.nav-link:hover, a:hover { text-decoration: underline; }

/* CONTRAST & ACCESSIBILITY HELPERS */
.hero { color: #fff; }

/* HERO TEXT CARD EXCEPTION (override if used) */
.hero-text-card { color: var(--color-text); }
.hero-text-card h1, .hero-text-card p { color: var(--color-text); }

/* MINOR VISUAL TINES (enhanced transitions) */
.nav-link, .btn, .faq-question { transition: all 0.2s ease; }

/* ENFORCED MOBILE-ONLY DEFAULT FOR NAV WHEN NO MEDIA QUERIES YET */
@media (max-width: 767px) {
  .site-nav { display: none; }
  .nav-list { flex-direction: column; }
  .nav-link { font-size: var(--font-size-xs); padding: 0.75rem 1rem; }
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; justify-content: center; }
  .nav-link { font-size: var(--font-size-sm); }
  .nav-toggle-label { display: none; }
}