/* AerIQ Website - Main Stylesheet */
/* Modern CSS with Tailwind-inspired utility classes */

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
  /* Colors - Orange Theme */
  --primary: #a84d0e;        /* Darker Accessible Orange (WCAG 2.1 AA compliant - 5.63:1 contrast) */
  --primary-dark: #c2410c;   /* Darker Vibrant Orange - Better Hover Contrast */
  --primary-light: #fb923c;  /* Lighter Vibrant Orange */
  --heading-color: #c9844f;  /* Subtle Orange (for heading text only) */
  
  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Dark Theme */
  --bg-dark: #0f172a;        /* Slate-900 */
  --bg-dark-lighter: #1e293b; /* Slate-800 */
  --text-light: #f1f5f9;     /* Slate-100 */
  --text-gray: #cbd5e1;      /* Slate-300 */
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

.section-sm {
  padding: var(--spacing-2xl) 0;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

/* Spacing Utilities */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-6 { margin-top: var(--spacing-2xl); }

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

.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-6 { padding-top: var(--spacing-2xl); padding-bottom: var(--spacing-2xl); }

.px-2 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-4 { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-xl); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-6 { gap: var(--spacing-2xl); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-gray);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168, 77, 14, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.navbar-brand img {
  height: 80px;
  width: auto;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-gray);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-menu a:hover {
  color: var(--primary);
}

/* Keep button text white on hover */
.navbar-menu a.btn-primary:hover {
  color: #ffffff !important;
}

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

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
/* ============================================
   HERO SECTION - UNIFIED FIX
   ============================================ */
.hero {
  position: relative;
  min-height: 60vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 3rem;
  margin-top: 166px; /* Fixed navbar + breadcrumb height to eliminate black stripe */
}

/* Homepage without breadcrumb needs less padding */
body.homepage .hero {
  padding-top: 100px; /* Navbar (70px) + spacing (30px) */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5;
}

/* Hero overlay removed - using only video opacity: 0.5 as per project requirements */

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--spacing-lg);
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, #f5e6d3 0%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-wrap: break-word;
}

.hero p,
.hero .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .hero {
    padding-top: 120px;
  }
  
  body.homepage .hero {
    padding-top: 90px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding-top: 110px;
    padding-bottom: 2rem;
  }
  
  body.homepage .hero {
    padding-top: 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p,
  .hero .lead {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Small mobile */
@media (max-width: 390px) {
  .hero {
    padding-top: 100px;
  }
  
  body.homepage .hero {
    padding-top: 75px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p,
  .hero .lead {
    font-size: 1rem;
  }
}
.card {
  background-color: var(--bg-dark-lighter);
  border-radius: 1rem;
  padding: var(--spacing-xl);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: 2rem;
}

.card h3 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--bg-dark-lighter);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

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

.footer h4 {
  color: white;
  margin-bottom: var(--spacing-lg);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--spacing-sm);
}

.footer a {
  color: var(--text-gray);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-dark-lighter);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-2xl);
    transition: left 0.3s ease;
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.125rem; }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  h1 { font-size: 2
/* Footer heading styling (replaces h4 for better semantics) */
.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}
/* ============================================
   MOBILE RESPONSIVE FIXES FOR CARDS
   ============================================ */

/* Fix card padding and text overflow on mobile */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .card h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .card p {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .card ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
  }
  
  .card li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Ensure grid container doesn't overflow */
  .grid {
    width: 100%;
    gap: 1rem;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
  /* Force single column on mobile */
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Container padding fix */
  .container {
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* iPhone 13 Pro specific (390px width) */
@media (max-width: 390px) {
  .card {
    padding: 1.25rem 0.875rem;
  }
  
  .card h3 {
    font-size: 1.125rem;
  }
  
  .card p {
    font-size: 0.875rem;
  }
  
  .card li {
    font-size: 0.8125rem;
  }
}
