/* ===== COLD FORCE MECHANICAL INC. - MAIN STYLESHEET ===== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-blue: #1e40af;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1e3a8a;
  --accent-purple: #7c3aed;
  --accent-purple-light: #a855f7;
  --accent-purple-dark: #5b21b6;
  
  /* Neutral Colors */
  --white: #ffffff;
  --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;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--accent-purple) 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* 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;
  --spacing-4xl: 6rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===== ACCESSIBILITY & PERFORMANCE OPTIMIZATIONS ===== */
/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nav__logo-spin,
  .hero__logo-spin,
  .phone-icon,
  .phone-cta,
  .hero__fan-mobile .hvac-blades-spin,
  .hero__fan-mobile .hero__fan-svg {
    animation: none !important;
  }
  
  .top-phone-bar {
    animation: none !important;
  }
  
  .hero__company-name {
    animation: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .top-phone-bar {
    background: #000000;
    border-bottom: 3px solid #ffffff;
  }
  
  .phone-number {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
  }
  
  .nav__logo-spin,
  .hero__logo-spin {
    border-color: #ffffff;
    background: #000000;
  }
}

/* Focus indicators for keyboard navigation */
.phone-number:focus,
.nav__logo-spin:focus,
.hero__logo-spin:focus {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}

/* ===== TOP PHONE BAR ===== */
.top-phone-bar {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4757 100%);
  color: var(--white);
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: calc(var(--z-fixed) + 10);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
  animation: phone-bar-glow 3s ease-in-out infinite alternate;
}

@keyframes phone-bar-glow {
  from {
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
  }
  to {
    box-shadow: 0 2px 15px rgba(255, 107, 53, 0.5), 0 0 20px rgba(247, 147, 30, 0.3);
  }
}

.phone-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.phone-icon {
  font-size: 1.25rem;
  animation: phone-pulse 2s ease-in-out infinite;
}

@keyframes phone-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.phone-text {
  font-weight: 500;
}

.phone-number {
  color: var(--white);
  font-weight: 800;
  font-size: 1.375rem;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  transition: all var(--transition-normal);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.phone-number:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.phone-cta {
  font-weight: 700;
  animation: cta-bounce 2s ease-in-out infinite;
}

@keyframes cta-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* ===== COMPANY LOGO SPINNING ANIMATION ===== */
@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes logo-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(30, 64, 175, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
  }
}

/* Hero Logo Spinning Animation */
.hero__logo-spin {
  animation: logo-spin 6s linear infinite, logo-glow-pulse 3s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, filter;
  transition: all var(--transition-normal);
  /* Hardware acceleration optimization */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Professional circular border */
  border: 3px solid rgba(30, 64, 175, 0.3);
  border-radius: 50%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  /* Mobile touch interaction */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.hero__logo-spin:hover,
.hero__logo-spin.active-touch {
  animation: logo-spin 2s linear infinite, logo-glow-pulse 1.5s ease-in-out infinite;
  transform: scale(1.05);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile-specific touch feedback */
@media screen and (max-width: 768px) {
  .hero__logo-spin:active {
    transform: scale(0.98);
  }
}

/* Hero blob container optimizations */
.hero__blob {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

/* ===== RESPONSIVE LOGO POSITIONING ===== */
/* Mobile logo placement - shows in content flow */
.hero__logo-mobile {
  display: none; /* Hidden on desktop */
  text-align: center;
  margin: var(--spacing-xl) 0;
}

/* Desktop logo placement - shows on right side */
.hero__logo-desktop {
  display: block; /* Visible on desktop */
}

@media screen and (max-width: 1024px) {
  /* Switch to mobile layout on tablets and phones */
  .hero__logo-mobile {
    display: block; /* Show mobile logo placement */
  }
  
  .hero__logo-desktop {
    display: none; /* Hide desktop logo placement */
  }
  
  /* Adjust mobile logo size and spacing - 1.5x bigger for better impact */
  .hero__logo-mobile .hero__logo-spin {
    max-width: 270px !important; /* Increased from 180px (1.5x bigger) */
    margin: 0 auto;
  }
}

/* ===== RESPONSIVE LOGO SPINNING ===== */
@media screen and (max-width: 768px) {
  .hero__logo-spin {
    animation: logo-spin 5s linear infinite, logo-glow-pulse 2.5s ease-in-out infinite;
    max-width: 250px;
  }
  
  .hero__logo-spin:hover {
    animation: logo-spin 3s linear infinite, logo-glow-pulse 2s ease-in-out infinite;
  }
}

@media screen and (max-width: 480px) {
  .hero__logo-spin {
    animation: logo-spin 4s linear infinite, logo-glow-pulse 2s ease-in-out infinite;
    max-width: 200px;
  }
}

/* ===== MOBILE SPINNING FAN STYLES ===== */
/* Mobile-only spinning fan positioned at top of hero section */
.hero__fan-mobile {
  display: none; /* Hidden on desktop */
  text-align: center;
  margin: var(--spacing-lg) 0 var(--spacing-xl) 0;
  padding: 0;
}

.hero__fan-wrapper {
  display: inline-block;
  position: relative;
}

.hero__fan-svg {
  width: 120px;
  height: 120px;
  max-width: 120px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Enhanced 3D spinning animation for mobile fan - optimized performance */
@keyframes mobile-hvac-spin-3d {
  0% {
    transform: translate(120px, 93px) rotate3d(0, 0, 1, 0deg);
  }
  100% {
    transform: translate(120px, 93px) rotate3d(0, 0, 1, 360deg);
  }
}

/* Optimized glow animation for mobile fan - synchronized timing */
@keyframes mobile-hvac-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(30, 64, 175, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.4));
  }
}

/* Spinning blades animation - Enhanced 3D rotation for mobile */
.hero__fan-mobile .hvac-blades-spin {
  animation: mobile-hvac-spin-3d 4s linear infinite;
  transform-origin: 0 0;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  /* Hardware acceleration optimization */
  -webkit-transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
}

/* Glow effect for mobile fan - synchronized timing to prevent conflicts */
.hero__fan-mobile .hero__fan-svg {
  animation: mobile-hvac-glow-pulse 4s ease-in-out infinite;
  will-change: filter;
  transform-style: preserve-3d;
}

/* Hover effect for mobile fan */
.hero__fan-mobile .hvac-blades-spin:hover {
  animation: mobile-hvac-spin-3d 1.5s linear infinite;
}

/* Show mobile fan on tablets and phones */
@media screen and (max-width: 1024px) {
  .hero__fan-mobile {
    display: block; /* Show mobile fan */
  }
}

/* Mobile-specific fan sizing and positioning */
@media screen and (max-width: 768px) {
  .hero__fan-mobile {
    margin: var(--spacing-md) 0 var(--spacing-lg) 0;
  }
  
  .hero__fan-svg {
    width: 100px;
    height: 100px;
    max-width: 100px;
  }
  
  .hero__fan-mobile .hvac-blades-spin {
    animation: mobile-hvac-spin-3d 5s linear infinite;
  }
  
  .hero__fan-mobile .hvac-blades-spin:hover {
    animation: mobile-hvac-spin-3d 2s linear infinite;
  }
}

/* Small mobile phones */
@media screen and (max-width: 480px) {
  .hero__fan-mobile {
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
  }
  
  .hero__fan-svg {
    width: 80px;
    height: 80px;
    max-width: 80px;
  }
  
  .hero__fan-mobile .hvac-blades-spin {
    animation: mobile-hvac-spin-3d 4s linear infinite;
  }
}

/* Very small mobile phones */
@media screen and (max-width: 375px) {
  .hero__fan-svg {
    width: 70px;
    height: 70px;
    max-width: 70px;
  }
}


/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-600);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-blue-light);
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: var(--spacing-4xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section__title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.button--primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--box-shadow);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
  color: var(--white);
}

.button--emergency {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--box-shadow);
  animation: pulse 2s infinite;
}

.button--emergency:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
  color: var(--white);
  animation: none;

.button--call {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
  color: var(--white);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 40px rgba(168, 85, 247, 0.2);
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

.button--call:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 60px rgba(168, 85, 247, 0.3), var(--box-shadow-lg);
  color: var(--white);
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 40px rgba(168, 85, 247, 0.2);
  }
  to {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), 0 0 50px rgba(168, 85, 247, 0.3);
  }
}

.call-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2), 0 0 30px rgba(168, 85, 247, 0.1);
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

.call-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
  color: var(--white);
}
}

.button--outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.button--outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.button--large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-xl);
}

.card__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  font-size: var(--font-size-2xl);
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.card__description {
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 60px; /* Account for phone bar height */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
}

.nav {
  height: 100px; /* Increased from 70px to make it taller/fatter */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* ===== NEW NAVIGATION LAYOUT ===== */
.nav__menu--left,
.nav__menu--right {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav__menu--left {
  justify-content: flex-start;
}

.nav__menu--right {
  justify-content: flex-end;
}

.nav__logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.nav__company-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav__logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__logo-spin {
  height: 60px;
  width: 60px;
  object-fit: contain;
  animation: logo-spin 6s linear infinite, logo-glow-pulse 3s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, filter;
  transition: all var(--transition-normal);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 2px solid rgba(30, 64, 175, 0.3);
  border-radius: 50%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.nav__logo-spin:hover {
  animation: logo-spin 2s linear infinite, logo-glow-pulse 1.5s ease-in-out infinite;
  transform: scale(1.1);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-2xl); /* Increased from xl to 2xl for bigger text */
  font-weight: 800; /* Increased from 700 to 800 for bolder text */
  color: var(--primary-blue);
}

/* Hide "Inc." on mobile to prevent text wrapping */
@media screen and (max-width: 768px) {
  .nav__logo .mobile-hide {
    display: none;
  }
  
  /* Adjust company name text size and positioning on mobile */
  .nav__logo {
    font-size: 1.3125rem; /* 5% bigger than xl (1.25rem) for better mobile readability */
    margin-left: var(--spacing-sm); /* Move text slightly left away from hamburger */
  }
  
  /* ===== COMPREHENSIVE MOBILE HERO SECTION FIX ===== */
  /* Fix persistent hero section overlap on mobile devices */
  /* Uses multiple defensive strategies to ensure proper spacing */
  
  /* Primary fix: Override desktop padding with higher specificity */
  .hero.section {
    padding-top: calc(160px + 24px) !important; /* Phone bar (60px) + Navigation height (100px) + buffer (24px) */
    padding-bottom: var(--spacing-4xl) !important;
    margin-top: 0 !important; /* Reset any inherited margins */
  }
  
  /* Secondary fix: Target hero container directly for extra safety */
  .hero__container {
    padding-top: 0; /* Removed extra padding to bring content up */
    margin-top: 0;
  }
  
  /* Tertiary fix: Ensure hero title has proper top spacing */
  .hero__title {
    margin-top: 0;
    padding-top: 0; /* Removed extra padding to bring title up */
  }
  
  /* Modern mobile device support - Safe area insets for notched devices */
  .hero.section {
    padding-top: calc(160px + 24px + env(safe-area-inset-top, 0px)) !important;
  }
  
  /* Mobile Navigation Adjustments */
  .nav__company-name {
    font-size: var(--font-size-xs);
    letter-spacing: 0.5px;
  }
  
  .nav__logo-spin {
    height: 45px;
    width: 45px;
    padding: 6px;
  }
  
  /* Mobile Phone Bar Adjustments */
  .phone-bar-content {
    font-size: var(--font-size-base);
    gap: 0.5rem;
  }
  
  .phone-number {
    font-size: var(--font-size-lg);
    padding: 0.125rem 0.5rem;
  }
  
  .phone-text,
  .phone-cta {
    display: none; /* Hide extra text on mobile for cleaner look */
  }
  
  /* Mobile Hero Company Name */
  .hero__company-name {
    font-size: var(--font-size-base);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
  }
  
  /* Mobile Navigation Menu Adjustments */
  .nav__menu--left,
  .nav__menu--right {
    display: none; /* Hide side menus on mobile */
  }
  
  .nav__toggle {
    display: block !important;
    z-index: 20;
  }
  
  /* Mobile menu overlay */
  .nav__menu.show-menu {
    position: fixed;
    top: 160px; /* Below phone bar + nav */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    box-shadow: var(--box-shadow-lg);
    z-index: 15;
  }
  
  .nav__menu.show-menu .nav__list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

.nav__logo i {
  font-size: var(--font-size-2xl);
  color: var(--accent-red);
}

/* Logo Image Styling - Professional Transparent NoBuffer Logo */
.nav__logo img.logo-icon {
  height: 3rem; /* Even bigger - was 2.5rem */
  width: auto;
  max-width: 3rem;
  object-fit: contain;
  transition: transform var(--transition-fast);
  margin-right: var(--spacing-sm); /* CSS spacing control */
}

.nav__logo img.logo-icon:hover {
  transform: scale(1.05);
}

/* Footer Logo Styling */
.footer__logo img.logo-icon {
  height: 3rem; /* Bigger footer logo */
  width: auto;
  max-width: 3rem;
  object-fit: contain;
  margin-right: var(--spacing-sm); /* CSS spacing control */
}

/* Content Area Logo Styling (for cards and special sections) */
.card__icon img.logo-icon,
.emergency-card img.logo-icon {
  height: 3.5rem; /* Even larger for content areas */
  width: auto;
  max-width: 3.5rem;
  object-fit: contain;
  margin-right: var(--spacing-sm); /* CSS spacing control */
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  margin: 0;
}

.nav__link {
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-blue);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.emergency-btn {
  background: var(--gradient-accent);
  color: var(--white) !important;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  font-weight: 600;
}

.emergency-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.nav__toggle {
  display: none;
  font-size: var(--font-size-xl);
  color: var(--gray-700);
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 180px 0 var(--spacing-4xl); /* Increased top padding to account for phone bar + nav */
  position: relative;
  overflow: hidden;
}

/* ===== HERO LOGO ENHANCEMENTS ===== */
.hero__logo-wrapper {
  text-align: center;
  position: relative;
}

.hero__company-name {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: company-name-glow 4s ease-in-out infinite alternate;
}

@keyframes company-name-glow {
  from {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.2);
  }
  to {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(247, 147, 30, 0.3);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero__container {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-3xl);
}

.hero__title {
  font-size: var(--font-size-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.hero__description {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.hero__stats {
  display: flex;
  gap: var(--spacing-2xl);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--white);
}

.stat__text {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer__logo i {
  font-size: var(--font-size-2xl);
  color: var(--accent-red);
}

.footer__description {
  color: var(--gray-300);
  margin-bottom: var(--spacing-lg);
}

.footer__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--spacing-sm);
}

.footer__links a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: var(--spacing-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-normal);
}

.footer__social-link:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--spacing-xl);
  text-align: center;
  color: var(--gray-400);
}

/* ===== SCROLL UP BUTTON ===== */
.scrollup {
  position: fixed;
  right: var(--spacing-md);
  bottom: var(--spacing-md);
  background: var(--gradient-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-lg);
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.scrollup.show-scroll {
  opacity: 1;
  visibility: visible;
}

.scrollup:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__title {
    font-size: var(--font-size-5xl);
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 70px; /* Updated from 80px to match new nav height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px); /* Updated from 80px to match new nav height */
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    transition: left var(--transition-normal);
    box-shadow: var(--box-shadow-lg);
  }
  
  .nav__menu.show-menu {
    left: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--spacing-2xl);
  }
  
  .nav__toggle {
    display: block;
  }
  
  .hero__title {
    font-size: var(--font-size-4xl);
  }
  
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero__stats {
    justify-content: center;
  }
  
  .section {
    padding: var(--spacing-3xl) 0;
  }
  
  .section__title {
    font-size: var(--font-size-3xl);
  }
}

/* ===== ADDITIONAL MOBILE BREAKPOINT TESTING ===== */
/* Comprehensive mobile device support for hero section */

/* Large tablets and small laptops (768px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding-top: 140px; /* Slightly more padding for tablets */
  }
}

/* Standard mobile phones (414px - 768px) */
@media screen and (max-width: 414px) {
  .hero.section {
    padding-top: calc(70px + 30px + env(safe-area-inset-top, 0px)) !important;
  }
  
  .hero__container {
    padding-top: 0; /* Removed extra buffer to bring content up */
  }
  
  .hero__title {
    font-size: var(--font-size-3xl);
    padding-top: 0; /* Removed extra spacing */
  }
}

/* Small mobile phones (375px and below) */
@media screen and (max-width: 375px) {
  .hero.section {
    padding-top: calc(70px + 36px + env(safe-area-inset-top, 0px)) !important;
  }
  
  .hero__container {
    padding-top: 0; /* Removed extra buffer to bring content up */
  }
  
  .hero__title {
    padding-top: 0; /* Removed extra spacing */
  }
}

/* Very small mobile phones (320px and below) */
@media screen and (max-width: 320px) {
  .hero.section {
    padding-top: calc(70px + 42px + env(safe-area-inset-top, 0px)) !important;
  }
  
  .hero__container {
    padding-top: 0; /* Removed extra buffer to bring content up */
  }
}

/* Landscape orientation fixes for mobile devices */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .hero.section {
    padding-top: calc(70px + 18px + env(safe-area-inset-top, 0px)) !important;
  }
  
  .hero__container {
    padding-top: 0; /* Removed extra padding in landscape */
  }
  
  .hero__title {
    padding-top: 0; /* Removed extra padding in landscape */
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero__title {
    font-size: var(--font-size-3xl);
  }
  
  .hero__stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}
/* ===== MOBILE OVERFLOW PREVENTION ===== */
@media screen and (max-width: 768px) {
  .hero__vision {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .hero__vision ul {
    padding-left: 1rem !important;
    margin-left: 0 !important;
  }
  
  .hero__data {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--spacing-md) !important;
    padding-right: var(--spacing-md) !important;
    box-sizing: border-box !important;
  }
}
