/* Senior Tech Foundation — site styles
   Palette pulled from the Foundation logo (cyan screen + navy dot). */
:root {
  --navy: #10263a;
  --navy-2: #1b3a55;
  --cyan: #4ce0ee;
  --teal: #0b6e7a;
  --teal-dark: #084f58;
  --sky: #e8f8fa;
  --sun: #ffc145;
  --sun-dark: #f0a91c;
  --ink: #1d2733;
  --muted: #4a5868;
  --line: #cfe3e7;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.25rem;          /* 20px — readable for older adults */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 4px solid var(--sun-dark); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.lead { font-size: 1.4rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 1.05rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #e9f3f6; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a:not(.btn) { color: var(--cyan); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--navy); padding: 12px 18px; font-weight: 700; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 76px; width: auto; }
.brand span { position: absolute; left: -9999px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list li { margin: 0; }
.nav-list a { display: block; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: 12px 12px; border-radius: var(--radius-sm); }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--navy-2); color: var(--cyan); }
.nav-list a.btn-donate { background: var(--sun); color: #000; margin-left: 8px; }
.nav-list a.btn-donate:hover { background: var(--sun-dark); color: #000; }
.menu { position: static; }
.menu summary { display: none; }
.menu summary::-webkit-details-marker { display: none; }
.topbar { background: var(--teal-dark); color: var(--white); font-size: 1.05rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); font-weight: 700; }

@media (max-width: 1080px) {
  .menu summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; background: var(--sun); color: var(--navy); font-weight: 800; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 1.15rem; }
  .menu summary .bars { width: 22px; height: 3px; background: var(--navy); position: relative; }
  .menu summary .bars::before, .menu summary .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 3px; background: var(--navy); }
  .menu summary .bars::before { top: -7px; } .menu summary .bars::after { top: 7px; }
  .menu:not([open]) .nav-list { display: none; }
  .menu[open] .nav-list { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 20px 24px; box-shadow: 0 16px 24px rgba(16, 38, 58, .35); }
  .menu[open] .nav-list a { font-size: 1.3rem; padding: 16px 12px; border-bottom: 1px solid var(--navy-2); }
  .nav-list a.btn-donate { margin: 12px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 1.2rem; text-decoration: none; border: 3px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn.btn--sun, .btn.btn--sun:visited { background: var(--sun); color: #000; }
.btn.btn--sun:hover, .btn.btn--sun:focus-visible { background: var(--sun-dark); color: #000; }
.btn.btn--light { background: var(--white); color: var(--navy); }
.btn.btn--light:hover { background: var(--cyan); color: #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Hero (the one bold move: a photo inside the logo's laptop) ---------- */
.hero { background: var(--navy); color: #e9f3f6; padding: 56px 0 64px; overflow: hidden; }
.hero h1 { color: var(--white); }
.hero .lead { color: #e9f3f6; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tagline { font-size: 1.35rem; color: var(--cyan); font-weight: 700; margin-bottom: 18px; }
.laptop { position: relative; padding-bottom: 26px; }
.laptop-screen { background: var(--cyan); padding: 16px; border-radius: 20px 20px 6px 6px; }
.laptop-screen img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.laptop-base { position: absolute; left: -7%; right: -7%; bottom: 0; height: 26px; background: var(--cyan); border-radius: 0 0 26px 26px; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 9px; transform: translateX(-50%); background: #33b9c6; border-radius: 0 0 10px 10px; }
.laptop-dot { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--sun); right: -14px; top: -22px; border: 6px solid var(--navy); }
.hero .btn--outline { color: var(--white); border-color: var(--white); }
.hero .btn--outline:hover { background: var(--white); color: var(--navy); }
.hero-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.hero-actions a { display: block; text-decoration: none; background: var(--white); border: 3px solid var(--white); border-radius: var(--radius-lg); padding: 20px 22px; color: var(--navy); }
.hero-actions a:hover { background: var(--sky); }
.hero-actions strong { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.hero-actions span { color: var(--muted); font-size: 1.05rem; line-height: 1.4; display: block; }
.hero-actions a.donate { background: var(--sun); border-color: var(--sun); }
.hero-actions a:hover, .hero-actions a.donate:hover { color: #000; }
.hero-actions a.donate:hover { background: var(--sun-dark); border-color: var(--sun-dark); }
.hero-actions a.donate span { color: var(--navy); }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: #e9f3f6; padding: 56px 0 60px; }
.page-head h1 { color: var(--white); }
.page-head .lead { color: #e9f3f6; }
.crumbs { font-size: 1.05rem; margin-bottom: 18px; }
.crumbs a { color: var(--cyan); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #8fb3c0; }
.answer { background: var(--sky); border-left: 8px solid var(--teal); padding: 22px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 32px; font-size: 1.3rem; max-width: 72ch; }
.answer p:last-child { margin: 0; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.content { max-width: 780px; }
.content h2 { margin-top: 1.6em; }
.content h2:first-child { margin-top: 0; }

/* Program rows — alternating photo/text, not cards */
.program { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: center; padding: 36px 0; border-top: 2px solid var(--line); }
.program:first-of-type { border-top: 0; }
.program img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.program h3 { font-size: 1.8rem; }
.free-tag { display: inline-block; background: var(--sun); color: var(--navy); font-weight: 800; padding: 4px 14px; border-radius: 999px; font-size: 1rem; margin-bottom: 12px; }

/* Steps — a real sequence, so it's numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 72px; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 800; font-size: 1.6rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: .3em; }

/* Impact */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; border-top: 3px solid var(--cyan); }
.stat { padding: 24px 20px 8px 0; }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--white); line-height: 1.1; }
.section--sky .stat b, .stat--light b { color: var(--navy); }
.stat span { display: block; font-size: 1.1rem; line-height: 1.45; }
.note { font-size: 1.05rem; margin-top: 24px; max-width: 80ch; }

/* Quotes */
.quote { margin: 0; background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 2px solid var(--line); }
.quote p { font-size: 1.25rem; }
.quote footer { font-weight: 800; color: var(--navy); }

/* Partners */
.logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 28px; }
.logos a, .logos div { display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); width: 230px; height: 130px; padding: 18px; }
.logos img { width: 100%; height: 92px; object-fit: contain; }

/* Audience paths */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.paths--3 { grid-template-columns: repeat(3, 1fr); }
.path { border-top: 6px solid var(--teal); padding-top: 18px; }
.path h3 { font-size: 1.35rem; }
.path p { font-size: 1.12rem; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 44px 20px 0; font-weight: 800; color: var(--navy); font-size: 1.3rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 2rem; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; }

/* Events */
.event { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 28px 0; border-top: 2px solid var(--line); }
.event-date { background: var(--navy); color: var(--white); border-radius: var(--radius-sm); text-align: center; padding: 14px 8px; align-self: start; }
.event-date b { display: block; font-size: 2.2rem; line-height: 1; }
.empty { border: 3px dashed var(--line); border-radius: var(--radius-lg); padding: 36px; background: var(--white); }

/* Forms */
.form { display: grid; gap: 22px; max-width: 720px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label, .field legend { display: block; font-weight: 800; color: var(--navy); margin-bottom: 8px; font-size: 1.2rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 1.02rem; margin-top: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.2rem; padding: 14px 16px; border: 2px solid #7c8ea0; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); min-height: 56px;
}
.field textarea { min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 4px solid rgba(11, 110, 122, .25); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; align-items: center; gap: 12px; margin: 6px 0; font-size: 1.15rem; }
.field .choice { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-weight: 400; color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.choice input { width: 26px; height: 26px; accent-color: var(--teal); flex: none; margin: 0; }
.req { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* Callout band */
.band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.band p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6e6ec; padding: 64px 0 32px; font-size: 1.1rem; }
.site-footer a:not(.btn) { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.3rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-logo { height: 72px; width: auto; margin-bottom: 18px; }
.social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 2px solid var(--navy-2); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--white); }
.social a:hover { border-color: var(--cyan); color: var(--cyan); }
.section--navy .social a:not(.btn) { color: var(--white); }
.section--navy .social a:hover { color: var(--cyan); }
.social--light a { color: var(--navy); border-color: var(--line); }
.social--light a:hover { color: var(--teal-dark); border-color: var(--teal); }
.legal { border-top: 1px solid var(--navy-2); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.legal p { margin: 0; }
.seal img { width: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .program { grid-template-columns: 1fr; gap: 32px; }
  .split--flip > :first-child { order: 0; }
  .hero-actions, .paths, .stats { grid-template-columns: 1fr 1fr; }
  .paths--3 { grid-template-columns: 1fr; }
  .cols-3, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .laptop { max-width: 560px; }
}
@media (max-width: 600px) {
  body { font-size: 1.2rem; }
  .section { padding: 52px 0; }
  .hero-actions, .paths, .stats, .cols-2, .form .row-2, .foot-grid { grid-template-columns: 1fr; }
  .brand img { height: 52px; }
  .event { grid-template-columns: 1fr; gap: 14px; }
  .event-date { justify-self: start; padding: 10px 18px; }
  .laptop-dot { width: 52px; height: 52px; right: -6px; top: -16px; border-width: 5px; }
  .btn { width: 100%; }
  .logos a, .logos div { width: calc(50% - 10px); height: 110px; }
}
@media print { .site-header, .site-footer, .topbar { display: none; } }

/* ---------- Events calendar ---------- */
.cal { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--white); }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.cal-title { margin: 0; font-size: 1.8rem; }
.cal-nav { font: inherit; font-weight: 800; font-size: 1.1rem; min-height: 52px; padding: 10px 18px; border-radius: 999px; border: 3px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.cal-nav:hover { background: var(--navy); color: var(--white); }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: 1rem; color: var(--muted); padding: 8px 4px; text-align: left; }
.cal-grid td { border: 1px solid var(--line); vertical-align: top; height: 96px; padding: 6px; }
.cal-day { display: block; font-weight: 700; color: var(--navy); }
.cal-empty { background: #f6fafb; }
.cal-today { background: var(--sky); }
.cal-today .cal-day { color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: 3px; }
.cal-event { display: block; margin-top: 4px; background: var(--teal); color: var(--white); font-size: .95rem; line-height: 1.3; padding: 4px 6px; border-radius: 6px; text-decoration: none; }
.cal-event:hover { background: var(--teal-dark); color: var(--white); }
.cal-event.cal-past { background: #d9e4e8; color: var(--navy); }
.cal-note { margin: 14px 0 0; }
@media (max-width: 700px) {
  .cal { padding: 14px; }
  .cal-nav span { position: absolute; left: -9999px; }
  .cal-nav { padding: 8px 16px; font-size: 1.4rem; }
  .cal-title { font-size: 1.4rem; }
  .cal-grid th { font-size: .85rem; padding: 4px 2px; }
  .cal-grid td { height: 64px; padding: 3px; font-size: .95rem; }
  .cal-event { font-size: 0; padding: 0; height: 10px; width: 10px; border-radius: 50%; margin-top: 6px; }
}
