/* ========================================
   Aarush Eco Tech - Professional Stylesheet
   Audit-Ready Design System
   ======================================== */

/* ===== CSS VARIABLES - PROFESSIONAL PALETTE ===== */
:root {
  /* PRIMARY BRAND COLORS - Based on Logo */
  --brand-charcoal: #2d3748;
  --brand-orange: #f28c28;
  --brand-sage: #6b8e6f;
  
  /* NEUTRAL 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;
  
  /* SEMANTIC COLORS */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-light: #e5e7eb;
  --bg-light: #f9fafb;
  --success-green: #059669;
  --error-red: #dc2626;
  
  /* SPACING - CONSISTENT RHYTHM */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2.5rem;   /* 40px */
  --spacing-xl: 4rem;     /* 64px */
  --spacing-2xl: 6rem;    /* 96px */
  
  /* DESIGN TOKENS */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition-speed: 0.25s;
  --box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --box-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

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

h4 {
  font-size: 1.125rem;
}

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

p.lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
}

a {
  color: var(--brand-orange);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: #d67722;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

.logo-wrap:hover {
  opacity: 0.85;
}

.logo-img {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--brand-charcoal);
}

/* ===== NAVIGATION LINKS ===== */
.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  transition: color var(--transition-speed);
}

.nav-links a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed);
}

.nav-links a.active::after,
.nav-links a:not(.btn-primary):hover::after {
  transform: scaleX(1);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===== BUTTONS - UNIFIED SYSTEM ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange);
  color: #ffffff;
  padding: 1.0rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 2px 8px rgba(242, 140, 40, 0.2);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #d67722;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 140, 40, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 4px;
}

/* Navigation CTA - Slightly smaller */
.nav-contact {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-orange);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid var(--brand-orange);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-secondary:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--brand-charcoal);
}

.hamburger {
  display: block;
}

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

section.light {
  background: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

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

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ===== ICON SYSTEM ===== */
.icon-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: var(--spacing-sm);
}

.icon {
  width: 36px;
  height: 36px;
  stroke: var(--brand-orange);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.icon.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .icon,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--brand-charcoal);
  color: #ffffff;
  padding: var(--spacing-xl) var(--spacing-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-speed);
  font-size: 0.9375rem;
}

.footer-section ul li a:hover {
  color: #ffffff;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* ===== ACCESSIBILITY ===== */
.keyboard-navigation *:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-speed);
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error-red);
}

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

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  text-align: center;
}

.form-success h3 {
  color: var(--success-green);
  margin-bottom: var(--spacing-sm);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile Menu */
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    display: none;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    padding: 0.75rem 0;
  }
  
  .nav-contact {
    width: 100%;
    text-align: center;
  }
  
  /* Grid Layouts */
  .grid-2,
  .grid-3,
  .grid-2-contact {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Spacing */
  section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  /* Hero Stats */
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  p {
    font-size: 1rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  header,
  footer,
  .menu-toggle,
  .btn-primary,
  .btn-secondary {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}
.btn-primary {
  /* Your base styles, e.g., background, padding */
  color: #fff; /* Visible text color */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth, text-safe */
  position: relative;
}

.btn-primary:hover {
  color: #fff !important; /* Force visible text */
  opacity: 1 !important;
  background-color: #E65100; /* Orange for your theme */
  transform: translateY(-2px); /* Lift effect */
}

.btn-primary:hover::before,
.btn-primary:hover::after {
  z-index: -1; /* Ensures pseudo-elements stay behind text */
}
