@font-face { font-family: 'Lora'; src: url('/assets/fonts/lora-var.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('/assets/fonts/notosans-var.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #F7FCFD;
  --surface: #E7F4F7;
  --text: #153B56;
  --muted: #466273;
  --primary: #00766C;
  --primary-hover: #005D56;
  --accent: #D7E9A2;
  --border: #B4CCD4;
  --head: 'Lora', Georgia, serif;
  --body: 'Noto Sans', system-ui, sans-serif;
  --gutter: 24px;
  --gap: 80px;
}
@media (min-width: 1000px) { :root { --gutter: 56px; --gap: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/30px var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.section--navy :focus-visible, .footer :focus-visible, .btn:focus-visible { outline-color: var(--text); }
.section--navy :focus-visible, .footer :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1000px) { .wrap { max-width: 1212px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }
.h2 { font-size: 30px; line-height: 37px; margin-bottom: 24px; }
@media (min-width: 1000px) { .h2 { font-size: 44px; line-height: 52px; margin-bottom: 32px; } }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .18s ease; }
.text-link:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 12px; background: var(--primary); color: #fff; border: 2px solid var(--primary); font: 600 17px/1.2 var(--body); text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--surface); border-color: var(--text); }
.btn--block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--head); min-height: 44px; }
.brand img { width: 44px; mix-blend-mode: multiply; }
.nav__toggle { min-height: 48px; padding: 0 18px; border: 2px solid var(--text); border-radius: 12px; background: transparent; color: var(--text); font: 600 16px var(--body); cursor: pointer; }
.nav__toggle-close, .nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-close { display: inline; }
.nav__menu { display: none; }
.nav__menu.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--border); }
.nav__menu.is-open a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 500; }
@media (min-width: 1000px) {
  .header__inner { height: 80px; }
  .brand img { width: 52px; }
  .brand { font-size: 21px; }
  .nav__toggle { display: none; }
  .nav__menu, .nav__menu.is-open { display: flex; flex-direction: row; gap: 36px; position: static; padding: 0; border: 0; }
  .nav__menu a, .nav__menu.is-open a { display: inline-flex; align-items: center; min-height: 44px; border: 0; text-decoration: none; font-weight: 500; }
  .nav__menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
}

/* Hero: sticky photo-led care story */
.story { padding: 40px 0 72px; }
.story__inner { display: grid; gap: 32px; }
.story__title { font-size: 42px; line-height: 1.1; margin-bottom: 16px; }
.story__sub { font-size: 19px; line-height: 1.55; max-width: 32ch; margin-bottom: 24px; }
.story__actions { display: grid; gap: 12px; margin-bottom: 18px; }
.story__proof a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--muted); text-underline-offset: 4px; }
.story__photo img { width: 100%; border-radius: 16px; }
.story__h2 { font-size: 30px; line-height: 37px; margin-bottom: 12px; }
.story__passage--second p { max-width: 40ch; color: var(--muted); }
@media (min-width: 1000px) {
  .story { padding: 64px 0 96px; }
  .story__inner { grid-template-columns: 44fr 56fr; grid-template-rows: auto auto; column-gap: 80px; row-gap: 80px; }
  .story__photo { grid-column: 1; grid-row: 1 / 3; align-self: start; position: sticky; top: 104px; width: 420px; max-width: 100%; }
  .story__passage { grid-column: 2; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
  .story__passage--first { grid-row: 1; }
  .story__passage--second { grid-row: 2; border-top: 1px solid var(--border); padding-top: 48px; justify-content: flex-start; }
  .story__title { font-size: 64px; line-height: 1.08; margin-bottom: 20px; }
  .story__sub { font-size: 21px; max-width: 34ch; margin-bottom: 32px; }
  .story__actions { display: flex; gap: 14px; }
  .story__h2 { font-size: 44px; line-height: 52px; margin-bottom: 16px; }
  .story__passage--second p { font-size: 20px; line-height: 32px; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .story__photo { position: static !important; } }

/* Sections */
.section { padding: var(--gap) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--text); color: #fff; }
.intro { font-size: 20px; line-height: 1.55; max-width: 44ch; margin-bottom: 40px; }
@media (min-width: 1000px) { .intro { font-size: 22px; margin-bottom: 56px; } }

.rows { border-top: 1px solid var(--border); }
.row { display: grid; gap: 6px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.row__title { font-size: 24px; line-height: 1.25; }
.row p { color: var(--muted); max-width: 56ch; }
@media (min-width: 1000px) { .row { grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 44px 0; align-items: baseline; } .row__title { font-size: 30px; } }

.prose { max-width: 762px; }
.prose p { max-width: 56ch; margin-bottom: 18px; }
.prose__lead { font-size: 21px; line-height: 1.55; }
@media (min-width: 1000px) { .prose__lead { font-size: 24px; } }

.words { display: grid; gap: 28px; }
.words__quote blockquote p { font: 500 36px/1.15 var(--head); letter-spacing: -.015em; max-width: 18ch; margin-bottom: 18px; }
.words__quote figcaption { font-size: 16px; color: var(--surface); }
.words__quote figcaption a { color: #fff; text-underline-offset: 3px; }
.words__body { color: var(--surface); max-width: 40ch; font-size: 19px; }
@media (min-width: 1000px) { .words { grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: end; } .words__quote blockquote p { font-size: 60px; } }

.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 19px; line-height: 1.4; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; font-size: 26px; line-height: 1; color: var(--primary); flex: none; }
.faq__item[open] .faq__q::after { content: '\2212'; }
.faq__a { padding: 0 0 22px; }
.faq__a p { color: var(--muted); }
.faq__a a { color: var(--primary); font-weight: 600; }

.contact { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.details { display: grid; gap: 20px; }
.details dt { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--muted); }
.details dd a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.form { background: var(--surface); border-radius: 16px; padding: 28px 20px; }
@media (min-width: 1000px) { .form { padding: 40px; } }
.form__title { font-size: 26px; line-height: 1.2; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 10px; background: #fff; color: var(--text); font: 400 18px/1.4 var(--body); }
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: #6B8291; }
.field [aria-invalid="true"] { border: 2px solid #A3261B; }
.field__error { color: #A3261B; font-size: 15px; font-weight: 600; margin-top: 4px; }
.field__error:empty { display: none; }
.form__status { margin-top: 16px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { padding: 14px 16px; background: var(--accent); color: var(--text); border-radius: 10px; }
.form__status[data-state="error"] { color: #A3261B; }

.footer { background: var(--text); color: #fff; padding: 48px 0; font-size: 16px; line-height: 1.6; }
.footer__inner { display: grid; gap: 16px; }
.footer a { display: inline-block; padding: 10px 0; color: #fff; text-underline-offset: 3px; }
.footer__credit { color: var(--surface); font-size: 14px; }
@media (min-width: 1000px) { .footer__inner { grid-template-columns: 1fr auto auto; gap: 48px; align-items: center; } }
