/* ===========================================================
   Carer Kinship — landing site
   =========================================================== */

:root {
  --bg:          #FAF6F1;
  --band:        #F1EAE1;
  --surface:     #FFFFFF;
  --border:      #E7DDD1;
  --border-2:    #D9CDBE;

  --ink:         #2A2724;
  --ink-2:       #3A352F;
  --ink-3:       #4A443E;
  --ink-4:       #5C554E;
  --muted:       #6B6156;

  --ac:          #3F6B70;
  --ac-dark:     #2C4E52;
  --ac-tint:     #E7EEEE;
  --ac-soft:     #A9C4C6;

  --danger:      #A33F35;
  --amber:       #E0A96D;

  --shell:       1120px;
  --radius-lg:   28px;
  --radius:      24px;
  --radius-sm:   18px;
  --pill:        999px;

  --shadow:      0 10px 30px rgba(60, 45, 30, 0.08);
  --shadow-lg:   0 24px 60px rgba(60, 45, 30, 0.12);

  --header-h:    72px;
  --section-y:   clamp(48px, 8vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must always win, even over display: flex/grid rules
   (the form and its success panel both rely on it). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 6.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

h2 { font-size: clamp(28px, 4.2vw, 40px); margin: 0 0 12px; }
h3 { font-size: 21px; margin: 0 0 10px; }

p { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ac); }
a:hover { color: var(--ac-dark); }

:focus-visible {
  outline: 3px solid var(--ac);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ac);
  color: #fff;
  padding: 14px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- layout ---------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

.shell-narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

.section { padding-block: var(--section-y); }

.band {
  background: var(--band);
  padding-block: var(--section-y);
}

.section-lede {
  font-size: 19px;
  color: var(--ink-4);
  max-width: 34em;
  margin: 0 0 36px;
}

.body-lg {
  font-size: 19px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
/* Four cards: 4-up, then 2-up, then stacked. Explicit steps rather than
   auto-fit, so it never lands on a 3 + 1 orphan row. */
.grid-4 { grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: var(--pill);
  border: 0;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ac);
  color: #fff;
  box-shadow: 0 6px 18px rgba(63, 107, 112, 0.22);
}
.btn-primary:hover {
  background: var(--ac-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(63, 107, 112, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ac-dark);
  border: 1.5px solid #C9BCAC;
}
.btn-ghost:hover { background: var(--band); color: var(--ac-dark); }

.btn-sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 16px;
}

.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.9);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease, background-color .2s ease;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { backdrop-filter: blur(12px) saturate(1.4); }
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(60, 45, 30, 0.07); }

.header-inner {
  min-height: var(--header-h);
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  flex: 0 1 auto;
  text-decoration: none;
}
.brand-logo {
  width: auto;
  height: 30px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 420px) {
  .brand-logo { height: 24px; }
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: var(--pill);
  text-decoration: none;
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.nav-links a:hover { background: var(--band); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border-2);
  border-radius: 14px;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 18px;
  display: grid;
  gap: 2px;
  max-width: var(--shell);
  margin-inline: auto;
}
.mobile-menu a {
  display: block;
  padding: 14px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 18px;
  font-weight: 700;
}
.mobile-menu a:hover { background: var(--band); color: var(--ink); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
/* Keep the call button on the smallest phones — it's the primary action.
   Shorten the label rather than dropping the button. */
@media (max-width: 420px) {
  .nav-call-now { display: none; }
  .nav-call { padding-inline: 16px; }
  .nav { gap: 6px; }
  .header-inner { gap: 10px; padding-inline: 16px; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(36px, 7vw, 76px) clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--ac-tint);
  color: var(--ac-dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ac);
  flex: none;
  display: inline-block;
}

.lede {
  font-size: clamp(19px, 2.3vw, 22px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 34em;
  margin: 0 0 14px;
}
.sub {
  font-size: 18px;
  color: var(--ink-4);
  max-width: 34em;
  margin: 0 0 30px;
}

.hero-media { position: relative; }

.hero-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #EFE7DC;
  box-shadow: var(--shadow-lg);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the file is already cropped to 4:5, so this only matters if the
     frame ratio above ever changes — bias toward the faces if it does */
  object-position: 50% 35%;
}

.hero-badge {
  position: absolute;
  left: -8px;
  bottom: -18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  max-width: 240px;
}
.hero-badge-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.hero-badge-sub { margin: 2px 0 0; font-size: 15px; color: var(--ink-4); }

@media (max-width: 460px) {
  .hero-badge {
    position: static;
    margin-top: 14px;
    max-width: none;
  }
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.card p { font-size: 18px; color: var(--ink-3); }

.card-outline {
  border: 1px solid var(--border);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-outline:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-2);
}

.num {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ac);
  letter-spacing: 0.1em;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ac-tint);
  color: var(--ac-dark);
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 16px;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.about-figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

.placeholder {
  background-color: #E7DACA;
  background-image: repeating-linear-gradient(135deg, #DECEB9 0 12px, #E7DACA 12px 24px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px;
  box-shadow: none;
}
.placeholder span {
  font-size: 13px;
  color: var(--muted);
  background: rgba(250, 246, 241, 0.9);
  padding: 8px 14px;
  border-radius: var(--pill);
  text-align: center;
}

.facts {
  margin: 28px 0 0;
  display: grid;
  gap: 2px;
  background: #DCCFBE;
  border: 1px solid #DCCFBE;
  border-radius: 20px;
  overflow: hidden;
}
.facts > div {
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.facts dt { font-size: 17px; color: var(--ink-4); }
.facts dd { margin: 0; font-size: 17px; font-weight: 700; }

/* ---------- quotes ---------- */

.quotes {
  background: var(--ac);
  padding-block: clamp(48px, 8vw, 88px);
}
.quotes .shell { max-width: 1000px; }

.quote {
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.quote blockquote {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.45;
  color: #fff;
  font-weight: 600;
  text-wrap: pretty;
}
.quote figcaption { font-size: 17px; color: #DCE9E9; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  transition: background-color .16s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #FBF7F2; }

.faq-icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ac-tint);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 50%;
  width: 13px; height: 2.5px;
  margin: -1.25px 0 0 -6.5px;
  background: var(--ac-dark);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); opacity: 0; }

.faq-body {
  padding: 0 24px 24px;
  font-size: 18px;
  color: var(--ink-3);
  max-width: 60ch;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
}

.contact-list { display: grid; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  min-height: 64px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.contact-item .dot { width: 10px; height: 10px; }
.contact-label { display: block; font-size: 15px; color: var(--ink-4); }
.contact-value { display: block; font-size: 20px; font-weight: 700; }
.contact-item.static .contact-value { font-size: 19px; }

.fineprint {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- form ---------- */

.form-card {
  background: var(--surface);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }
.field label {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-2);
}
.optional { font-weight: 400; color: var(--ink-4); }

.field input,
.field textarea {
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-2);
  background: #FBF8F4;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea {
  min-height: 0;
  line-height: 1.6;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-soft);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FDF6F5;
}

.error {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--danger);
}

.form-status {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-3);
  min-height: 0;
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }

.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-success {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.form-success h3 { font-size: 24px; margin: 0; }
.form-success p { font-size: 18px; color: var(--ink-3); margin: 0; }
.form-success .btn { margin-top: 8px; align-self: flex-start; min-height: 52px; padding: 14px 24px; }

button[disabled] { opacity: .65; cursor: progress; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #E9E2D9;
  padding: clamp(40px, 6vw, 64px) 0 40px;
}
.footer-inner { display: grid; gap: 32px; }

.crisis {
  background: #3A3630;
  border-left: 4px solid var(--amber);
  border-radius: 16px;
  padding: 22px 24px;
}
.crisis-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: #fff; }
.crisis p { font-size: 17px; line-height: 1.7; color: #E9E2D9; }
.crisis strong { color: #fff; }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-brand { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: #fff; }
.footer-sub { margin: 0; font-size: 16px; color: #B8AFA3; }
.footer-meta { margin: 0; font-size: 15px; color: #B8AFA3; }
.acknowledgement { margin: 0; font-size: 15px; color: #9A9187; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- print ---------- */

@media print {
  .site-header, .nav, .form-card, .skip-link { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .band, .quotes { background: #fff !important; }
  .quote blockquote, .quote figcaption { color: #000 !important; }
}
