/* Self-hosted fonts (SIL Open Font License, see assets/fonts/). Latin and Latin Extended only. */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lexend-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Day & Night Compassionate Care styles
   Shape rule: cards, panels and photos 12px; buttons and inputs 8px; badges and chips fully round. */

:root {
  --color-primary: #0B2F6B;
  --color-on-primary: #FFFFFF;
  --color-secondary: #2E5AA8;
  --color-accent: #C9971E;
  --color-accent-hover: #AD7F16;
  --color-accent-tint: rgba(201, 151, 30, 0.16);
  --color-on-accent: #071D3F;
  --color-background: #FFFFFF;
  --color-section-alt: #EEF2F8;
  --color-foreground: #071D3F;
  --color-text: #1E2536;
  --color-text-muted: #45506A;
  --color-muted: #E7ECF5;
  --color-border: #D7DFEE;
  --color-destructive: #B91C1C;
  --color-ring: #0B2F6B;
  --color-shadow: 11, 47, 107;
  --color-footer-text: #DCE4F0;

  --font-heading: "Lexend", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;

  --radius-card: 12px;
  --radius-control: 8px;
  --container: 1140px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-press: 150ms;
  --duration-ui: 200ms;
  --duration-entrance: 400ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  position: relative;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-foreground);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
  max-width: 70ch;
}

a { color: var(--color-primary); text-underline-offset: 3px; }

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

/* Icons (inline SVG). They size with the text around them. */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

a .icon,
summary .icon { pointer-events: none; }

@media print {
  .blob,
  .nav-toggle,
  .skip-link,
  .cta-section { display: none !important; }
  .site-header { position: static; backdrop-filter: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .site-nav { position: static; max-height: none; visibility: visible; box-shadow: none; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container.narrow { max-width: 820px; }

/* ---------- Background decoration ---------- */

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
}

.blob-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: var(--color-secondary); }
.blob-2 { width: 380px; height: 380px; top: 20%; right: -140px; background: var(--color-primary); opacity: 0.1; }
.blob-3 { width: 340px; height: 340px; bottom: -100px; left: 30%; background: var(--color-primary); opacity: 0.08; }

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-control) 0;
}

.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-foreground);
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--color-foreground);
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--color-accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 22px;
  cursor: pointer;
  transition: transform var(--duration-press) var(--ease-out);
}

.nav-toggle:active { transform: scale(0.94); }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { text-decoration: underline; }
}

@media (max-width: 900px) {
  .logo { font-size: 1rem; white-space: normal; min-width: 0; line-height: 1.25; }
  .logo span { text-wrap: balance; }
  .logo-mark { height: 34px; }

  /* Without JavaScript the menu simply shows as a list under the logo,
     and the (now taller) header scrolls away instead of staying pinned. */
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  html:not(.js) .site-header { position: relative; }

  /* With JavaScript it collapses behind the menu button. Hidden links are
     also made invisible so keyboard users cannot tab into a closed menu. */
  .js .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; flex-shrink: 0; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(var(--color-shadow), 0.12);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--duration-ui) var(--ease-out), visibility 0s linear var(--duration-ui);
  }

  .js .site-nav.is-open {
    max-height: 420px;
    visibility: visible;
    transition: max-height var(--duration-ui) var(--ease-out), visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-xs) var(--space-md) var(--space-sm);
  }

  .site-nav a {
    display: flex;
    min-height: 52px;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav li:last-child a { border-bottom: none; }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--color-accent);
    padding-left: 0.85rem;
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-control);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--duration-ui) ease, color var(--duration-ui) ease, border-color var(--duration-ui) ease, transform var(--duration-press) var(--ease-out);
}

.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
  .btn-secondary:hover { background: var(--color-background); transform: translateY(-2px); }
}

.btn:active { transform: scale(0.97); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-primary);
}

.text-link .icon { transition: transform var(--duration-ui) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .text-link:hover .icon { transform: translateX(3px); }
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ---------- Sections ---------- */

section { padding: var(--space-xl) 0; }

section.alt {
  background: rgba(238, 242, 248, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.section-actions { margin: var(--space-md) 0 0; }

.lead {
  font-size: 1.2rem;
  max-width: 60ch;
  color: var(--color-text);
}

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

.hero { padding: var(--space-xl) 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 48px rgba(var(--color-shadow), 0.18);
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 { max-width: 22ch; }

.service-hero h1 { margin-top: var(--space-sm); }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 var(--space-sm);
  padding: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--color-border);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust strip ---------- */

.trust {
  padding: var(--space-md) 0;
  background: rgba(255, 255, 255, 0.9);
  border-block: 1px solid var(--color-border);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-foreground);
  line-height: 1.3;
}

.trust-icon,
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-accent-tint);
  color: var(--color-primary);
}

.trust-icon { width: 48px; height: 48px; font-size: 24px; }
.icon-chip { width: 36px; height: 36px; font-size: 20px; }
.icon-chip-lg { width: 56px; height: 56px; font-size: 28px; }

@media (max-width: 900px) {
  .trust-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .trust-list { grid-template-columns: 1fr; gap: var(--space-sm); }
}

/* ---------- Cards and panels ---------- */

.eligibility-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.eligibility-card,
.panel,
.faq-item,
.step {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(var(--color-shadow), 0.08);
}

.eligibility-card,
.panel { padding: var(--space-md); }

.eligibility-card > :last-child,
.panel > :last-child,
.step p:last-child { margin-bottom: 0; }

.panel + .panel { margin-top: var(--space-md); }
.two-col > .panel + .panel { margin-top: 0; }

.panel h2 { font-size: 1.35rem; }

.panel-title,
.eligibility-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eligibility-card h3 .icon { font-size: 22px; color: var(--color-primary); }
.eligibility-card.no h3,
.eligibility-card.no h3 .icon,
.panel-title .icon-danger { color: var(--color-destructive); }

.eligibility-card ul,
.plain-list {
  margin: 0;
  padding-left: 1.25rem;
}

.eligibility-card li,
.plain-list li { margin-bottom: 0.4rem; }

.eligibility-card li a { display: inline-block; padding: 0.2rem 0; }

@media (max-width: 760px) {
  .eligibility-grid,
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Checklists ---------- */

.checklist {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  padding: 0.45rem 0;
}

.checklist .icon {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--color-primary);
  margin-top: 0.15rem;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.service-grid-3 { grid-template-columns: repeat(3, 1fr); }

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(var(--color-shadow), 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) ease;
}

.card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-muted);
}

.card-media picture { height: 100%; }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-entrance) var(--ease-out);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-md);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
}

.card-body p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-primary);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(var(--color-shadow), 0.16);
  }

  .service-card:hover .card-media img { transform: scale(1.04); }
  .service-card:hover .card-link { text-decoration: underline; }
}

.service-card:active { transform: scale(0.99); }

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .service-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; gap: var(--space-sm); }

  /* Compact cards on phones: photo beside text keeps eight services to a short scroll. */
  .service-card { flex-direction: row; }
  .card-media { aspect-ratio: auto; width: 108px; flex-shrink: 0; }
  .card-body { padding: var(--space-sm); }
  .card-title { font-size: 1.05rem; margin-bottom: 0.3em; }
  .card-title .icon-chip { display: none; }
  .card-body p { font-size: 0.95rem; margin-bottom: 0.4em; }
}

.services-list { padding-top: var(--space-lg); }

.service-category { scroll-margin-top: 96px; }
.service-category + .service-category { margin-top: var(--space-xl); }
.service-category .section-intro { margin-bottom: var(--space-md); }

/* ---------- Service categories (home page overview) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(var(--color-shadow), 0.08);
}

.category-card h3 { margin-top: var(--space-sm); }
.category-card > p { font-size: 1rem; color: var(--color-text-muted); }

.category-links {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}

.category-links li:last-child a { border-bottom: none; }
.category-links .icon { flex-shrink: 0; color: var(--color-accent); }

@media (hover: hover) and (pointer: fine) {
  .category-links a:hover { text-decoration: underline; }
}

@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* ---------- Category jump links (services page) ---------- */

.category-jump ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.category-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-background);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-foreground);
}

.category-jump .icon { color: var(--color-primary); font-size: 20px; }

@media (hover: hover) and (pointer: fine) {
  .category-jump a:hover { border-color: var(--color-primary); }
}

/* ---------- Image and text split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split-reverse .media { order: 2; }

.media img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(var(--color-shadow), 0.14);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split-reverse .media { order: 0; }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.step { padding: var(--space-md); }

.step h3 { margin-bottom: 0.4em; }
.step p { font-size: 1rem; margin-bottom: 0.5em; }
.step-more { color: var(--color-text-muted); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.steps-vertical {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.steps-vertical .step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.steps-vertical .step-number { flex-shrink: 0; margin-bottom: 0; }
.steps-vertical .step p { font-size: 1.05rem; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-vertical { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-sm); }
  .step { display: flex; gap: var(--space-sm); align-items: flex-start; }
  .step-number { flex-shrink: 0; margin-bottom: 0; }
}

/* ---------- Values ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.value {
  border-top: 3px solid var(--color-accent);
  padding-top: var(--space-md);
}

.value h3 { margin-top: var(--space-sm); font-size: 1.35rem; }

@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ---------- Status note ---------- */

.status-note {
  border-left: 4px solid var(--color-accent);
  background: var(--color-background);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  box-shadow: 0 4px 16px rgba(var(--color-shadow), 0.06);
}

.status-note p { margin: 0; }

/* ---------- FAQ ---------- */

.faq-item {
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  min-height: 56px;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-foreground);
  list-style: none;
  cursor: pointer;
  transition: background-color var(--duration-ui) ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:active { background-color: var(--color-muted); }

.chevron {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--color-primary);
  transition: transform var(--duration-ui) var(--ease-out);
}

.faq-item[open] .chevron { transform: rotate(180deg); }

.faq-answer { padding: 0 var(--space-md) var(--space-sm); }

/* ---------- Call to action band ---------- */

.cta-section { padding-top: 0; }
section.alt + .cta-section { padding-top: var(--space-xl); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--color-foreground);
  box-shadow: 0 24px 48px rgba(var(--color-shadow), 0.22);
}

.cta-band h2 { color: #FFFFFF; margin-bottom: 0.3em; }
.cta-band p { color: var(--color-footer-text); margin: 0; }

@media (max-width: 760px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-field label,
.form-field legend {
  font-weight: 600;
  color: var(--color-foreground);
  padding: 0;
}

.form-field legend { margin-bottom: 0.45rem; }

.required { color: var(--color-destructive); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid #7D8BA6;
  border-radius: var(--radius-control);
  background: var(--color-background);
  color: var(--color-text);
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--color-primary); }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem var(--space-md);
}

.form-field .checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
}

.checkbox input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.form-note { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }
.form-hint { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }

/* Spam trap: invisible to people and screen readers, but bots fill it in. */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .btn { align-self: flex-start; }

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-details li,
.footer-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.contact-details .icon {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--color-primary);
  margin-top: 0.15rem;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-row,
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */

.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: var(--space-lg); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45rem; max-width: 68ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-foreground);
  color: var(--color-footer-text);
  padding: var(--space-xl) 0 var(--space-lg);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
}

.footer-brand img {
  width: 132px;
  height: auto;
  margin-bottom: var(--space-sm);
  padding: 6px;
  background: #FFFFFF;
  border-radius: var(--radius-card);
}

.site-footer h2 {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.footer-subhead { margin-top: var(--space-md); }

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-contact a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--color-footer-text);
  text-decoration: none;
}

.footer-contact li { padding: 0.3rem 0; }
.footer-contact .icon { font-size: 20px; color: #E8C874; margin-top: 0.2rem; flex-shrink: 0; }

.site-footer .placeholder { color: #B7C4D9; }

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover,
  .footer-contact a:hover { color: #E8C874; text-decoration: underline; }
}

.footer-meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  color: #B7C4D9;
}

.footer-meta p { margin-bottom: 0.4em; max-width: none; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ---------- Motion ---------- */

/* Sections only start hidden when JavaScript is running to reveal them. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-entrance) var(--ease-out), transform var(--duration-entrance) var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Logo intro (home page only, plays once on load). The house outline draws on
   stroke by stroke, then the window, the gold heart and the hand settle in.
   Arrivals ease out and nothing overshoots. Final frame is the untouched logo. */
.logo-animated { overflow: visible; }

.logo-stroke {
  stroke-dasharray: 1;
  animation: logo-draw 700ms var(--ease-out) both;
}
.logo-stroke-roof { animation-delay: 150ms; }
.logo-stroke-chimney { animation-delay: 600ms; animation-duration: 300ms; }
.logo-stroke-wall { animation-delay: 350ms; }

.logo-window,
.logo-heart,
.logo-hand {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-settle 400ms var(--ease-out) 800ms both;
}
.logo-heart { animation-duration: 500ms; animation-delay: 1000ms; }
.logo-hand { animation-name: logo-rise; animation-duration: 600ms; animation-delay: 1100ms; }

@keyframes logo-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes logo-settle {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}

@keyframes logo-rise {
  from { opacity: 0; transform: translateY(120px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .blob { display: none; }
  .logo-animated * { animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  section.alt {
    background: var(--color-background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  section.alt { background: var(--color-section-alt); }
}

@media (max-width: 560px) {
  :root { --space-xl: 3.25rem; --space-lg: 2rem; }
  .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Photo focal points (generated from src/photos.mjs) */
.photo-focus-sittingTogether { object-position: 15% 50%; }
.photo-focus-car { object-position: 70% 50%; }
.photo-focus-carerBreak { object-position: 25% 50%; }
