/* ===================================================================
   OpsArtica Unified Header & Footer CSS
   Version: 1.0
   
   This file provides ONLY header and footer styling.
   Page-specific content, hero sections, and body backgrounds 
   are handled by individual page CSS files.
   =================================================================== */

/* ===================================================================
   CSS VARIABLES
   =================================================================== */
:root {
  --oa-header-height: 64px;
  --oa-burgundy: #770737;
  --oa-burgundy-dark: #5a062b;
  --oa-gold-1: #f4e08a;
  --oa-gold-2: #d7b74a;
  --oa-gold-3: #b38a12;
  --oa-charcoal: #2B2B2B;
  --oa-panel-dark: #111318;
  --oa-text-dark: #e9eaee;
  --oa-text-light: #0D1B2A;
  --oa-muted-dark: #b7bcc6;
  --oa-muted-light: #6C757D;
}

/* ===================================================================
   UNIFIED HEADER - DARK THEME (DEFAULT)
   Used by: DisciplinedStrength, PracticalArcana, MosaicMind, 
            OpsSafe, OpsInnovation, opsartica.redesign
   =================================================================== */
.oa-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--oa-header-height);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(15,17,22,.85), rgba(15,17,22,.65));
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.oa-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oa-header .brand img {
  height: 28px;
  width: auto;
  border-radius: 8px;
}

.oa-header .brand strong {
  color: var(--oa-text-dark);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.oa-header nav {
  margin-left: auto;
}

.oa-header nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.oa-header nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--oa-text-dark);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.oa-header nav a:hover {
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}

/* Burgundy button (default) */
.oa-header nav a.btn,
.oa-header nav a.btn-burgundy {
  background: linear-gradient(180deg, var(--oa-burgundy), var(--oa-burgundy-dark));
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.oa-header nav a.btn:hover,
.oa-header nav a.btn-burgundy:hover {
  background: linear-gradient(180deg, #8c0a3f, #660529);
  transform: translateY(-2px);
}

/* Gold engraved button (for OpsInnovation) */
.oa-header nav a.btn-gold-engraved {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #f7f2da;
  background: linear-gradient(180deg, var(--oa-gold-1), var(--oa-gold-2) 42%, var(--oa-gold-3));
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: 
    0 6px 16px rgba(0,0,0,.45), 
    inset 0 2px 3px rgba(255,255,255,.35), 
    inset 0 -3px 6px rgba(0,0,0,.35);
  text-shadow: 0 -1px 0 rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.25);
}

.oa-header nav a.btn-gold-engraved:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* ===================================================================
   UNIFIED HEADER - LIGHT THEME VARIANT
   Used by: VetClaims
   Add class "oa-header-light" to header element
   =================================================================== */
.oa-header.oa-header-light {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.1) blur(4px);
  border-bottom: 1px solid #EAEAEA;
}

.oa-header.oa-header-light .brand strong,
.oa-header.oa-header-light nav a {
  color: var(--oa-text-light);
}

.oa-header.oa-header-light nav a {
  border-color: rgba(0,0,0,.12);
}

.oa-header.oa-header-light nav a:hover {
  background: rgba(0,0,0,.03);
}

/* Gold button for VetClaims light theme */
.oa-header.oa-header-light nav a.btn {
  background: linear-gradient(180deg, #ffd700 0%, #e6b800 40%, #c9a227 60%, #ffd700 100%);
  color: #151515;
  border: 1px solid #b38f00;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.25);
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.oa-header.oa-header-light nav a.btn:hover {
  background: linear-gradient(180deg, #ffe066 0%, #ffcc33 40%, #cc9900 60%, #ffdb4d 100%);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.25),
    0 6px 12px rgba(0,0,0,0.3);
}

/* ===================================================================
   BODY PADDING COMPENSATION
   All pages need top padding to account for fixed header
   =================================================================== */
body {
  padding-top: var(--oa-header-height);
}

/* VetClaims exception - has custom body styling, preserve it */
body.vetclaims-page {
  padding-top: var(--oa-header-height);
}

/* ===================================================================
   UNIFIED FOOTER - SIMPLIFIED THREE-SECTION LAYOUT
   No cards - simple horizontal layout
   =================================================================== */
.oa-footer {
  background: var(--oa-charcoal);
  color: #c9d1d9;
  padding: 18px 0;
  margin-top: 0;
}

.oa-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.oa-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-start;
}

.oa-footer-left img {
  height: 28px;
  width: auto;
}

.oa-footer-left span {
  color: #c9d1d9;
  font-size: 0.95rem;
}

.oa-footer-mid {
  flex: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #c9d1d9;
  font-size: 0.95rem;
}

.oa-footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.oa-footer-right a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(180deg, #fdfdfd, #cfd4da);
  color: #1a1a1a;
  border: 1px solid #a3aab2;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.6),
              inset 0 -2px 4px rgba(0,0,0,.2),
              0 4px 8px rgba(0,0,0,.2);
  transition: transform .1s ease, box-shadow .2s ease;
}

.oa-footer-right a:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.8),
              inset 0 -2px 4px rgba(0,0,0,.25),
              0 6px 12px rgba(0,0,0,.3);
}

/* ===================================================================
   UNIFIED FOOTER - LIGHT THEME VARIANT
   Used by: VetClaims
   =================================================================== */
.oa-footer.oa-footer-light {
  background: #0f2234;
  color: #c9d1d9;
}

.oa-footer.oa-footer-light .oa-footer-left span,
.oa-footer.oa-footer-light .oa-footer-mid {
  color: #c9d1d9;
}

/* Old card-based footer styles - DEPRECATED */
.foot-card {
  display: none; /* Hide old card structure */
}

.footer-brand {
  display: none; /* Hide old footer-brand structure */
}

.footer-logo {
  display: none; /* Hide old footer-logo */
}

/* ===================================================================
   RESPONSIVE FOOTER
   =================================================================== */
@media (max-width: 960px) {
  .oa-footer-row {
    flex-direction: column;
    text-align: center;
  }

  .oa-footer-left,
  .oa-footer-mid,
  .oa-footer-right {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .oa-footer-left img {
    height: 24px;
  }

  .oa-footer-left span,
  .oa-footer-mid {
    font-size: 0.85rem;
  }

  .oa-footer-right a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .oa-header .brand strong {
    font-size: 0.95rem;
  }

  .oa-header .brand img {
    height: 24px;
  }

  .oa-header nav a {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}

/* ===================================================================
   UTILITY: Hide overflow during fixed header setup
   =================================================================== */
html {
  overflow-x: hidden;
}

.oa-header {
  transform: translateZ(0); /* Force GPU acceleration */
}

/* ===================================================================
   END OF UNIFIED HEADER/FOOTER CSS
   =================================================================== */
