/*
 * CLT Gems - Simple Charlotte Traffic
 * style.css
 * 
 * Main sections:
 * - Reset & Base styles
 * - Typography
 * - Layout & Container
 * - Hero Section
 * - Snapshot Cards
 * - Corridor List
 * - About Section
 * - Subscribe Form
 * - Footer
 * - Utility Classes
 * - Responsive Breakpoints
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background-color: #fafafa;
  padding-top: 60px; /* Space for fixed nav */
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  color: #fbbf24;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 0.5rem;
}

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

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2e;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .nav-toggle {
    display: none;
  }
  
  body {
    padding-top: 60px;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a2e;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-subtitle strong {
  color: #fbbf24;
}

/* ============================================
   SNAPSHOT CARDS
   ============================================ */
.snapshot-section {
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

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

.snapshot-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.snapshot-card .label {
  font-size: 0.875rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.snapshot-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
}

.snapshot-card .value.status-clear {
  color: #16a34a;
}

.snapshot-card .value.status-moderate {
  color: #ca8a04;
}

.snapshot-card .value.status-heavy {
  color: #dc2626;
}

.snapshot-card .detail {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ============================================
   CORRIDOR LIST
   ============================================ */
.section-intro {
  color: #64748b;
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
}

.corridors-section {
  background: #fafafa;
}

.map-subsection {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.map-subsection h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.corridor-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.corridor-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.corridor-info {
  flex: 1;
}

.corridor-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.corridor-detail {
  font-size: 0.875rem;
  color: #64748b;
}

.corridor-incident {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.corridor-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.clear {
  background: #dcfce7;
  color: #166534;
}

.status-badge.slow {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.bad {
  background: #fee2e2;
  color: #991b1b;
}

.delay-text {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ============================================
   STREET CLOSURES MAP SECTION
   ============================================ */
.map-section {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.map-intro {
  color: #64748b;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.map-embed {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
/* ============================================
   NEIGHBORHOODS SECTION
   ============================================ */
.neighborhoods-section {
  background: white;
  border-top: 1px solid #e5e7eb;
}

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

.neighborhood-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
}

.neighborhood-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.neighborhood-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

@media (min-width: 640px) {
  .neighborhood-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .neighborhood-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   INFRASTRUCTURE DIRECTORY SECTION
   ============================================ */
.directory-section {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

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

.category-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.category-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.directory-cta {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.directory-cta p {
  margin-bottom: 1rem;
  color: #64748b;
}

.btn-outline {
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

@media (min-width: 640px) {
  .directory-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .directory-categories {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: white;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.about-content {
  max-width: 700px;
}

.about-content p {
  color: #475569;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ============================================
   SUBSCRIBE SECTION
   ============================================ */
.subscribe-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a1a2e 100%);
  color: white;
  padding: 4rem 0;
}

.subscribe-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-box h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.subscribe-box > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.subscribe-form {
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.form-group .required {
  color: #fbbf24;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.15);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #1a1a2e;
  color: white;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.form-message:empty {
  display: none;
}

.form-message.success {
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: #86efac;
}

.form-message.error {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.subscribe-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ============================================
   BUSINESS REGISTRATION SECTION
   ============================================ */
.register-section {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.register-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.register-box h2 {
  margin-bottom: 0.5rem;
}

.register-box > p {
  color: #64748b;
  margin-bottom: 2rem;
}

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

.register-form .form-group {
  margin-bottom: 1rem;
}

.register-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.register-form .required {
  color: #dc2626;
}

.register-form input,
.register-form select,
.register-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #1a1a2e;
  transition: border-color 0.2s;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.register-form textarea {
  resize: vertical;
  min-height: 80px;
}

@media (min-width: 640px) {
  .register-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.loading-state {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.error-state {
  text-align: center;
  padding: 2rem;
  color: #dc2626;
  background: #fee2e2;
  border-radius: 8px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .snapshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .subscribe-box {
    padding: 3rem;
  }
  
  .map-embed {
    height: 550px;
  }
}

@media (max-width: 639px) {
  .map-embed {
    height: 400px;
    border-radius: 8px;
  }
}
