/* ========================================
   NEVADA STATE HVAC - DESIGN SYSTEM
   Primary: #0E324A (dark blue)
   Secondary/Accent: #EEC036 (gold)
   Light: #F0F0E8
   Gray: #63717A
   Fonts: Manrope (primary), Montserrat (secondary)
   ======================================== */

/* CSS Variables */
:root {
  --primary: #0E324A;
  --primary-rgb: 14, 50, 74;
  --secondary: #EEC036;
  --secondary-rgb: 238, 192, 54;
  --light: #F0F0E8;
  --light-rgb: 240, 240, 232;
  --gray: #63717A;
  --gray-rgb: 99, 113, 122;
  --white: #FFFFFF;
  --black: #1A1A1A;
  
  --font-primary: 'Manrope', Arial, sans-serif;
  --font-secondary: 'Montserrat', Arial, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  color: var(--black);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 960px;
}

.container-lg {
  max-width: 1440px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
  background-color: rgba(var(--primary-rgb), 0.9);
  transform: translateY(-2px);
}

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

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

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img, img.logo {
  height: 50px;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-base);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.125rem;
}

.phone-link:hover {
  color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition-base);
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--primary);
  padding: 1.5rem;
  transform: translateY(-150%);
  transition: var(--transition-base);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--white);
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(var(--primary-rgb), 0.95) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--primary-rgb), 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 3rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(var(--secondary-rgb), 0.2);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h1 span {
  color: var(--secondary);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

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

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header h2 span {
  color: var(--secondary);
}

.section-header p {
  color: var(--gray);
  font-size: 1.25rem;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.8);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

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

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-content p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  border-radius: var(--radius-md);
  color: var(--primary);
}

.feature-content h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  margin-top: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

/* Problem/Solution Section */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.problem-box {
  padding: 2rem;
  background-color: rgba(var(--primary-rgb), 0.05);
  border-left: 4px solid var(--gray);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.problem-box h3 {
  color: var(--gray);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.solution-box {
  padding: 2rem;
  background-color: rgba(var(--secondary-rgb), 0.1);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.solution-box h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--white);
}

.trust-badge svg {
  color: var(--secondary);
}

/* Service Area */
.service-area {
  text-align: center;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.area-item {
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255,255,255,0.9);
}

.cta-contact a {
  color: var(--secondary);
  font-weight: 600;
}

.cta-contact a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-top {
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-contact h4,
.footer-links h4,
.footer-badges h4 {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

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

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.footer-contact-list a {
  color: var(--white);
}

.footer-contact-list a:hover {
  color: var(--secondary);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

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

.badge-list {
  list-style: none;
}

.badge-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

.badge-list li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

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

.license-numbers {
  color: var(--secondary);
  font-weight: 600;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.payment-methods img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
  
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  
  .header-cta {
    display: block;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
  
  .problem-solution {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 6rem 0;
  }
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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