/* ==========================================================================
   KaamWala Pakistan - Main Stylesheet (Modern Home Services Marketplace)
   Colors: Primary #145C45 | Secondary #1E8B68 | Accent #F4A340 | Bg #F7F9F8
   ========================================================================== */

:root {
  --primary: #145C45;
  --primary-hover: #0E4231;
  --secondary: #1E8B68;
  --secondary-light: #E8F5F0;
  --accent: #F4A340;
  --accent-hover: #DE8F2E;
  --accent-light: #FEF6EB;
  --dark: #182B25;
  --text-muted: #5A7168;
  --bg-page: #F7F9F8;
  --bg-card: #FFFFFF;
  --border-color: #E2E8E5;
  --border-focus: #1E8B68;
  --shadow-sm: 0 2px 6px rgba(20, 92, 69, 0.05);
  --shadow-md: 0 6px 18px rgba(20, 92, 69, 0.08);
  --shadow-lg: 0 14px 34px rgba(20, 92, 69, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-en: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', Tahoma, sans-serif;
  --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-page);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 60px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px auto;
}

.section-badge {
  display: inline-block;
  background-color: var(--secondary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Typography & Urdu Specific Adjustments */
body[dir="rtl"] {
  font-family: var(--font-ur);
  line-height: 2.0;
}

body[dir="rtl"] .section-title {
  font-size: 2.4rem;
  line-height: 1.6;
}

body[dir="rtl"] .hero-title {
  font-size: 2.6rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: #176B50;
  color: #FFFFFF;
}

.btn-accent {
  background-color: var(--accent);
  color: #182B25;
  font-weight: 700;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #182B25;
}

.btn-emergency {
  background: linear-gradient(135deg, #E53935 0%, #D32F2F 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
  animation: pulse-emergency 2.5s infinite;
}
.btn-emergency:hover {
  background: #C62828;
  color: #FFFFFF;
}

@keyframes pulse-emergency {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5); }
  100% { transform: scale(1); }
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--dark);
}
.btn-outline:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary);
  color: var(--primary);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}
.btn-whatsapp:hover {
  background-color: #1EBE5D;
  color: #FFFFFF;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.top-bar {
  background-color: var(--dark);
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 18px;
  align-items: center;
}

.top-bar-contact a {
  color: #D1DFDA;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.top-bar-contact a:hover {
  color: var(--accent);
}

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Header Main Bar (Logo & Primary Action CTAs) */
.header-main-bar {
  padding: 12px 0;
  background: #FFFFFF;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Custom Uploaded Brand Logo */
.brand-custom-logo {
  height: 90px;
  max-height: 95px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.2s ease;
}

.brand-logo:hover .brand-custom-logo {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .brand-custom-logo {
    height: 65px;
    max-height: 70px;
    max-width: 220px;
  }
}

.brand-icon-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(20, 92, 69, 0.28);
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-icon-box {
  transform: scale(1.05) rotate(-5deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2px;
}

/* Header Action CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-emergency-cta {
  background: #DC2626;
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-emergency-cta:hover {
  background: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.btn-primary-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(20, 92, 69, 0.25);
  transition: all 0.25s ease;
  border: none;
}

.btn-primary-cta:hover {
  background: linear-gradient(135deg, #0F4937, #156B50);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 92, 69, 0.35);
}

.btn-user-account {
  background: #F1F5F9;
  color: var(--dark) !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.btn-user-account:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.btn-logout-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FECACA;
  transition: all 0.2s ease;
}

.btn-logout-icon:hover {
  background: #DC2626;
  color: #FFFFFF !important;
}

.notif-badge {
  background: var(--accent);
  color: #182B25;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

/* ========================================================
   Main Nav Frame (مکھ فریم مینو - Colorful Navigation Bar)
   ======================================================== */
.main-nav-frame {
  background: #F8FAFC;
  border-top: 1px solid #EEF2F6;
  border-bottom: 2px solid rgba(20, 92, 69, 0.12);
  padding: 6px 0;
}

.nav-frame-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.nav-frame-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-frame-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: #334155;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.nav-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: all 0.22s ease;
}

/* Colorful Icon Theme Badges */
.icon-blue    { background: #E0F2FE; color: #0284C7; }
.icon-orange  { background: #FFEDD5; color: #EA580C; }
.icon-purple  { background: #EDE9FE; color: #7C3AED; }
.icon-emerald { background: #D1FAE5; color: #059669; }
.icon-amber   { background: #FEF3C7; color: #D97706; }
.icon-teal    { background: #CCFBF1; color: #0D9488; }
.icon-green   { background: #DCFCE7; color: #16A34A; }

/* Hover States with Individual Color Glows */
.nav-frame-item.item-home:hover { background: #F0F9FF; color: #0284C7; }
.nav-frame-item.item-home:hover .icon-blue { background: #0284C7; color: #FFFFFF; transform: scale(1.1); }

.nav-frame-item.item-services:hover { background: #FFF7ED; color: #EA580C; }
.nav-frame-item.item-services:hover .icon-orange { background: #EA580C; color: #FFFFFF; transform: scale(1.1); }

.nav-frame-item.item-how:hover { background: #FAF5FF; color: #7C3AED; }
.nav-frame-item.item-how:hover .icon-purple { background: #7C3AED; color: #FFFFFF; transform: scale(1.1); }

.nav-frame-item.item-pros:hover { background: #ECFDF5; color: #059669; }
.nav-frame-item.item-pros:hover .icon-emerald { background: #059669; color: #FFFFFF; transform: scale(1.1); }

.nav-frame-item.item-join:hover { background: #FFFBEB; color: #D97706; }
.nav-frame-item.item-join:hover .icon-amber { background: #D97706; color: #FFFFFF; transform: scale(1.1); }

.nav-frame-item.item-about:hover { background: #F0FDFA; color: #0D9488; }
.nav-frame-item.item-about:hover .icon-teal { background: #0D9488; color: #FFFFFF; transform: scale(1.1); }

.nav-frame-item.item-contact:hover { background: #F0FDF4; color: #16A34A; }
.nav-frame-item.item-contact:hover .icon-green { background: #16A34A; color: #FFFFFF; transform: scale(1.1); }

/* Active States */
.nav-frame-item.item-home.active     { background: #E0F2FE; color: #0369A1; font-weight: 800; }
.nav-frame-item.item-services.active { background: #FFEDD5; color: #C2410C; font-weight: 800; }
.nav-frame-item.item-pros.active     { background: #D1FAE5; color: #047857; font-weight: 800; }
.nav-frame-item.item-join.active     { background: #FEF3C7; color: #B45309; font-weight: 800; }
.nav-frame-item.item-about.active    { background: #CCFBF1; color: #0F766E; font-weight: 800; }
.nav-frame-item.item-contact.active  { background: #DCFCE7; color: #15803D; font-weight: 800; }

.nav-mini-tag {
  background: #F59E0B;
  color: #FFFFFF;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
  margin-left: 2px;
}

.nav-frame-trust {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.trust-pill {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.trust-pill i {
  color: #10B981;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0;
}

/* Booking Layout Grid Utility */
.booking-grid-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F6F3 100%);
  padding: 60px 0 75px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--secondary-light);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(30, 139, 104, 0.2);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Booking / Search Bar */
.hero-search-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 960px;
  margin: 0 auto 30px auto;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 12px;
  align-items: center;
}

.search-field {
  position: relative;
}

.search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.search-field select, .search-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background-color: #FAFCFB;
  outline: none;
  transition: var(--transition);
}

.search-field select:focus, .search-field input:focus {
  border-color: var(--border-focus);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(30, 139, 104, 0.15);
}

.hero-badges-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-badge-item i {
  color: var(--secondary);
}

/* Service Cards Grid (12 Popular Services) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 92, 69, 0.12);
  border-color: var(--secondary);
}

/* Digital Image Media Container */
.service-card-media {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #E8EFF2;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.service-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

/* Floating Digital Icon Badge */
.service-digital-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.95);
  z-index: 2;
  transition: transform 0.3s ease;
}

body[dir="ltr"] .service-digital-badge {
  right: auto;
  left: 14px;
}

.service-card:hover .service-digital-badge {
  transform: scale(1.1) rotate(-4deg);
}

/* Floating 24/7 Emergency Pill Badge */
.service-floating-emergency {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

body[dir="ltr"] .service-floating-emergency {
  left: auto;
  right: 14px;
}

/* Service Card Body */
.service-card-body {
  padding: 16px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.88rem;
  color: #5A6D65;
  margin-bottom: 16px;
  line-height: 1.55;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 14px;
  margin-top: auto;
  gap: 12px;
}

.service-price-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-price-label {
  font-size: 0.72rem;
  color: #718096;
  font-weight: 600;
  margin-bottom: 2px;
}

.service-price-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap !important;
  line-height: 1.2;
}

/* ================= Category Color Schemes (رنگ برنگے تھیمز) ================= */
.theme-electrician .service-digital-badge { background: linear-gradient(135deg, #F59E0B, #D97706); }
.theme-electrician:hover { border-color: #F59E0B; }
.theme-electrician .service-price-amount { color: #B45309; }

.theme-plumber .service-digital-badge { background: linear-gradient(135deg, #0284C7, #0369A1); }
.theme-plumber:hover { border-color: #0284C7; }
.theme-plumber .service-price-amount { color: #0369A1; }

.theme-ac-repair .service-digital-badge { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.theme-ac-repair:hover { border-color: #06B6D4; }
.theme-ac-repair .service-price-amount { color: #0891B2; }

.theme-carpenter .service-digital-badge { background: linear-gradient(135deg, #D97706, #92400E); }
.theme-carpenter:hover { border-color: #D97706; }
.theme-carpenter .service-price-amount { color: #92400E; }

.theme-painter .service-digital-badge { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.theme-painter:hover { border-color: #8B5CF6; }
.theme-painter .service-price-amount { color: #6D28D9; }

.theme-solar-technician .service-digital-badge { background: linear-gradient(135deg, #10B981, #047857); }
.theme-solar-technician:hover { border-color: #10B981; }
.theme-solar-technician .service-price-amount { color: #047857; }

.theme-appliance-repair .service-digital-badge { background: linear-gradient(135deg, #EF4444, #DC2626); }
.theme-appliance-repair:hover { border-color: #EF4444; }
.theme-appliance-repair .service-price-amount { color: #DC2626; }

.theme-cleaning-services .service-digital-badge { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.theme-cleaning-services:hover { border-color: #14B8A6; }
.theme-cleaning-services .service-price-amount { color: #0F766E; }

.theme-home-maintenance .service-digital-badge { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.theme-home-maintenance:hover { border-color: #3B82F6; }
.theme-home-maintenance .service-price-amount { color: #1D4ED8; }

.theme-cctv-security .service-digital-badge { background: linear-gradient(135deg, #6366F1, #4338CA); }
.theme-cctv-security:hover { border-color: #6366F1; }
.theme-cctv-security .service-price-amount { color: #4338CA; }

.theme-pest-control .service-digital-badge { background: linear-gradient(135deg, #84CC16, #4D7C0F); }
.theme-pest-control:hover { border-color: #84CC16; }
.theme-pest-control .service-price-amount { color: #4D7C0F; }

.theme-generator-repair .service-digital-badge { background: linear-gradient(135deg, #EA580C, #C2410C); }
.theme-generator-repair:hover { border-color: #EA580C; }
.theme-generator-repair .service-price-amount { color: #C2410C; }

/* How It Works (4 Steps) */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 30px 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
  opacity: 0.35;
}

.step-icon-wrap {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--secondary-light), #D4EFE4);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px auto;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Featured Professionals Cards */
.pros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pro-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.pro-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.pro-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: var(--secondary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 3px solid #1E8B68;
  box-shadow: 0 4px 14px rgba(20, 92, 69, 0.2);
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.pro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  display: block;
}

.pro-avatar-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #2E7D32;
  color: #FFFFFF;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

body[dir="rtl"] .pro-avatar-check {
  right: auto;
  left: -2px;
}

.pro-info {
  flex-grow: 1;
}

.pro-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.pro-profession {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 2px;
}

.pro-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.pro-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-verified-tag {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.badge-emergency-tag {
  background-color: #FFEBEE;
  color: #C62828;
}

.pro-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  background-color: var(--bg-page);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.pro-stat-item .val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}

.pro-stat-item .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pro-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

/* Why Choose KaamWala */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--secondary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Customer Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--secondary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.reviewer-location {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-reply-box {
  background-color: #F0F7F4;
  border-left: 3px solid var(--secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  font-size: 0.85rem;
}

/* CTA Banner (Become a Pro) */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0E4231 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow-lg);
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 1.1rem;
  color: #D1DFDA;
  max-width: 600px;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: #D1DFDA;
  margin-top: auto;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #A3C0B5;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8CA89E;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(30, 139, 104, 0.15);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.alert-danger {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.alert-warning {
  background-color: #FFF8E1;
  color: #F57F17;
  border: 1px solid #FFE082;
}

.alert-info {
  background-color: #E1F5FE;
  color: #0277BD;
  border: 1px solid #B3E5FC;
}

/* Badges & Status */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-warning { background: #FFF3E0; color: #E65100; }
.badge-danger  { background: #FFEBEE; color: #C62828; }
.badge-info    { background: #E1F5FE; color: #0277BD; }
.badge-primary { background: #E0F2F1; color: #00695C; }
.badge-secondary { background: #ECEFF1; color: #455A64; }

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .booking-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .main-nav-frame {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary);
    padding: 16px 0;
    z-index: 999;
  }
  .main-nav-frame.active {
    display: block;
    animation: fadeInDown 0.25s ease;
  }
  .nav-frame-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-frame-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-frame-item {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #F1F5F9;
    background: #F8FAFC;
    font-size: 0.95rem;
  }
  .nav-frame-trust {
    justify-content: center;
    padding-top: 10px;
    border-top: 1px dashed #E2E8F0;
  }
}

@media (max-width: 768px) {
  .header-actions .btn-emergency-cta span:not(.pulse-indicator),
  .header-actions .btn-primary-cta span,
  .header-actions .btn-user-account span {
    display: none;
  }
  .header-actions .btn-emergency-cta,
  .header-actions .btn-primary-cta,
  .header-actions .btn-user-account {
    padding: 8px 12px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .brand-tagline {
    display: none;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .how-it-works-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .top-bar-contact {
    display: none;
  }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
