/* ==========================================================================
   app.botnira.com — Botnira Research & Resource Hub
   Shared stylesheet for header.php / footer.php and all pages
   Brand look adapted from botnira.com + compliance.botnira.com
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #002FA7;
  --color-primary-dark: #001F73;
  --color-primary-light: #3D5AFE;
  --color-accent: #00C2A8;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-surface: #F5F7FB;
  --color-surface-alt: #EEF1FA;
  --color-border: #E3E7F1;
  --color-text: #10131A;
  --color-text-muted: #5B6376;
  --color-text-soft: #8890A0;
  --color-inverse: #FFFFFF;

  /* Status */
  --color-success: #12805C;
  --color-warning: #B45309;

  /* Type */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 19, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 19, 26, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 47, 167, 0.14);
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.85rem;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 24px;
  text-align: center;
}
.announce-bar a { color: #fff; text-decoration: underline; }
.announce-cta { font-weight: 600; text-decoration: none !important; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-mark { border-radius: 6px; }
.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-divider { color: var(--color-text-soft); font-weight: 400; }
.logo-badge { color: var(--color-primary); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Breadcrumbs */
.breadcrumb-bar {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.82rem;
}
.breadcrumbs { display: flex; gap: 8px; padding: 8px 0; color: var(--color-text-muted); flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--color-text-soft); }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs li[aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-surface-alt); transform: translateY(-1px); }
.btn-accent {
  background: var(--color-accent);
  color: #06231F;
}
.btn-accent:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--color-border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.hero-meta li { display: flex; align-items: center; gap: 6px; }
.hero-meta li::before { content: '✓'; color: var(--color-success); font-weight: 700; }

.hero-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-card h3 { font-size: 1rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; margin-bottom: 16px; }
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-stat { border-radius: var(--radius-md); background: var(--color-surface); padding: 16px; }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--color-primary); display: block; }
.hero-stat .label { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--color-surface); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.card .card-link { font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--color-primary); }
.stats-strip .stat-label { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Trust badges ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.trust-badges li {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-surface-alt);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--color-text-muted); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0B1330;
  color: #C7CCDC;
  margin-top: 64px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding: 56px 24px 40px;
}
.site-footer .logo-text { color: #fff; }
.site-footer .logo-badge { color: var(--color-accent); }
.footer-tagline { color: #A6ACC2; font-size: 0.92rem; margin: 14px 0; max-width: 34ch; }
.site-footer .trust-badges li { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 12px; }
.footer-social a { color: #C7CCDC; font-size: 0.85rem; }
.footer-social a:hover { color: #fff; }

.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #C7CCDC; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.contact-hours { color: #7B82A0; font-size: 0.85rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7B82A0;
}
.footer-bottom a { color: #A6ACC2; }

/* ---------- Prose (research / guides / blog / case-study articles) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; }
.prose p, .prose ul, .prose ol { color: var(--color-text); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.6em 0;
  padding: 4px 20px;
  color: var(--color-text-muted);
  font-style: italic;
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Author / bio pages ---------- */
.author-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.author-photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  position: relative;
}
.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.author-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-top: 10px;
}
.author-meta-list li { display: flex; align-items: center; gap: 6px; }
.author-connect {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.author-connect a {
  color: var(--color-text);
  font-weight: 500;
}
.author-connect a:hover { color: var(--color-primary); }

.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.role-badges li {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.83rem;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Career / education timeline */
.timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 28px;
  border-left: 2px solid var(--color-border);
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-border);
}
.timeline-year {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.timeline-item h4 { margin: 0 0 6px; font-size: 1.05rem; }
.timeline-item p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Achievement / stat callout */
.achievement-banner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.achievement-banner .big-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  white-space: nowrap;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.skill-tags li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: #fff;
}

/* ---------- Article byline (research / guides / blog / case studies) ---------- */
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  flex-wrap: wrap;
}
.byline-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.byline-avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.byline-meta { font-size: 0.85rem; color: var(--color-text-muted); }
.byline-meta a { color: var(--color-text); font-weight: 600; }
.byline-meta a:hover { color: var(--color-primary); }

/* ---------- Comparison table (comparisons section) ---------- */
.compare-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--color-bg); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; vertical-align: top; }
.compare-table thead th { background: var(--color-surface); font-weight: 700; color: var(--color-text); }
.compare-table tbody th { font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table td.brand-botnira { color: var(--color-primary-dark); font-weight: 600; background: rgba(0, 47, 167, 0.04); }
.compare-table .cell-check { color: var(--color-success); font-weight: 700; }
.compare-table .cell-cross { color: var(--color-text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .author-hero { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.is-open { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; padding: 40px 24px; }
  .cta-banner { padding: 32px 20px; }
}
/* "More" dropdown in the primary nav */
.nav-more { position: relative; }
.nav-more summary {
  cursor: pointer;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after {
  content: '▾';
  font-size: 0.7em;
  color: var(--color-text-soft);
  transition: transform var(--transition);
}
.nav-more summary:hover { color: var(--color-primary); }
.nav-more summary:hover::after { color: var(--color-primary); }
.nav-more[open] summary::after { transform: rotate(180deg); }
.nav-more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-more-menu li { width: 100%; }
.nav-more-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text);
}
.nav-more-menu a:hover { background: var(--color-surface-alt); color: var(--color-primary); }

@media (max-width: 760px) {
  .nav-more summary { padding: 12px 0; }
  .nav-more-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 4px 12px;
  }
  .nav-more-menu a { padding: 10px 0; }
}
