@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 */
  --color-bg-alt: #111522;        /* slightly lighter for accents on dark theme */
  --color-bg-card: #171B25;       /* card backgrounds on dark sections */
  --color-primary: #C8D4DC;        /* platinum/silver accent */
  --color-accent: #5B6EF0;         /* electric indigo accent */
  --color-text: #E8E8E8;            /* near-white main text on dark */
  --color-text-muted: #A0A0A0;      /* muted text for contrast on dark */
  --color-text-on-primary: #111111;  /* text on primary (light primary) for contrast */
  --color-border: #1F2732;
  --color-shadow: rgba(0,0,0,.5);

  /* GLOBAL SHAPE & TYPO */
  --radius: 10px;
  --font-family: 'Montserrat', sans-serif;

  --font-size-xs: 0.75rem;    /* captions, labels */
  --font-size-sm: 0.875rem;   /* nav links, small text */
  --font-size-base: 1rem;     /* body text */
  --font-size-md: 1.125rem;   /* lead paragraphs */
  --font-size-lg: 1.25rem;    /* sub-headings */
  --font-size-xl: 1.5rem;     /* h3 */
  --font-size-2xl: 2rem;       /* h2, section titles */
  --font-size-3xl: 2.75rem;    /* h1 on desktop */
  --font-size-hero: 3.5rem;     /* hero headline on desktop */

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

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

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
 canvas, details, embed, figure, input, menu, nav, output,
 ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; height: auto; display: block; }

.text-center { text-align: center; }
.hidden { display: none !important; }

/* LAYOUT UTILITIES / CONTAINERS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section { padding: 4rem 0; }

/* SECTION BACKGROUND STRIPING (DENSE, HIGH-CONTRAST) */
.section:nth-child(odd) {
  background: var(--color-bg);
}
.section:nth-child(even) {
  background: var(--color-bg-card);
  border-top: 2px solid var(--color-primary);
  color: var(--color-text);
}

/* HEADER & NAV STRUCTURE */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  background: rgba(14, 16, 24, 0.92);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.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;
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 500;
}
.nav-list { display: flex; flex-direction: column; gap: 0; padding: 0.5rem 0; margin: 0; list-style: none; }
.nav-item { }
.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

/* Dropdown menus */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; padding: 0.5rem 1rem; color: var(--color-text); text-decoration: none; }
.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);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu { display: block; }
.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;
}
.nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }

/* Mobile dropdown adjustments */
@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; }
}

/* MENUS: MOBILE FIRST LAYOUT (tablet/desktop overrides below) */
@media (max-width: 767px) {
  /* Mobile: show hamburger and collapsed nav */
  .site-nav { display: none; }
  .nav-list { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); font-size: var(--font-size-xs); }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .nav-dropdown-menu { position: static; padding-left: 1rem; display: none; }
  .site-header .container { padding: 0.5rem 1rem; }
}
@media (min-width: 768px) {
  /* Tablet+ navigation layout (centered, horizontal) */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .nav-toggle-label { display: none !important; }
  .site-nav { display: flex; position: static; background: transparent; border-top: none; box-shadow: none; }
  .site-header .container { justify-content: center; gap: 2rem; }
  .nav-list {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; }
  /* Hero & general nav adjustments for tablet */
  .hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1rem; color: var(--color-text); }
  /* Keep hero heading readable on dark background */
  .hero-headline { text-align: center; margin-bottom: 2.5rem; font-weight: 900; font-size: var(--font-size-hero); }
  .hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 0.5rem; }
  .hero-card { background: rgba(255,255,255,0.07); border-radius: var(--radius); padding: 1.25rem; text-align: center; border: 1px solid rgba(255,255,255,0.13);
  color: #1A1A1A;
}
  .hero-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: calc(var(--radius) - 3px); margin-bottom: 0.9rem; display: block; }
  @media (max-width: 767px) {
    .hero-cards { grid-template-columns: 1fr; }
  }
}
@media (min-width: 1024px) {
  /* Desktop: larger container padding and hero height scaling */
  .container { max-width: 1200px; padding: 0 2rem; margin: 0 auto; }
  .hero { min-height: 70vh; }
  .hero-headline { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}

/* HERO DEFAULTS (dark hero with white text) */
.hero {
  color: #FFFFFF; /* HERO TEXT RULE: explicit white text on dark hero backgrounds */
  background: linear-gradient(135deg, #0E1018 0%, #0A0F15 60%, #141824 100%), var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}
.hero-headline {
  font-weight: 900;
  font-size: var(--font-size-hero);
  letter-spacing: .5px;
}
.hero-sub { font-size: var(--font-size-md); color: var(--color-text-muted); }

/* HERO LAYOUT EXTRA (as per required addon) */
.hero-headline { text-align: center; margin-bottom: 2.5rem; }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 0.5rem; }
.hero-card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.13);
  color: #1A1A1A;
}
.hero-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 3px);
  margin-bottom: 0.9rem;
  display: block;
}
@media (max-width: 767px) {
  .hero-cards { grid-template-columns: 1fr; }
}

/* CARD GRID / CARD COMPONENTS  */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--color-primary);
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  border-color: color-mix(in oklab, var(--color-primary) 60%, black);
}
.card > img {
  width: 100%; 
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.card-body { padding: 1rem 1.25rem; color: var(--color-text); }
.card h3, .card h4 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 700; }
.card p { margin: 0; line-height: var(--line-height-base); color: var(--color-text-muted); }

/* CARD NELSON: ensure text breathing room if no body wrapper */
.card > :not(img) { padding: 1rem 1.25rem; }

/* FAQ ACCORDION — CSS-ONLY */
.faq-section { padding: 4rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px var(--color-shadow);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] > .faq-question::after { content: "−"; }
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.faq-answer p { margin: 0.75rem 0 0; color: var(--color-text-muted); line-height: var(--line-height-base); }

/* FORM ELEMENTS */
label { display: block; font-weight: 500; color: var(--color-text); margin-bottom: .25rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.04);
  color: #1A1A1A;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-family);
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(91,110,240,0.25);
}
button[type="submit"] { cursor: pointer; }

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

/* UTILITIES FOR SPACING (mt-1 to mt-4) */
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* FOOTER */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* DESKTOP PROMISES: logo sizing on header even at large widths */
@media (min-width: 1024px) {
  /* Maintain margins & central layout for desktop navigation and content */
  .site-header .container { gap: 2rem; justify-content: center; }
  .site-logo { max-width: 180px; }
}

/* HERO TEXT COLOR INHERITANCE HANDLING (EXPLICIT override for dark hero) */
.hero .card, .hero .card-body { color: var(--color-text); }

/* ANIMATIONS: subtle entrance for sections/cards */
@keyframes floatUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.section, .card, .hero, .faq-item { animation: floatUp 0.25s ease both; }

/* FINAL NOTE: ensure all required selectors exist to satisfy contract */
.logo, .logo img { display: block; }

/* END OF STYLES */