/* =========================================================
   Sewa Home Care — Design Tokens
   Palette (monochromatic blue family + near-black + off-white):
     --ink:        #0B1220  (near-black, text/dark sections)
     --blue-900:   #0B3B66  (deep blue)
     --blue-700:   #0B5FA5  (primary blue)
     --blue-500:   #2E86C1  (mid blue)
     --blue-300:   #7FB8E0  (light blue)
     --blue-100:   #EAF3FB  (pale blue surface)
     --paper:      #F6F9FC  (page background)
     --accent:     #3DA9FC  (highlight / glow blue)
   Type:
     Display — 'Fraunces' (warm serif, used for headlines only)
     Body/UI — 'Inter'
   ========================================================= */

:root{
  --ink: #0B1220;
  --blue-900: #0B3B66;
  --blue-700: #0B5FA5;
  --blue-600: #14669C;
  --blue-500: #2E86C1;
  --blue-300: #7FB8E0;
  --blue-100: #EAF3FB;
  --paper: #F6F9FC;
  --accent: #3DA9FC;
  --radius: 14px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3, .font-display{
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-accent{ color: var(--blue-500); }

a{ text-decoration: none; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

/* ---------- Signature: pulse scroll progress bar ---------- */
.pulse-progress{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  z-index: 1050;
  background: transparent;
  pointer-events: none;
}
.pulse-progress svg{
  width: 100%;
  height: 100%;
  display: block;
}
.pulse-progress path{
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.1s linear;
}

/* ---------- Navbar ---------- */
#mainNav{
  background: rgba(246, 249, 252, 0.9);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: box-shadow .25s ease, padding .25s ease;
  top: 4px;
}
#mainNav.scrolled{
  box-shadow: 0 6px 24px rgba(11,18,32,0.08);
  padding: 8px 0;
}
.navbar-brand{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo{
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 50%;
}
.brand-mark{
  color: var(--blue-500);
  font-size: 1.2rem;
}
.nav-link{
  font-weight: 500;
  color: var(--ink) !important;
  margin: 0 0.6rem;
  position: relative;
}
.nav-link::after{
  content:"";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--blue-500);
  transition: width .2s ease;
}
.nav-link:hover::after{ width: 100%; }

.btn-call{
  background: var(--blue-700);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-call:hover{ background: var(--blue-900); }

/* ---------- Buttons ---------- */
.btn-primary-custom{
  background: var(--blue-700);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(11,95,165,0.28);
}
.btn-primary-custom:hover{ background: var(--blue-900); color:#fff; }

.btn-outline-custom{
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-weight: 600;
}
.btn-outline-custom:hover{
  background: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 168px 0 40px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46,134,193,0.14), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero-title{
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1.2rem;
}
.underline-accent{
  color: var(--blue-700);
  background: linear-gradient(transparent 65%, var(--blue-100) 65%);
}
.hero-lead{
  font-size: 1.12rem;
  color: #3A4453;
  max-width: 46ch;
}
.hero-stats{ max-width: 420px; }
.stat-num{
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  color: var(--blue-700);
  font-weight: 600;
}
.stat-label{
  font-size: 0.78rem;
  color: #5A6472;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual{
  display: flex;
  justify-content: center;
}
.pulse-orb{ width: 100%; max-width: 380px; }
.orb-ring{
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 1;
  opacity: 0.5;
}
.orb-ring-2{ stroke: var(--blue-500); opacity: 0.35; }
.orb-fill{
  fill: var(--blue-100);
  stroke: var(--blue-500);
  stroke-width: 1.5;
}
.orb-pulse{
  fill: none;
  stroke: var(--blue-700);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-pulse 2.6s ease-in-out infinite;
}
.orb-icon{
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  fill: var(--blue-700);
  opacity: 0.25;
}
@keyframes draw-pulse{
  0%{ stroke-dashoffset: 400; }
  55%{ stroke-dashoffset: 0; }
  100%{ stroke-dashoffset: -400; }
}
@media (prefers-reduced-motion: reduce){
  .orb-pulse{ animation: none; stroke-dashoffset: 0; }
}

.hero-wave{ line-height: 0; margin-top: 20px; }
.hero-wave svg{ width: 100%; height: 60px; display:block; }
.hero-wave path{ fill: #fff; }

/* ---------- Services ---------- */
.services-section{
  background: #fff;
  padding: 90px 0 100px;
}
.section-heading{ max-width: 640px; margin: 0 auto 3rem; }
.section-heading h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-sub{ color: #5A6472; }

.service-card{
  background: var(--blue-100);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11,18,32,0.1);
  background: #fff;
  border-color: var(--blue-300);
}
.service-icon{
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.service-card h3{ font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p{ color: #4C5666; font-size: 0.95rem; margin-bottom: 0; }

/* ---------- About ---------- */
.about-section{ padding: 90px 0; background: var(--paper); }
.about-lead{ color: #3A4453; font-size: 1.05rem; }
.check-list{ list-style: none; padding: 0; margin-top: 1.5rem; }
.check-list li{
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.85rem;
  color: #333d4a;
}
.check-list i{ color: var(--blue-500); font-size: 1.1rem; }

.about-panel{
  background: var(--ink);
  border-radius: 18px;
  padding: 2.2rem;
  color: #fff;
}
.about-panel-row{
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.about-panel-row:last-child{ border-bottom: none; }
.about-panel-row i{
  font-size: 1.3rem; color: var(--accent);
  width: 40px; text-align: center;
}
.about-panel-row strong{ display:block; font-size: 0.85rem; color: var(--blue-300); }
.about-panel-row span{ font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact-section{ padding: 90px 0; background: #fff; }
.contact-info-card{
  background: var(--blue-100);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.contact-info-item{
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0;
  color: var(--ink);
  font-weight: 500;
}
.contact-info-item i{ color: var(--blue-700); }
.contact-info-item a{ color: var(--blue-700); }

.contact-form{
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #E3EBF3;
}
.contact-form .form-control,
.contact-form .form-select{
  border-radius: 10px;
  border: 1px solid #D7E2ED;
  padding: 0.65rem 0.9rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus{
  border-color: var(--blue-500);
  box-shadow: 0 0 0 0.2rem rgba(46,134,193,0.18);
}
.contact-form label{ font-weight: 600; font-size: 0.9rem; color: #333d4a; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: #C4CEDB;
  padding: 70px 0 24px;
}
.footer-logo{
  height: 68px;
  width: 68px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  margin-bottom: 0.9rem;
  background: #fff;
  padding: 4px;
}
.footer-brand{
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 22px rgba(61,169,252,0.55);
}
.footer-tag{ color: #8D9BAC; max-width: 32ch; }
.footer-heading{
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 1.1rem;
}
.footer-links{ list-style: none; padding: 0; margin: 0; }
.footer-links li{
  padding: 0.35rem 0;
  color: #B7C2D0;
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-links a{ color: #B7C2D0; }
.footer-links a:hover{ color: var(--accent); }
.site-footer hr{ border-color: rgba(255,255,255,0.12); margin: 2.4rem 0 1.4rem; }
.footer-bottom{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: #7C8898;
}
.btn-back-top{
  background: var(--blue-700);
  color: #fff;
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.btn-back-top:hover{ background: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, .nav-link:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px){
  .hero{ padding-top: 140px; }
  .navbar-collapse{
    background: #fff;
    margin-top: 12px;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11,18,32,0.12);
  }
  .footer-bottom{ flex-direction: column; gap: 1rem; text-align: center; }
}
