/* ============================================================
   Air Conditioning Service Karachi — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sky-light: #e0f2fe;
  --sky-glow: rgba(14,165,233,0.25);
  --dark: #0a0f1e;
  --dark2: #111827;
  --gray: #6b7280;
  --light: #f8fafc;
  --white: #ffffff;
  --card-bg: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; }

/* ── Page Loader ─────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 52px; height: 52px;
  border: 3px solid rgba(14,165,233,0.15);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navbar ──────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.35s ease;
}
#navbar.scrolled {
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--sky);
  background: rgba(14,165,233,0.1);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: white; font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 0.75rem;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 20px var(--sky-glow);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.45);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: white; font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 0.75rem;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.25s ease;
}
.btn-outline:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(14,165,233,0.08);
  transform: translateY(-2px);
}
.btn-sky-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--sky); font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1.5rem; border-radius: 0.65rem;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--sky);
  transition: all 0.25s ease;
}
.btn-sky-outline:hover {
  background: var(--sky);
  color: white;
  transform: translateY(-2px);
}

/* ── Section Headings ────────────────────────────────── */
.section-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.25);
  color: var(--sky); font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 1rem; border-radius: 9999px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.15;
  color: white;
}
.section-title span { color: var(--sky); }
.section-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem; line-height: 1.7;
  max-width: 580px;
}
.divider {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--sky), transparent);
  border-radius: 2px; margin: 1rem 0;
}

/* ── Cards ───────────────────────────────────────────── */
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-dark));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  background: rgba(14,165,233,0.06);
  border-color: rgba(14,165,233,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.service-card:hover::before { transform: scaleX(1); }

.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
}

/* ── Feature Box ─────────────────────────────────────── */
.feature-box {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  border-radius: 1rem;
  transition: background 0.25s;
}
.feature-box:hover { background: rgba(14,165,233,0.06); }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(14,165,233,0.12);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--sky); font-size: 1.1rem;
  transition: all 0.25s;
}
.feature-box:hover .feature-icon {
  background: var(--sky); color: white;
}

/* ── Pricing Card ────────────────────────────────────── */
.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem; padding: 2rem;
  transition: all 0.3s ease;
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(2,132,199,0.08));
  border-color: rgba(14,165,233,0.4);
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(14,165,233,0.15);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem; overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: rgba(14,165,233,0.3); }
.faq-question {
  width: 100%; background: rgba(255,255,255,0.03);
  border: none; cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; text-align: left;
  color: white; font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(14,165,233,0.08); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(14,165,233,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--sky); font-size: 0.85rem;
  transition: all 0.3s;
}
.faq-item.open .faq-icon {
  background: var(--sky); color: white; transform: rotate(45deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px; padding: 1rem 1.5rem 1.5rem;
}

/* ── Scroll Animations ───────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in {
  opacity: 0; transition: opacity 0.6s ease;
}
.fade-in.visible { opacity: 1; }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ── Floating Buttons ────────────────────────────────── */
#whatsapp-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all 0.25s ease;
  animation: pulse-green 2.5s infinite;
}
#whatsapp-float:hover { transform: scale(1.12); }
@keyframes pulse-green {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.7); }
}

#scroll-top {
  position: fixed; bottom: 1.75rem; left: 1.75rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--sky); font-size: 1rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { background: var(--sky); color: white; }

/* ── Mobile Menu ─────────────────────────────────────── */
#mobile-menu {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(10,15,30,0.98);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  padding: 2rem;
}
#mobile-menu.open { transform: translateX(0); }
.mobile-nav-link {
  display: block; color: rgba(255,255,255,0.8);
  text-decoration: none; font-family: 'Outfit', sans-serif;
  font-size: 1.35rem; font-weight: 600;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--sky); }

/* ── Page Hero ───────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #060c1a 0%, #0a1628 50%, #060c1a 100%);
  padding: 9rem 0 5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(14,165,233,0.12) 0%, transparent 60%);
}
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb span { color: rgba(255,255,255,0.3); font-size: 0.875rem; }
.breadcrumb .current { color: var(--sky); font-size: 0.875rem; font-weight: 600; }

/* ── Process Steps ───────────────────────────────────── */
.step-number {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: white; box-shadow: 0 4px 20px var(--sky-glow);
}

/* ── Stats ───────────────────────────────────────────── */
.stat-card {
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 1rem; padding: 1.5rem;
  text-align: center;
}

/* ── Form ────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: white; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem; padding: 0.85rem 1rem;
  width: 100%; outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--sky);
  background: rgba(14,165,233,0.06);
}
.form-select option { background: #111827; color: white; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.3); }

/* ── Footer ──────────────────────────────────────────── */
footer { background: #060c1a; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.9rem; padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--sky); }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; transition: all 0.25s;
}
.social-btn:hover { background: var(--sky); border-color: var(--sky); color: white; }

/* ── Grid overlay (hero decoration) ─────────────────── */
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── Blob decoration ─────────────────────────────────── */
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none;
}

/* ── Area badge ──────────────────────────────────────── */
.area-badge {
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.18);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem; padding: 0.4rem 0.9rem;
  border-radius: 9999px; white-space: nowrap;
}

/* ── Testimonial card ────────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem; padding: 1.75rem;
}

/* ── CTA section ─────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(2,132,199,0.08));
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 2rem; padding: 4rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}
