/* =====================================================
   CleanRide Pro — Global Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --color-primary: #1a6b3a;
  --color-primary-light: #2d9e58;
  --color-accent: #4cd680;
  --color-dark: #0d1f17;
  --color-bg: #f5faf7;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-white: #ffffff;
  --color-border: #d1e8da;
  --color-card-bg: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26, 107, 58, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 107, 58, 0.15);
  --shadow-lg: 0 20px 60px rgba(26, 107, 58, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul { list-style: none; }
input, select, textarea { font-family: var(--font-body); }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: 'geom', sans-serif; font-weight: 700; line-height: 1.15; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-light);
  background: rgba(45, 158, 88, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-dark);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(26, 107, 58, 0.3);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 6px 28px rgba(26, 107, 58, 0.4);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-outline-green {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline-green:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ── Container ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Spacing ── */
section { padding: 96px 0; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}
.navbar:not(.scrolled) .nav-links a:hover {
  color: #fff;
}
.navbar:not(.scrolled) .nav-links a::after {
  background: #fff;
}
.navbar:not(.scrolled) .nav-contact-item {
  color: rgba(255, 255, 255, 0.9);
}
.navbar:not(.scrolled) .nav-contact-item svg {
  stroke: rgba(255, 255, 255, 0.9);
}
.navbar:not(.scrolled) .nav-hamburger span {
  background: #fff;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding-right: 0;
  margin: 0%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: left;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Center nav links */
.nav-links {
  display: flex;
  align-items: right;
  gap: 36px;
  list-style: none;
  flex: 1;
  justify-content: flex-start;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-contact-item:hover { color: var(--color-primary); }
.nav-contact-item svg { opacity: 0.55; flex-shrink: 0; }

/* CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(45, 158, 88, 0.7);
  color: #fff;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(45, 158, 88, 1);
  /* border: white 1px solid wh; */
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 171, 240, 0.35);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-white);
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.nav-mobile-drawer.open { display: flex; }
.nav-mobile-drawer a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}
.nav-mobile-drawer a:last-child { border-bottom: none; }
.nav-mobile-drawer a:hover { color: var(--color-primary); }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  pointer-events: all;
  animation: toastIn 0.35s ease forwards;
  max-width: 360px;
  background: var(--color-white);
  color: var(--color-text);
  border-left: 4px solid var(--color-primary);
}
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 23, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
  position: relative;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header {
  padding: 32px 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-header h2 { font-size: 1.6rem; color: var(--color-dark); }
.modal-header p { color: var(--color-text-muted); margin-top: 6px; font-size: 0.95rem; }
.modal-close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.modal-close:hover { background: #fee2e2; color: #ef4444; }
.modal-body { padding: 24px 32px 32px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(45, 158, 88, 0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ── Footer ── */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  /* font-family: var(--font-display); */
  font-weight: 1000;
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 34px; height: 34px;
  background: var(--color-primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 240px;
}
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-btn:hover { background: var(--color-primary); color: var(--color-white); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--color-accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-contact-item .icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--color-accent); }

/* ── Before/After Slider ── */
.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: col-resize;
  user-select: none;
  aspect-ratio: 4/3;
  background: #ccc;
}
.before-after-slider .before-img,
.before-after-slider .after-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.before-after-slider .before-img {
  clip-path: inset(0 50% 0 0);
}
.before-after-slider .slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.before-after-slider .slider-handle::before {
  content: '◀ ▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: white;
  letter-spacing: 2px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  line-height: 1;
  text-align: center;
}
.before-after-slider .label {
  position: absolute;
  bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 5;
}
.before-after-slider .before-label { left: 12px; }
.before-after-slider .after-label { right: 12px; }

/* ── Spinner ── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; justify-content: center; padding: 40px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-contact-item { display: none; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-contact-item { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 15px 26px; font-size: 1rem; }
  .modal-header, .modal-body { padding-left: 20px; padding-right: 20px; }
}
