/* ============================================================
   Danny Lawrence Respite Care — stylesheet
   Design goals: accessible-first (WCAG 2.1 AA), high contrast,
   large readable type, works with screen readers and zoom.
   No build step, no frameworks — just edit and save.
   ============================================================ */

:root {
  /* Black & gold theme */
  --navy:    #1b1813;   /* near-black (warm) — headings & brand text */
  --navy-dk: #0c0b08;   /* black — hero & footer backgrounds */
  --teal:    #806012;   /* accessible dark gold — links & accents on light */
  --gold:    #d4af37;   /* bright display gold — buttons & dark-bg accents */
  --gold-dk: #b8932c;   /* button hover */
  --ink:     #1a1a1a;   /* body text — high contrast on white */
  --muted:   #4a4a4a;
  --bg:      #ffffff;
  --bg-soft: #f7f3e7;   /* warm cream band */
  --line:    #e2dac6;   /* warm border */
  --focus:   #a86b00;   /* amber focus ring — visible on white & black */
  --maxw:    1080px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;       /* generous base size for readability */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p  { margin: 0 0 1rem; }
a  { color: var(--teal); }
a:hover { color: var(--navy); }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Strong, visible focus indicator for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--navy); text-decoration: none; line-height: 1.1; display: flex; flex-direction: column; }
.brand-sub { font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.nav-list { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav-list a:hover { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  font-size: 1.05rem;
}
.btn-primary { background: var(--gold); color: #1a1505; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dk); border-color: var(--gold-dk); color: #000; }
.btn-secondary { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-secondary:hover { background: var(--gold); color: #1a1505; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dk) 100%);
  color: #f3ecdc; padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.hero h1 { color: #fff; }
.hero .tagline { font-size: 1.35rem; margin: 0 0 1rem; color: #ece3cf; }
.hero .lede { font-size: 1.12rem; color: #ded4bd; max-width: 38ch; }
.hero .slogan { font-size: 1.5rem; font-style: italic; color: var(--gold); margin: 0 0 .6rem; font-weight: 700; }
.hero-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 2.5rem; align-items: center; }
.hero-photo { display: flex; justify-content: center; }
.hero-photo img {
  border-radius: 12px; width: 100%; max-width: 380px; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center; height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--bg-soft); }

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; }
.card h3 { color: var(--teal); }
.card p { margin: 0; color: var(--muted); }

/* ---------- Lists ---------- */
.check-list, .two-col ul { list-style: none; margin: 0; padding: 0; }
.check-list li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

/* ---------- About (text + photo) ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2.5rem; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: block; }
.about-photo figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; font-style: italic; }

/* ---------- Recognition: links + gallery ---------- */
.section-intro { font-size: 1.15rem; color: var(--muted); margin-top: -.3rem; }
.link-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.link-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 1rem 1.2rem; }
.link-list a { font-weight: 700; font-size: 1.1rem; }
.link-list .link-note { display: block; color: var(--muted); margin-top: .25rem; font-size: 1rem; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery img { width: 100%; height: 320px; object-fit: cover; object-position: center top; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); display: block; }

/* ---------- Testimonial ---------- */
.testimonial blockquote { margin: 0; border-left: 5px solid var(--gold); padding: .5rem 0 .5rem 1.5rem; }
.testimonial p { font-size: 1.3rem; font-style: italic; color: var(--navy); }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--muted); }

/* ---------- Form ---------- */
.contact-form { display: grid; gap: 1.1rem; max-width: 560px; margin-top: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  font: inherit; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--teal); }
.contact-direct { margin-top: 1.5rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dk); color: #ded4bd; padding: 2.5rem 0; margin-top: 1rem; border-top: 3px solid var(--gold); }
.footer-inner { display: grid; gap: .6rem; }
.site-footer a { color: var(--gold); }
.footer-legal { color: #9a8f78; }

/* ---------- Hero extras ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .82rem; color: var(--gold); margin: 0 0 .6rem; }
.hero-call { margin-top: 1.1rem; color: #cabfa6; font-weight: 600; }
.hero-call a { color: var(--gold); }

/* ---------- Mission strip ---------- */
.mission { background: var(--gold); color: #1a1505; padding: 1.1rem 0; }
.mission p { margin: 0; text-align: center; font-size: 1.25rem; font-weight: 700; font-style: italic; }

/* ---------- Feature grid (why we're different) ---------- */
.feature-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { text-align: center; padding: 1.5rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-soft); color: var(--teal); font-size: 1.9rem; margin-bottom: .8rem; border: 2px solid var(--gold); }
.feature h3 { color: var(--teal); }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Steps (how it works) ---------- */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 1.5rem 1.2rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.3rem; margin-bottom: .7rem; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }

/* ---------- "What we don't do" callout ---------- */
.callout { margin-top: 2rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 10px; padding: 1.4rem 1.6rem; }
.callout h3 { color: var(--navy); }
.callout p { margin: 0; color: var(--ink); }

/* ---------- Pricing ---------- */
.price-cards { list-style: none; margin: 1.5rem 0 1.5rem; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.8rem 1.4rem; text-align: center; }
.price-card.featured { border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.price-badge { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1505; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.price-card h3 { color: var(--navy); }
.price { margin: .4rem 0 .1rem; }
.price-amt { font-size: 2.6rem; font-weight: 800; color: var(--teal); }
.price-unit { font-size: 1.05rem; color: var(--muted); }
.price-total { font-weight: 700; color: var(--navy); margin: 0 0 .8rem; }
.price-note { margin: 0; color: var(--muted); font-size: 1rem; }
.price-fine { list-style: none; margin: 0; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: .6rem; }
.price-fine li { color: var(--muted); }
.price-fine strong { color: var(--navy); }

/* ---------- About extras ---------- */
.about-links { font-weight: 600; }

/* ---------- Service area ---------- */
.area-list { list-style: none; margin: 1rem 0 1.2rem; padding: 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.area-list li { padding-left: 1.6rem; position: relative; }
.area-list li::before { content: "\1F4CD"; position: absolute; left: 0; top: 0; }
.area-zips { background: var(--bg-soft); border-radius: 8px; padding: .9rem 1.1rem; font-size: 1rem; color: var(--muted); }

/* ---------- Forms (intake + jobs) ---------- */
.form { margin-top: 1.5rem; display: grid; gap: 1.6rem; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem 1.4rem; margin: 0; background: #fff; }
.form legend { font-weight: 800; color: var(--navy); padding: 0 .5rem; font-size: 1.05rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .35rem; margin-top: 1.1rem; }
.field:first-of-type { margin-top: .4rem; }
.field label { font-weight: 700; color: var(--navy); }
.field input, .field textarea, .field select {
  font: inherit; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); }
.field-help { margin: .1rem 0 0; font-size: .92rem; color: var(--muted); }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field-check input { width: auto; margin-top: .35rem; }
.field-check label { font-weight: 600; }
.privacy { color: var(--muted); font-size: .95rem; }
/* Honeypot anti-spam field — hidden from people, catches bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer extras ---------- */
.footer-hours { color: #9a8f78; }

/* ---------- Team / Meet the Caregivers ---------- */
.team-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem 1.5rem; text-align: center; }
.team-card.lead { border-color: var(--gold); border-width: 2px; }
.team-photo {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 1rem;
  object-fit: cover; display: block; border: 3px solid var(--gold);
}
.team-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--teal);
  font-size: 2.6rem; font-weight: 800; letter-spacing: .02em;
}
.team-card h3 { margin: 0 0 .15rem; color: var(--navy); font-size: 1.3rem; }
.team-role { margin: 0 0 .9rem; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--teal); }
.team-card p.bio { color: var(--ink); margin: 0 0 .9rem; text-align: left; }
.team-fav { color: var(--muted); font-size: .98rem; margin: 0; text-align: left; }
.team-fav strong { color: var(--navy); }
.team-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Scored surveys (compassion / needs) ---------- */
.survey-intro { color: var(--muted); font-size: .98rem; margin: .2rem 0 0; }
.survey-q { margin-top: 1.3rem; }
.survey-q:first-of-type { margin-top: .5rem; }
.survey-q > .q-text { font-weight: 700; color: var(--navy); margin: 0 0 .55rem; }
.survey-opts { display: grid; gap: .45rem; }
.survey-opts label {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .6rem;
  font-weight: 400; color: var(--ink); cursor: pointer;
  padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px;
}
.survey-opts label:hover { background: var(--bg-soft); }
.survey-opts input[type="radio"],
.survey-opts input[type="checkbox"] { width: auto; margin: .3rem 0 0; }
.survey-opts input:focus-visible + span { text-decoration: underline; }
.survey-checks { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.q-hint { font-weight: 400; color: var(--muted); font-size: .92em; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 300px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-list { gap: .9rem; font-size: .95rem; flex-wrap: wrap; justify-content: flex-end; }
  .brand-sub { display: none; }
}
