/* =========================
   Avalon101 — style.css
   Location: /public_html/nc_assets/css/style.css
   Images:   /public_html/nc_assets/img/
   ========================= */

/* ---------- Theme tokens ---------- */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --blue-1:#0f1c36;
  --blue-2:#122544;
  --blue-3:#173056;

  --gold:#d7b564;
  --gold-2:#f3df9a;

  --link:#bcd6ff;
  --link-hover:#e2eeff;

  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius-sm: 12px;

  --maxw: 1160px;
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color: var(--text);
  line-height: 1.45;
  background: transparent; /* background now handled by ::before */
}


a{ color: var(--link); text-decoration: none; }
a:hover{ color: var(--link-hover); text-decoration: underline; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 18px; }

.gold{ color: var(--gold); }

/* =========================
   Topbar / Header
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,18,32,0.88), rgba(11,18,32,0.55));
  border-bottom: 1px solid var(--border);
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))){
  .topbar{
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.header-row{
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), transparent 40%),
    linear-gradient(135deg, rgba(215,181,100,0.95), rgba(18,37,68,0.95));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.16);
  display:grid;
  place-items:center;
  font-weight: 800;
  color: rgba(10,14,24,0.95);
  letter-spacing: 0.5px;
}

.brand-title{
  display:flex;
  flex-direction: column;
  gap: 2px;
}
.brand-title strong{
  font-size: 18px;
  letter-spacing: 0.6px;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(215,181,100,0.22);
}
.brand-title span{
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a, .nav button{
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
  display:flex;
  align-items:center;
  gap: 8px;
  user-select: none;
}

.nav a:hover, .nav button:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  text-decoration: none;
}

.nav .cta{
  border-color: rgba(215,181,100,0.30);
  background: rgba(215,181,100,0.10);
}
.nav .cta:hover{
  border-color: rgba(215,181,100,0.55);
  background: rgba(215,181,100,0.14);
}

/* =========================
   Seamless global background
   ========================= */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 15% 0%, rgba(27,57,120,0.55), transparent 60%),
    radial-gradient(900px 650px at 85% 10%, rgba(18,63,110,0.45), transparent 55%),
    linear-gradient(180deg, #0b1220, #070b14 70%);
}


/* =========================
   Dropdown
   ========================= */
.dd{ position: relative; }

.dd-panel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: rgba(10,14,24,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  display: none;
}

.dd.open .dd-panel{ display:block; }

.dd-panel a{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
}

.dd-panel a:hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.dd-hint{
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.pill{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,0.80);
}
.pill.gold{
  border-color: rgba(215,181,100,0.35);
  background: rgba(215,181,100,0.10);
  color: rgba(243,223,154,0.95);
}

/* =========================
   HERO Banner (image only)
   banner.png is at: /nc_assets/img/banner.png
   this file is at: /nc_assets/css/style.css
   so path is: ../img/banner.png
   ========================= */
.hero{
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(
      90deg,
      rgba(11,18,32,0.35),   /* ← lighter left shade */
      rgba(11,18,32,0.12) 55%,
      rgba(11,18,32,0.02)),
    url("../img/banner.png") center / cover no-repeat;
  box-shadow: 0 18px 60px rgba(0,0,0,0.30);
  overflow: hidden;
}

/* A banner-only hero variant (recommended) */
.hero.hero-banner{
  min-height: 260px;
}

/* If you ever put text back into hero, keep spacing tidy */
.hero-inner{
  width: 100%;
  max-width: 72ch;
}

/* =========================
   Intro strip (below banner)
   ========================= */
.intro-strip{
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

.intro-inner{
  padding: 20px 20px 22px;
}

.intro-strip h1{
  margin: 0 0 8px 0;
  font-size: 28px;
  letter-spacing: 0.2px;
}

.intro-strip p{
  margin: 0 0 16px 0;
  color: var(--muted);
  max-width: 72ch;
}

.intro-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.btn:hover{ background: rgba(255,255,255,0.09); text-decoration:none; }

.btn.primary{
  border-color: rgba(215,181,100,0.35);
  background: rgba(215,181,100,0.14);
}

.btn.primary:hover{
  background: rgba(215,181,100,0.18);
  border-color: rgba(215,181,100,0.55);
}

/* =========================
   Layout
   ========================= */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 18px;
}

.section-title{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.section-title a{
  font-size: 13px;
  color: var(--muted);
}
.section-title a:hover{ color: var(--link-hover); }

/* =========================
   Table
   ========================= */
.table-wrap{ overflow-x: auto; border-radius: 14px; }

table{
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
}

th, td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}

th{
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.06);
}

td{
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}

tr:last-child td{ border-bottom: 0; }

td small{
  color: var(--muted);
  display:block;
  margin-top: 4px;
}

/* =========================
   Sidebar blocks
   ========================= */
.sidebar .block + .block{ margin-top: 14px; }

.sidebar h3{
  margin: 0 0 10px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}

.side-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.side-links a{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.side-links a:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}

.side-links small{ color: var(--muted); }

/* Notes */
.note{
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
.note strong{ color: var(--gold-2); }

/* KOA requirements table polish */
.table-subtitle{
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.req-table{
  min-width: 860px; /* gives room for requirements + badges */
}

.req-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(12,18,34,0.92);
  backdrop-filter: blur(8px);
}

.req-table tbody tr:nth-child(even){
  background: rgba(255,255,255,0.02);
}

.req-table td.num{
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.req-table td.lvl{
  font-weight: 800;
  color: rgba(243,223,154,0.95);
  white-space: nowrap;
}

.req-table td.badge{
  color: rgba(243,223,154,0.95);
  border-left: 1px solid rgba(215,181,100,0.22);
  background: rgba(215,181,100,0.06);
}



/* =========================
   Footer
   ========================= */
.site-footer{
  margin-top: 18px;
  padding: 18px 0 28px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .nav{ justify-content: flex-start; }
  .header-row{ flex-direction: column; align-items: stretch; }
  .hero.hero-banner{ min-height: 220px; }
  .intro-strip h1{ font-size: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; transition: none !important; }
}
