/* ============================================================
   CleanPro – Global Design System (main.css)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --primary:        #4f46e5;
  --primary-dark:   #3730a3;
  --primary-light:  #818cf8;
  --secondary:      #7c3aed;
  --accent:         #06b6d4;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --dark:           #0f172a;
  --dark-2:         #1e293b;
  --dark-3:         #334155;
  --muted:          #64748b;
  --light:          #f8fafc;
  --white:          #ffffff;
  --border:         #e2e8f0;

  --gradient-main:  linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-warm:  linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-cool:  linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
  --gradient-card:  linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.12);
  --shadow-md:  0 4px 16px rgba(79,70,229,.12);
  --shadow-lg:  0 20px 60px rgba(79,70,229,.16);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.18);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:50px;

  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Bootstrap Overrides ──────────────────────────────────── */
.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary     { background-color: var(--primary) !important; }
.bg-secondary   { background-color: var(--secondary) !important; }
.btn-primary { 
  background-color: var(--primary); 
  border-color: var(--primary); 
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}
.border-primary { border-color: var(--primary) !important; }

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

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

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.display-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--muted);
  font-weight: 400;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-main    { background: var(--gradient-main); }
.bg-gradient-warm    { background: var(--gradient-warm); }
.bg-gradient-cool    { background: var(--gradient-cool); }

.glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
}

.glass-dark {
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  letter-spacing: .01em;
}

.btn-primary-gradient {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: .7rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.5);
  color: #fff;
}

.btn-outline-primary-gradient {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: .65rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
}
.btn-outline-primary-gradient:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ── Cards ───────────────────────────────────────────────── */
.card-cp {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card-cp:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-md);
}

/* ── Status Badges ───────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .85rem;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-pending    { background: #fef3c7; color: #92400e; }
.status-accepted   { background: #dbeafe; color: #1e40af; }
.status-in_progress{ background: #d1fae5; color: #065f46; }
.status-completed  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-en_route   { background: #e0e7ff; color: #3730a3; }

/* ── Form Inputs ─────────────────────────────────────────── */
.form-control-cp {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: .75rem 1.1rem;
  font-family: var(--font);
  font-size: .95rem;
  transition: var(--transition);
  width: 100%;
  outline: none;
  background: var(--white);
  color: var(--dark);
}
.form-control-cp:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar-cp {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar-cp.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-brand-cp {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.6) 0%, rgba(79, 70, 229, 0.3) 100%), url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--light);
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ── Floating Orbs ───────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width:300px; height:300px; top:-80px; right:-60px; animation-delay:0s; }
.orb-2 { width:180px; height:180px; bottom:120px; right:15%; animation-delay:3s; }
.orb-3 { width:100px; height:100px; top:60%;  left:5%;  animation-delay:6s; }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(10px,-20px) scale(1.05); }
}

/* ── Category Cards ──────────────────────────────────────── */
.cat-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}
.cat-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.165,.84,.44,1);
}
.cat-card:hover .cat-img-box img {
  transform: scale(1.15);
}
.cat-card .cat-name {
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.cat-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--gradient-main);
  color: #fff;
}

.cat-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── Service Cards ───────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.service-duration {
  font-size: .8rem;
  color: var(--muted);
}

/* ── Map Container ───────────────────────────────────────── */
#map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
}

/* ── Loading Spinner ─────────────────────────────────────── */
.spinner-cp {
  width: 40px; height: 40px;
  border: 3px solid rgba(79,70,229,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast Notification ──────────────────────────────────── */
.toast-cp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}
.toast-cp.show { transform: translateY(0); opacity: 1; }
.toast-cp.success { border-left: 4px solid var(--success); }
.toast-cp.error   { border-left: 4px solid var(--danger); }

/* ── Pulse Dot (Online Indicator) ────────────────────────── */
.pulse-dot {
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16,185,129,.4);
  animation: pulse-ring 1.5s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(2); opacity: 0;  }
}

/* ── Rating Stars ────────────────────────────────────────── */
.stars {
  color: var(--warning);
  font-size: .95rem;
  letter-spacing: .05em;
}

/* ── Section Divider ─────────────────────────────────────── */
.section-wave {
  overflow: hidden;
  line-height: 0;
}
.section-wave svg { display: block; }

/* ── How It Works Steps ──────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(79,70,229,.35);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-cp {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-cp h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer-cp a  { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-cp a:hover { color: var(--white); padding-left: 4px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp .6s ease forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: 70vh; }
  .display-title { font-size: 2rem; }
}
/* ── Alert Styles ────────────────────────────────────────── */
.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
}
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger  { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--primary); }

/* ── Custom Form Select ───────────────────────────────────── */
.form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: .75rem 2.5rem .75rem 1.1rem;
  font-family: var(--font);
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
  background-color: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ── Miscellaneous Utilities ──────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.shadow-premium { box-shadow: var(--shadow-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.opacity-80 { opacity: .8; }
.opacity-50 { opacity: .5; }

/* ── Label Badges ────────────────────────────────────────── */
.label-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .25rem .6rem;
    border-radius: 6px;
    display: inline-block;
}
