/* ==========================================================================
   UrbanMisting — Minimalist Tech-Giant UI/UX Design System
   Pioneer in Automated Sprinkler & Misting Systems (Bangalore HQ)
   ========================================================================== */

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

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Palette — Lush Emerald & Crisp White */
  --primary:        #10b981;
  --primary-dark:   #059669;
  --primary-light:  #dcfce7;
  --primary-subtle: #f0fdf4;

  /* Surfaces & Backgrounds */
  --bg-page:        #ffffff;
  --bg-surface:     #f8faf9;
  --bg-card:        #ffffff;
  --bg-input:       #f3f6f5;

  /* Text Colors */
  --text-main:      #0d1714;
  --text-muted:     #4a5753;
  --text-light:     #788882;

  /* Borders & Glass */
  --border:         rgba(16, 185, 129, 0.16);
  --border-hover:   rgba(16, 185, 129, 0.45);
  --glass-bg:       rgba(255, 255, 255, 0.86);

  /* Gradients */
  --grad-hero:      linear-gradient(180deg, #ffffff 0%, #f1fbf5 100%);
  --grad-primary:   linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-text:      linear-gradient(135deg, #047857 0%, #10b981 100%);

  /* Shadows (Apple & Stripe Inspired) */
  --shadow-xs:      0 2px 6px rgba(13, 23, 20, 0.04);
  --shadow-sm:      0 6px 18px rgba(13, 23, 20, 0.06);
  --shadow-md:      0 14px 34px rgba(13, 23, 20, 0.08);
  --shadow-lg:      0 24px 56px rgba(13, 23, 20, 0.11);
  --shadow-glow:    0 8px 28px rgba(16, 185, 129, 0.28);

  /* Typography */
  --font-head:      'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-space:  84px 0;
  --max-width:      1200px;
  --transition:     all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Dark Mode Support ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page:        #08120e;
    --bg-surface:     #0c1a15;
    --bg-card:        #10221c;
    --bg-input:       #162e26;
    --text-main:      #f1f5f3;
    --text-muted:     #98a6a1;
    --text-light:     #64746f;
    --border:         rgba(16, 185, 129, 0.22);
    --border-hover:   rgba(16, 185, 129, 0.55);
    --glass-bg:       rgba(8, 18, 14, 0.88);
    --grad-hero:      linear-gradient(180deg, #08120e 0%, #0c1a15 100%);
    --grad-text:      linear-gradient(135deg, #4ade80 0%, #10b981 100%);
    --shadow-sm:      0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-md:      0 14px 34px rgba(0, 0, 0, 0.55);
    --shadow-lg:      0 24px 56px rgba(0, 0, 0, 0.65);
  }
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-muted);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography & Badges ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 60px;
  margin-bottom: 16px;
}

.badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.22;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 60px;
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.40);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-xs);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 140px 0 76px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.16;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.76;
  margin-bottom: 32px;
  max-width: 530px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat h3 {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.hero-stat p {
  font-size: 0.83rem;
  color: var(--text-light);
}

/* Hero Visual & Interactive Floating Cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-art {
  width: 100%;
  max-width: 480px;
  border-radius: 26px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.floating-pill {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.floating-pill.pill-1 {
  top: 15%;
  right: -5%;
}

.floating-pill.pill-2 {
  bottom: 12%;
  left: -5%;
}

.floating-pill-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-pill-text h4 {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.floating-pill-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ---------- Services Section ---------- */
.services {
  padding: var(--section-space);
  background: var(--bg-page);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
}

.service-card:hover .service-icon-box svg path {
  stroke: #ffffff;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-action-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.card-action-btn:hover {
  background: var(--grad-primary);
  color: #ffffff !important;
  border-color: transparent;
}

/* ---------- Why Choose Us & Process ---------- */
.why-section {
  padding: var(--section-space);
  background: var(--bg-surface);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.feature-check {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h4 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 22px;
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ---------- Frictionless Quick Consultation Form (CTA Section) ---------- */
.consult-cta {
  padding: var(--section-space);
  background: var(--bg-page);
}

.consult-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 56px 44px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.consult-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.consult-text p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.74;
  margin-bottom: 28px;
}

.consult-contact-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Frictionless 3-Field Quick Capture Form */
.quick-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.quick-form h3 {
  font-family: var(--font-head);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.quick-form p {
  font-size: 0.86rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 310px;
  margin-top: 12px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero-grid, .why-grid, .consult-card {
    grid-template-columns: 1fr;
  }

  .floating-pill {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-space: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid, .process-steps, .footer-grid {
    grid-template-columns: 1fr;
  }

  .consult-card {
    padding: 36px 22px;
  }
}
