/* =========================================================
   I.C.O.N.
   Information Compliance Operations Network

   Clean replacement stylesheet
   Designed for the current homepage HTML structure.

   Visual direction:
   - Deep steel/slate blue foundation
   - Warm amber/orange accents
   - Silver-blue glass surfaces
   - Modern, professional, slightly playful
   - Responsive
   ========================================================= */

/* =========================================================
   FONTS
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cinzel:wght@500;600;700&display=swap");

/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  /* Page foundation */
  --bg: #0f1b27;
  --bg2: #152436;

  /* Warm page glow */
  --pageGlowRgb: 230, 133, 46;

  /* Glass surfaces */
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.1);

  /* Borders / metallic highlights */
  --stroke: rgba(210, 225, 238, 0.22);
  --stroke-strong: rgba(210, 225, 238, 0.34);
  --steelshine: rgba(210, 225, 238, 0.08);

  /* Text */
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.78);

  /* Warm accents */
  --amber: #fbbf24;
  --terra: #f97316;
  --rose: #fb7185;

  /* Geometry */
  --radius: 18px;
  --radius2: 24px;

  /* Shadows */
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.16);

  /* Page width */
  --max: 1120px;

  /* Header offset */
  --header-offset: 120px;
}

/* =========================================================
   GLOBAL RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  color: var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      1200px 720px at 18% -8%,
      rgba(var(--pageGlowRgb), 0.22),
      transparent 62%
    ),
    radial-gradient(
      980px 640px at 92% 10%,
      rgba(var(--pageGlowRgb), 0.22),
      transparent 64%
    ),
    radial-gradient(
      820px 760px at 52% 96%,
      rgba(var(--pageGlowRgb), 0.18),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 48%),
    linear-gradient(180deg, var(--bg2), var(--bg));

  min-height: 100vh;
}

a {
  color: inherit;
}

b,
strong {
  color: rgba(255, 255, 255, 0.94);
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;

  padding: 12px;

  color: #fff;
  background: #000;

  border: 1px solid var(--stroke);
  border-radius: 999px;

  z-index: 999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.page {
  width: 100%;
  max-width: var(--max);

  margin: 0 auto;

  padding: 18px 22px 44px;
}

/* =========================================================
   TOP NAVIGATION
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;

  z-index: 50;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  background: linear-gradient(
    180deg,
    rgba(21, 36, 54, 0.84),
    rgba(15, 27, 39, 0.72)
  );

  border-bottom: 1px solid var(--stroke);
}

.topbar__inner {
  width: 100%;
  max-width: var(--max);

  margin: 0 auto;

  padding: 12px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: flex;
  align-items: center;

  gap: 12px;

  min-width: 230px;

  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 14px;
  border: 1px solid rgba(210, 225, 238, 0.22);

  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(245, 158, 11, 0.85),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(227, 83, 54, 0.95),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.04);

  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

.brand__logo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.brand__fallback {
  display: none;

  font-family: Cinzel, Inter, serif;
  font-weight: 700;

  letter-spacing: 0.18em;
  font-size: 12px;

  text-transform: uppercase;
}

.brand__name {
  display: block;

  font-family: Cinzel, Inter, serif;

  letter-spacing: 0.08em;
  font-size: 14px;
}

.brand__tag {
  display: block;

  margin-top: 2px;

  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   DESKTOP NAV
   ========================================================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;

  color: var(--muted);

  font-size: 13px;

  padding: 8px 12px;

  border-radius: 999px;
  border: 1px solid transparent;

  white-space: nowrap;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.nav a:hover {
  color: var(--text);

  background: rgba(255, 255, 255, 0.06);

  border-color: rgba(255, 255, 255, 0.1);

  transform: translateY(-1px);
}

.nav a.is-active {
  color: var(--text);

  background: rgba(245, 158, 11, 0.12);

  border-color: rgba(245, 158, 11, 0.26);
}

/* =========================================================
   MOBILE NAV
   ========================================================= */

.menuBtn {
  display: none;

  width: 42px;
  height: 42px;

  place-items: center;

  border-radius: 14px;

  border: 1px solid rgba(210, 225, 238, 0.22);

  background: rgba(255, 255, 255, 0.06);

  color: var(--text);

  cursor: pointer;
}

.menuBtn svg {
  width: 18px;
  height: 18px;

  opacity: 0.9;
}

.navMobile {
  width: 100%;
  max-width: var(--max);

  margin: 0 auto;

  padding: 0 18px 14px;

  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  color: var(--muted);
}

.navMobile a {
  text-decoration: none;

  font-size: 13px;

  padding: 8px 12px;

  border-radius: 999px;

  border: 1px solid rgba(210, 225, 238, 0.22);

  background: rgba(255, 255, 255, 0.04);
}

/* =========================================================
   GENERAL CARDS
   ========================================================= */

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.035)
  );

  border: 1px solid rgba(210, 225, 238, 0.22);

  border-radius: var(--radius2);

  box-shadow: var(--shadow);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.h1 {
  margin: 12px 0;

  font-family: Cinzel, Inter, serif;

  letter-spacing: 0.08em;

  font-size: clamp(26px, 3.1vw, 40px);

  line-height: 1.08;
}

.h2 {
  margin: 0;

  font-family: Cinzel, Inter, serif;

  letter-spacing: 0.08em;

  font-size: 18px;
}

.h3 {
  margin: 0 0 8px;

  font-size: 14px;

  letter-spacing: 0.02em;
}

.h3--small {
  font-size: 13px;
}

.lead {
  max-width: none;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.6;
}

.sub {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.4;
}

.muted {
  color: var(--muted);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: 100%;

  margin: 18px 0;

  padding: 22px;

  border: 1px solid rgba(210, 225, 238, 0.22);

  border-radius: var(--radius2);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.02) 55%,
    rgba(210, 225, 238, 0.045) 100%
  );

  box-shadow: var(--shadow-soft);
}

.hero__grid {
  display: grid;

  grid-template-columns: minmax(0, 1fr);

  gap: 18px;

  align-items: stretch;
}

.card--hero {
  width: 100%;

  padding: 22px 22px 20px;
}

/* =========================================================
   HERO INTRO / DIRECTORY LAYOUT

   IMPORTANT:
   The supplied HTML places the Directory inside a .section
   and the Mission beside it.

   This override removes the nested section's outer framing
   so the two columns behave as a unified hero layout.
   ========================================================= */

.card--hero > .grid2 {
  display: grid;

  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(300px, 0.8fr);

  gap: 18px;

  align-items: stretch;

  margin-top: 18px;
}

/*
   The Community Directory is technically a .section in the
   supplied HTML. Here we neutralize the section-level
   framing only when it occurs inside the hero.
*/

.card--hero > .grid2 > .section {
  width: auto;
  max-width: none;

  margin: 0;

  padding: 16px;

  border: 1px solid rgba(210, 225, 238, 0.22);

  border-radius: var(--radius2);

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.035)
  );

  box-shadow: none;
}

/*
   Make the Mission card occupy the full height of the
   Directory column.
*/

.card--hero > .grid2 > article.card {
  height: 100%;

  display: flex;
  flex-direction: column;
}

/* =========================================================
   HERO KICKER
   ========================================================= */

.kicker {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  font-size: 12px;

  color: var(--muted);

  letter-spacing: 0.02em;
}

.kicker__dot {
  width: 8px;
  height: 8px;

  flex: 0 0 8px;

  border-radius: 999px;

  background: linear-gradient(90deg, var(--amber), var(--terra));

  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

/* =========================================================
   CHIPS
   ========================================================= */

.chips {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  border-radius: 999px;

  padding: 7px 12px;

  font-size: 12px;

  color: var(--muted);

  border: 1px solid rgba(210, 225, 238, 0.22);

  background: rgba(255, 255, 255, 0.04);
}

.chip b {
  color: var(--text);
  font-weight: 600;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.ctaRow {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  font-weight: 600;

  font-size: 14px;

  padding: 12px 14px;

  border-radius: 999px;

  border: 1px solid rgba(210, 225, 238, 0.26);

  background: rgba(255, 255, 255, 0.06);

  color: var(--text);

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);

  background: rgba(255, 255, 255, 0.1);

  border-color: rgba(210, 225, 238, 0.36);
}

.btn--primary {
  border-color: rgba(210, 225, 238, 0.38);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.06) 40%,
      rgba(210, 225, 238, 0.1) 100%
    ),
    linear-gradient(90deg, rgba(93, 136, 187, 0.28), rgba(21, 36, 54, 0.18));
}

.btn--primary:hover {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.08) 40%,
      rgba(210, 225, 238, 0.14) 100%
    ),
    linear-gradient(90deg, rgba(93, 136, 187, 0.34), rgba(21, 36, 54, 0.22));
}

/* =========================================================
   STACK / MISSION
   ========================================================= */

.stack {
  display: grid;

  gap: 12px;

  height: 100%;
}

.stat {
  padding: 16px 16px 14px;
}

.stat__k {
  margin-bottom: 6px;

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  color: var(--muted);
}

.stat__v {
  margin-bottom: 6px;

  font-size: 14px;

  font-weight: 700;
}

.stat__d {
  font-size: 13px;

  color: var(--muted);

  line-height: 1.45;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  width: 100%;

  margin: 18px 0;
  padding: 18px;

  border: 1px solid rgba(210, 225, 238, 0.22);

  border-radius: var(--radius2);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02) 55%,
    rgba(210, 225, 238, 0.045) 100%
  );

  box-shadow: var(--shadow-soft);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 14px;

  padding-bottom: 12px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/*
   The hero's nested Directory section should not receive
   the same external spacing as normal page sections.
*/

.card--hero .section__head {
  margin-bottom: 14px;
}

/* =========================================================
   GRID SYSTEM
   ========================================================= */

.grid2 {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.grid3 {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;
}

/* =========================================================
   CONTENT BLOCKS
   ========================================================= */

.block {
  padding: 16px 16px 14px;
}

.block p {
  margin: 0;

  color: var(--muted);

  font-size: 13.5px;

  line-height: 1.6;
}

.block p + p {
  margin-top: 12px;
}

/* =========================================================
   LISTS
   ========================================================= */

.list {
  margin: 12px 0 0;

  padding-left: 18px;

  color: var(--muted);

  font-size: 13.5px;

  line-height: 1.7;
}

.list b {
  color: var(--text);
}

/* =========================================================
   BADGES
   ========================================================= */

.badges {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  border-radius: 999px;

  padding: 7px 12px;

  font-size: 12px;

  border: 1px solid rgba(210, 225, 238, 0.22);

  background: rgba(255, 255, 255, 0.04);

  color: var(--muted);
}

.badge i {
  width: 8px;
  height: 8px;

  flex: 0 0 8px;

  display: inline-block;

  border-radius: 999px;
}

.badge b {
  color: var(--text);

  font-weight: 700;
}

.badge--amber i {
  background: rgba(245, 158, 11, 0.85);
}

.badge--terra i {
  background: rgba(227, 83, 54, 0.9);
}

.badge--rose i {
  background: rgba(251, 113, 133, 0.85);
}

/* =========================================================
   SPACING HELPER
   ========================================================= */

.gap {
  height: 14px;
}

/* =========================================================
   ACCORDIONS
   ========================================================= */

.acc {
  width: 100%;
  height: 100%;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  border-radius: var(--radius2);

  border: 1px solid rgba(210, 225, 238, 0.22);

  background: rgba(255, 255, 255, 0.04);
}

.acc__btn {
  width: 100%;

  flex: 0 0 auto;

  cursor: pointer;

  padding: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border: 0;

  color: var(--text);

  background: rgba(255, 255, 255, 0.03);

  font-weight: 700;

  letter-spacing: 0.02em;

  text-align: left;
}

.acc__title {
  display: block;

  font-size: 13.5px;

  text-align: left;
}

.acc__meta {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 12px;

  font-weight: 600;

  text-align: left;
}

.acc__chev {
  flex: 0 0 auto;

  opacity: 0.85;

  font-size: 23px;

  transition: transform 0.18s ease;
}

.acc__body {
  display: none;

  margin: 0;

  padding: 15px;

  color: var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  text-align: left;

  background:
    radial-gradient(
      1200px 720px at 18% -8%,
      rgba(179, 203, 228, 0.22),
      transparent 62%
    ),
    radial-gradient(
      980px 640px at 92% 10%,
      rgba(93, 136, 187, 0.22),
      transparent 64%
    ),
    radial-gradient(
      820px 760px at 52% 96%,
      rgba(161, 168, 178, 0.18),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 48%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}

.acc__body p {
  margin: 0;

  font-size: 13.5px;

  line-height: 1.6;
}

.acc__body p + p {
  margin-top: 12px;
}

.acc.is-open .acc__body {
  display: block;
}

.acc.is-open .acc__chev {
  transform: rotate(180deg);
}

/* =========================================================
   RULES GRID
   ========================================================= */

#rules .grid2 {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;

  align-items: stretch;
}

#rules .acc {
  min-width: 0;
}

/* =========================================================
   SOFT / WARM COMPARISON BLOCKS
   ========================================================= */

.block--soft {
  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(210, 225, 238, 0.22);

  box-shadow: none;
}

.block--warm {
  background: rgba(245, 158, 11, 0.08);

  border: 1px solid rgba(245, 158, 11, 0.2);

  box-shadow: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  margin-top: 18px;

  padding: 18px 0 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: var(--muted);

  font-size: 12.5px;

  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

/* =========================================================
   ANCHOR / SECTION POSITIONING
   ========================================================= */

:is(section, main)[id] {
  scroll-margin-top: var(--header-offset);
}

/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 980px) {
  .hero {
    padding: 18px;
  }

  /*
     Hero Directory / Mission becomes a more balanced
     two-column layout at tablet widths.
  */

  .card--hero > .grid2 {
    grid-template-columns:
      minmax(0, 1.35fr)
      minmax(280px, 0.85fr);
  }

  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 860px) {
  .grid2 {
    grid-template-columns: 1fr;
  }

  #rules .grid2 {
    grid-template-columns: 1fr;
  }

  /*
     Hero layout also becomes one column.
  */

  .card--hero > .grid2 {
    grid-template-columns: 1fr;
  }

  .card--hero > .grid2 > article.card {
    height: auto;
  }

  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE NAV
   ========================================================= */

@media (max-width: 760px) {
  :root {
    --header-offset: 140px;
  }

  .nav {
    display: none;
  }

  .menuBtn {
    display: grid;
  }

  .page {
    padding: 14px 14px 36px;
  }

  .hero,
  .section {
    margin: 14px 0;

    padding: 16px;
  }

  .card--hero {
    padding: 18px 16px 16px;
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 14px;
  }

  .card--hero > .grid2 {
    gap: 14px;
  }

  .section__head {
    align-items: flex-start;
  }

  .h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .lead {
    font-size: 14px;
  }

  .ctaRow {
    flex-direction: column;
    align-items: stretch;
  }

  .ctaRow .btn {
    width: 100%;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .topbar__inner {
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand__tag {
    display: none;
  }

  .brand__name {
    font-size: 13px;
  }

  .brand__logo {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }

  .page {
    padding: 10px 10px 30px;
  }

  .hero,
  .section {
    padding: 14px;
  }

  .card--hero {
    padding: 16px 14px;
  }

  .chip {
    width: 100%;

    justify-content: flex-start;
  }

  .footer {
    align-items: flex-start;

    flex-direction: column;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav a,
  .btn,
  .acc__chev {
    transition: none !important;
  }
}
