/* Astor Health — Private Home Care landing page (v3 draft 2026-11-11: more photography)
   Brand colours taken from astorhealth.com (logo purple/green/blue). */
:root {
  --purple: #642f80;
  --purple-600: #673682;
  --purple-400: #8859a2;
  --purple-50: #f5eff8;
  --green: #3e8153;
  --green-400: #5aab74;
  --blue: #346ef6;
  --ink: #2a2230;
  --muted: #5f5866;
  --line: #e6e0ea;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(68, 30, 90, .08);
  --max: 1120px;
  --font: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-600); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--purple); font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.center .lead { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 46px; width: auto; }
.header-call { text-align: right; line-height: 1.2; text-decoration: none; }
.header-call small { display: block; color: var(--muted); font-size: .75rem; }
.header-call strong { color: var(--purple); font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 6px 18px rgba(100, 47, 128, .3); }
.btn-primary:hover { background: var(--purple-600); }
.btn-ghost { background: #fff; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple-50); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--purple-50), #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .sub { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); flex: none; }
.hero-photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; } /* centre caregiver+client pair in 4:3 crop */

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--purple-50); color: var(--purple); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; }
/* v3: photo on top of each card; icon overlaps the photo edge */
.card { overflow: hidden; }
.card-photo { display: block; height: auto; width: calc(100% + 52px); max-width: none; margin: -26px -26px 0; aspect-ratio: 16 / 10; object-fit: cover; }
.card .card-photo + .icon { position: relative; margin-top: -23px; border: 3px solid #fff; box-sizing: content-box; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin-top: 28px; }
.service { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--green-400); color: #fff; display: grid; place-items: center; flex: none; margin-top: 2px; }
.service .dot svg { width: 18px; height: 18px; }
.service h3 { margin-bottom: .2em; }
.service p { margin: 0; color: var(--muted); }
/* v3: real Astor photo beside the services list */
.services-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; margin-top: 28px; }
.services-layout .services { grid-template-columns: 1fr; margin-top: 0; gap: 0; }
.services-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.services-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }
.note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Testimonials */
.reviews-widget { margin-top: 32px; min-height: 120px; } /* Elfsight Google Reviews */

/* v2: video testimonial slider (Swiper) */
.video-wrap { max-width: 820px; margin-top: 32px; position: relative; }
.video-swiper { border-radius: 22px; --swiper-navigation-color: #fff; --swiper-navigation-size: 22px; }
.video-card { margin: 0; }
.video-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #1d1622; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card figcaption { text-align: center; margin-top: 14px; font-weight: 800; color: var(--purple); }
.video-card figcaption span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.unmute { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(42, 34, 48, .72); color: #fff; font: 700 .9rem var(--font); cursor: pointer; }
.unmute svg { width: 18px; height: 18px; }
.unmute:hover, .unmute:focus-visible { background: var(--purple); }
.unmute[hidden] { display: none; }
.video-swiper .swiper-button-prev, .video-swiper .swiper-button-next { top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; background: rgba(42, 34, 48, .55); }
.video-swiper .swiper-button-prev { left: 14px; }
.video-swiper .swiper-button-next { right: 14px; }
.video-dots { position: static; margin-top: 10px; text-align: center; --swiper-pagination-color: var(--purple); }
.video-dots .swiper-pagination-bullet { width: 10px; height: 10px; }

/* Private pay */
.privatepay { background: var(--purple); color: #fff; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.privatepay h2 { color: #fff; }
.privatepay p { margin: 0; color: #f0e6f5; font-size: 1.08rem; }
.privatepay .badge { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.privatepay .badge svg { width: 40px; height: 40px; color: #fff; }
.privatepay .card-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }
.privatepay .card-fine { font-size: .9rem; color: #d9c8e3; }
/* v3: service area = full-width grayscale map, washed white on the left for the text */
.area-map-section { position: relative; padding: 150px 0; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.93) 46%, rgba(255,255,255,.55) 62%, rgba(255,255,255,.08) 80%, rgba(255,255,255,0) 100%) /* faint map hint stays on the left so the section feels balanced */,
    url("assets/nyc-map-bg.webp") 72% 38% / cover no-repeat; }
.area-copy { max-width: 520px; }
.area-copy h2 { margin-bottom: 0; }
.map-credit { position: absolute; right: 10px; bottom: 6px; font-size: .68rem; color: #6b6b6b; background: rgba(255,255,255,.7); padding: 1px 6px; border-radius: 4px; }
.map-credit a { color: inherit; }
.btn-light { background: #fff; color: var(--purple); }
.btn-light:hover { background: var(--purple-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* Call strip (above How it works) */
.strip-section { padding: 8px 0 48px; }
.call-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--purple-50); border-left: 6px solid var(--green-400); border-radius: 14px; padding: 22px 28px; }
.call-strip-icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--purple); }
.call-strip-icon svg { width: 26px; height: 26px; }
.call-strip h3 { margin: 0 0 2px; }
.call-strip p { margin: 0; color: var(--muted); }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 24px 0 0; }
.areas li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--purple); font-size: .95rem; }

/* Final CTA + form */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.big-phone { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--purple); text-decoration: none; margin: 8px 0 4px; }
.form-card { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.35rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid #cfc6d6; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field .err { color: #b03a2e; font-size: .85rem; margin-top: 4px; min-height: 1em; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn { width: 100%; margin-top: 6px; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #2b1838; color: #d9cde2; padding: 36px 0 110px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* Mobile sticky action bar */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .hero-grid, .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
  .hero-photo img { object-position: 95% 50%; }
  .video-swiper .swiper-button-prev, .video-swiper .swiper-button-next { display: none; } /* swipe + dots on small screens */ /* same centring for 16:10 crop */
  .cards, .steps { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .privatepay { grid-template-columns: 1fr; padding: 28px; }
  .services-layout { grid-template-columns: 1fr; gap: 24px; }
  .area-map-section { padding: 72px 0 88px; background:
    linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.93) 60%, rgba(255,255,255,.35) 100%),
    url("assets/nyc-map-bg.webp") 74% 52% / auto 210% no-repeat; } /* zoom on Manhattan (OSM map, 2026-11-13) */
  .services-photo { aspect-ratio: 4 / 3; }
  .services-photo img { object-position: 50% 15%; } /* keep caregiver + client faces in 4:3 crop */
  .call-strip { grid-template-columns: auto 1fr; }
  .call-strip .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-grid > *, .cta-grid > * { min-width: 0; }
  /* v2: header number hidden on phones; hero button / sticky bar always give one call option */
  .header-call { display: none; }
  .strip-section { display: none; } /* v2: call strip desktop/tablet only */
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding-top: 24px; }
  .logo img { height: 38px; }
  .header-call small { display: none; }
  .hero-ctas .btn { width: 100%; }
  .row-2 { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06);
    /* v2: hidden until no other CTA is on screen (main.js toggles .is-visible) */
    transform: translateY(110%); visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
  }
  .mobile-bar.is-visible { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
  .mobile-bar .btn { padding: 13px 10px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mobile-bar, .mobile-bar.is-visible { transition: none; }
}
