/* ============================================================
   Good Shepherd Home Care Agency — shared stylesheet
   Plain CSS. No build step. Edit colors in :root below.
   ============================================================ */

:root {
  --green:        #6a4c93;   /* mid purple accent */
  --green-dark:   #2f2048;   /* deep aubergine — headings & primary */
  --green-light:  #efeaf7;   /* lilac tint */
  --plum:         #1f1533;   /* near-black plum (CTA / footer) */
  --lilac:        #c3aae8;   /* soft lilac accent on dark */
  --ink:          #2a2433;   /* refined dark plum text */
  --muted:        #7b7488;   /* secondary text */
  --cream:        #f7f4ef;   /* soft ivory page bg */
  --white:        #ffffff;
  --shadow:       0 10px 34px rgba(47, 32, 72, 0.07);
  --shadow-hover: 0 20px 46px rgba(47, 32, 72, 0.13);
  --ring:         1px solid rgba(47, 32, 72, 0.08);
  --radius:       14px;
  --maxw:         1140px;
  --font-sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head:    'Fraunces', Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 500;
  color: var(--green-dark);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 5vw, 3.7rem); }
h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

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

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(67, 44, 99, 0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-dark);
}
.brand .logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand .brand-sub { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { background: var(--green-light); color: var(--green-dark); }
.nav-links a.active { background: var(--green); color: var(--white); }
.nav-call {
  background: var(--green) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 16px rgba(106, 76, 147, 0.28);
}
.nav-call:hover { background: var(--green-dark) !important; filter: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(47, 32, 72, 0.22);
}
.btn-primary:hover { background: var(--green); box-shadow: 0 16px 32px rgba(47, 32, 72, 0.26); }
/* Light button — for use on the purple hero */
.btn-light { background: var(--white); color: var(--green-dark); box-shadow: 0 12px 30px rgba(0,0,0,0.20); }
.btn-light:hover { background: #f3eefc; }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(39, 28, 58, 0.35) 0%, rgba(39, 28, 58, 0.62) 100%),
    linear-gradient(125deg, rgba(106, 76, 147, 0.58) 0%, rgba(61, 42, 94, 0.72) 100%),
    url("images/hero-home.jpg") center / cover no-repeat;
  text-shadow: 0 1px 10px rgba(20, 12, 34, 0.45);
  color: var(--white);
  padding: 132px 0;
  text-align: center;
}
.hero .container > * { animation: heroIn 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.14s; }
.hero p.lead { animation-delay: 0.26s; }
.hero .btn-row { animation-delay: 0.38s; }
.hero .hero-trust { animation-delay: 0.5s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .container > * { animation: none; } }

.hero h1 { color: var(--white); max-width: 820px; margin-left: auto; margin-right: auto; }
.hero p.lead {
  font-size: 1.22rem;
  max-width: 640px;
  margin: 0 auto 2em;
  color: rgba(255,255,255,0.94);
}
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-shadow: none;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lilac);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green);          /* purple — readable on light backgrounds (WCAG AA) */
  margin-bottom: 16px;
}
.hero .eyebrow { color: var(--lilac); } /* light lavender for contrast over the purple hero */

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -56px;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 200;
  text-decoration: none;
  font-weight: 700;
  transition: top 140ms ease;
}
.skip-link:focus { top: 8px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-head h2 { margin-bottom: 0; }
.section-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, var(--green), var(--lilac));
  border-radius: 2px;
}
.section-head p { margin-top: 22px; }

/* ---------- Scroll reveal ---------- */
.has-js .section-head,
.has-js .grid > .card,
.has-js .gallery > div,
.has-js .two-col > div,
.has-js .checklist > li {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.has-js .is-visible { opacity: 1 !important; transform: none !important; }
.has-js .grid > .card:nth-child(2) { transition-delay: 0.08s; }
.has-js .grid > .card:nth-child(3) { transition-delay: 0.16s; }
.has-js .grid > .card:nth-child(4) { transition-delay: 0.24s; }
.has-js .grid > .card:nth-child(5) { transition-delay: 0.32s; }
.has-js .grid > .card:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .has-js .section-head,
  .has-js .grid > .card,
  .has-js .gallery > div,
  .has-js .two-col > div,
  .has-js .checklist > li { opacity: 1; transform: none; transition: none; }
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border: var(--ring);
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.section.alt .card { background: var(--cream); }
.card .icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green-dark);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Icons (line, inherit color) ---------- */
.card .icon svg { width: 27px; height: 27px; }
.info-item .ic { color: var(--green-dark); }
.info-item .ic svg { width: 22px; height: 22px; }
/* Small inline icon inside links & buttons */
.ic-in {
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  margin-right: 0.5em;
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 10px 0 10px 34px;
  position: relative;
  color: var(--ink);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(106, 76, 147, 0.55), transparent 60%),
    linear-gradient(135deg, var(--green-dark) 0%, var(--plum) 100%);
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band .phone {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.cta-band .phone:hover { color: var(--lilac); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-item .ic {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--green-light); border-radius: 10px;
  display: grid; place-items: center; font-size: 1.3rem;
}
.info-item h4 { margin: 0 0 2px; color: var(--green-dark); font-family: var(--font-head); }
.info-item a { color: var(--green); font-weight: 600; text-decoration: none; }
.info-item p { margin: 0; color: var(--muted); }

form label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
form input, form textarea, form select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #ded7ea;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 18px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(106, 76, 147, 0.14);
}

/* ---------- Photos / image frames ---------- */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-light);
  line-height: 0;
  aspect-ratio: 3 / 2;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms ease;
}
.photo-frame:hover img { transform: scale(1.04); }
.photo-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
  line-height: 1.4;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }

/* ---------- How it works (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Guarantee callout ---------- */
.callout {
  max-width: 760px;
  margin: 52px auto 0;
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 30px 36px;
  text-align: center;
  color: var(--ink);
}
.callout strong { color: var(--green-dark); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.quote {
  background: var(--white);
  border: var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.quote .stars { color: var(--green); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 16px; font-style: italic; color: var(--ink); }
.quote .who { font-weight: 700; color: var(--green-dark); font-size: 0.92rem; }

/* Photo at the top of a service card */
.card-img {
  margin: -34px -34px 22px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--green-light);
  line-height: 0;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.card:hover .card-img img { transform: scale(1.06); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 { color: var(--white); font-family: var(--font-head); margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 56px 0; }
  .section { padding: 48px 0; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; }
}
