/* =========================================================
   RO ENTERPRISES — Water Purifier Service, Bangalore
   Design system: single sky-blue accent (trust, water, clean)
   on a white/pale-blue base, LOCKED light theme (no dark-mode
   variant by design). Lexend for display type, Source Sans 3
   for body. Radius lock: pill CTAs, 20px hero-form/about-stat
   card, hairline-divided service/process rows (no card
   shadows there, by design, to stay visually distinct from
   boxed-card compositions). Motion: subtle, reduced-motion safe.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ---------- Tokens (light theme only, intentionally locked) ---------- */
:root {
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --accent-light: #38bdf8;
  --whatsapp: #25d366;

  --surface: #ffffff;
  --surface-alt: #f0f9ff;
  --surface-tint: #e6f4fc;
  --surface-inverse: #0c4a6e;
  --text: #0f172a;
  --text-muted: #48586e;
  --text-inverse: #f0f9ff;
  --text-inverse-muted: #bae0f7;
  --border: rgba(15, 23, 42, 0.09);
  --shadow-color: 201 60% 30%;

  --r-card: 20px;
  --r-input: 10px;
  --r-pill: 999px;
  --container: 1200px;
  --font-head: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.section-head p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }

.btn-call {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px hsl(var(--shadow-color) / 0.55);
}
.btn-call:hover { background: var(--accent-dark); box-shadow: 0 12px 28px -8px hsl(var(--shadow-color) / 0.65); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp:hover { background: #1fb958; }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.whatsapp { background: var(--whatsapp); color: #fff; }
.icon-btn.whatsapp:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 24px -18px rgba(2, 132, 199, 0.5); }

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

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-word span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.nav-cta {
  color: var(--accent-dark);
  padding: 8px 16px;
  border: 1.5px solid var(--surface-tint);
  background: var(--surface-tint);
  border-radius: var(--r-pill);
}
.main-nav a.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.header-ctas { display: flex; align-items: center; gap: 10px; }
.header-call-text { display: none; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-call-text { display: inline; }
}

/* ---------- Hero + Booking form (above the fold, form-first) ---------- */
.hero { padding: 32px 0 56px; background: var(--surface); }
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 980px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 1.45rem + 2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  max-width: 15ch;
}
.hero-copy .lede {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.55;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-trust svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* Booking-form card: distinct materiality from the section rows below
   (colored top edge, soft elevation, not a hairline-divided list).
   Accent strip is a clipped pseudo-element, not a border-top, so it
   doesn't clash with the card's rounded corners. */
.hero-form-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 30px 60px -32px hsl(var(--shadow-color) / 0.35);
  padding: 26px 24px;
}
.hero-form-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
@media (min-width: 560px) { .hero-form-wrap { padding: 30px 30px; } }

.hero-form { display: grid; gap: 15px; }
.hero-form-head h2 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-form-head p { margin-top: 4px; color: var(--text-muted); font-size: 0.92rem; }
.hero-form-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.hero-form-note a { font-weight: 700; color: var(--accent-dark); }

/* ---------- Form fields (shared) ---------- */
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.form-row .req { font-weight: 500; color: var(--text-muted); font-size: 0.8rem; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-input);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #8a97a9; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.16);
}
.form-row select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348586e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}
.form-row textarea { min-height: 72px; resize: vertical; }

.form-error { display: none; font-size: 0.8rem; color: #dc2626; font-weight: 600; }
.form-row.has-error input,
.form-row.has-error select { border-color: #dc2626; }
.form-row.has-error .form-error { display: block; }

.form-status {
  display: grid;
  grid-template-rows: 0fr;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  overflow: hidden;
  transition: grid-template-rows 0.3s var(--ease);
}
.form-status.show { grid-template-rows: 1fr; padding-top: 2px; }
.form-status > * { overflow: hidden; min-height: 0; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }
.form-status a { text-decoration: underline; }

/* ---------- Services: hairline-divided rows (no boxed cards) ---------- */
.services { padding: 64px 0; background: var(--surface); }

.services-list { border-top: 1px solid var(--border); }
@media (min-width: 700px) { .services-list { display: grid; grid-template-columns: 1fr 1fr; } }

.service-row {
  display: flex;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) { .service-row:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--border); } .service-row:nth-child(even) { padding-left: 28px; } }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; }

.service-row h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.service-row p { margin-top: 7px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- How it works: light tinted section, numeral-led (no dark
   inverse block, no circle badges, no connector lines) ---------- */
.process { padding: 64px 0; background: var(--surface-alt); }

.process-grid {
  display: grid;
  gap: 30px 24px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.process-step p { margin-top: 6px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }

/* ---------- About + Why us (merged, compact) ---------- */
.about { padding: 64px 0 72px; background: var(--surface); }
.about-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.3fr 0.7fr; gap: 52px; } }

.about h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 20ch;
}
.about p { margin-top: 14px; color: var(--text-muted); font-size: 1.01rem; line-height: 1.6; max-width: 58ch; }

.about-checklist { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.about-checklist li { display: flex; align-items: center; gap: 7px; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.about-checklist svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.about-stat {
  background: var(--surface-tint);
  border-radius: var(--r-card);
  padding: 30px 26px;
  text-align: center;
}
.about-stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.7rem + 1.4vw, 2.7rem);
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}
.about-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-inverse); padding: 52px 0 24px; }
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand .brand-word { color: var(--text-inverse); font-size: 1rem; }
.footer-brand .brand-word span { color: var(--text-inverse-muted); }
.footer-tagline { margin-top: 16px; color: var(--text-inverse-muted); font-size: 0.95rem; max-width: 38ch; line-height: 1.55; }

.footer-col h4 { font-family: var(--font-head); font-size: 0.86rem; font-weight: 700; color: var(--text-inverse); letter-spacing: 0.02em; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { color: var(--text-inverse-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--text-inverse); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(240, 249, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--text-inverse-muted);
  font-size: 0.85rem;
}

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -16px rgba(2, 132, 199, 0.4);
}
.mobile-bar .btn { flex: 1; }

@media (min-width: 1024px) { .mobile-bar { display: none; } }
