/* IokeHX Website Styles - Phase 1 */
/* Import Manrope font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

/* CSS Variables for Design System */
:root {
  /* Color Palette */
  --primary-white: #FAFBFF;
  --light-blue: #52B3DF;
  --dark-blue: #233040;
  --bright-blue: #4D7DFF;
  
  /* Grayscale Colors */
  --cloud: #EDEFF7;
  --smoke: #D3D6E0;
  --steel: #BCBFCC;
  --space: #9DA2B3;
  --graphite: #6E7180;
  --arsenic: #40424D;
  --phantom: #1E1E24;
  --black: #000000;
  
  /* Typography */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', roboto, sans-serif;
  
  /* Spacing Scale (8px base) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

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

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--bright-blue);
  color: var(--primary-white);
  padding: 8px 12px;
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
  opacity: 1;
  pointer-events: auto;
}

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

/* Ensure box-sizing inheritance */
*, *::before, *::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  /* Prevent horizontal scrolling on mobile */
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--primary-white);
  color: var(--arsenic);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent fixed header from covering content */
main {
  padding-top: 80px;
}

/* Adjust for mobile header height */
@media (max-width: 768px) {
  main {
    padding-top: 70px;
  }
}

/* Typography Hierarchy */
h1 {
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--phantom);
  margin-bottom: var(--space-md);
}

h1.section-title {
  font-weight: 700;
  font-size: 2.5rem;
}

h2 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--phantom);
  margin-bottom: var(--space-sm);
}

h3 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--phantom);
  margin-bottom: var(--space-sm);
}

h4 {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--phantom);
  margin-bottom: var(--space-xs);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.lead-text {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--graphite);
}

.small-text {
  font-size: 0.875rem;
  color: var(--space);
}

/* Mobile Typography */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.25rem;
    line-height: 1.1;
  }
  
  h1.section-title {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  p, .lead-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .small-text {
    font-size: 0.875rem;
  }
}

/* Layout Components */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-lg {
  padding: 6rem 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--bright-blue);
  color: var(--primary-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
}

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

.btn-tertiary {
  background-color: var(--light-blue);
  color: var(--primary-white);
}

.btn-tertiary:hover {
  background-color: #4299C0;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Ensure all buttons are touch-friendly */
.btn {
  min-height: 44px;
  min-width: 44px;
}

/* Mobile button adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    min-height: 48px;
  }
  
  .btn-lg {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    min-height: 52px;
  }
  
  /* Header buttons should remain compact on mobile */
  .header .btn,
  .nav .btn {
    width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
    white-space: nowrap;
  }
}

/* Header Styles */
.header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--smoke);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

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

.nav-link {
  color: var(--arsenic);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--bright-blue);
}

.nav-link.active {
  color: var(--bright-blue);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--arsenic);
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  position: relative;
  z-index: 1002;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-content {
    position: relative;
  }
  
  .nav {
    position: relative;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background-color: var(--primary-white);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--smoke);
    z-index: 1001;
    gap: var(--space-sm);
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    margin: 0;
    list-style: none;
  }
  
  .nav-link {
    padding: var(--space-sm);
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--cloud);
    text-decoration: none;
    color: var(--arsenic);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-sizing: border-box;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    background-color: var(--cloud);
    color: var(--dark-blue);
  }
  
  .nav-link.active {
    background-color: var(--light-blue);
    color: var(--primary-white);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Mobile header adjustments */
  .header-content {
    padding: 0.75rem 0;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }
  
  .logo {
    height: 32px;
  }
  
  /* Hide pilot program button on mobile for cleaner header */
  .nav .btn-primary {
    display: none;
  }
  
  /* Prevent horizontal scrolling on mobile */
  body {
    overflow-x: hidden;
  }
  
  /* Ensure container doesn't overflow */
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--primary-white) 0%, var(--cloud) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2352B3DF' fill-opacity='0.05'%3E%3Cpath d='M20 20L0 40V0L20 20ZM40 0v40L20 20L40 0Z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--space-md);
}

.hero-text .lead-text {
  margin-bottom: var(--space-xl);
  font-size: 1.25rem;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--dark-blue);
  border-radius: var(--radius-lg);
  color: var(--primary-white);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bright-blue);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: var(--space-xs);
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 0 3rem;
    text-align: center;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-stats {
    order: 2;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }
  
  .stat-card {
    padding: var(--space-md);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Card Styles */
.card {
  background-color: var(--primary-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--smoke);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bright-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  position: relative;
}

.card-icon::before {
  content: '';
  width: 30px;
  height: 30px;
  background: var(--primary-white);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

.industry-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

/* Form Styles */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--phantom);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: var(--primary-white);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 3px rgba(77, 125, 255, 0.1);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Form Success Messages */
.form-success {
  background-color: #10B981;
  color: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  border: none;
}

.form-success::before {
  content: "✓ ";
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Form Error Styling */
.form-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Footer Styles */
.footer {
  background-color: var(--dark-blue);
  color: var(--primary-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--primary-white);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--steel);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--light-blue);
}

.footer-bottom {
  border-top: 1px solid var(--graphite);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--steel);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hexagonal Background Pattern */
.hexagon-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2352B3DF' fill-opacity='0.05'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-lg {
    padding: var(--space-3xl) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .card {
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }
  
  /* Form mobile improvements */
  .form {
    max-width: 100%;
  }
  
  .form-group {
    margin-bottom: var(--space-md);
  }
  
  .form-input {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
  }
  
  /* Mobile image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Footer mobile layout */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  
  /* Mobile navigation improvements */
  .header {
    position: fixed;
    width: 100%;
  }
  
  .logo {
    height: 32px;
  }
  
  /* Enhanced mobile touch targets */
  .btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: var(--space-sm);
  }
  
  .btn-secondary {
    margin-top: var(--space-sm);
  }
  
  /* Mobile form enhancements */
  .form-row {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  /* Mobile navigation enhancements */
  .mobile-nav {
    transform: translateX(0);
  }
  
  .mobile-nav.active {
    transform: translateX(0);
  }
  
  /* Enhanced mobile menu styles */
  .nav-links {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Improved mobile menu button */
  .mobile-menu-toggle {
    font-size: 1.25rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background-color: transparent;
    transition: background-color var(--transition-fast);
  }
  
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background-color: var(--cloud);
  }
  
  /* Ensure proper mobile viewport handling */
  @media (max-width: 480px) {
    .header-content {
      padding: 0.5rem 0;
    }
    
    .nav-links {
      padding: var(--space-md);
      top: 60px;
    }
    
    .container {
      padding-left: 0.75rem;
      padding-right: 0.75rem;
    }
  }
  
  /* Mobile success messages */
  .success-message {
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
  }
  
  /* Mobile spacing improvements */
  .value-cards,
  .process-steps,
  .industry-grid,
  .team-grid {
    gap: var(--space-lg);
  }
  
  .value-card,
  .process-step,
  .industry-card,
  .team-member {
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
  }
  
  /* Mobile typography improvements */
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
  }
  
  h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: var(--space-md);
  }
  
  h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
  }
  
  /* Mobile footer improvements */
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .social-links a {
    min-height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--space-xs);
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 4rem 0 2rem;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  /* Extra small device optimizations */
  .container {
    padding: 0 12px;
  }
  
  .value-card,
  .process-step,
  .industry-card,
  .team-member,
  .card {
    padding: var(--space-md);
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 15px;
    min-height: 44px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 44px;
    font-size: 16px;
    padding: 10px 14px;
  }
  
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  /* Extra small mobile header adjustments */
  .header-content {
    padding: 0.5rem 0;
  }
  
  .logo {
    height: 28px;
  }
  
  main {
    padding-top: 60px;
  }
  
  .header .btn,
  .nav .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-height: 36px;
  }
}

/* Contact Tabs Styles */
.contact-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-navigation {
  display: flex;
  background-color: var(--cloud);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--smoke);
  border-bottom: none;
}

.tab-button {
  flex: 1;
  background: none;
  border: none;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border-right: 1px solid var(--smoke);
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-button:last-child {
  border-right: none;
}

.tab-button:hover {
  background-color: rgba(82, 179, 223, 0.1);
}

.tab-button.active {
  background-color: var(--primary-white);
  color: var(--bright-blue);
  font-weight: 600;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--bright-blue);
}

.tab-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.tab-text {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.tab-button.active .tab-text {
  font-weight: 600;
  color: var(--bright-blue);
}

.tab-panel {
  display: none;
  background-color: var(--primary-white);
  border: 1px solid var(--smoke);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2.5rem;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
  display: block;
}

.tab-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tab-header h3 {
  font-size: 1.75rem;
  color: var(--phantom);
  margin-bottom: 0.75rem;
}

.tab-header p {
  color: var(--graphite);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile tab styles */
@media (max-width: 768px) {
  .tab-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  .tab-button {
    border-right: 1px solid var(--smoke);
    border-bottom: 1px solid var(--smoke);
    padding: 1rem 0.5rem;
    min-height: 70px;
  }
  
  .tab-button:nth-child(2n) {
    border-right: none;
  }
  
  .tab-button:nth-child(3),
  .tab-button:nth-child(4) {
    border-bottom: none;
  }
  
  .tab-icon {
    font-size: 1.25rem;
  }
  
  .tab-text {
    font-size: 0.75rem;
  }
  
  .tab-panel {
    padding: 1.5rem;
  }
  
  .tab-header h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tab-button {
    padding: 0.75rem 0.25rem;
    min-height: 60px;
  }
  
  .tab-icon {
    font-size: 1rem;
  }
  
  .tab-text {
    font-size: 0.7rem;
    line-height: 1.1;
  }
  
  .tab-panel {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn,
  .mobile-menu-toggle,
  .tab-navigation {
    display: none !important;
  }
  
  .tab-panel {
    display: block !important;
    border: none;
    padding: 1rem 0;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-white: #FFFFFF;
    --dark-blue: #000000;
    --bright-blue: #0000FF;
    --light-blue: #0066CC;
  }
}

/* Reduced Motion */
@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;
  }
}

/* Legal Pages Styles */
.page-header {
  background-color: var(--cloud);
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--graphite);
  margin-bottom: var(--space-sm);
}

.text-muted {
  color: var(--space);
  font-size: 0.875rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: var(--space-2xl);
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--light-blue);
}

.legal-section p {
  margin-bottom: var(--space-sm);
  color: var(--arsenic);
}

.legal-section ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
}

.legal-section li {
  margin-bottom: var(--space-xs);
  color: var(--arsenic);
}

.legal-section strong {
  color: var(--dark-blue);
  font-weight: 600;
}

.legal-section a {
  color: var(--bright-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-section a:hover {
  color: var(--light-blue);
  text-decoration: underline;
}

.contact-info {
  background-color: var(--cloud);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
}

.contact-info p {
  margin-bottom: 0;
}

/* Legal Page Mobile Responsiveness */
@media (max-width: 768px) {
  .page-header {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1.125rem;
  }
  
  .legal-section h2 {
    font-size: 1.25rem;
  }
  
  .legal-content {
    padding: 0 var(--space-sm);
  }
}
