/* ==========================================================================
   CONCEPT 1: Industrial Navy & Bold Amber (Heavy Duty Labor Union Theme)
   IBEW Local 527 - Multi-Page Design Architecture
   ========================================================================== */

:root {
  /* Color System */
  --navy-950: #050B14;
  --navy-900: #0A192F;
  --navy-850: #112240;
  --navy-800: #1E3A8A;
  --navy-700: #1E293B;

  --gold-500: #F59E0B;
  --gold-400: #FBBF24;
  --gold-600: #D97706;
  --gold-hover: #EAB308;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-900: #0F172A;

  --emerald-500: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.2);

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-main);

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.35);

  /* Radius & Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --border-heavy: 2px solid rgba(255, 255, 255, 0.12);
  --border-gold: 1px solid rgba(245, 158, 11, 0.35);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--navy-950);
  color: var(--slate-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--navy-900);
}

.section-darker {
  background-color: var(--navy-950);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: rgba(245, 158, 11, 0.15);
  border: var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-400);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--gold-500);
}

.section-subtitle {
  color: var(--slate-300);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-gold {
  background-color: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  border: 2px solid var(--slate-300);
  color: #FFFFFF;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background-color: rgba(245, 158, 11, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Header & Announcement Bar */
.top-bar {
  background-color: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--slate-300);
  position: relative;
  z-index: 1001;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info-item svg {
  color: var(--gold-500);
}

/* Navbar Fix & Layout */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  white-space: nowrap;
}

.brand-text p {
  font-size: 0.725rem;
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 0.15rem;
}

/* Nav links & Dropdowns */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-200);
  padding: 0.5rem 0.25rem;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-400);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold-500);
  border-radius: var(--radius-full);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--navy-900);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1050;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--slate-200);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-link:hover, .dropdown-link.active {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Subpage Hero */
.page-hero {
  padding: 4rem 0 3.5rem 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

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

.page-hero p {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 680px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.35) 0%, transparent 60%),
              var(--navy-950);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

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

.hero-description {
  font-size: 1.15rem;
  color: var(--slate-300);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold-400);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--slate-400);
}

/* Dispatch Widget Card */
.dispatch-widget {
  background: var(--navy-850);
  border: var(--border-heavy);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.widget-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-500);
  background: var(--emerald-glow);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Job Line Cards */
.call-status-banner {
  background: var(--navy-850);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--slate-300);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.search-input {
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.875rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--gold-500);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.job-card {
  background: var(--navy-850);
  border: var(--border-heavy);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.job-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-journeyman {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-apprentice {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-telecom {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.job-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--slate-400);
  text-transform: uppercase;
}

.detail-val {
  font-size: 0.925rem;
  font-weight: 700;
}

.job-reqs {
  background: rgba(10, 25, 47, 0.6);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--slate-300);
  margin-bottom: 1.25rem;
}

/* JATC Benefits & Requirements */
.jatc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.benefit-card {
  background: var(--navy-850);
  border: var(--border-heavy);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.benefit-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--slate-300);
}

.requirements-card {
  background: var(--navy-900);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}

.req-list li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.req-list li svg {
  color: var(--gold-500);
  flex-shrink: 0;
}

/* Jurisdiction Map & Cards */
.juris-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.county-box {
  background: var(--navy-850);
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.service-card {
  background: var(--navy-900);
  border: var(--border-heavy);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--navy-800);
  color: var(--gold-400);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Events Calendar */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--navy-850);
  border: var(--border-heavy);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
}

.event-date {
  width: 60px;
  height: 65px;
  background: var(--navy-950);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-400);
}

.event-day {
  font-size: 1.4rem;
  font-weight: 800;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-card {
  background: var(--navy-850);
  border: var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--gold-500);
}

/* Footer */
.footer {
  background-color: var(--navy-950);
  border-top: 2px solid rgba(245, 158, 11, 0.2);
  padding: 4rem 0 2rem 0;
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-400);
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--gold-500);
  color: var(--navy-950);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(150%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .jatc-grid, .juris-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    background-color: var(--navy-900);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--gold-500);
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .nav-item.has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
