/* Bayyinah Home Healthcare */

:root {
  --white: #ffffff;
  --blue: #1b609f;        /* brand blue */
  --harbor: #123f69;      /* deep blue for text */
  --pink: #eb80c0;        /* brand pink: fills and shapes only, never text on white */
  --blush: #fcedf5;
  --mist: #edf4fa;
  --text-soft: #3d5a78;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 10vw, 112px);
  --arch: 999px 999px 20px 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--harbor);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: var(--harbor);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.875rem); }
h3 { font-size: 1.5rem; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--blue); }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { width: 1.2em; height: 1.2em; flex: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--harbor);
  color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--harbor); }

.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; gap: 8px; white-space: nowrap; }
.btn-large { min-height: 60px; padding: 16px 32px; font-size: 1.25rem; }

.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--blush); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(18, 63, 105, 0.12); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue); }
.brand-sub { font-size: 0.8125rem; font-weight: 600; color: var(--text-soft); margin-top: 4px; letter-spacing: 0.02em; }

@media (max-width: 479px) {
  .hide-xs { display: none; }
}

/* Hero */

.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy { max-width: 600px; }

.lede {
  margin-top: 20px;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--text-soft);
  max-width: 34em;
}

.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blush);
  font-weight: 600;
  color: var(--harbor);
}
.pay-pill .icon { color: var(--blue); }

.hero-actions { margin-top: 28px; }
.hero-note { margin-top: 12px; font-size: 1rem; color: var(--text-soft); }

.hero-arch {
  position: relative;
  margin: 0 auto;
  width: min(100%, 440px);
  padding: 0 24px 24px 0;
}
.hero-arch img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 52% 50%;
  border-radius: var(--arch);
}
.arch-shadow {
  position: absolute;
  inset: 24px 0 0 24px;
  border-radius: var(--arch);
  background: var(--pink);
  animation: arch-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

@keyframes arch-in {
  from { transform: translate(-24px, -24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-arch { margin-right: 0; }
}

/* Trust strip */

.trust { background: var(--mist); }

.trust-list {
  list-style: none;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  font-weight: 600;
}
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-list .icon { color: var(--blue); width: 1.4em; height: 1.4em; }

/* Sections shared */

.services,
.payment,
.locations,
.testimonials { padding: var(--section) 0; }

.section-intro {
  margin-top: 16px;
  max-width: 36em;
  color: var(--text-soft);
}

/* Services */

.service-list {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}

.service-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--arch);
  margin-bottom: 24px;
}
.service h3 { margin-bottom: 10px; }
.service p { color: var(--text-soft); }

@media (min-width: 640px) and (max-width: 899px) {
  .service {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
  }
  .service-img { margin-bottom: 0; }
}

@media (min-width: 900px) {
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* Payment */

.payment { background: var(--blush); }

.payment-inner {
  display: grid;
  gap: 40px;
}
.payment-head p { margin-top: 16px; max-width: 30em; color: var(--text-soft); }

.payment-options { display: grid; gap: 28px; align-content: start; }

.pay-option {
  padding-left: 20px;
  border-left: 4px solid var(--pink);
}
.pay-option h3 { margin-bottom: 8px; }
.pay-option p { color: var(--text-soft); }

.payment-options .btn { justify-self: start; }

@media (min-width: 900px) {
  .payment-inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* Testimonials (hidden until real quotes exist) */

.quote-list { display: grid; gap: 32px; margin-top: 40px; }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.45; }
.quote figcaption { margin-top: 12px; font-weight: 600; color: var(--text-soft); }

/* Locations */

.location-list {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.location { padding-top: 24px; border-top: 2px solid var(--mist); }
.location h3 { font-size: 1.75rem; }
.region { margin-top: 4px; font-weight: 600; color: var(--text-soft); font-size: 1rem; }
.location address { margin-top: 16px; font-style: normal; }
.location address a { text-decoration-color: rgba(27, 96, 159, 0.35); text-underline-offset: 4px; }
.location address a:hover { text-decoration-color: currentColor; }

.placeholder { color: var(--text-soft); font-style: italic; }

.location-contact p + p { margin-top: 12px; }
.contact-link {
  font-weight: 600;
  text-decoration-color: rgba(27, 96, 159, 0.35);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.location-contact h3 + p { margin-top: 16px; }

@media (min-width: 900px) {
  .location-list { grid-template-columns: repeat(3, 1fr); }
}

/* Final CTA */

.final-cta {
  background: var(--blue);
  color: var(--white);
  padding: var(--section) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: min(80vw, 560px);
  aspect-ratio: 5 / 6;
  transform: translateX(-50%);
  border-radius: var(--arch);
  background: rgba(235, 128, 192, 0.16);
  pointer-events: none;
}
.final-inner { position: relative; }
.final-cta h2 { color: var(--white); max-width: 16em; margin: 0 auto; }
.final-cta p { margin: 16px auto 32px; max-width: 32em; color: rgba(255, 255, 255, 0.88); }

/* Footer */

.site-footer {
  background: var(--harbor);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* Mobile call bar */

.call-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 63, 105, 0.28);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.call-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 767px) {
  body { padding-bottom: 88px; }
}
@media (min-width: 768px) {
  .call-bar { display: none; }
}

/* Reduced motion */

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