/* US Benefit Services - Main Stylesheet */
/* Public Benefits Guidance Website - 2026 Design Standards */

/* CSS Variables for consistent theming */
:root {
  --primary-evergreen: #0f3d2e;
  --primary-deep: #08261c;
  --accent-bronze: #b08d57;
  --accent-sky: #2b7bbb;
  --primary-navy: var(--primary-evergreen);
  --primary-blue: var(--accent-sky);
  --secondary-slate: #334155;
  --muted: #64748b;
  --light-surface: #f1f5f9;
  --light-gray: #f8fafc;
  --white: #ffffff;
  --dark-text: #0f172a;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-gray);
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-evergreen);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

/* Navigation Styles */
.navbar {
  background-color: rgba(248, 250, 252, 0.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-evergreen) !important;
}

.navbar-nav .nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-sky) !important;
}

.navbar .dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 0.5rem;
}

.navbar .dropdown-item {
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--light-surface);
}

.navbar-scrolled {
  background-color: rgba(248, 250, 252, 0.98) !important;
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-evergreen) 0%, var(--accent-sky) 60%, var(--accent-bronze) 140%);
  color: var(--white);
  padding: 6rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: -200px -200px auto auto;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: auto auto -220px -220px;
  width: 640px;
  height: 640px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(176, 141, 87, 0.28) 0%, rgba(176, 141, 87, 0) 60%);
  pointer-events: none;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-panel {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-action {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(15, 61, 46, 0.16);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: var(--transition);
}

.hero-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.98);
}

.hero-action .bi {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.95);
  flex: none;
  margin-top: 0.1rem;
}

.hero-action strong {
  display: block;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
  line-height: 1.2;
}

.hero-action span {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 0.25rem;
}

.page-hero {
  min-height: 56vh;
  padding: 5.5rem 0;
}

.service-hero {
  min-height: 54vh;
  padding: 5.25rem 0;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-evergreen) 55%, var(--accent-sky) 120%);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-evergreen);
  border-color: var(--primary-evergreen);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-deep);
  border-color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  color: var(--primary-evergreen);
  border-color: rgba(15, 61, 46, 0.4);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-evergreen);
  border-color: var(--primary-evergreen);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* Service Cards */
.service-card {
  text-align: center;
  padding: 2rem;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-evergreen);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

/* Forms */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 0.2rem rgba(43, 123, 187, 0.22);
}

.form-label {
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-deep);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--white);
}

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.text-primary-custom {
  color: var(--accent-sky) !important;
}

.bg-light-custom {
  background-color: var(--light-surface) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-sky);
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-sky);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-evergreen);
}
