/* ============================================
   AC REPAIR AND INSTALL - COMPLETE STYLESHEET
   Modern Blues & Reds Theme - Mobile First
   UPDATED: Gradient buttons + Compact header!
   ============================================ */

/* ====== CSS VARIABLES ====== */
:root {
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --primary-red: #dc2626;
  --secondary-red: #ef4444;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --card-bg: #1e293b;
  --light-text: #f1f5f9;
  --gray-text: #94a3b8;
  --white: #ffffff;
  --border-color: #334155;
}

/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Cosmic Space Background Layers */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(80,180,130,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(80,180,130,.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(80,180,130,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: pulseWaves 8s ease-in-out infinite;
}

@keyframes pulseWaves {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* Rotating Galaxy Effect */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 600px;
  transform: translate(-50%, -50%) rotate(-25deg);
  background: radial-gradient(ellipse at center,
    rgba(138,43,226,0.12) 0%,
    rgba(75,0,130,0.15) 15%,
    rgba(0,191,255,0.12) 25%,
    rgba(124,227,168,0.10) 35%,
    rgba(255,105,180,0.08) 45%,
    transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .7;
  animation: galaxyRotate 120s linear infinite;
}

@keyframes galaxyRotate {
  0% { transform: translate(-50%, -50%) rotate(-25deg); }
  100% { transform: translate(-50%, -50%) rotate(335deg); }
}

/* ====== WAVE ANIMATIONS ====== */
.cosmicWave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  z-index: 0;
  filter: blur(90px);
  opacity: 0;
  animation: cosmicRipple 3.5s ease-out forwards;
}

.pulseWave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  z-index: 0;
  filter: blur(60px);
  opacity: 0;
  animation: pulseRipple 1.2s ease-out forwards;
}

@keyframes cosmicRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: .6;
  }
  60% {
    opacity: .4;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@keyframes pulseRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  40% {
    opacity: .8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* ====== HEADER ====== */
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.header-phone:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.phone-icon {
  font-size: 1.3rem;
}

.mobile-menu-btn {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1002;
  position: relative;
}

.mobile-menu-btn:hover {
  background: var(--primary-blue);
  border-color: var(--secondary-blue);
}

.nav-container {
  width: 100%;
  margin-top: 1rem;
}

.nav-main {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

/* ====== GRADIENT BUTTONS + NORMAL SIZE ====== */
.nav-link, .nav-dropdown-btn {
  /* GRADIENT BACKGROUND! */
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.4) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--light-text);
  
  /* NORMAL SIZE - Easy to read and click */
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  min-width: 120px;
  
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  
  /* Ensure buttons inherit font properly */
  font-family: inherit;
  line-height: 1.5;
  
  /* Remove default button styles */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  /* Add subtle glow */
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.nav-link:hover, .nav-dropdown-btn:hover {
  /* VIBRANT GRADIENT ON HOVER! */
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Dropdown hover bridge - fixes the gap issue */
.nav-item::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.3rem;
  background: transparent;
  z-index: 1000;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  margin-top: 0.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  overflow: hidden;
}

.nav-item:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--light-text);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(59, 130, 246, 0.8) 100%);
  padding-left: 2rem;
}

/* Dropdown section headers */
.dropdown-header {
  font-weight: 700;
  color: var(--secondary-blue);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(59, 130, 246, 0.1);
}

.dropdown-section {
  padding: 0.5rem 0;
}

.dropdown-section a {
  padding-left: 2rem !important;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(51, 65, 85, 0.5);
  margin: 0.5rem 0;
}

/* ====== MAIN CONTENT ====== */
main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border-radius: 20px;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cities {
  font-size: 1.2rem;
  color: var(--secondary-blue);
  font-weight: 600;
  margin-bottom: 2rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.badge-icon {
  font-size: 1.3rem;
}

/* ====== BUTTONS ====== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
  display: inline-block;
  background: var(--card-bg);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  border-color: var(--secondary-blue);
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ====== CARDS & SECTIONS ====== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.card-content {
  color: var(--gray-text);
  line-height: 1.8;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-text);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== SERVICE CARDS ====== */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-description {
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* ====== LISTS ====== */
.benefits-list, .features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits-list li, .features-list li {
  padding: 0.75rem 0;
  color: var(--gray-text);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefits-list li::before {
  content: "✓";
  color: var(--secondary-blue);
  font-weight: bold;
  font-size: 1.3rem;
}

.features-list li::before {
  content: "•";
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.5rem;
}

/* ====== BREADCRUMBS ====== */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--gray-text);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-separator {
  color: var(--border-color);
}

/* ====== CITY BUTTONS ====== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.city-button {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: block;
}

.city-button:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

/* ====== FAQ ====== */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--gray-text);
  line-height: 1.8;
}

/* ====== CONTACT SECTION ====== */
.contact-card {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.contact-phone {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--secondary-blue);
  text-decoration: none;
  display: inline-block;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.contact-phone:hover {
  color: var(--primary-red);
  transform: scale(1.05);
}

/* ====== FOOTER ====== */
footer {
  background: var(--darker-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 1rem;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
  color: var(--gray-text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--gray-text);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-container {
    display: none;
  }

  .nav-container.active {
    display: block;
  }

  .nav-main {
    flex-direction: column;
  }
  
  /* Full-width buttons on mobile */
  .nav-link, .nav-dropdown-btn {
    width: 100%;
    min-width: unset;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .dropdown-content {
    position: static;
    display: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
  }

  .nav-item.active .dropdown-content {
    display: block;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .header-phone {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ====== UTILITY CLASSES ====== */
.text-center {
  text-align: center;
}

.text-blue {
  color: var(--secondary-blue);
}

.text-red {
  color: var(--primary-red);
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

/* ====== SUBDIVISION GRID ====== */
.subdivision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.subdivision-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.subdivision-card:hover {
  border-color: var(--secondary-blue);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(30, 41, 59, 0.95) 100%);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.subdivision-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
  transition: transform 0.3s ease;
}

.subdivision-card:hover .subdivision-icon {
  transform: scale(1.15);
}

.subdivision-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.subdivision-type {
  font-size: 0.875rem;
  color: var(--gray-text);
  margin: 0;
}

/* Responsive subdivision grid */
@media (max-width: 768px) {
  .subdivision-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .subdivision-card {
    padding: 1.25rem;
  }
  
  .subdivision-icon {
    font-size: 2rem;
  }
  
  .subdivision-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .subdivision-grid {
    grid-template-columns: 1fr;
  }
}