/* Kestrel Home Nursing — site styles */
:root {
  --ink: #1E2B35;
  --muted: #4A5A66;
  --slate: #22384A;
  --sky: #2F5E80;
  --wash: #EEF3F6;
  --line: #D3DEE5;
  --ochre: #B88A3B;
  --paper: #FFFFFF;
  --focus: #E0A43A;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--slate); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--slate); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; white-space: nowrap; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.mark { width: 36px; height: 36px; color: var(--slate); flex: none; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; }
.nav a:hover { color: var(--sky); text-decoration: underline; }
.header-cta { font-weight: 600; font-size: 1rem; color: #fff; background: var(--slate); border: 2px solid var(--slate); border-radius: 6px; padding: 9px 16px; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--sky); border-color: var(--sky); color: #fff; }

/* Buttons */
.btn { display: inline-block; background: var(--slate); color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: 14px 24px; border-radius: 6px; border: 2px solid var(--slate); cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--sky); border-color: var(--sky); color: #fff; }
.btn-quiet { background: transparent; color: var(--slate); }
.btn-quiet:hover { background: var(--wash); color: var(--slate); border-color: var(--slate); }
.btn-light { background: #fff; color: var(--slate); border-color: #fff; }
.btn-light:hover { background: var(--wash); border-color: var(--wash); color: var(--slate); }
.text-link { font-weight: 600; }

/* Hero */
.hero { position: relative; padding: 72px 0 150px; background: linear-gradient(#fff, var(--wash)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.lede { font-size: 1.28rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.assurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 1rem; }
.assurances li { padding-left: 22px; position: relative; }
.assurances li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--ochre); border-bottom: 2px solid var(--ochre); transform: rotate(-45deg); }
.hero-note { background: #fff; border-left: 4px solid var(--ochre); padding: 30px 30px 26px; box-shadow: 0 18px 40px -24px rgba(34, 56, 74, .45); }
.hero-note p { font-family: var(--serif); font-size: 1.32rem; line-height: 1.5; color: var(--slate); }
.hero-note .sig { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; }
.hero-note .sig span { font-weight: 400; color: var(--muted); }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; fill: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--wash); }
.section-title { margin-bottom: 1.2em; }
.big { font-size: 1.24rem; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }

/* Services list (home) */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 1fr 2fr auto; gap: 32px; align-items: baseline; padding: 28px 8px; text-decoration: none; color: var(--ink); }
.svc-list a:hover { background: #fff; }
.svc-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.svc-list h3 { margin: 0; }
.svc-list p { margin: 0; color: var(--muted); }
.svc-price { font-weight: 600; color: var(--slate); white-space: nowrap; font-size: 1rem; }

/* Reasons */
.reasons { margin: 0; }
.reasons dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--slate); }
.reasons dd { margin: .25em 0 1.6em; color: var(--muted); }

/* Photo placeholder */
.photo-slot { aspect-ratio: 4 / 5; background: repeating-linear-gradient(135deg, #e3eaef 0 12px, #dae3e9 12px 24px); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1rem; border-radius: 4px; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5em 0 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--slate); color: var(--slate); font-family: var(--serif); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3 { margin-bottom: .2em; }
.steps p { color: var(--muted); }

/* Mini prices */
.mini-prices { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.mini-prices th { text-align: left; font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-prices td { text-align: right; font-weight: 700; color: var(--slate); padding: 16px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* Areas */
.area-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 1rem; }
.area-list-lg li { font-size: 1.1rem; padding: 10px 18px; }

/* Page hero */
.page-hero { padding: 56px 0 40px; background: var(--wash); border-bottom: 1px solid var(--line); }
.crumb { font-size: .95rem; color: var(--muted); margin-bottom: 1.4em; }
.crumb a { color: var(--muted); }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 0 0 .7em 30px; max-width: 68ch; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 13px; height: 7px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }

/* Price list */
.price-list { border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.price-row h3 { margin: 0 0 .25em; font-size: 1.25rem; }
.price-row p { margin: 0; color: var(--muted); }
.price-row .price { font-family: var(--serif); font-size: 1.5rem; color: var(--slate); font-weight: 600; white-space: nowrap; text-align: right; }
.note { font-size: 1rem; color: var(--muted); margin-top: 1.2em; }

/* Policy table */
.policy-table { width: 100%; border-collapse: collapse; }
.policy-table th { text-align: left; vertical-align: top; width: 34%; padding: 16px 20px 16px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.policy-table td { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; color: var(--slate); padding: 18px 40px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--sans); font-size: 1.6rem; color: var(--sky); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Form */
.contact-form { display: grid; gap: 20px; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid #9FB2BF; border-radius: 6px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--sky); }
.form-note { font-size: .98rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }

/* CTA band */
.cta-band { background: var(--slate); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: #D7E2EA; margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-phone { color: #fff; font-weight: 600; }
.cta-phone:hover { color: #D7E2EA; }

/* Footer */
.site-footer { background: #182A38; color: #C9D6DF; padding: 56px 0 28px; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer em { color: #C9D6DF; }
.brand-footer .mark { color: #fff; }
.footer-base { border-top: 1px solid #2E4556; margin-top: 40px; padding-top: 20px; font-size: .92rem; }
.footer-base p { margin: 0 0 6px; max-width: none; }

/* Responsive */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; row-gap: 4px; }
  .header-cta { margin-left: auto; }
  nav[aria-label="Main"] { order: 3; width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
  .nav { margin: 0; gap: 20px; padding: 10px 0 12px; white-space: nowrap; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .svc-list a { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-slot { max-width: 360px; }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .brand { font-size: 1.15rem; }
  .brand em { display: none; }
  .header-inner { min-height: 64px; gap: 12px; }
  .hero { padding: 44px 0 110px; }
  .section { padding: 56px 0; }
  .price-row { grid-template-columns: 1fr; gap: 6px; }
  .price-row .price { text-align: left; }
  .policy-table th, .policy-table td { display: block; width: 100%; padding: 10px 0; }
  .policy-table th { border-bottom: 0; padding-bottom: 0; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Photos */
.portrait { display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 18px 40px -26px rgba(34, 56, 74, .55); }
.subhead { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); margin-top: -.4em; }
.two-col-even { grid-template-columns: 1fr 1.2fr; align-items: center; }
.bird { margin: 0; }
.bird img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* Forms */
.field textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid #9FB2BF; border-radius: 6px; background: #fff; color: var(--ink); resize: vertical; }
.field textarea:focus { border-color: var(--sky); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 6px; background: #E6F1EA; color: #1F4D33; font-weight: 600; }
.form-status.is-error { background: #FBEAEA; color: #7A1F1F; }
.btn[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 960px) { .portrait { max-width: 360px; } .bird { max-width: 480px; } }
