/* Tech Help Neighbor: simple, senior-friendly styles.
   Contrast (WCAG ratios), all text pairs aim for 7:1 or better:
   - #1A1A1A text on #FFFDF9 page = 17.1 | on #FFFFFF = 17.4 | on #F3F8FA tint = 16.3
   - #174F66 dark teal text on #FFFFFF = 8.95 | on #FFFDF9 = 8.8 | on #F3F8FA = 8.4
   - #FFFFFF on #174F66 (buttons, contact band) = 8.95 | on #0F3A4D (hover) = 12.1 | on #10384A (footer) = 12.5
   - Brand teal #1F5F7A (7.06 on white) is used for borders, rules, and large accents. */

/* Atkinson Hyperlegible (Braille Institute), SIL Open Font License, self-hosted: no external requests */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --teal: #1F5F7A;        /* brand teal: borders, rules, big accents */
  --teal-text: #174F66;   /* darker teal for all teal text and button fills */
  --teal-hover: #0F3A4D;  /* hover / pressed */
  --text: #1A1A1A;
  --bg: #FFFDF9;          /* calm, solid warm white */
  --tint: #F3F8FA;        /* calm, solid pale blue for alternating sections */
  --border: #5F8796;      /* card borders, 3.9:1 on white so edges are easy to see */
  --focus-ring: #1A1A1A;
  --focus-halo: #FFE08A;
}

* { box-sizing: border-box; }

html { font-size: 24px; } /* body text 24px desktop, 22px phones (see media query) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", Verdana, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: 948px; margin: 0 auto; padding: 0 24px; } /* ~900px text column, about 70 characters per line */
p, li { max-width: 70ch; }

h1, h2 { color: var(--teal-text); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 16px; }

/* Links: always underlined, so they never rely on color alone */
a { color: var(--teal-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--teal-hover); text-decoration-thickness: 4px; }

/* Thick, high-contrast focus ring: dark outline plus a yellow halo, visible on light and dark backgrounds */
:focus { outline: none; }
:focus-visible {
  outline: 4px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 10px var(--focus-halo);
  border-radius: 6px;
}
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-halo); box-shadow: 0 0 0 10px var(--text); }

.skip-link {
  position: absolute; left: 12px; top: -200px;
  background: var(--teal-text); color: #fff; padding: 14px 20px; z-index: 10; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header + always-visible text navigation (no dropdowns, no hamburger) */
.site-header { background: #fff; border-bottom: 4px solid var(--teal); }
.header-inner { padding-top: 14px; padding-bottom: 14px; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.header-call { font-size: 1.05rem; min-height: 64px; white-space: nowrap; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px;
  font-weight: 700; font-size: 1.25rem; color: var(--teal-text); text-decoration: none;
}
.brand:hover { text-decoration: underline; }
.brand img { width: 60px; height: 60px; flex: none; }

.site-nav ul {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.site-nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 8px 20px; line-height: 1.25; text-align: center;
  border: 2px solid var(--teal); border-radius: 10px; background: #fff;
  font-weight: 700; text-decoration: none;
}
.site-nav a:hover { background: var(--tint); text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav a:active { background: #E3EEF2; transform: translateY(1px); }

/* Buttons: large, labelled with words, clear hover and pressed states */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 14px 28px;
  background: var(--teal-text); color: #fff; border: 3px solid var(--teal-text);
  border-radius: 10px; font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center; line-height: 1.3;
}
.button:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.button:active { transform: translateY(2px); background: var(--text); border-color: var(--text); }
.button-outline { background: #fff; color: var(--teal-text); }
.button-outline:hover { background: var(--tint); color: var(--teal-hover); }
.button-outline:active { background: #E3EEF2; color: var(--text); }
.button-light { background: #fff; color: var(--teal-text); border-color: #fff; }
.button-light:hover { background: var(--focus-halo); color: var(--text); border-color: var(--focus-halo); }
.button-light:active { background: #fff; color: var(--text); }

/* Sections: solid, calm backgrounds only */
.hero { padding: 56px 0 52px; background: #fff; }
.lead { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }

.section { padding: 56px 0; }
.section-tint { background: var(--tint); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }

/* Service list (information only, not clickable) */
.service-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 14px; }
.service-list li {
  position: relative; padding: 14px 18px 14px 58px;
  background: #fff; border: 2px solid var(--border); border-radius: 10px;
}
.service-list li::before {
  content: ""; position: absolute; left: 18px; top: 0.95em;
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal-text);
}
.service-list li::after {
  content: ""; position: absolute; left: 27px; top: calc(0.95em + 4px);
  width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* Pricing */
.price-card {
  background: #fff; border: 3px solid var(--teal); border-radius: 14px;
  padding: 28px; margin-bottom: 32px;
}
.price { margin-bottom: 0.5em; }
.price-amount { font-size: 3rem; font-weight: 700; color: var(--teal-text); line-height: 1; margin-right: 6px; }
.price-unit { font-size: 1.2rem; font-weight: 700; }
.price-card p:last-child { margin-bottom: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 76px; min-height: 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-text); color: #fff; font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.step-title { display: block; font-weight: 700; }

/* About: photo beside text on wide screens, centered above it on phones */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.about-figure { margin: 0; }
.about-photo {
  display: block; width: 100%; max-width: 320px; aspect-ratio: 1 / 1; height: auto;
  object-fit: cover; object-position: center top;
  border: 4px solid var(--teal); border-radius: 28px; background: var(--tint);
}
.about-photo-placeholder {
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--teal-text);
}
.about-figure figcaption { margin-top: 14px; font-size: 1.05rem; font-weight: 700; line-height: 1.45; max-width: 320px; }
.about-text h2 { margin-top: 0; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-figure { justify-self: center; text-align: center; max-width: 280px; }
  .about-photo { max-width: 260px; margin: 0 auto; }
  .about-figure figcaption { margin-left: auto; margin-right: auto; }
}

/* About: quote in upright type (italics are harder to read) */
.signature {
  font-size: 1.1rem; font-weight: 700; border-left: 6px solid var(--teal);
  padding: 6px 0 6px 20px; margin-top: 1.4em;
}
.signature span { font-weight: 700; color: var(--teal-text); font-size: 1rem; }

.area { font-size: 1.1rem; }

/* Hero safety badge: calm teal-bordered box, links down to the safety section */
.safety-badge { margin: 0 0 0.9em; max-width: 40em; }
.safety-badge a {
  display: block; padding: 14px 20px 14px 22px;
  background: var(--tint); border: 3px solid var(--teal); border-left-width: 10px; border-radius: 12px;
  color: var(--text); font-size: 1.05rem; line-height: 1.45; text-decoration: none;
}
.safety-badge strong { color: var(--teal-text); }
.safety-badge a:hover { background: #E3EEF2; text-decoration: underline; text-decoration-thickness: 2px; }
.safety-badge a:active { transform: translateY(1px); }
.hero + #safety { padding-top: 40px; }

/* Safety & trust: calm tinted panel with a teal left border (no alarming colors) */
.safety-panel {
  background: var(--tint); border: 2px solid var(--border); border-left: 10px solid var(--teal);
  border-radius: 14px; padding: 32px 32px 28px;
}
.safety-panel h2 { margin-bottom: 0.4em; }
.safety-intro { font-size: 1.05rem; }
.safety-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.safety-list li { position: relative; padding-left: 50px; font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.safety-list li::before {
  content: ""; position: absolute; left: 0; top: 0.15em;
  width: 32px; height: 32px; border-radius: 50%; background: var(--teal-text);
}
.safety-list li::after {
  content: ""; position: absolute; left: 11px; top: calc(0.15em + 6px);
  width: 8px; height: 15px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg);
}
@media (max-width: 600px) {
  .safety-panel { padding: 24px 18px 22px 18px; border-left-width: 8px; }
  .safety-list li { padding-left: 44px; }
}
/* Big call-to-action: the whole box is one tap-to-call link */
.call-button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: 560px; min-height: 128px; margin: 28px 0 0; padding: 18px 20px;
  background: var(--teal-text); color: #fff; border: 4px solid var(--teal-text);
  border-radius: 16px; text-decoration: none; text-align: center; line-height: 1.25;
  box-shadow: 0 4px 0 var(--teal-hover);
}
.call-button .call-label { font-size: 1.1rem; font-weight: 700; }
.call-button .call-number {
  font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: 0; margin-top: 4px;
  text-decoration: none; white-space: nowrap;
}
.call-button:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; }
.call-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-hover); background: var(--text); border-color: var(--text); }
/* Call + Text pair: equal size, Call first and filled (most prominent), Text outlined */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; max-width: 900px; }
.cta-pair .call-button { margin: 0; max-width: none; }
.cta-pair .call-number { font-size: 1.85rem; }
.cta-pair-spaced { margin-top: 36px; }
.text-button { background: #fff; color: var(--teal-text); border-color: var(--teal-text); box-shadow: 0 4px 0 var(--teal-text); }
.text-button:hover { background: var(--tint); color: var(--teal-hover); border-color: var(--teal-hover); }
.text-button:active { background: #E3EEF2; color: var(--text); border-color: var(--text); }
.text-button-light { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 4px 0 #0B2A38; }
.text-button-light:hover { background: var(--teal-hover); color: var(--focus-halo); border-color: var(--focus-halo); }
.text-button-light:active { background: var(--text); color: #fff; border-color: #fff; }
.text-note { font-size: 1rem; margin-top: 18px; margin-bottom: 0; }
.call-button-light { background: #fff; color: var(--teal-text); border-color: #fff; box-shadow: 0 4px 0 #0B2A38; }
.call-button-light:hover { background: var(--focus-halo); border-color: var(--focus-halo); color: var(--text); }
.call-button-light:active { background: #fff; color: var(--text); border-color: #fff; }

.reassure { font-size: 1.05rem; font-weight: 700; margin-top: 18px; }
.hero-more { margin-top: 24px; margin-bottom: 0; }
.inline-phone { font-weight: 700; white-space: nowrap; }

/* Contact band */
.contact { background: var(--teal-text); color: #fff; }
.contact h2 { color: #fff; }
.contact a:not(.call-button), .site-footer a { color: #fff; font-weight: 700; }
.contact a:not(.call-button):hover, .site-footer a:hover { color: var(--focus-halo); }
.email-alt { font-size: 1rem; margin-top: 28px; margin-bottom: 0; }

/* Footer */
.site-footer { background: #10384A; color: #fff; padding: 32px 0; font-size: 0.9rem; } /* 21.6px desktop, 20px phones */
.site-footer p { margin: 0 0 0.4em; }

@media (max-width: 600px) {
  html { font-size: 22px; }
  .site-footer { font-size: 0.95rem; }
  .hero { padding: 22px 0 36px; }
  .hero h1 { margin-bottom: 0.3em; }
  .hero .tagline { margin: 0 0 0.5em; }
  .safety-badge a { padding: 12px 14px 12px 16px; border-left-width: 8px; }
  .section { padding: 44px 0; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 52px; height: 52px; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .site-nav a { padding: 8px 8px; }
  .header-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .brand { justify-content: center; }
  .header-actions { grid-template-columns: 1fr; gap: 10px; }
  .header-call { display: flex; width: 100%; font-size: 1.05rem; padding: 12px 10px; }
  .cta-pair { grid-template-columns: 1fr; gap: 16px; }
  .cta-pair .call-number { font-size: min(1.85rem, 9.4vw); }
  .call-button { min-height: 120px; padding: 16px 10px; }
  .wrap { padding: 0 20px; }
  .steps li { padding-left: 68px; }
  .steps li::before { width: 50px; height: 50px; }
  .price-card { padding: 22px; }
  .price-unit { display: block; margin-top: 8px; }
}

/* Inline phone/email links get extra tap room */
.email-alt a, #family a, .site-footer a { display: inline-block; padding: 8px 0; }

.hero .tagline {
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.3;
  color: #174F66;
  margin: 0.4em 0 0.6em;
}
