/* ============================================
   Liberty State Consulting LLC - Professional Stylesheet
   Modern, Clean, Corporate Design
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Brand Colors - Aligned with Logo (gradient #115479 to #13AEBE) */
  --primary-navy: #0C2347;       /* Deep navy from logo */
  --secondary-blue: #115479;     /* Logo gradient start */
  --accent-teal: #13AEBE;        /* Logo gradient end / accent */
  --accent-orange: #E07B39;      /* Warm accent for CTAs */
  --light-bg: #F8FAFB;
  --white: #FFFFFF;
  --text-primary: #0C2347;
  --text-secondary: #2C617E;     /* Muted blue from logo */
  --border-light: #E1E8ED;
  --success-green: #27AE60;
  --gradient-start: #115479;
  --gradient-end: #13AEBE;
  
  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  max-width: 65ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--accent-teal);
}

/* ===== Header & Navigation ===== */
header {
  background: #F5F5F5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-navy);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-container img {
  height: 120px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.logo-container img:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-xs);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-navy);
  padding: 0.625rem 1.25rem;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-teal);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-teal);
  background-color: rgba(19, 174, 190, 0.08);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: var(--secondary-blue);
  background-color: rgba(17, 84, 121, 0.1);
}

.nav-links a.active::after {
  width: 80%;
  background: var(--secondary-blue);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--primary-navy);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--primary-navy);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--primary-navy);
  color: white;
}

.mobile-menu-toggle:hover {
  background: var(--light-bg);
  transform: scale(1.05);
}

/* ===== Buttons & CTAs ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #138D75 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
  font-weight: 600;
}

.btn-outline:hover {
  background-color: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #F8FAFB 0%, #FFFFFF 50%, #F0F4F8 100%);
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(10, 61, 98, 0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(22, 160, 133, 0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0 auto var(--spacing-lg);
  max-width: 750px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

/* ===== Sections ===== */
section {
  padding: var(--spacing-2xl) var(--spacing-md);
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--primary-navy) 100%);
  border-radius: 2px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--primary-navy) 100%);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

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

.card:hover::before {
  transform: translateX(0);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card ul li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
  font-size: 1.125rem;
}

/* ===== Trust Signals ===== */
.trust-signals {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.badge {
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-navy);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
  transition: all var(--transition-normal);
  letter-spacing: 0.02em;
}

.badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-teal);
}

/* ===== Forms ===== */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: var(--white);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

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

.form-group input[type="file"] {
  padding: 1rem;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--light-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-group input[type="file"]:hover {
  border-color: var(--accent-teal);
  background-color: rgba(19, 174, 190, 0.05);
}

.form-group input[type="file"]:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(19, 174, 190, 0.1);
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  align-items: start;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  padding-left: 0;
  position: relative;
}

.footer-section a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all var(--transition-fast);
}

.footer-section a:hover {
  color: var(--white);
  padding-left: 20px;
}

.footer-section a:hover::before {
  left: 0;
  opacity: 1;
}

.footer-bottom {
  max-width: 1400px;
  margin: var(--spacing-lg) auto 0;
  padding: var(--spacing-md) var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: none;
  text-align: center;
}

.footer-bottom p:first-child {
  margin-bottom: 0.25rem;
}

/* ===== CTA Sections ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  padding: var(--spacing-2xl) var(--spacing-md);
}

.cta-section .section-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-section h2 {
  color: var(--white);
  background: none;
  -webkit-text-fill-color: white;
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
}

.cta-section .hero-cta {
  justify-content: center;
}

/* ===== Utilities ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  /* When menu is open, show X icon in white */
  .mobile-menu-toggle.active {
    background: var(--primary-navy);
    color: white;
    border-color: white;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    margin-top: 0;
    background: var(--primary-navy);
    padding: var(--spacing-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    padding: var(--spacing-sm) var(--spacing-md);
    width: 100%;
    text-align: center;
    color: white !important;
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--accent-teal) !important;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  /* Ensure header is positioned for dropdown */
  header {
    position: relative;
  }
  
  header nav {
    position: static;
  }
  
  .hero {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 400px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  section {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3rem;
  }
  
  .logo-container img {
    height: 70px;
  }
  
  .form-container {
    padding: var(--spacing-md);
  }
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-navy: #062842;
    --text-primary: #000000;
    --border-light: #999999;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Loading Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}