/* Novel Home Care — soft blue, calm, readable.
   Layout: a light sky-tinted page, white "rooms" for content, wide line-height for older readers. */
:root {
  --sky: #F4F8FD;          /* page background */
  --cloud: #FFFFFF;        /* panels */
  --mist: #E3EEFA;         /* soft fills */
  --line: #CFE0F2;         /* borders */
  --blue: #2F6FBF;         /* brand blue (from the logo) */
  --blue-deep: #1E4C86;    /* buttons, links on hover */
  --ink: #1B2B42;          /* body text */
  --ink-soft: #4A5D78;     /* secondary text */
  --focus: #F2A93B;        /* keyboard focus ring, high contrast on blue and white */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-0: 1.0625rem;     /* 17px body — friendlier for older visitors */
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.2; color: var(--ink); text-wrap: balance; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; display: block; }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--blue-deep); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--cloud); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { text-decoration: none; display: inline-flex; }
/* Logo: house-and-heart mark + Fraunces wordmark */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--blue-deep); }
.logo-mark { width: 46px; height: 46px; flex: none; }
.lm-house { fill: var(--mist); stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; }
.lm-heart { fill: var(--blue); }
.lm-sun { fill: #8DBCE8; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; letter-spacing: -0.02em; color: var(--blue-deep); }
.logo-tag { font-family: var(--font-body); font-weight: 800; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-top: 5px; }
.brand:hover .lm-heart { fill: var(--blue-deep); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--mist); color: var(--blue-deep); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--mist); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: var(--mist); border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 800; color: var(--blue-deep); cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cloud); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px max(20px, env(safe-area-inset-left, 0px)) 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff !important; text-decoration: none; font-weight: 800; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--blue); cursor: pointer; font: inherit; font-weight: 800; line-height: 1.2; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--blue-deep) !important; border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); border-color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(48px, 7vw, 88px); }
.band { background: var(--cloud); border-block: 1px solid var(--line); }

.hero { padding-block: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero blockquote { margin: 1.4rem 0 0; padding: 14px 18px; background: var(--cloud); border-radius: 14px; border: 1px solid var(--line); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); max-width: 32em; }
.hero-art { background: var(--cloud); border-radius: 32px; padding: 12px; border: 1px solid var(--line); }

.page-head { padding-block: clamp(36px, 5vw, 60px) clamp(24px, 3vw, 36px); }
.page-head .lead { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split > * { min-width: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }

.card { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.icon { width: 52px; height: 52px; border-radius: 16px; background: var(--mist); color: var(--blue); display: grid; place-items: center; margin-bottom: 10px; }
.icon svg { width: 28px; height: 28px; }

.check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 10px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6FBF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }

.cta { background: var(--blue-deep); color: #EAF3FC; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.cta > * { min-width: 0; }
.cta h2 { color: #fff; }
.cta p { color: #D6E7F8; margin: 0; }
.cta .btn { background: #fff; color: var(--blue-deep) !important; border-color: #fff; }
.cta .btn:hover { background: var(--mist); border-color: var(--mist); }
.cta .btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.cta .btn-row { justify-content: flex-end; margin: 0; }

/* Video (click-to-load, respects cookie choices) */
.video-shell { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-gate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.video-gate p { max-width: 30em; color: var(--ink-soft); font-size: .95rem; }

/* Contact */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cloud); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: 3px solid var(--mist); }
.field small { color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 12px 16px; border-radius: 12px; background: var(--mist); font-weight: 700; }
.form-status.error { background: #FDECEC; color: #8A1F1F; }

/* Links / documents */
.doc { display: flex; gap: 18px; align-items: flex-start; }
.doc .icon { flex: none; margin: 0; }
.doc-tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); background: var(--mist); padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.legal > * { min-width: 0; }
.toc { position: sticky; top: 100px; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.prose { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; scroll-margin-top: 100px; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.updated { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.6em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0 1.4em; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { background: #17365F; color: #CFE0F2; padding-block: 56px 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid address { font-style: normal; }
.footer-logo { display: inline-flex; margin-bottom: 14px; text-decoration: none; }
.footer-logo .lm-house { fill: rgba(255,255,255,.08); stroke: #8DBCE8; }
.footer-logo .lm-heart { fill: #CFE0F2; }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-tag { color: #A9CBEF; }
.footer-bottom { border-top: 1px solid rgba(207,224,242,.25); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Cookie banner + settings ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0 max(16px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cookie-card { max-width: 960px; margin-inline: auto; background: var(--cloud); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px rgba(27,43,66,.18); padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.cookie-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.cookie-card .btn-row { margin: 0; }
.cookie-card .btn { padding: 10px 18px; font-size: .95rem; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(23,54,95,.45); z-index: 95; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--cloud); border-radius: 22px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px; box-shadow: 0 20px 60px rgba(27,43,66,.3); }
.modal h2 { margin-bottom: .3em; }
.pref { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pref:last-of-type { border-bottom: 0; }
.pref h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 0 0 4px; }
.pref p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.switch { position: relative; flex: none; width: 54px; height: 30px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #C3D3E6; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(24px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .cta { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .cookie-card { grid-template-columns: 1fr; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-name { font-size: 1.6rem; }
}
