/* UpRecovery Info Core CSS - Global Navigation, Footer, Breadcrumbs */

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Brand Colors */
:root {
  /* Primary Colors */
  --emerald-800: #065F46;
  --slate-900: #0F172A;
  --white: #FFFFFF;
  
  /* Accent Colors */
  --emerald-50: #ECFDF5;
  --slate-50: #F8FAFC;
  
  /* Semantic Colors */
  --text-primary: var(--slate-900);
  --text-secondary: #475569;
  --text-muted: #64748B;
  --bg-primary: var(--white);
  --bg-secondary: var(--slate-50);
  --bg-accent: var(--emerald-50);
  --border-color: #E2E8F0;
  --focus-ring: #3B82F6;
  
  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --line-height-tight: 1.25;
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: var(--space-4);
}

/* Base Typography */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--emerald-800);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--slate-900);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Header Navigation */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-800);
  text-decoration: none;
}

.logo:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Navigation */
.nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: var(--bg-secondary);
  text-decoration: none;
}

.nav-link:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-link.active {
  background-color: var(--bg-accent);
  color: var(--emerald-800);
}

/* Mobile Menu */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  border-radius: 4px;
}

.mobile-menu-button:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 2;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
}

.mobile-nav-item {
  margin-bottom: var(--space-2);
}

.mobile-nav-link {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-3);
  border-radius: 4px;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover {
  background-color: var(--bg-secondary);
  text-decoration: none;
}

.mobile-nav-link:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-secondary);
  padding: var(--space-3) 0;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.breadcrumb-link:hover {
  color: var(--emerald-800);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Main Content */
.main {
  min-height: calc(100vh - 200px);
  padding: var(--space-8) 0;
}

/* Footer */
.footer {
  background: var(--slate-900);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-disclaimer {
  border-top: 1px solid #334155;
  padding-top: var(--space-6);
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: var(--line-height-relaxed);
}

.footer-disclaimer strong {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  font-size: 1rem;
}

.btn:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--emerald-800);
  color: var(--white);
}

.btn-primary:hover {
  background: #047857;
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--emerald-800);
  border: 2px solid var(--emerald-800);
}

.btn-secondary:hover {
  background: var(--emerald-800);
  color: var(--white);
  text-decoration: none;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--space-6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: var(--space-3);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* Responsive Design */
@media (min-width: 768px) {
  .nav {
    display: block;
  }
  
  .mobile-menu-button {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    padding: 0 var(--space-8);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Management */
.focus-trap {
  position: relative;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid;
  }
  
  .card {
    border-width: 2px;
  }
}

/* Dark Mode Preparation */
@media (prefers-color-scheme: dark) {
  /* Future dark mode styles can be added here */
}

