/**
 * bc-shared.css
 * Bishop Consultancy — Shared styles for training and phishing portal
 * Hosted at: portal.bishop-cyber.co.uk/assets/css/bc-shared.css
 * Referenced by: training/index.html and portal/*.php
 *
 * Contains: CSS variables, fonts, top contact bar, nav, footer
 * Does NOT contain: hero, page-specific layouts, site-specific colours
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Brand variables ── */
:root {
  --bc-teal:        #5ebbba;
  --bc-teal-dark:   #3d9e9d;
  --bc-teal-deeper: #3a8a89;
  --bc-teal-light:  #e8f7f7;
  --bc-teal-pale:   #f0fafa;
  --bc-navy:        #1a2535;
  --bc-navy-mid:    #243147;
  --bc-dark:        #222222;
  --bc-slate:       #4a5568;
  --bc-muted:       #718096;
  --bc-border:      #e2e8f0;
  --bc-bg:          #f7fafc;
  --bc-white:       #ffffff;
  --bc-gold:        #f6ad55;
  --bc-radius:      6px;
  --bc-shadow:      0 2px 12px rgba(0,0,0,0.08);
  --bc-shadow-lg:   0 6px 32px rgba(0,0,0,0.12);
  --bc-font-head:   'DM Serif Display', Georgia, serif;
  --bc-font-body:   'DM Sans', 'Segoe UI', sans-serif;
}

/* ── Base font override ── */
body {
  font-family: var(--bc-font-body);
}

h1, h2, h3, h4 {
  font-family: var(--bc-font-head);
}

/* ════════════════════════════════════════
   TOP CONTACT BAR
════════════════════════════════════════ */
.bc-topbar {
  background: var(--bc-navy);
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.bc-topbar a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
  font-family: var(--bc-font-body);
}

.bc-topbar a:hover {
  color: var(--bc-white);
}

.bc-topbar svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   MAIN NAV
════════════════════════════════════════ */
.bc-nav {
  background: var(--bc-white);
  border-bottom: 1px solid var(--bc-border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--bc-shadow);
}

/* Logo */
.bc-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.bc-nav-logo img {
  height: 44px;
  width: auto;
}

/* Nav links */
.bc-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bc-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--bc-slate);
  text-decoration: none;
  font-family: var(--bc-font-body);
  transition: color 0.2s;
  white-space: nowrap;
}

.bc-nav-links a:hover,
.bc-nav-links a.active {
  color: var(--bc-teal);
}

.bc-nav-cta {
  background: var(--bc-teal) !important;
  color: var(--bc-white) !important;
  padding: 9px 20px;
  border-radius: var(--bc-radius);
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
  white-space: nowrap;
}

.bc-nav-cta:hover {
  background: var(--bc-teal-dark) !important;
  color: var(--bc-white) !important;
}

/* Hamburger */
.bc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.bc-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bc-navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.bc-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bc-hamburger.open span:nth-child(2) { opacity: 0; }
.bc-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.bc-mobile-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  background: var(--bc-white);
  border-bottom: 1px solid var(--bc-border);
  box-shadow: var(--bc-shadow-lg);
  z-index: 99;
  flex-direction: column;
  padding: 16px 24px;
}

.bc-mobile-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--bc-slate);
  text-decoration: none;
  font-family: var(--bc-font-body);
  padding: 12px 0;
  border-bottom: 1px solid var(--bc-border);
  display: block;
  transition: color 0.2s;
}

.bc-mobile-nav a:last-child { border-bottom: none; }
.bc-mobile-nav a:hover, .bc-mobile-nav a.active { color: var(--bc-teal); }
.bc-mobile-nav .bc-nav-cta {
  background: none !important;
  color: var(--bc-teal) !important;
  padding: 12px 0 !important;
}

.bc-mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .bc-hamburger { display: flex; }
  .bc-nav-links { display: none; }
  .bc-nav { padding: 0 20px; }
  .bc-topbar { padding: 8px 20px; gap: 16px; }
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.bc-footer {
  background: var(--bc-dark);
  padding: 48px 40px 32px;
}

.bc-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.bc-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: nowrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

/* Footer logo */
.bc-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 220px;
}

.bc-footer-logo {
  display: inline-block;
  background: var(--bc-white);
  border-radius: var(--bc-radius);
  padding: 8px 14px;
}

.bc-footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.bc-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* Footer links */
.bc-footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.bc-footer-col h4 {
  font-family: var(--bc-font-body);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.bc-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
  font-family: var(--bc-font-body);
}

.bc-footer-col a:hover { color: var(--bc-white); }

/* CE badge — middle column between brand and links */
.bc-footer-ce {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  max-width: 160px;
}

.bc-footer-ce iframe {
  border: none;
  height: 80px;
  width: 80px;
  display: block;
  flex-shrink: 0;
}

.bc-footer-ce-text {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  text-align: center;
}

.bc-footer-ce-text strong {
  display: block;
  color: rgba(255,255,255,0.65);
  margin-bottom: 3px;
  font-size: 12px;
}

/* Footer bottom bar */
.bc-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bc-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-family: var(--bc-font-body);
}

.bc-footer-legal {
  display: flex;
  gap: 20px;
}

.bc-footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--bc-font-body);
}

.bc-footer-legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 640px) {
  .bc-footer { padding: 40px 20px 24px; }
  .bc-footer-top { flex-direction: column; gap: 28px; }
  .bc-footer-links { gap: 24px; }
  .bc-footer-bottom { flex-direction: column; text-align: center; }
}
