/* =========================================================
   WashXperts Services — Stylesheet
   Doorstep washing machine repair, Hyderabad & Secunderabad
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #F7FAFA;
  --color-bg-alt: #EEF5F4;
  --color-surface: #FFFFFF;
  --color-navy: #123138;
  --color-navy-soft: #1B4148;
  --color-ink: #16232B;
  --color-ink-soft: #4E6067;
  --color-teal: #0E8A82;
  --color-teal-dark: #0B6F68;
  --color-teal-tint: #E4F3F1;
  --color-orange: #E8622C;
  --color-orange-dark: #C94F1F;
  --color-orange-tint: #FCEAE2;
  --color-border: #DCE6E5;
  --color-white: #FFFFFF;

  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 14px rgba(18, 49, 56, 0.07);
  --shadow-lift: 0 14px 34px rgba(18, 49, 56, 0.16);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.media-frame img { width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--color-ink-soft); }
p:last-child { margin-bottom: 0; }

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

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

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

section { padding: 30px 0; }
@media (max-width: 720px) {
  section { padding: 44px 0; }
}

.eyebrow-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  background: var(--color-teal-tint);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 720px) {
  .section-head { margin-bottom: 26px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-call {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(232, 98, 44, 0.28);
}
.btn-call:hover { background: var(--color-orange-dark); }

.btn-whatsapp {
  background:#5ec870;
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(14, 138, 130, 0.24);
}
.btn-whatsapp:hover { background: var(--color-teal-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-navy);
}
.btn-ghost:hover { border-color: var(--color-teal); color: var(--color-teal-dark); }

.btn-small { padding: 10px 18px; font-size: 0.9rem; }

@media (max-width: 480px) {
  .hero-ctas,
  .cta-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn,
  .cta-actions .btn,
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-navy);
}
.logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo .logo-mark svg { width: 20px; height: 20px; }
.logo .logo-text span { display: block; }
.logo .logo-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.02em;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--color-teal-dark);
  border-bottom-color: var(--color-teal);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--color-bg-alt); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-call span,
  .header-actions .btn-whatsapp span { display: none; }
  .header-actions .btn { padding: 12px; }
}

@media (max-width: 420px) {
  .logo { font-size: 1.02rem; gap: 8px; }
  .logo .logo-mark { width: 34px; height: 34px; }
  .logo .logo-text span.logo-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 52px 0 68px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { animation: rise 0.7s ease both; }
.hero-copy p.lead { font-size: 1.12rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-navy);
}
.trust-badge svg { width: 22px; height: 22px; color: var(--color-teal); flex-shrink: 0; }

.hero-media {
  position: relative;
  animation: rise 0.8s ease 0.1s both;
}
.hero-media .media-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lift);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 6/5; }
.hero-tag {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 24px rgba(232, 98, 44, 0.3);
  font-size: 0.95rem;
  line-height: 1.3;
}
.hero-tag small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.9; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal (fade-up), progressively enhanced via JS ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto 8px; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0 56px; }
  .hero-tag {
    left: 8px;
    bottom: -14px;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

/* ---------- Problems grid ---------- */
.problems-section { background: var(--color-navy); color: var(--color-white); }
.problems-section .section-head h2, .problems-section .section-head p { color: var(--color-white); }
.problems-section .section-head p { color: rgba(255,255,255,0.72); }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.problem-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}
.problem-card svg { width: 26px; height: 26px; color: var(--color-orange); margin-bottom: 14px; }
.problem-card h3 { color: var(--color-white); font-size: 1.02rem; margin-bottom: 8px; }
.problem-card p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0; }

@media (max-width: 900px) {
  .problems-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .problems-grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.service-card .service-media { aspect-ratio: 4/3; overflow: hidden; }
.service-card .service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .service-body { padding: 26px; }
.service-card ul { margin: 16px 0 20px; display: grid; gap: 10px; }
.service-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--color-ink-soft);
}
.service-card ul li svg { width: 18px; height: 18px; color: var(--color-teal); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Why choose us ---------- */
.why-section { background: var(--color-bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.why-item { display: flex; gap: 16px; }
.why-item .why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-teal-tint);
  color: var(--color-teal-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.why-icon svg { width: 22px; height: 22px; }
.why-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
.why-item p { font-size: 0.94rem; }

@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Areas served ---------- */
.areas-section .container { }
.areas-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.area-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-navy);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
}
.area-chip:hover{
background: #5ec870;
}
@media (max-width: 820px) {
  .areas-wrap { grid-template-columns: 1fr; }
}

/* ---------- About snippet ---------- */
.about-snip { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.about-snip .media-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
@media (max-width: 900px) {
  .about-snip { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-teal-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--color-white); background: #5ec870;}
.cta-band .btn-ghost:hover { border-color: var(--color-white); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .cta-band { padding: 32px 26px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 46px 0;
}
.page-hero .container { animation: rise 0.6s ease both; }
.page-hero h1 { color: var(--color-white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 600; }

@media (max-width: 720px) {
  .page-hero { padding: 36px 0; }
}

/* ---------- Prose pages (About / Services / Legal) ----------
   NOTE: the text column is capped at 900px on the block itself
   (not on .container) so it stays LEFT-ALIGNED with the page-hero
   heading/breadcrumb above it, instead of being independently
   centered inside the full-width container. */
.prose-block + .prose-block { margin-top: 32px; }
.prose-block ul, .legal-body ul { margin: 0 0 1em; padding-left: 0; display: grid; gap: 10px; }
.prose-block ul li, .legal-body ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-ink-soft);
}
.prose-block ul li svg, .legal-body ul li svg { width: 18px; height: 18px; color: var(--color-teal); margin-top: 3px; flex-shrink: 0; }
.prose-block h2 { margin-top: 30px; }
.legal-body { max-width: 900px; }

.people-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 0;
}
.people-strip .media-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--color-border); }
@media (max-width: 720px) { .people-strip { grid-template-columns: 1fr; } }

/* Tighten the gap between a prose section and the CTA band that follows it
   on inner pages — both share the same background, so stacked section
   padding reads as an empty broken gap instead of intentional spacing. */
.prose-section + section { padding-top: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--color-bg-alt); }
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--color-teal); flex-shrink: 0; margin-top: 2px; }
.contact-row h3 { font-size: 0.98rem; margin-bottom: 3px; }
.contact-row p { font-size: 0.92rem; margin: 0; }
.contact-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Enquiry form (submits straight to WhatsApp) ---------- */
.enquiry-form { display: grid; gap: 16px; margin-top: 22px; }
.enquiry-form .form-field { display: grid; gap: 6px; }
.enquiry-form label { font-size: 0.88rem; font-weight: 600; color: var(--color-navy); }
.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-tint);
}
.enquiry-form textarea { resize: vertical; min-height: 90px; }
.enquiry-form .btn { width: 100%; justify-content: center; border: none; cursor: pointer; }
.enquiry-form .form-note { font-size: 0.82rem; color: var(--color-ink-soft); margin-top: -4px; }
.enquiry-section { padding: 8px 0 12px; }
.enquiry-section .contact-card { max-width: 560px; margin: 0 auto; text-align: left; }
.enquiry-section .section-head { text-align: center; margin-bottom: 26px; }

/* ---------- Legal pages ---------- */
.legal-body h2 { margin-top: 2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.96rem; }
.legal-meta { color: var(--color-ink-soft); font-size: 0.88rem; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo { color: var(--color-white); }
.footer-brand .logo .logo-mark { background: var(--color-teal); }
.footer-brand p { color: rgba(255,255,255,0.62); margin-top: 14px; max-width: 32ch; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp + mobile sticky bar ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(14, 138, 130, 0.4);
  z-index: 200;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; }

.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 10px 14px;
  gap: 10px;
  box-shadow: 0 -8px 20px rgba(18,49,56,0.12);
}
@media (max-width: 720px) {
  .mobile-sticky-bar { display: flex; }
  .whatsapp-float { bottom: 82px; }
  body { padding-bottom: 68px; }
}
.mobile-sticky-bar .btn { flex: 1; justify-content: center; }