/* Google Fonts Import - Modern Prestige */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette - Premium & Trustworthy */
  --bg-color: #ffffff;
  --bg-off-white: #fafafa;
  --bg-surface: #f4f4f5;

  --text-main: #0f172a;
  /* Deep Slate for high contrast text */
  --text-body: #4b5563;
  /* Soft gray for body text */
  --text-muted: #9ca3af;

  /* Brand Accents */
  --primary: #cc0000;
  /* KJR Red - Vitality */
  --primary-dark: #990000;
  --accent: #6a0dad;
  /* KJR Purple - depth */

  /* Decorative */
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Top Utility Bar (Redesigned) --- */
.top-bar {
  background-color: #f8f9fa;
  padding: 0.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  position: relative;
}

.top-bar-left .utility-info {
  color: var(--text-body);
  font-weight: 500;
}

.top-bar-left .utility-info strong {
  color: var(--primary);
  font-weight: 700;
}

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

.top-bar-right a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.top-bar-right a:hover {
  color: var(--primary);
}

.top-bar-right .sales-login-btn {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.top-bar-right .sales-login-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(204, 0, 0, 0.2);
}

/* Pay Now center button */
.top-bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.paynow-btn {
  background: var(--primary);
  color: white !important;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.paynow-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

/* --- Main Navigation Header (Cleaner) --- */
.main-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  flex: 0 0 auto;
}

.logo a {
  display: block;
}

.logo img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo a:hover img {
  transform: scale(1.05);
}

/* Navigation Links */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  padding: 0.75rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s ease;
}

.nav-links li a.active {
  color: var(--primary);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--primary);
}

/* Parts Highlight */
.nav-links li a.parts-highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.nav-links li a.parts-highlight::after {
  display: none;
}

.nav-links li a.parts-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.3);
  color: white;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 220px;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 1rem;
  border: 1px solid var(--border-light);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-body);
  transition: all 0.2s ease;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: var(--bg-surface);
  color: var(--primary);
  padding-left: 2rem;
}

/* Header Actions - Right Side Buttons */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-actions .parts-highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-actions .parts-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.3);
  color: white;
}

.header-actions .btn-outline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  background: transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-actions .btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.2);
}

/* Secondary Navigation Bar */
.secondary-nav {
  background: white;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.secondary-nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.secondary-nav .nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  padding: 0.55rem 0;
}

.secondary-nav .nav-links li {
  position: relative;
}

.secondary-nav .nav-links li a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  padding: 1rem 0.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s ease;
}

.secondary-nav .nav-links li a.active {
  color: var(--primary);
}

.secondary-nav .nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.secondary-nav .nav-links li a:hover::after,
.secondary-nav .nav-links li a.active::after {
  width: 100%;
}

.secondary-nav .nav-links li a:hover {
  color: var(--primary);
}

/* Dropdown in secondary nav */
.secondary-nav .has-dropdown {
  position: relative;
}

.secondary-nav .dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  transition: transform 0.3s ease;
}

.secondary-nav .has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.secondary-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 220px;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 1rem;
  border: 1px solid var(--border-light);
}

.secondary-nav .has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

.secondary-nav .dropdown-menu li {
  list-style: none;
}

.secondary-nav .dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-body);
  transition: all 0.2s ease;
}

.secondary-nav .dropdown-menu li a::after {
  display: none;
}

.secondary-nav .dropdown-menu li a:hover {
  background: var(--bg-surface);
  color: var(--primary);
  padding-left: 2rem;
}

/* Legacy header class for backward compatibility */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

header .logo img {
  height: 55px;
  width: auto;
}

header .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

header .nav-links li a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

header .nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

header .nav-links li a:hover::after {
  width: 100%;
}

header .nav-links li a:hover {
  color: var(--primary);
}

/* Header Icons is now just for the CTA button */
.header-icons {
  display: flex;
  align-items: center;
}

.header-icons a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: var(--bg-surface);
  color: var(--primary);
  border: 1px solid var(--border-light);
}

.header-icons a:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  margin-top: -1px;
  /* Remove gap */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.4);
  /* Darker for class */
  transform: scale(1.05);
  /* Slight zoom for depth */
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  animation: slideUp 1s ease-out;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  background-color: #fff;
  color: var(--text-main);
  padding: 1rem 2.5rem;
  border-radius: 0;
  /* Sharp edges for Classy feel */
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  border: 2px solid #fff;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background-color: transparent;
  color: #fff;
}

.hero .btn:active {
  transform: scale(0.98);
}

/* --- Mission Statement / Intro --- */
.mission-section {
  padding: 8rem 2rem;
  background-color: var(--bg-color);
  text-align: center;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 2rem;
}

.mission-quote {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 2rem;
}

/* --- Services Grid --- */
.content-section {
  padding: 6rem 2rem;
  background-color: var(--bg-off-white);
}

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

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-header p {
  font-family: var(--font-sans);
  color: var(--text-body);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
}

.card {
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem;
}

.card-meta {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.card-excerpt {
  font-family: var(--font-sans);
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Market Areas --- */
.market-section {
  padding: 7rem 2rem;
  background-color: #111;
  /* Sharp Black */
  color: white;
  text-align: center;
}

.market-section h2 {
  color: white;
  margin-bottom: 1rem;
}

/* Modern Pill Grid for Counties */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.pill {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  background: white;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  cursor: default;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Feature Box (Hiring Program) */
.feature-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 4rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.feature-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Checkmark List */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 1.5rem;
}

.check-grid li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-body);
  font-weight: 500;
}

.check-grid li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Project/Bid Cards */
.project-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(204, 0, 0, 0.2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.project-title {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.project-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.bid-badge {
  background: #fff9c4;
  color: #856404;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

/* --- Footer --- */
footer {
  background-color: #0a0a0a;
  color: #888;
  padding: 5rem 2rem 2rem;
  font-family: var(--font-sans);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.9em;
  color: #888;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #555;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Form/Table Styling for Inner Pages --- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-family: var(--font-sans);
}

.data-table th {
  background: var(--bg-surface);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-main);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem;
}

.team-card {
  text-align: center;
  transition: transform 0.3s ease;
}

/* Team Section Improvements */
.team-img-wrapper {
  width: 250px;
  height: 250px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.team-card:hover .team-img-wrapper {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--bg-surface);
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

/* Team Email Link Styling */
.team-email-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-body);
  margin: 0.2rem 0;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: var(--bg-surface);
  transition: all 0.2s;
  border: 1px solid var(--border-light);
  text-decoration: none;
}

.team-email-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* --- Modal Popup Styling --- */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 3rem;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
  }

  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 75vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
  }
}

/* ── Auth Trigger Button (top-right) ──────────────────────────────────────── */
.auth-trigger-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.auth-trigger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.35);
  opacity: 0.92;
}

/* ── Auth Modal Overlay ────────────────────────────────────────────────────── */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.auth-modal.open {
  display: flex;
  animation: authFadeIn 0.22s ease;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Auth Modal Box ────────────────────────────────────────────────────────── */
.auth-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  animation: authSlideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close button */
.auth-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.auth-close:hover {
  color: #0f172a;
}

/* Logo */
.auth-logo {
  text-align: center;
  margin-bottom: 1.4rem;
}

.auth-logo img {
  height: 48px;
  margin: 0 auto;
  display: block;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: #f4f4f5;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.8rem;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-field input,
.auth-field select {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #0f172a;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
  background: #fff;
}

/* Password toggle */
.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 2.8rem;
}

.auth-eye {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.55;
  user-select: none;
  transition: opacity 0.2s;
}

.auth-eye:hover {
  opacity: 1;
}

/* Options row */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #6b7280;
  font-family: var(--font-sans);
  cursor: pointer;
}

.auth-forgot {
  color: var(--primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.auth-forgot:hover {
  opacity: 0.75;
}

/* Error message */
.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 0.6rem 0.9rem;
  border-radius: 7px;
  font-size: 0.83rem;
  font-family: var(--font-sans);
}

/* Submit button */
.auth-submit {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.25rem;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(204, 0, 0, 0.3);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-spinner {
  display: inline-block;
  animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
  font-family: var(--font-sans);
  margin-top: 0.25rem;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-modal-box {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* Required field indicator */
.req {
  color: #cc0000 !important;
  font-weight: 700;
  margin-left: 2px;
}

/* ── User Menu Dropdown ───────────────────────────────────────────────────── */
.user-menu-wrap {
  position: relative;
  display: inline-block;
}

.user-menu-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.35);
}

.user-menu-btn .user-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.user-menu-wrap:hover .user-arrow,
.user-menu-wrap.open .user-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  min-width: 210px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 9998;
}

.user-menu-wrap:hover .user-dropdown,
.user-menu-wrap.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #fff8f8, #fdf4ff);
}

.user-dropdown-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.user-dropdown-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.user-dropdown-items {
  padding: 0.4rem 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.user-dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--primary);
}

.user-dropdown-item .item-icon {
  width: 18px;
  text-align: center;
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.3rem 0;
}

.user-dropdown-item.logout-item {
  color: var(--primary);
}

.user-dropdown-item.logout-item:hover {
  background: #fff5f5;
}