/* Tucson Aging in Place — stylesheet
   Audience: seniors + adult children. Larger type, high contrast, generous tap targets.
   Warm, safe, trustworthy palette (warm teal + sand + terracotta CTA). */

:root {
  --deep: #1d3f3a;         /* deep warm green — headings/footer */
  --teal: #2a7d6f;         /* primary warm teal */
  --teal-dark: #1f5f55;
  --teal-light: #e8f2f0;
  --sand: #faf6f0;         /* warm off-white section bg */
  --terracotta: #c2562f;   /* CTA — warm, high contrast, not alarming red */
  --terracotta-dark: #a3441f;
  --ink: #23282b;          /* body text — near-black for contrast */
  --muted: #4d5a5c;        /* still AA-contrast, not light grey */
  --line: #ddd8d0;
  --bg: #ffffff;
  --radius: 12px;
  --wrap: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 21px;          /* larger base for readability */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }

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

/* ---------- Top bar ---------- */
.topbar { background: var(--deep); color: #fff; font-size: 17px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 22px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar .tb-note { color: #cfe0dc; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.98); z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deep); font-weight: 800; font-size: 22px; letter-spacing: -.2px; }
.brand-mark { width: 50px; height: 50px; display: block; flex: 0 0 auto; }
.brand small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
nav.main { display: none; gap: 24px; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
nav.main a:hover { color: var(--teal); text-decoration: underline; }
.btn-call-top { background: var(--terracotta); color: #fff !important; padding: 14px 22px; border-radius: 10px; text-decoration: none; font-weight: 800; white-space: nowrap; font-size: 18px; }
.btn-call-top:hover { background: var(--terracotta-dark); }

/* ---------- Buttons — large tap targets ---------- */
.btn { display: inline-block; padding: 18px 32px; border-radius: 10px; font-weight: 800; text-decoration: none; font-size: 21px; text-align: center; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: #fff; color: var(--deep); border: 3px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(155deg, var(--deep), #2a5f56 62%, var(--teal)); color: #fff; }
.hero .wrap { padding-top: 62px; padding-bottom: 62px; }
.hero h1 { font-size: 40px; line-height: 1.18; margin: 0 0 18px; letter-spacing: -.5px; }
.hero p.lead { font-size: 23px; color: #e2efec; margin: 0 0 30px; max-width: 660px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; color: #d5e8e4; font-weight: 700; font-size: 17px; }
.badges span::before { content: "✓ "; color: #7fd6bd; font-weight: 800; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--sand); }
h2 { font-size: 32px; line-height: 1.22; margin: 0 0 12px; color: var(--deep); letter-spacing: -.3px; }
.section-intro { color: var(--muted); max-width: 720px; margin: 0 0 32px; font-size: 20px; }
h3 { font-size: 23px; margin: 0 0 10px; color: var(--deep); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.card { border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; text-decoration: none; color: var(--ink); display: block; }
.card:hover { border-color: var(--teal); box-shadow: 0 6px 22px rgba(42,125,111,.12); }
.card .ico { font-size: 34px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 18px; }
.card .more { display: inline-block; margin-top: 12px; color: var(--teal-dark); font-weight: 800; font-size: 17px; }

/* ---------- Images ---------- */
figure { margin: 0 0 22px; }
.img-slot { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--teal-light); border: 2px solid var(--line); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
figcaption { font-size: 16px; color: var(--muted); margin-top: 8px; }
.img-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* ---------- Prose ---------- */
.prose p { margin: 0 0 20px; }
.prose ul { margin: 0 0 20px; padding-left: 26px; }
.prose li { margin-bottom: 10px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }

/* ---------- FAQ ---------- */
.faq details { border: 2px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 14px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 0; font-size: 21px; color: var(--deep); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--teal); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e8e4; max-width: 620px; margin: 0 auto 26px; font-size: 20px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips a { background: #fff; border: 2px solid var(--line); border-radius: 32px; padding: 11px 22px; text-decoration: none; color: var(--deep); font-weight: 700; font-size: 17px; }
.chips a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #cfe0dc; padding: 48px 0 100px; font-size: 17px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 19px; }
.site-footer a { color: #cfe0dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .legal { border-top: 1px solid #2f5a52; margin-top: 34px; padding-top: 20px; color: #9dbdb6; font-size: 15px; }
.footer-logo { height: 76px; width: auto; display: block; margin: 0 0 16px; }

/* ---------- Sticky call bar ---------- */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--terracotta); z-index: 100; box-shadow: 0 -2px 14px rgba(0,0,0,.2); }
.call-bar a { display: block; text-align: center; color: #fff; font-weight: 800; font-size: 21px; padding: 17px; text-decoration: none; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 16px; color: var(--muted); padding-top: 20px; }
.crumb a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; }
  .hero h1 { font-size: 52px; }
}
@media (min-width: 980px) {
  nav.main { display: flex; }
  .call-bar { display: none; }
  .site-footer { padding-bottom: 48px; }
  .img-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
