/* Harbor Home Care: fictional sample by Venant Studio (redesign 2026-09-28).
   Written for older adults and their families: large, legible type (Atkinson Hyperlegible),
   navy and butter from the lighthouse logo, photographs framed like family pictures,
   and a day at home that the sun walks through as you scroll. */
:root {
  --navy: #284f67;
  --navy-deep: #173347;
  --butter: #f2d27a;
  --butter-2: #fbeec4;
  --salt: #eef3f5;
  --white: #fff;
  --ink: #173347;
  --ink-2: #44606f;
  --line: #cfdce2;
  --display: "Literata", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 1.1875rem/1.65 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 8px var(--butter); }
[id] { scroll-margin-top: 100px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -70px; background: var(--navy-deep); color: #fff; padding: 12px 16px; z-index: 60; font-size: 1.1rem; }
.skip:focus { top: 12px; }
.notice { background: var(--navy-deep); color: #dce8ee; font-size: .9rem; }
.notice .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 8px; }
.notice a { color: #fff; }

.hdr { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 46px; height: 46px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.05; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a { text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; text-decoration-color: var(--butter); }
.menu-btn { display: none; border: 2px solid var(--navy); background: var(--white); border-radius: 12px; padding: 10px 18px; font: 700 1.05rem var(--body); color: var(--navy); cursor: pointer; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 15px 24px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; transition: background-color .18s; min-height: 56px; }
.btn:hover { background: var(--navy-deep); }
.btn.light { background: var(--white); color: var(--navy); }
.btn.light:hover { background: var(--butter-2); }

/* hero */
.hero { background: var(--salt); padding-block: clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .where { font-weight: 700; color: var(--navy); }
.hero h1 { margin-top: 12px; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.2rem); }
.hero .lead { margin-top: 22px; font-size: 1.25rem; color: var(--ink-2); max-width: 30em; }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.frame { background: var(--white); padding: 16px 16px 48px; border-radius: 6px; box-shadow: 0 30px 50px -28px rgba(23,51,71,.45), 0 0 0 1px var(--line); transform: rotate(1.5deg); }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.frame figcaption { margin-top: 14px; font-size: .95rem; color: var(--ink-2); text-align: center; }

/* a day at home */
.day { padding-block: clamp(72px, 9vw, 128px); }
.day h2 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.6rem); }
.day .intro { margin-top: 14px; color: var(--ink-2); max-width: 36em; }
.day .grid { margin-top: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); }
.sky { position: sticky; top: 150px; align-self: start; }
.sky svg { width: 100%; height: auto; overflow: visible; }
.sky .arc-bg { stroke: var(--line); }
.sky .arc { stroke: var(--butter); }
.sky .now { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--navy); min-height: 2.2em; }
.moments { list-style: none; }
.moments li { padding: 26px 0 26px 22px; border-left: 4px solid var(--line); transition: border-color .3s, background-color .3s; }
.moments li.is-on { border-left-color: var(--butter); background: linear-gradient(90deg, var(--butter-2), transparent 70%); }
.moments .t { font-weight: 700; color: var(--navy); font-size: 1rem; }
.moments h3 { margin-top: 4px; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); }
.moments p { margin-top: 6px; color: var(--ink-2); max-width: 30em; }
.moments .svc { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .95rem; background: var(--salt); border-radius: 8px; padding: 3px 10px; }

/* why families */
.why { background: var(--navy); color: #eaf1f4; padding-block: clamp(72px, 9vw, 128px); }
.why .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.why h2 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.6rem); color: #fff; }
.why .lede { margin-top: 18px; color: #c9d9e1; }
.why .checks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 700; }
.why .checks svg { width: 30px; height: 30px; }
.why .note { margin-top: 24px; background: var(--butter); color: var(--navy-deep); padding: 20px 22px; border-radius: 14px; font-weight: 700; }

/* team */
.team { padding-block: clamp(72px, 9vw, 128px); }
.team h2 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.6rem); }
.people { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.people .frame { transform: none; padding: 12px 12px 14px; }
.people li:nth-child(1) .frame { transform: rotate(-1.2deg); }
.people li:nth-child(3) .frame { transform: rotate(1deg); }
.people .ph { aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.people img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transform: scale(1.45); transform-origin: 50% 22%; }
.people h3 { margin-top: 20px; font-size: 1.6rem; }
.people .role { font-weight: 700; color: var(--navy); }
.people p { margin-top: 6px; color: var(--ink-2); }

/* hours */
.hours { background: var(--salt); padding-block: clamp(72px, 9vw, 128px); }
.hours .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hours h2 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.6rem); }
.hours .lede { margin-top: 16px; color: var(--ink-2); }
.hours address { margin-top: 22px; font-style: normal; font-weight: 700; }
.hours address small { display: block; font-weight: 400; color: var(--ink-2); font-size: .95rem; }
.days { background: var(--white); border-radius: 18px; padding: 10px 24px; box-shadow: 0 0 0 1px var(--line); }
.days li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.days li:last-child { border-bottom: 0; }
.days b { font-weight: 700; }
.days .off { color: #6b8290; }

/* faq, demo */
.faq { padding-block: clamp(72px, 9vw, 128px); }
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.faq h2 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.6rem); }
.qs details { border-bottom: 2px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; padding: 22px 50px 22px 0; position: relative; font-weight: 700; font-size: 1.25rem; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "Show"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: .9rem; font-weight: 700; color: var(--navy); background: var(--salt); border-radius: 8px; padding: 2px 8px; }
.qs details[open] summary::after { content: "Hide"; }
.qs details p { padding-bottom: 22px; color: var(--ink-2); max-width: 38em; }
.demo { background: var(--butter-2); padding-block: clamp(72px, 9vw, 128px); }
.demo .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.demo h2 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.6rem); }
.demo .lede { margin-top: 16px; color: var(--ink-2); }
.demo .demo-note { margin-top: 20px; border: 2px dashed #d9bf6b; border-radius: 14px; padding: 16px 18px; font-size: 1rem; color: var(--ink-2); }
.form { background: var(--white); padding: clamp(22px, 3vw, 36px); border-radius: 20px; display: grid; gap: 20px; box-shadow: 0 0 0 1px #ead79b; }
.form label { display: block; font-weight: 700; margin-bottom: 8px; }
.form select, .form input { width: 100%; min-height: 56px; font: 400 1.1rem var(--body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.form select:focus-visible, .form input:focus-visible { border-color: var(--navy); }
.form .err { color: #a3261c; font-weight: 700; margin-top: 8px; }
.form .err:empty { display: none; }
.form .btn { justify-content: center; }
.preview { background: var(--salt); border-radius: 14px; padding: 16px 18px; }
.preview[hidden] { display: none; }
.preview b { display: block; font-family: var(--display); font-size: 1.35rem; }

.ftr { background: var(--navy-deep); color: #cfdde4; padding-block: 56px 32px; }
.ftr .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ftr .brand span { color: #fff; }
.ftr h3 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; color: #fff; }
.ftr ul { margin-top: 10px; display: grid; gap: 8px; }
.ftr a { text-decoration: none; } .ftr a:hover { text-decoration: underline; }
.ftr .base { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; margin-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .95rem; color: #a9c0cc; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 2px solid var(--line); padding: 8px var(--pad) 20px; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 14px 0; font-size: 1.2rem; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .hero .wrap, .day .grid, .why .wrap, .hours .wrap, .faq .wrap, .demo .wrap, .ftr .wrap { grid-template-columns: 1fr; }
  .frame { transform: none; }
  .sky { position: sticky; top: 80px; z-index: 5; background: var(--white); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .sky { padding: 6px 0; }
  .sky svg { max-width: 180px; margin-inline: auto; }
  .sky .now { text-align: center; font-size: 1.05rem; min-height: 0; margin-top: 0; }
  .people { grid-template-columns: 1fr; max-width: 420px; }
  .people li .frame { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Phones, 2026-11-12: the photo comes before the button (DESIGN.md rule 8) */
@media (max-width: 700px) {
  .hero .wrap { row-gap: 0; }
  .hero .wrap > div { display: contents; }
  .hero .where { order: 1; } .hero h1 { order: 2; } .hero .lead { order: 3; }
  .hero .frame { order: 4; margin-top: 24px; }
  .hero .actions { order: 5; margin-top: 24px; }
}
