/* =========================================================
   CareNest Home Healthcare — Stylesheet
   Style: Neumorphism (soft UI) on a navy / royal-blue / white palette
   Type: Fraunces (display) + Manrope (body)
   ========================================================= */

:root{
  /* -- base surface (the neumorphic canvas) -- */
  --surface:#E9EEF6;
  --surface-raised:#EEF2F9;
  --surface-deep:#E3E9F3;

  /* -- brand color tokens -- */
  --navy-950:#0B1C40;
  --navy-800:#122D63;
  --royal-600:#1E4FD6;
  --royal-500:#3660E8;
  --sky-400:#7FA6FA;
  --sky-100:#DEE9FC;
  --white:#FFFFFF;
  --ink:#16233F;
  --muted:#5D6B87;
  --line:#D7E1F2;

  /* -- icon accent variants -- */
  --icon-blue-bg:#DCE8FD;
  --icon-blue-fg:#1E4FD6;
  --icon-amber-bg:#FBE7D3;
  --icon-amber-fg:#C0631A;
  --icon-rose-bg:#FBDFE6;
  --icon-rose-fg:#CF3A61;

  /* -- neumorphic shadow system -- */
  --nm-light: rgba(255,255,255,0.85);
  --nm-dark: rgba(157,173,201,0.55);
  --shadow-xs: 4px 4px 10px var(--nm-dark), -4px -4px 10px var(--nm-light);
  --shadow-sm: 7px 7px 16px var(--nm-dark), -7px -7px 16px var(--nm-light);
  --shadow-md: 12px 12px 28px var(--nm-dark), -10px -10px 24px var(--nm-light);
  --shadow-lg: 20px 20px 46px var(--nm-dark), -16px -16px 40px var(--nm-light);
  --shadow-inset: inset 4px 4px 9px var(--nm-dark), inset -4px -4px 9px var(--nm-light);
  --shadow-inset-sm: inset 3px 3px 6px var(--nm-dark), inset -3px -3px 6px var(--nm-light);

  /* -- type -- */
  --font-display:"Fraunces", Georgia, serif;
  --font-body:"Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* -- layout -- */
  --container:1180px;
  --radius-sm:14px;
  --radius-md:20px;
  --radius-lg:30px;
  --radius-pill:999px;
  --header-h:80px;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--surface);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font:inherit;background:none;border:none;cursor:pointer;color:inherit;}
input,select,textarea{font:inherit;color:inherit;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;line-height:1.15;color:var(--navy-950);}
em{font-style:italic;color:var(--royal-600);font-weight:500;}
section[id]{scroll-margin-top:calc(var(--header-h) + 14px);}

svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}

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

/* ---------- reveal-on-scroll ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease, transform .7s ease;}
.reveal.is-visible{opacity:1;transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .reveal{opacity:1;transform:none;transition:none;}
}

/* ---------- typography utilities ---------- */
.eyebrow{
  font-family:var(--font-body);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--royal-600);
  margin-bottom:10px;
}
.section-head{max-width:640px;margin-bottom:44px;}
.section-head h2{font-size:clamp(1.7rem,3vw,2.4rem);}
.section-lead{margin-top:10px;color:var(--muted);font-size:1.05rem;}

/* ---------- status / badge pill (hero) ---------- */
.status-badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 18px 10px 14px;
  border-radius:var(--radius-pill);
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  font-size:.8rem;font-weight:700;letter-spacing:.03em;
  color:var(--navy-800);
  margin-bottom:26px;
}
.status-dot{
  width:9px;height:9px;border-radius:50%;
  background:#3BC17A;
  box-shadow:0 0 0 4px rgba(59,193,122,0.22);
  flex-shrink:0;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:15px 26px;
  border-radius:var(--radius-pill);
  font-weight:700;
  font-size:.95rem;
  white-space:nowrap;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg{width:18px;height:18px;flex-shrink:0;}
.btn-primary{
  background:linear-gradient(135deg,var(--royal-500),var(--royal-600));
  color:var(--white);
  box-shadow:8px 8px 20px rgba(30,79,214,0.35), -6px -6px 16px rgba(255,255,255,0.6);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:10px 10px 24px rgba(30,79,214,0.4), -6px -6px 16px rgba(255,255,255,0.65);}
.btn-primary:active{transform:translateY(0);box-shadow:var(--shadow-inset-sm);}
.btn-ghost{
  background:var(--surface);
  color:var(--navy-800);
  box-shadow:var(--shadow-sm);
}
.btn-ghost:hover{color:var(--royal-600);transform:translateY(-2px);box-shadow:var(--shadow-md);}
.btn-ghost:active{box-shadow:var(--shadow-inset-sm);transform:translateY(0);}
.btn-sm{padding:11px 20px;font-size:.85rem;}
.btn-block{width:100%;justify-content:center;}
.btn-light{background:var(--white);color:var(--royal-600);box-shadow:8px 8px 20px rgba(0,0,0,0.22), -6px -6px 14px rgba(255,255,255,0.12);}
.btn-light:hover{background:var(--sky-100);}
.btn-on-dark{background:rgba(255,255,255,0.08);color:var(--white);box-shadow:none;border:1.5px solid rgba(255,255,255,0.3);}
.btn-on-dark:hover{border-color:var(--white);background:rgba(255,255,255,0.14);}

.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;
  border-radius:var(--radius-pill);
  background:var(--surface);
  box-shadow:var(--shadow-xs);
  color:var(--navy-800);
  font-size:.82rem;
  font-weight:600;
}
.chip svg{width:15px;height:15px;color:var(--royal-600);}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky;top:0;z-index:50;
  height:var(--header-h);
  display:flex;align-items:center;
  background:rgba(233,238,246,0.82);
  backdrop-filter:blur(16px);
  transition:box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled{
  box-shadow:0 14px 30px -22px rgba(11,28,64,0.35);
  background:rgba(233,238,246,0.96);
}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:20px;}

.brand{display:flex;align-items:center;gap:12px;}
.brand-mark{
  width:42px;height:42px;color:var(--royal-600);flex-shrink:0;
  padding:6px;border-radius:14px;
  background:var(--surface);box-shadow:var(--shadow-xs);
}
.brand-text{display:flex;flex-direction:column;line-height:1.1;}
.brand-name{font-family:var(--font-display);font-weight:700;font-size:1.28rem;color:var(--navy-950);}
.brand-sub{font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:700;}

.main-nav{display:flex;align-items:center;gap:32px;}
.main-nav a{font-size:.92rem;font-weight:600;color:var(--navy-800);position:relative;padding:6px 0;}
.main-nav a::after{
  content:"";position:absolute;left:0;bottom:0;width:0;height:2px;
  background:var(--royal-600);transition:width .25s ease;
}
.main-nav a:hover::after,.main-nav a.active::after{width:100%;}
.main-nav a:hover{color:var(--royal-600);}

.header-actions{display:flex;align-items:center;gap:14px;}
.header-actions .btn-primary{background:linear-gradient(135deg,var(--navy-800),var(--navy-950));box-shadow:8px 8px 18px rgba(11,28,64,0.32), -5px -5px 14px rgba(255,255,255,0.55);}
.nav-toggle{
  display:none;width:42px;height:42px;align-items:center;justify-content:center;color:var(--navy-800);
  border-radius:12px;background:var(--surface);box-shadow:var(--shadow-xs);
}
.nav-toggle svg{width:20px;height:20px;}
.nav-toggle .icon-close{display:none;}
.nav-toggle[aria-expanded="true"] .icon-open{display:none;}
.nav-toggle[aria-expanded="true"] .icon-close{display:block;}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  padding:64px 0 100px;
  overflow:hidden;
}
.hero-pulse{display:none;}
.hero-grid{
  position:relative;
  display:grid;grid-template-columns:1.1fr .9fr;gap:64px;align-items:center;
}
.hero-title{font-size:clamp(2.4rem,4.6vw,3.6rem);letter-spacing:-.01em;color:var(--navy-950);}
.hero-text{margin-top:20px;font-size:1.08rem;color:var(--muted);max-width:52ch;}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px;}
.hero-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;}

/* ---- hero visual: neumorphic panel + floating badge ---- */
.hero-visual{position:relative;padding-bottom:34px;}
.hero-panel{
  position:relative;
  aspect-ratio:1/0.92;
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow-lg);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.hero-panel-pulse{position:absolute;inset:auto 0 14% 0;height:60px;color:var(--sky-100);opacity:.9;}
.hero-panel-pulse svg{width:100%;height:100%;}
.hero-panel-icon{width:38%;height:38%;color:var(--royal-600);position:relative;z-index:1;filter:drop-shadow(6px 10px 18px rgba(30,79,214,0.22));}
.hero-panel-quote{
  position:absolute;bottom:30px;left:0;right:0;text-align:center;
  font-family:var(--font-display);font-style:italic;font-weight:500;
  color:var(--navy-800);font-size:1rem;line-height:1.4;padding-inline:20px;
}

.hero-overlay-badge{
  position:absolute;left:24px;bottom:0;
  display:flex;align-items:center;gap:14px;
  background:var(--white);
  border-radius:var(--radius-md);
  padding:16px 22px 16px 16px;
  box-shadow:var(--shadow-md);
  max-width:78%;
}
.hero-overlay-icon{
  flex-shrink:0;width:42px;height:42px;border-radius:12px;
  background:var(--icon-blue-bg);color:var(--icon-blue-fg);
  display:flex;align-items:center;justify-content:center;
}
.hero-overlay-icon svg{width:20px;height:20px;}
.hero-overlay-badge div{display:flex;flex-direction:column;gap:2px;}
.hero-overlay-eyebrow{font-size:.68rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);}
.hero-overlay-title{font-size:.92rem;font-weight:700;color:var(--navy-950);}

/* =========================================================
   SECTION SHELLS
   ========================================================= */
.section{padding:100px 0;}
.section-alt{background:var(--surface-deep);}

/* ---------- pillars (vision/mission/motto) ---------- */
.pillar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}
.pillar-card{
  background:var(--surface);
  border-radius:var(--radius-lg);
  padding:38px 34px;
  box-shadow:var(--shadow-md);
  transition:transform .3s ease, box-shadow .3s ease;
}
.pillar-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);}
.pillar-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:56px;height:56px;border-radius:16px;
  background:linear-gradient(145deg,var(--navy-800),var(--navy-950));
  color:var(--white);
  box-shadow:6px 6px 14px rgba(11,28,64,0.3), -4px -4px 10px rgba(255,255,255,0.5);
  margin-bottom:22px;
}
.pillar-icon svg{width:24px;height:24px;}
.pillar-card h3{font-size:1.25rem;margin-bottom:12px;}
.pillar-card p{color:var(--muted);}

/* ---------- values ---------- */
.values-grid{
  display:grid;grid-template-columns:repeat(5,1fr);gap:22px;
}
.value-item{
  background:var(--surface);
  border-radius:var(--radius-md);
  padding:28px 22px;
  box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;align-items:flex-start;gap:12px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.value-item:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);}
.value-icon{
  width:46px;height:46px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  background:var(--icon-blue-bg);color:var(--icon-blue-fg);
}
.value-icon.is-rose{background:var(--icon-rose-bg);color:var(--icon-rose-fg);}
.value-icon.is-amber{background:var(--icon-amber-bg);color:var(--icon-amber-fg);}
.value-icon svg{width:20px;height:20px;}
.value-name{font-weight:700;color:var(--navy-950);font-size:.98rem;}
.value-desc{font-size:.85rem;color:var(--muted);}

/* ---------- services ---------- */
.services-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:20px;
}
.service-row{
  display:flex;gap:18px;align-items:flex-start;
  padding:26px;
  background:var(--surface);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease;
}
.service-row:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);}
.service-icon{
  flex-shrink:0;
  width:50px;height:50px;border-radius:15px;
  display:flex;align-items:center;justify-content:center;
  background:var(--icon-blue-bg);color:var(--icon-blue-fg);
}
.service-icon.is-rose{background:var(--icon-rose-bg);color:var(--icon-rose-fg);}
.service-icon.is-amber{background:var(--icon-amber-bg);color:var(--icon-amber-fg);}
.service-icon svg{width:22px;height:22px;}
.service-row h3{font-size:1.06rem;margin-bottom:6px;}
.service-row p{color:var(--muted);font-size:.92rem;}

/* ---------- process ---------- */
.process-grid{
  display:grid;grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:center;gap:8px;
}
.process-step{
  text-align:center;padding:32px 22px;
  background:var(--surface);border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}
.process-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:52px;height:52px;border-radius:50%;
  background:linear-gradient(145deg,var(--royal-500),var(--royal-600));
  color:var(--white);
  box-shadow:6px 6px 14px rgba(30,79,214,0.35), -4px -4px 10px rgba(255,255,255,0.55);
  font-family:var(--font-display);font-weight:700;font-size:1.05rem;
  margin-bottom:18px;
}
.process-step h3{font-size:1.1rem;margin-bottom:8px;}
.process-step p{color:var(--muted);font-size:.92rem;}
.process-connector{height:2px;background:repeating-linear-gradient(90deg,var(--sky-400) 0 8px,transparent 8px 14px);}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band{
  position:relative;
  background:linear-gradient(135deg,var(--navy-950),var(--royal-600) 130%);
  color:var(--white);
  padding:92px 0;
  overflow:hidden;
}
.cta-pulse{position:absolute;inset:0;color:rgba(255,255,255,0.08);}
.cta-pulse svg{width:100%;height:100%;}
.cta-inner{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;gap:30px;}
.cta-inner h2{color:var(--white);font-size:clamp(1.8rem,3.6vw,2.6rem);}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:start;}
.contact-list{margin-top:32px;display:flex;flex-direction:column;gap:22px;}
.contact-list li{display:flex;align-items:flex-start;gap:16px;}
.contact-icon{
  flex-shrink:0;width:46px;height:46px;border-radius:14px;
  background:var(--surface);color:var(--royal-600);
  box-shadow:var(--shadow-xs);
  display:flex;align-items:center;justify-content:center;
}
.contact-icon svg{width:20px;height:20px;}
.contact-list .contact-label{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700;margin-bottom:2px;}
.contact-list a:hover{color:var(--royal-600);}

.contact-form{
  background:var(--surface);
  border-radius:var(--radius-lg);
  padding:38px;
  box-shadow:var(--shadow-md);
  display:flex;flex-direction:column;gap:20px;
}
.form-row{display:flex;flex-direction:column;gap:8px;}
.form-row label{font-size:.85rem;font-weight:700;color:var(--navy-800);}
.form-row input,.form-row select,.form-row textarea{
  padding:14px 16px;
  border-radius:var(--radius-sm);
  border:none;
  background:var(--surface);
  box-shadow:var(--shadow-inset-sm);
  font-size:.95rem;
  transition:box-shadow .2s ease;
}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{
  outline:none;box-shadow:var(--shadow-inset-sm), 0 0 0 3px rgba(30,79,214,0.25);
}
.form-row textarea{resize:vertical;min-height:110px;}
.form-note{font-size:.8rem;color:var(--muted);text-align:center;}
.form-note.is-success{color:var(--royal-600);font-weight:700;}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{background:var(--navy-950);color:rgba(255,255,255,0.82);padding-top:72px;}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:48px;padding-bottom:52px;border-bottom:1px solid rgba(255,255,255,0.12);}
.footer-brand .brand-name{color:var(--white);}
.footer-brand .brand-sub{color:rgba(255,255,255,0.55);}
.footer-brand .brand-mark{color:var(--sky-400);background:rgba(255,255,255,0.06);box-shadow:none;}
.footer-tagline{margin-top:18px;font-family:var(--font-display);color:rgba(255,255,255,0.85);font-size:1.02rem;}
.footer-tagline em{color:var(--sky-400);}
.footer-whatsapp{
  display:inline-flex;align-items:center;gap:10px;margin-top:22px;
  padding:11px 18px;border-radius:var(--radius-pill);
  border:1.5px solid rgba(255,255,255,0.25);
  font-size:.85rem;font-weight:700;
  transition:border-color .2s ease, background .2s ease;
}
.footer-whatsapp svg{width:16px;height:16px;}
.footer-whatsapp:hover{border-color:var(--sky-400);background:rgba(255,255,255,0.06);}

.footer-col{display:flex;flex-direction:column;gap:14px;}
.footer-col h4{color:var(--white);font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px;font-family:var(--font-body);}
.footer-col a,.footer-col span{font-size:.92rem;color:rgba(255,255,255,0.75);}
.footer-col a:hover{color:var(--sky-400);}

.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
  padding:26px 24px;font-size:.82rem;color:rgba(255,255,255,0.5);
}
.footer-motto{font-style:italic;font-family:var(--font-display);}

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.back-top{
  position:fixed;right:24px;bottom:24px;z-index:60;
  width:48px;height:48px;border-radius:50%;
  background:var(--surface);color:var(--navy-950);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-md);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .2s ease;
}
.back-top:hover{box-shadow:var(--shadow-lg);}
.back-top:active{box-shadow:var(--shadow-inset-sm);}
.back-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);}
.back-top svg{width:20px;height:20px;}

.whatsapp-float{
  position:fixed;left:24px;bottom:24px;z-index:60;
  width:56px;height:56px;border-radius:50%;
  background:#25D366;color:var(--white);
  display:flex;align-items:center;justify-content:center;
  box-shadow:8px 8px 20px rgba(37,211,102,0.4), -4px -4px 12px rgba(255,255,255,0.5);
  transition:transform .2s ease;
}
.whatsapp-float:hover{transform:scale(1.08);}
.whatsapp-float svg{width:26px;height:26px;}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;text-align:left;}
  .hero-visual{order:-1;max-width:420px;margin-inline:auto;width:100%;}
  .pillar-grid{grid-template-columns:1fr;}
  .values-grid{grid-template-columns:repeat(3,1fr);}
  .services-grid{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;gap:44px;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media (max-width:760px){
  :root{--header-h:70px;}
  .main-nav{
    position:fixed;top:var(--header-h);left:0;right:0;bottom:0;
    background:var(--surface);
    display:flex;flex-direction:column;align-items:flex-start;gap:2px;
    padding:20px 24px 40px;
    transform:translateY(-12px);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
    overflow-y:auto;
  }
  .main-nav.is-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;}
  .main-nav a{width:100%;padding:16px 4px;border-bottom:1px solid var(--line);font-size:1.05rem;}
  .header-actions .btn-sm span{display:none;}
  .header-actions .btn-sm{padding:11px;}
  .header-actions .btn-sm svg{width:18px;height:18px;}
  .nav-toggle{display:flex;}

  .values-grid{grid-template-columns:repeat(2,1fr);}
  .process-grid{grid-template-columns:1fr;}
  .process-connector{width:2px;height:34px;margin-inline:auto;background:repeating-linear-gradient(180deg,var(--sky-400) 0 8px,transparent 8px 14px);}
  .footer-grid{grid-template-columns:1fr;gap:36px;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
  .whatsapp-float{width:50px;height:50px;left:18px;bottom:18px;}
  .back-top{right:18px;bottom:18px;}
  .hero-overlay-badge{left:14px;padding:13px 18px 13px 13px;max-width:88%;}
}

@media (max-width:520px){
  .hero{padding:48px 0 76px;}
  .section{padding:76px 0;}
  .values-grid{grid-template-columns:1fr 1fr;}
  .pillar-card{padding:30px 26px;}
  .hero-overlay-title{font-size:.84rem;}
}
