/* ==========================================================================
   LICHTENSTEIN CONSULTING ENGINEERS - CUSTOM CSS DESIGN SYSTEM
   ========================================================================== */

/* 1. CSS VARIABLES & RESET */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  
  --navy-dark: #0f172a;
  --navy-medium: #1e293b;
  --navy-light: #334155;
  
  --accent-copper: #c85a17; /* Weathered structural steel orange */
  --accent-copper-hover: #a3440e;
  --accent-copper-light: rgba(200, 90, 23, 0.08);
  
  --border-color: #e2e8f0;
  --border-focus: #c85a17;
  
  /* Typography */
  --font-sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --font-display: "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;
  --border-radius: 6px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1200;
  background-color: var(--accent-copper);
  color: white;
  padding: 0.7rem 0.95rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-copper);
}

/* 2. LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 80px 0;
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.text-white {
  color: var(--bg-primary);
}

.text-slate-300 {
  color: #cbd5e1;
}

/* Blueprint Grid Background Pattern */
.blueprint-grid {
  position: relative;
  background-color: var(--bg-secondary);
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 3. NAVIGATION HEADER */
.site-header {
  background-color: var(--navy-dark);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-copper);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
}

.logo-mark {
  background-color: var(--accent-copper);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: white;
  border-radius: 4px;
  border-bottom: 3px solid rgba(0, 0, 0, 0.25);
}

.logo-type {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle-cb {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* 4. BUTTONS & ACTIONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--navy-dark);
  color: white;
  border-color: var(--navy-dark);
}

.btn-primary:hover {
  background-color: var(--accent-copper);
  border-color: var(--accent-copper);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn-secondary:hover {
  background-color: var(--navy-dark);
  color: white;
}

.btn-accent {
  background-color: var(--accent-copper);
  color: white;
  border-color: var(--accent-copper);
}

.btn-accent:hover {
  background-color: var(--accent-copper-hover);
  border-color: var(--accent-copper-hover);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-full {
  display: flex;
  width: 100%;
}

/* 5. HERO SECTION */
.hero {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-copper);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.15;
  color: var(--navy-dark);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--navy-light);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* 6. SPECIALTIES SECTION & CARDS */
.section-header {
  max-width: 700px;
  margin: 0 auto 56px auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--navy-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-copper);
  margin: 12px auto 0 auto;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.specialty-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.specialty-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-copper);
  box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.08);
}

.specialty-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.specialty-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-copper-light);
  color: var(--accent-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.specialty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.specialty-title a {
  color: var(--navy-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.specialty-title a:hover {
  color: var(--accent-copper);
}

.specialty-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.specialty-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-copper);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.specialty-card:hover .specialty-link {
  color: var(--accent-copper-hover);
  padding-left: 4px;
}

/* 7. LEGACY SECTION */
.legacy-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.legacy-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legacy-text p {
  margin-bottom: 20px;
  color: var(--navy-light);
}

.awards-summary {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.award-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.award-badge {
  background-color: var(--accent-copper);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

.award-info strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-size: 15px;
}

.award-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.standards-card {
  background-color: var(--navy-dark);
  color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-copper);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.standards-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.standards-card p {
  color: #cbd5e1;
  font-size: 15px;
  margin-bottom: 24px;
}

.standards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.standards-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}

.standards-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-copper);
  font-size: 18px;
  line-height: 1;
}

.standards-list li strong {
  display: block;
  color: white;
  font-size: 15px;
}

.standards-list li span {
  color: #94a3b8;
}

.standards-note {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

/* Contact CTA */
.contact-cta {
  background-color: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.contact-cta .section-title::after {
  background-color: var(--accent-copper);
}

.contact-cta p {
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 8. PAGE LAYOUTS (ABOUT, SERVICES, CONTACT) */
.page-header {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.page-header-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-copper);
  margin-bottom: 8px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--navy-dark);
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 700px;
}

.page-content-wrapper {
  padding: 60px 0;
}

/* Markdown Prose Formatting */
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.prose h1 { font-size: 30px; margin-top: 0; }
.prose h2 { font-size: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.prose h3 { font-size: 18px; }

.prose p {
  margin-bottom: 1.5em;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin-bottom: 1.5em;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 0.6em;
  color: #334155;
}

.prose a {
  color: var(--accent-copper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.prose a:hover {
  color: var(--accent-copper-hover);
  border-bottom-color: var(--accent-copper-hover);
}

/* Custom bullet points for capabilities list */
.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-copper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Service Layout Grid */
.service-page-wrapper {
  padding: 60px 0;
}

.service-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.service-sidebar {
  position: sticky;
  top: 110px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy-light);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  color: var(--navy-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--navy-dark);
}

.sidebar-link.active {
  background-color: var(--accent-copper-light);
  color: var(--accent-copper);
  font-weight: 600;
}

.sidebar-contact-card {
  background-color: var(--navy-dark);
  color: white;
  padding: 20px;
  border-radius: 4px;
  margin-top: 16px;
}

.sidebar-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.sidebar-card-text {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-content {
  max-width: 780px;
}

/* Contact Layout styling */
.contact-page-wrapper {
  padding: 60px 0;
}

.contact-container {
  align-items: start;
}

.contact-channels {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.channel-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.channel-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-copper-light);
  color: var(--accent-copper);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-details strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-size: 15px;
  margin-bottom: 4px;
}

.channel-details span {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

.contact-form-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.static-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy-dark);
}

.form-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: -12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy-light);
}

.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-sans);
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: white;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(200, 90, 23, 0.15);
}

/* 9. FOOTER SECTION */
.site-footer {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  padding: 60px 0 0 0;
  border-top: 4px solid var(--accent-copper);
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.footer-brand .logo-mark {
  border-bottom-color: rgba(0, 0, 0, 0.4);
}

.footer-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 8px;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: white;
  margin-bottom: 20px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  background-color: #090d16;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 13px;
  color: #64748b;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-copper);
}

.back-to-top svg {
  transition: transform var(--transition-fast);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* 10. RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .service-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .service-sidebar {
    position: static;
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  
  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  /* Mobile Navigation */
  .nav-toggle {
    display: block;
    z-index: 1100;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--navy-dark);
    padding: 100px 24px 24px 24px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: -5px 0 15px rgba(0,0,0,0.25);
    border-left: 2px solid var(--accent-copper);
    z-index: 1090;
  }
  
  .nav-toggle-cb:checked ~ .main-nav {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-link {
    font-size: 18px;
    display: block;
  }
  
  /* Change menu icon into X when checked */
  .nav-toggle-cb:checked ~ .nav-toggle .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle-cb:checked ~ .nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle-cb:checked ~ .nav-toggle .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
