/* ===========================
   FedResourceHub.com
   Main Stylesheet
=========================== */

:root {
  --navy: #1a2e4a;
  --blue: #2563eb;
  --light-blue: #dbeafe;
  --gold: #f59e0b;
  --red: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ===========================
   HEADER / NAV
=========================== */
header {
  background: var(--navy);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span:first-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.logo-text span:last-child {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav { display: flex; align-items: center; gap: 0.25rem; }

nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: #d97706 !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===========================
   HERO
=========================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e40af 60%, #1d4ed8 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
  text-decoration: none;
  color: var(--navy);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
  color: white;
}

.btn-blue {
  background: var(--blue);
  color: white;
}

.btn-blue:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

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

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
}

.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===========================
   ALERT BANNER
=========================== */
.alert-banner {
  background: #fef3c7;
  border-bottom: 3px solid var(--gold);
  padding: 0.85rem 2rem;
  text-align: center;
}

.alert-banner p {
  font-size: 0.9rem;
  color: #92400e;
  max-width: 1200px;
  margin: 0 auto;
}

.alert-banner strong { font-weight: 700; }
.alert-banner a { color: #92400e; font-weight: 600; text-decoration: underline; }

/* ===========================
   SECTIONS
=========================== */
section { padding: 4.5rem 2rem; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   TWO-PATH CARDS
=========================== */
.two-path {
  background: var(--gray-50);
}

.path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.path-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.path-card.active-path { border-top-color: var(--blue); }
.path-card.displaced-path { border-top-color: var(--red); }

.path-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.active-path .path-icon { background: var(--light-blue); }
.displaced-path .path-icon { background: #fee2e2; }

.path-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.path-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.path-list {
  list-style: none;
  margin-bottom: 2rem;
}

.path-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.path-list li:last-child { border-bottom: none; }

.path-list li::before {
  content: '✓';
  font-weight: 700;
  flex-shrink: 0;
}

.active-path .path-list li::before { color: var(--blue); }
.displaced-path .path-list li::before { color: var(--red); }

/* ===========================
   DIRECTORY GRID
=========================== */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.dir-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.dir-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.dir-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dir-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.dir-card p {
  color: var(--gray-600);
  font-size: 0.875rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.dir-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

.listing-count {
  display: inline-block;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

/* ===========================
   SEARCH BAR
=========================== */
.search-section {
  background: var(--navy);
  padding: 3rem 2rem;
}

.search-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.search-inner h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.search-bar {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-bar input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--gray-800);
}

.search-bar select {
  padding: 1rem;
  border: none;
  border-left: 1px solid var(--gray-200);
  outline: none;
  font-size: 0.9rem;
  color: var(--gray-600);
  background: white;
}

.search-bar button {
  padding: 1rem 1.75rem;
  background: var(--gold);
  border: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar button:hover { background: #d97706; }

/* ===========================
   RESOURCE LISTINGS
=========================== */
.resource-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.2s;
  margin-bottom: 1rem;
}

.resource-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.resource-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.resource-info { flex: 1; }

.resource-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.resource-info .resource-type {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.resource-info p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.resource-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.tag {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}

.featured-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy), #1e40af);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 2rem 2rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; }

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-bottom-links a:hover { color: white; }

/* ===========================
   FORMS
=========================== */
.form-section {
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===========================
   PAGE HEADER
=========================== */
.page-header {
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  color: white;
  padding: 3.5rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   TABS
=========================== */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-btn:hover { color: var(--blue); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===========================
   NOTICE BOX
=========================== */
.notice-box {
  background: #fef3c7;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #78350f;
}

.notice-box.info {
  background: var(--light-blue);
  border-left-color: var(--blue);
  color: #1e40af;
}

.notice-box.urgent {
  background: #fee2e2;
  border-left-color: var(--red);
  color: #991b1b;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem; }
  .mobile-menu-btn { display: block; }
  .path-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  section { padding: 3rem 1.5rem; }
  .search-bar { flex-direction: column; border-radius: 10px; }
  .search-bar select { border-left: none; border-top: 1px solid var(--gray-200); }
  .search-bar button { border-radius: 0 0 10px 10px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
