/*
 * iasoberg.css — Shared stylesheet for iasoberg.com
 * Covers: design tokens, base, hero, theory cards, components, CTA, responsive
 * Used by: iasobergtheory.htm, iasobergtheory2.htm, overview.htm, barycenter.htm,
 *          predictions.htm, about.htm, and any future redesigned pages.
 */

/* ════════════════════════════════════════
   Design tokens
   ════════════════════════════════════════ */
:root {
  --deep:   #050f1a;
  --mid:    #0a1e30;
  --border: rgba(79,191,255,0.18);
  --accent: #4fbfff;
  --glow:   rgba(79,191,255,0.15);
  --gold:   #c9a84c;
  --text:   #b8d4e8;
  --muted:  #6a8fa8;
  --white:  #e8f4ff;
}

/* ════════════════════════════════════════
   Reset & base
   ════════════════════════════════════════ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

/* ════════════════════════════════════════
   Header & Navigation
   ════════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,15,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 1rem;
}
.site-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem; font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }

nav { display: flex; align-items: center; flex-wrap: wrap; }
nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.active {
  color: var(--accent);
  background: rgba(79,191,255,0.07);
}

/* Hamburger toggle (mobile) */
.menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 0.3rem;
}

/* ── Theory dropdown ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown > .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
}
.nav-dropdown > .dropdown-trigger::after {
  content: '▾';
  font-size: 0.55rem;
  opacity: 0.65;
  margin-left: 1px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0;
  background: rgba(5,15,26,0.97);
  border: 1px solid var(--border);
  border-radius: 3px;
  min-width: 130px;
  z-index: 200;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  background: none;
}
.dropdown-menu a:last-child { border-bottom: none; }

/* ════════════════════════════════════════
   Footer
   ════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-inner p {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(200,232,245,0.25);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.75rem;
  color: rgba(200,232,245,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ════════════════════════════════════════
   Buttons (shared)
   ════════════════════════════════════════ */
.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--deep);
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(79,191,255,0.25);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(79,191,255,0.35); }
.btn-secondary {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(79,191,255,0.35);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--glow); border-color: var(--accent); }

/* ════════════════════════════════════════
   Page hero (shared across pages)
   ════════════════════════════════════════ */
.page-hero {
  max-width: 1100px; margin: 0 auto;
  padding: 5rem 2rem 3rem;
}
.page-hero .eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(79,191,255,0.2);
  margin-bottom: 1.25rem;
  max-width: 680px;
}
.page-hero h1 span { color: var(--accent); }
.page-hero .lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 640px;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════
   Section header rule (shared)
   ════════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; margin-top: 3.5rem;
}
.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.section-header::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(79,191,255,0.3), transparent);
}

/* ════════════════════════════════════════
   Mobile responsive — nav
   ════════════════════════════════════════ */
@media (max-width: 640px) {
  nav { display: none; }
  .menu-toggle { display: block; }
  nav.open {
    display: flex; flex-direction: column;
    align-items: flex-start; padding: 1rem 0;
  }
  nav.open .nav-dropdown { width: 100%; }
  nav.open .dropdown-menu {
    position: static; display: block;
    box-shadow: none; border: none;
    padding-left: 1rem;
  }
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

body {
  background-color: var(--deep);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
}

/* Starfield glow overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(79,191,255,0.06) 0%, transparent 70%);
}

/* ════════════════════════════════════════
   Hero
   ════════════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--accent); }
.hero-lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-style: italic;
}
.hero-skip {
  display: inline-block;
  padding: .55rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
}
.hero-skip:hover { background: var(--glow); border-color: var(--accent); }

/* ════════════════════════════════════════
   Divider & layout
   ════════════════════════════════════════ */
.divider {
  position: relative; z-index: 1;
  border: none; border-top: 1px solid var(--border);
  margin: 0 2rem;
}
.content-wrap {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ════════════════════════════════════════
   Theory card  (two-column: text | figures)
   ════════════════════════════════════════ */
.theory-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  background: rgba(9,26,46,0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.theory-text {
  padding: 2rem 2rem 2rem 2.2rem;
  border-right: 1px solid var(--border);
}
.theory-text p { margin-bottom: 1rem; }
.theory-text p:last-child { margin-bottom: 0; }
.theory-figures {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: rgba(5,15,26,0.4);
}

/* ════════════════════════════════════════
   Section heading
   ════════════════════════════════════════ */
.section-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════
   Figure
   ════════════════════════════════════════ */
.figure-block { text-align: center; width: 100%; }
.figure-block img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: block;
  margin: 0 auto .5rem;
}
.figure-caption {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .07em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   Key-term bar
   ════════════════════════════════════════ */
.keyterm-bar {
  background: linear-gradient(90deg, rgba(201,168,76,0.12) 0%, transparent 100%);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}
.keyterm-icon { font-size: 1.3rem; line-height: 1; margin-top: .15rem; }
.keyterm-bar p { margin: 0; }
.keyterm-bar strong { color: var(--gold); }

/* ════════════════════════════════════════
   Colour legend
   ════════════════════════════════════════ */
.colour-legend {
  background: rgba(9,26,46,0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-bottom: 2.5rem;
}
.colour-legend h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .7rem 2rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-label { color: var(--text); }
.legend-sub { color: var(--muted); font-size: .85rem; margin-left: auto; }

/* ════════════════════════════════════════
   Iasoberg&#8482; types table
   ════════════════════════════════════════ */
.iaso-types {
  background: rgba(9,26,46,0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.iaso-types table { width: 100%; border-collapse: collapse; }
.iaso-types th {
  background: rgba(79,191,255,0.07);
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.iaso-types td {
  padding: .8rem 1.2rem;
  border-bottom: 1px solid rgba(79,191,255,0.07);
  font-size: .95rem;
  vertical-align: top;
}
.iaso-types tr:last-child td { border-bottom: none; }
.iaso-types tr:hover td { background: rgba(79,191,255,0.04); }
.type-name { font-weight: 600; color: var(--white); }
.type-focus { color: var(--muted); font-size: .88rem; }

/* ════════════════════════════════════════
   Acronym box
   ════════════════════════════════════════ */
.acronym-box {
  background: rgba(9,26,46,0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
}
.acronym-box .acro-title {
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.acronym-line { display: flex; gap: .8rem; margin: .3rem 0; }
.acro-letter { color: var(--gold); font-weight: 700; min-width: 1.2em; }
.acro-word { color: var(--white); }

/* ════════════════════════════════════════
   Term list
   ════════════════════════════════════════ */
.term-list { list-style: none; margin-bottom: 2.5rem; }
.term-list li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(79,191,255,0.07);
  font-size: .95rem;
}
.term-list li:last-child { border-bottom: none; }
.term-bullet { color: var(--accent); font-size: .7rem; }
.term-name { font-weight: 600; color: var(--white); min-width: 200px; }
.term-def { color: var(--text); }

/* ════════════════════════════════════════
   Highlight box
   ════════════════════════════════════════ */
.highlight-box {
  background: rgba(79,191,255,0.06);
  border: 1px solid rgba(79,191,255,0.25);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.highlight-box p { margin-bottom: .6rem; }
.highlight-box p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════
   CTA strip
   ════════════════════════════════════════ */
.cta-strip {
  position: relative; z-index: 1;
  background: rgba(9,26,46,0.9);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  transition: background .2s, border-color .2s;
}
.cta-btn:hover { background: var(--glow); border-color: var(--accent); }
.cta-btn.gold { color: var(--gold); border-color: rgba(201,168,76,0.3); }
.cta-btn.gold:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }

/* ════════════════════════════════════════
   Contact / Subscribe form
   ════════════════════════════════════════ */
.info-box {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 5px;
  padding: 1.6rem 2rem;
  margin: 2rem 0;
}
.info-box .ib-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.info-box p { margin-bottom: 0.6rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box a { color: var(--accent); word-break: break-word; }

.form-card {
  position: relative; z-index: 1;
  background: rgba(10,30,48,0.55);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2.5rem;
  margin: 2rem 0 3.5rem;
}
.form-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.04em;
  margin-bottom: 1.8rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.req { color: var(--gold); }
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  background: rgba(5,15,26,0.7);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  color: var(--white);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,191,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 8rem; }
.state-zip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.check-section { margin: 1.75rem 0; }
.check-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.check-list { display: flex; flex-direction: column; gap: 0.65rem; }
.check-list label {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 1rem; color: var(--text);
  cursor: pointer; line-height: 1.5;
}
.check-list input[type="checkbox"] {
  margin-top: 0.35rem;
  accent-color: var(--accent);
  width: 1rem; height: 1rem;
  flex-shrink: 0; cursor: pointer;
}

.codefield {
  background: rgba(79,191,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
}
.codefield p { margin-bottom: 0.6rem; font-size: 0.95rem; }
.codefield em { color: var(--gold); font-style: normal; font-weight: 600; }
.codefield input[type="text"] {
  background: rgba(5,15,26,0.7);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.6rem 0.9rem;
  color: var(--white);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  max-width: 200px;
}
.codefield input[type="text"]:focus { outline: none; border-color: var(--accent); }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.btn-submit {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--deep);
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  border: none; border-radius: 2px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(79,191,255,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(79,191,255,0.4); }
.btn-reset {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(79,191,255,0.35);
  border-radius: 2px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-reset:hover { border-color: var(--accent); background: rgba(79,191,255,0.07); }
.form-note { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); font-style: italic; margin: 0; }

/* ════════════════════════════════════════
   Responsive
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .theory-card { grid-template-columns: 1fr; }
  .theory-text { border-right: none; border-bottom: 1px solid var(--border); }
  .legend-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .legend-grid { grid-template-columns: 1fr; }
  .iaso-types td, .iaso-types th { padding: .6rem .8rem; }
  .form-row, .state-zip { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
}
