/*
 * styles.css — CoachCompass
 * Shared styles for all CoachCompass pages.
 *
 * Covers: CSS variables, reset, typography, body, hero banner,
 * nav spacing, main container, portal cards, tool cards,
 * section labels, footer, and responsive breakpoints.
 *
 * Each page links this file and adds only its own page-specific
 * styles in a local <style> block (grid layouts, tool UIs, etc).
 *
 * Usage: <link rel="stylesheet" href="styles.css">
 *        Add BEFORE any page-specific <style> block.
 */

/* ── GOOGLE FONTS ─────────────────────────────────────────────────────── */
/* Loaded via <link> in each HTML file — do not @import here (FOUT risk) */

/* ── CSS VARIABLES ────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --navy:     #1c2b4a;
  --navy2:    #243660;
  --gold:     #c8922a;
  --gold-lt:  #e8b96a;
  --cream:    #f6f3ee;
  --white:    #fff;
  --text:     #2c3a50;
  --muted:    #6b7585;
  --border:   #ddd8cf;
  --green:    #1a6b42;

  /* Shadows */
  --shadow:    0 2px 16px rgba(28,43,74,.09);
  --shadow-lg: 0 8px 48px rgba(28,43,74,.16);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', sans-serif;

  /* Legacy aliases — used by comp-assessment, cpd-tracker, session-debrief, mcq */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Source Sans 3', sans-serif;

  /* Layout */
  --radius:    18px;
  --radius-sm: 8px;
}

/* ── RESET ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── HERO BANNER ──────────────────────────────────────────────────────── */
/*
 * Standard banner used on every page.
 * Each page supplies its own pill text, h1, and p — nothing else needed.
 *
 * HTML pattern:
 *   <div class="hero">
 *     <div class="hero-pill">Label text</div>
 *     <h1>Title <em>italic part</em></h1>
 *     <p>Subtitle copy</p>
 *   </div>
 */
.hero {
  background: var(--navy);
  padding: 4rem 6vw 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 25%, rgba(200,146,42,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 75%, rgba(200,146,42,.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero-pill {
  display: inline-block;
  background: rgba(200,146,42,.18);
  border: 1px solid rgba(200,146,42,.38);
  color: var(--gold-lt);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  position: relative;
}
.hero h1 em {
  color: var(--gold-lt);
  font-style: italic;
}
.hero p {
  font-size: .97rem;
  color: rgba(255,255,255,.62);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.72;
  font-weight: 300;
  position: relative;
}

/* ── MAIN CONTAINER ───────────────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 1640px;
  margin: 0 auto;
  padding: 56px 48px 72px;
  width: 100%;
}

/* ── SECTION LABEL ────────────────────────────────────────────────────── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-left: 2px;
}

/* ── PORTAL CARDS (index.html entry cards) ────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}
.portal-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portal-card__icon  { font-size: 2rem; }
.portal-card__label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.portal-card__title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.portal-card__desc  { font-size: .86rem; line-height: 1.72; color: var(--muted); flex: 1; }
.portal-card__tags  { display: flex; gap: .45rem; flex-wrap: wrap; margin: .2rem 0; }
.portal-card__tags span { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }
.portal-card__cta   { font-size: .84rem; font-weight: 700; margin-top: .3rem; }

/* ── CREDENTIAL CARDS (credentials.html) ─────────────────────────────── */
.cred-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cred-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; opacity: 0; transition: opacity .2s; }
.cred-card:hover  { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cred-card.acc-card:hover  { border-color: #2e8b57; } .cred-card.acc-card::after  { background: linear-gradient(90deg,#2e8b57,#52c78a); } .cred-card.acc-card:hover::after  { opacity: 1; }
.cred-card.pcc-card:hover  { border-color: var(--gold); } .cred-card.pcc-card::after  { background: linear-gradient(90deg,var(--gold),var(--gold-lt)); } .cred-card.pcc-card:hover::after  { opacity: 1; }
.cred-card.mcq-card:hover  { border-color: #7850c8; } .cred-card.mcq-card::after  { background: linear-gradient(90deg,#7850c8,#a47ee0); } .cred-card.mcq-card:hover::after  { opacity: 1; }
.cred-card.mcc-card { cursor: default; opacity: .72; }
.cred-badge    { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.4rem; margin-bottom: 18px; flex-shrink: 0; }
.acc-card  .cred-badge { background: rgba(46,139,87,.12); }
.pcc-card  .cred-badge { background: rgba(200,146,42,.12); }
.mcq-card  .cred-badge { background: rgba(120,80,200,.12); }
.mcc-card  .cred-badge { background: rgba(28,43,74,.10); }
.cred-title    { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 4px; line-height: 1.1; }
.cred-subtitle { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.acc-card  .cred-subtitle { color: #2e8b57; }
.pcc-card  .cred-subtitle { color: var(--gold); }
.mcq-card  .cred-subtitle { color: #7850c8; }
.mcc-card  .cred-subtitle { color: #3a5278; }
.cred-desc  { font-size: .88rem; line-height: 1.7; color: var(--muted); flex: 1; margin-bottom: 20px; }
.cred-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cred-stat  { text-align: center; min-width: 52px; }
.cred-stat-val { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); line-height: 1; }
.cred-stat-lbl { font-size: .63rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.cred-stat-div { width: 1px; background: var(--border); align-self: stretch; flex-shrink: 0; }
.cred-cta   { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; margin-top: auto; }
.acc-card  .cred-cta { color: #2e8b57; }
.pcc-card  .cred-cta { color: var(--gold); }
.mcq-card  .cred-cta { color: #7850c8; }
.mcc-cta   { color: var(--muted) !important; font-style: italic; }
.cred-cta-arrow { font-size: 1rem; transition: transform .18s; }
.cred-card:hover .cred-cta-arrow { transform: translateX(4px); }
.cred-tag  { display: inline-block; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-bottom: 16px; }
.acc-tag   { background: rgba(46,139,87,.1);  color: #2e8b57; }
.pcc-tag   { background: rgba(200,146,42,.12); color: var(--gold); }
.mcq-tag   { background: rgba(120,80,200,.12); color: #7850c8; }
.mcc-tag   { background: rgba(28,43,74,.1);    color: #3a5278; }

/* ── TOOL CARDS (coachingtools.html) ──────────────────────────────────── */
.tool-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-card--soon { opacity: .55; cursor: default; pointer-events: none; }
.tool-card--soon:hover { transform: none; box-shadow: none; }
.tool-card__icon  { font-size: 2rem; }
.tool-card__label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tool-card__title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.tool-card__desc  { font-size: .86rem; line-height: 1.72; color: var(--muted); flex: 1; }
.tool-card__tags  { display: flex; gap: .45rem; flex-wrap: wrap; margin: .2rem 0; }
.tool-card__tags span { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }
.tool-card__cta   { font-size: .84rem; font-weight: 700; margin-top: .3rem; }

/* ── COMPARISON TABLE ─────────────────────────────────────────────────── */
.compare-section  { background: var(--white); border-radius: 14px; padding: 28px 32px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 48px; }
.compare-title    { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 18px; }
.compare-table    { width: 100%; border-collapse: collapse; }
.compare-table th { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; text-align: left; border-bottom: 2px solid var(--border); }
.compare-table th:nth-child(2) { color: #2e8b57; }
.compare-table th:nth-child(3) { color: var(--gold); }
.compare-table td { padding: 10px 12px; font-size: .85rem; color: var(--text); border-bottom: 1px solid var(--border); line-height: 1.45; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child   { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  font-size: .72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}


/* ── TOOLS GRID (coachingtools.html) ─────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

@media (max-width: 1200px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .tools-grid { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .card-grid { grid-template-columns: 1fr 1fr 1fr; }
  .main { padding: 56px 32px 72px; }
}
@media (max-width: 1200px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .main { padding: 36px 20px 52px; }
  .portal-card, .tool-card, .cred-card { padding: 26px 22px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 5vw 2rem; }
  .main { padding: 36px 16px 52px; }
  .portal-card, .tool-card, .cred-card { padding: 22px 18px; }
  .compare-section { padding: 20px 16px; }
}
