/* ==========================================================================
   Love Care — shared styles
   One stylesheet, three themes: hub (default), Kenmore, Puyallup.
   Theme is set with <body data-theme="kenmore|puyallup">.
   ========================================================================== */

:root {
  /* Brand palette taken from the Love Care flyers: navy + red, on warm white */
  --navy: #123a86;
  --navy-dark: #0c2a66;
  --red: #c8202f;
  --red-dark: #a5161f;

  --cream: #fbf9f6;
  --paper: #ffffff;
  --sand: #e8eef9;         /* soft blue wash used for section backgrounds */
  --sand-deep: #c3d0ea;
  --blue-tint: #eef3fb;
  --ink: #1e2a44;
  --ink-soft: #4b5a78;
  --line: #dde4f0;

  --accent: var(--red);
  --accent-dark: var(--red-dark);
  --accent-tint: #fdebed;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 58, 134, .06), 0 8px 24px rgba(18, 58, 134, .10);
  --maxw: 1140px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Dancing Script", "Brush Script MT", cursive;
}

/* ---------- Reset / base ---------- */
*, *::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: 1.125rem;      /* 18px: comfortable for older readers */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.55rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 40em; }
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .9rem;
}

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.bg-sand  { background: var(--sand); }
.bg-paper { background: var(--paper); }
.bg-tint  { background: var(--blue-tint); }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 800; font-size: 1.05rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
  min-height: 52px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--red); color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 46px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }
.brand-loc  { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .55rem .85rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 1rem;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--blue-tint); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-cta .btn { padding: .65rem 1.2rem; min-height: 44px; font-size: 1rem; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 12px;
  width: 48px; height: 48px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-text { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem .75rem; border-radius: var(--radius-sm); font-size: 1.1rem; }
}

/* Other-location strip above header */
.loc-strip { background: var(--navy-dark); color: #f3ece3; font-size: .95rem; }
.loc-strip .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.loc-strip a { color: #fff; font-weight: 800; }
.loc-strip a:hover { color: var(--sand); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--red); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.8rem 0 0; }
.chips li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem; font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: .5rem;
}
.chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Photo slots (swap for real photography) ---------- */
.photo {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--sand); aspect-ratio: 4 / 3.2;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .slot { position: absolute; inset: 0; display: grid; place-items: center; }
.photo .slot svg { width: 100%; height: 100%; }
.photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,.92); border-radius: 999px; padding: .25rem .8rem;
  font-size: .8rem; font-weight: 800; color: var(--ink-soft);
}
.photo.tall { aspect-ratio: 4 / 4.6; }
.photo.wide { aspect-ratio: 16 / 9; }

/* ---------- Cards / grids ---------- */
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: 0 1px 2px rgba(51,41,31,.04);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li { counter-increment: step; position: relative; padding-top: 4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; display: grid; place-items: center;
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 56px; right: 10px; border-top: 2px dashed var(--sand-deep);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Virtual tour ---------- */
.tour-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow);
}
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-frame.pending { display: grid; place-items: center; text-align: center; color: #f3ece3; padding: 2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 1.4rem; font-weight: 800; font-size: 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--accent-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0e9df; max-width: 36rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.info-list .icon svg { width: 24px; height: 24px; }
.info-list strong { display: block; }
.map { margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; }

form.tour { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
form.tour h2 { font-size: 1.7rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; margin-bottom: .35rem; font-size: 1rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 2px solid var(--sand-deep); background: #fffdfa; color: var(--ink); min-height: 52px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .92rem; color: var(--ink-soft); margin: .9rem 0 0; }
.form-status { margin-top: 1rem; font-weight: 800; color: var(--accent-dark); }
.hp { position: absolute; left: -9999px; }

/* ---------- Hub (landing) ---------- */
.hub-hero { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem); }
.hub-hero .lead { margin-inline: auto; }
.hub-hero .brand-mark-lg { width: 84px; height: auto; margin: 0 auto 1rem; }
.home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
@media (max-width: 820px) { .home-cards { grid-template-columns: 1fr; } }
.home-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.home-card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 2px 4px rgba(18,58,134,.08), 0 18px 40px rgba(18,58,134,.18); }
.home-card .photo { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 9.6; }
.home-card .body { padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.home-card h2 { font-size: 2rem; margin: 0; color: var(--navy); }
.home-card .place { font-weight: 800; letter-spacing: .12em; font-size: .8rem; text-transform: uppercase; }
.home-card .place { color: var(--accent-dark); }
.home-card .go { margin-top: auto; padding-top: 1rem; font-weight: 800; color: var(--accent-dark); display: flex; align-items: center; gap: .5rem; }
.home-card .go svg { width: 1.2em; height: 1.2em; transition: transform .2s; }
.home-card:hover .go svg { transform: translateX(4px); }

/* ---------- Sibling-home banner ---------- */
.sibling {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  background: var(--paper); border: 1px dashed var(--sand-deep); border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.sibling h3 { margin: 0 0 .2rem; }
.sibling p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #dbe4f5; padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd0d4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-head); font-size: 1.15rem; color: #fff; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand-mark { background: #fff; border-radius: 14px; padding: 6px; width: 54px; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; color: #b3c1de; }
.legal p { margin: 0 0 .5rem; }

/* ---------- Placeholder highlighter (remove once real info is filled in) ---------- */
.ph { background: #fff2a8; color: #5a4700; padding: 0 .3em; border-radius: 4px; font-weight: 700; }

/* ---------- Page header for inner pages ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--sand); }
.page-head .lead { margin-bottom: 0; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.9rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .loc-strip, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ---------- Brand additions ---------- */
.script { font-family: var(--font-script); font-weight: 600; color: var(--navy); }
.hero .script { display: block; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: -.2rem 0 1rem; }
.hero h1 { color: var(--navy); }
.tagline-red { color: var(--red); font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 .9rem; line-height: 1.2; }
.hero .photo { aspect-ratio: 16 / 10.4; }

.mini-list { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .35rem; }
.mini-list li { display: flex; gap: .6rem; align-items: baseline; font-size: 1rem; color: var(--ink); }
.mini-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); transform: translateY(-.1em); }
.card .lead-sm { color: var(--ink-soft); font-size: 1rem; margin-bottom: 0; }

.feature-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.feature-card h3 { color: #fff; }
.feature-card p { color: #dbe4f5; }
.feature-card .mini-list li { color: #fff; }
.feature-card .mini-list li::before { background: #ff8a94; }
.feature-card .script { color: #fff; font-size: 1.8rem; display: block; margin-top: 1rem; }

.pay-note { display: flex; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.pay-note .icon { width: 50px; height: 50px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.pay-note .icon svg { width: 26px; height: 26px; }
.pay-note p { margin: 0; }

.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.gallery .photo { aspect-ratio: 4 / 3; flex: 0 1 calc((100% - 2rem) / 3); }
@media (max-width: 820px) { .gallery .photo { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 480px) { .gallery .photo { flex-basis: 100%; } }
.hub-hero .tagline-red { margin-top: .4rem; }
