/* ===== RO Care Bharat — custom styles ===== */

:root {
  --brand: #1E63E9;
  --brand-dark: #1551C9;
  --navy: #0E2150;
  --navy-deep: #07153F;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;   /* offset sticky header when jumping to anchors */
}
/* Prevent any horizontal scroll on mobile (marquee, skyline svg, blur halos) */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg { max-width: 100%; }

/* Hero background — soft blue wash fading to white */
.hero-bg {
  background:
    radial-gradient(900px 500px at 75% 18%, rgba(30, 99, 233, 0.10), transparent 60%),
    linear-gradient(180deg, #EAF2FE 0%, #F4F8FF 45%, #FFFFFF 100%);
}

/* Section pill / eyebrow label */
.pill {
  display: inline-block;
  background: var(--brand-light, #EAF2FE);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 6px 16px;
  border-radius: 9999px;
}

/* 100% safe-water badge (dark shield) */
.badge-shield {
  background: linear-gradient(160deg, #0E2150 0%, #07153F 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  /* shield-ish bottom point */
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  padding-bottom: 28px !important;
}

/* RO type cards */
.ro-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px -12px rgba(16, 32, 74, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(30, 99, 233, 0.35);
  border-color: rgba(30, 99, 233, 0.25);
}

/* Service grid cards */
.svc-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 6px 18px -14px rgba(16, 32, 74, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(30, 99, 233, 0.32);
}
.svc-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(150deg, #2A74F0 0%, #1551C9 100%);
  box-shadow: 0 8px 16px -8px rgba(30, 99, 233, 0.6);
}

/* Book Technician button on RO type cards */
.book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #22c55e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px -6px rgba(34, 197, 94, 0.6);
  white-space: nowrap;
}
.book-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* Brand boxes */
.brand-box {
  background: #fff;
  border-radius: 12px;
  padding: 14px 22px;
  min-width: 110px;
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.brand-box:hover { transform: translateY(-3px); }

/* Carousel dots */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #c9d6ec;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dot-active {
  width: 22px;
  background: var(--brand);
}

/* Blank image slot (shown until admin uploads an image) */
.blank-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #c3d3ee;
  background: #f4f8ff;
  color: #9bb0d3;
  border-radius: 16px;
  text-align: center;
  padding: 12px;
}
.blank-img i { font-size: 28px; }
.blank-img span { font-size: 11px; font-weight: 500; letter-spacing: 0.03em; }

/* ===== CTA / Service-area card ===== */
.cta-area { z-index: 1; }

/* soft light burst behind the shield */
.cta-glow {
  position: absolute;
  inset: -10% auto -10% 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 45%, transparent 70%);
  pointer-events: none;
}

/* glossy 3D-ish shield */
.cta-shield {
  width: 118px;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 6px;
  background: linear-gradient(165deg, #ffffff 0%, #cfe1ff 38%, #7facf5 78%, #4f86ee 100%);
  border: 2px solid rgba(255, 255, 255, 0.75);
  clip-path: polygon(0 9%, 50% 0, 100% 9%, 100% 58%, 50% 100%, 0 58%);
  box-shadow:
    inset 0 6px 14px rgba(255, 255, 255, 0.85),
    inset 0 -10px 18px rgba(30, 99, 233, 0.35),
    0 16px 34px -10px rgba(7, 21, 63, 0.55);
}
.cta-shield-drop {
  font-size: 26px;
  color: #2f74f0;
  filter: drop-shadow(0 2px 2px rgba(255,255,255,0.7));
}
.cta-shield-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: #0E2150;
}
.cta-shield-dots {
  display: flex;
  gap: 4px;
  font-size: 7px;
  color: #4f86ee;
  margin-top: 1px;
}

/* faint city skyline behind the service-area panel */
.cta-skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 340px;
  height: auto;
  fill: #f5a524;
  opacity: 0.16;
  pointer-events: none;
}

/* Completed projects — sliding marquee (right → left) */
.proj-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.proj-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: proj-scroll calc(var(--proj-count, 6) * 4.5s) linear infinite;
}
.proj-marquee:hover .proj-track { animation-play-state: paused; }
@keyframes proj-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.project-tile {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  background: #f4f8ff;
  box-shadow: 0 6px 18px -14px rgba(16, 32, 74, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-tile img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-tile:hover {
  box-shadow: 0 22px 40px -18px rgba(30, 99, 233, 0.35);
}
.project-tile:hover img { transform: scale(1.06); }
@media (max-width: 640px) {
  .project-tile { width: 210px; }
  .project-tile img { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .proj-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* Enquiry form inputs */
.enq-input {
  width: 100%;
  border: 1.5px solid #dbe4f2;
  background: #f8fbff;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  color: #10204A;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.enq-input::placeholder { color: #9bb0d3; }
.enq-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 99, 233, 0.15);
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 26px -8px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0.45); }
  70%  { box-shadow: 0 10px 26px -8px rgba(37,211,102,0.7), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px -8px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 640px) {
  .wa-float { width: 52px; height: 52px; font-size: 28px; right: 16px; bottom: 16px; }
}
