/* Pauliz Homecare Agency L.L.C. website styles
   Colors come from the logo. Body type is Atkinson Hyperlegible,
   designed for readers with low vision. Headings use Source Serif 4. */

:root {
  --navy: #12355b;
  --navy-soft: #2c4d72;
  --teal: #0a7f81;
  --teal-dark: #06686a;
  --mist: #eaf4f3;
  --line: #d3e1e2;
  --paper: #ffffff;
  --ink: #1d2b38;
  --ink-soft: #4a5966;
  --error: #b42318;
  --success-bg: #e6f4ea;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: 2.875rem;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

a { color: var(--teal-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 5vw, var(--step-4)); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--step-3)); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; max-width: 66ch; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand img { width: 3rem; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--teal-dark);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: var(--step--1);
  color: var(--navy);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-dark); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--teal);
  font-weight: 700;
}

.header-call {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  font-size: var(--step--1);
}
.header-call span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--teal-dark); }
  .header-call span { display: none; }
}
@media (max-width: 480px) {
  .brand-name small { display: none; }
  .header-inner { gap: 0.75rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-plain { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-plain:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #bfe6e4; }

.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Home hero ---------- */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { max-width: 17ch; }
.hero .lead { margin-bottom: 0; }

.promise {
  margin: 0;
  position: relative;
  padding: 2.25rem 2rem 2rem;
  border-left: 4px solid var(--teal);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.promise img {
  width: 4.5rem;
  margin-bottom: 1.25rem;
}
.promise blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--navy);
}
.promise figcaption {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.promise figcaption strong { color: var(--ink); display: block; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust line ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}
.trust li { font-size: var(--step--1); color: var(--ink-soft); padding-left: 1.5rem; position: relative; }
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
}
.trust strong { color: var(--ink); display: block; }
@media (max-width: 760px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Service list ---------- */

.service-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.service-list li {
  padding: 1.25rem 1.5rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.service-list li:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
.service-list li:nth-child(even) { padding-left: 2rem; }
.service-list h3 { margin-bottom: 0.25rem; }
.service-list p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) {
  .service-list { grid-template-columns: 1fr; }
  .service-list li:nth-child(odd),
  .service-list li:nth-child(even) { padding: 1.25rem 0; border-right: 0; }
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: var(--step--1);
  max-width: none;
}

/* ---------- Steps (a real sequence) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.values h3 { color: #fff; margin-bottom: 0.35rem; }
.values p { margin: 0; font-size: var(--step--1); color: #d7e3ee; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }

/* ---------- Story ---------- */

.story { max-width: 44rem; }
.story p { font-size: var(--step-0); line-height: 1.75; }
.story p:first-child { font-family: var(--serif); font-size: var(--step-2); line-height: 1.4; color: var(--navy); }

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.person { border-top: 3px solid var(--teal); padding-top: 1.25rem; }
.person .role { color: var(--teal-dark); font-weight: 700; margin-bottom: 0.5rem; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */

.counties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.counties ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.25rem;
  font-size: var(--step--1);
}
.counties li { padding: 0.2rem 0; break-inside: avoid; }
.county h2 { font-size: var(--step-2); border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
@media (max-width: 900px) { .counties { grid-template-columns: 1fr; } }

/* ---------- Simple table ---------- */

.table-wrap { overflow-x: auto; }
table.simple { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
table.simple th,
table.simple td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--navy); font-weight: 700; }

/* ---------- Forms ---------- */

.form { max-width: 46rem; }
.form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2.25rem;
}
.form legend {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0;
}
.form .hint { color: var(--ink-soft); font-size: var(--step--1); margin: -0.25rem 0 1rem; }

.field { margin-bottom: 1.25rem; }
.field label,
.field .label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid #9fb3bf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal); }
.field input[type="file"] { font: inherit; font-size: var(--step--1); }

.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.25rem; }
.field-row.three { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 600px) {
  .field-row,
  .field-row.three { grid-template-columns: 1fr; }
}

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--teal); flex: none; }

.availability { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.availability th,
.availability td { padding: 0.5rem 0.4rem; text-align: center; border-bottom: 1px solid var(--line); }
.availability th[scope="row"] { text-align: left; font-weight: 400; }
.availability input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal); }

.repeat-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.25rem;
  margin-bottom: 1rem;
}
.repeat-block h3 { font-family: var(--sans); font-size: var(--step-0); color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
  max-width: 46rem;
}
.form-status.is-error { display: block; background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form-status.is-success { display: block; background: var(--success-bg); color: #14532d; border: 1px solid #b7dfc3; }
.form-status.is-info { display: block; background: var(--mist); color: var(--navy); border: 1px solid var(--line); }

.field-error { color: var(--error); font-size: var(--step--1); margin-top: 0.35rem; }
[aria-invalid="true"] { border-color: var(--error) !important; }

/* ---------- Contact layout ---------- */

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.75rem;
  align-self: start;
}
.contact-card h2 { font-size: var(--step-2); }
.contact-card .big { font-size: var(--step-2); font-weight: 700; color: var(--navy); text-decoration: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Prose pages ---------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #d7e3ee;
  padding: 3rem 0 2rem;
  font-size: var(--step--1);
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: var(--step-0); color: #fff; margin-bottom: 0.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-brand { font-family: var(--serif); font-size: var(--step-1); color: #fff; margin-bottom: 0.5rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Staff area ---------- */

.staff-shell { padding: 2rem 0 4rem; }
.staff-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.staff-tabs button {
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.staff-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--teal); font-weight: 700; }
.record { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.record summary { padding: 1rem 1.25rem; cursor: pointer; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
.record summary strong { color: var(--navy); }
.record .meta { color: var(--ink-soft); font-size: var(--step--1); }
.record .body { padding: 0 1.25rem 1.25rem; }
.record dl { display: grid; grid-template-columns: 12rem 1fr; gap: 0.35rem 1rem; font-size: var(--step--1); margin: 0 0 1rem; }
.record dt { color: var(--ink-soft); }
.record dd { margin: 0; }
@media (max-width: 600px) { .record dl { grid-template-columns: 1fr; } .record dt { margin-top: 0.5rem; } }
.badge { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 0.875rem; }

@media (prefers-reduced-motion: no-preference) {
  .promise { animation: rise 600ms ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media print {
  .site-header, .site-footer, .actions { display: none; }
}

/* ---------- Photos ---------- */

.photo { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-side { display: grid; gap: 1.25rem; }
.photo-hero { aspect-ratio: 4 / 3; }
.hero-side .promise { padding: 1.5rem 1.75rem; }
.hero-side .promise img { display: none; }
.hero-side .promise blockquote { font-size: clamp(1.125rem, 2vw, 1.375rem); }
.photo-person { aspect-ratio: 4 / 5; max-width: 18rem; margin-bottom: 1.25rem; }
.photo-wide { aspect-ratio: 21 / 9; margin-bottom: 2.5rem; }
.photo-side { aspect-ratio: 4 / 3; margin-top: 1.5rem; }
.hero-side.no-photo .promise { padding: 2.25rem 2rem 2rem; }
.hero-side.no-photo .promise img { display: block; }
.hero-side.no-photo .promise blockquote { font-size: clamp(1.375rem, 2.6vw, 1.75rem); }
.photo-office { aspect-ratio: 3 / 2; margin: 0.5rem 0 1rem; }
.photo-story { aspect-ratio: 3 / 2; margin-bottom: 2rem; }
.split .photo-side { margin-bottom: 1.5rem; }
