/* Living Solutions, LLC — mobile-first stylesheet
   Theme carried over from the original site: warm wood desk, logo red & gold,
   white content cards, handwritten red headings. */

:root {
  --red: #ca2127;
  --red-dark: #a3161c;
  --gold: #f8c84c;
  --gold-soft: #fdf3d6;
  --wood: #c9986a;
  --wood-dark: #a9784d;
  --ink: #2f2b28;
  --ink-soft: #5d5650;
  --line: #ece5dd;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 35, 15, .18);
  --script: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

@font-face {
  font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/kalam-latin-700-normal.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(rgba(201, 152, 106, 0) 520px, var(--wood) 880px) center top / 100% 900px no-repeat,
    url("../images/desk-bg.jpg") center top / 1800px auto no-repeat,
    var(--wood);
  padding-bottom: calc(68px + env(safe-area-inset-bottom)); /* room for mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(60, 35, 15, .14);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header-h);
}
.brand { display: block; flex-shrink: 1; min-width: 0; }
.brand img { height: 44px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--gold-soft); color: var(--red);
  cursor: pointer; text-decoration: none;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.call { background: var(--red); color: #fff; }

.menu-toggle .bar { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle .bars { display: grid; gap: 5px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: none; }
.main-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 3px solid var(--red);
  box-shadow: 0 16px 30px rgba(60, 35, 15, .2);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.main-nav ul { list-style: none; margin: 0; padding: 6px 0 12px; }
.main-nav a {
  display: block; padding: 14px 24px;
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
  border-left: 4px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--red); background: var(--gold-soft); border-left-color: var(--red);
}

/* ---------- Page frame (the white card on the desk) ---------- */
.page-top { padding: 22px 0 0; }
.page-top .wrap {
  background: rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .35), 0 8px 22px rgba(60, 35, 15, .15);
  padding: 16px 18px 14px;
}
.page-title {
  font-family: var(--script); font-weight: 700; color: var(--red);
  font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.05;
  margin: 0; text-align: center;
}
.page-sub {
  text-align: center; margin: 6px auto 0; max-width: 34ch;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .45), var(--shadow);
  padding: 22px 20px;
  margin: 22px 0;
}

main { display: block; }

h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--red); }
.script { font-family: var(--script); font-weight: 700; color: var(--red); }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--ink-soft); }

/* ---------- Home hero ---------- */
.hero { display: grid; gap: 22px; }
.hero-photo { border-radius: 10px; overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero h1 {
  font-family: var(--script); font-weight: 700; color: var(--red);
  margin: 0; line-height: 1; text-align: center;
  font-size: clamp(2.6rem, 13vw, 4.4rem);
}
.hero h1 span { display: block; font-size: .62em; line-height: 1.15; }

.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23ca2127' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.btn-row { display: grid; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  border: 2px solid var(--red); white-space: nowrap; transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--red); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--red-dark); }

/* ---------- Services grid ---------- */
.section-head { text-align: center; margin-bottom: 18px; }
.section-head .script { font-size: 2.2rem; display: block; line-height: 1.1; }

.services { display: grid; gap: 18px; }
.service {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(60, 35, 15, .15); color: inherit; }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { margin-bottom: .3em; }
.service-body p { color: var(--ink-soft); margin-bottom: .8em; }
.more { margin-top: auto; font-weight: 600; color: var(--red); }

/* ---------- Content pages ---------- */
.split { display: grid; gap: 24px; align-items: start; }
.split .photo { border-radius: 10px; overflow: hidden; }
.split .photo img { width: 100%; }
.tagline { font-family: var(--script); font-weight: 700; color: var(--red); font-size: 2rem; line-height: 1.1; margin: 16px 0 0; text-align: center; }

.svc-group + .svc-group { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.svc-group h3 {
  display: flex; align-items: center; gap: 10px;
}
.svc-group h3::before {
  content: ""; width: 10px; height: 26px; border-radius: 3px; background: var(--gold); flex-shrink: 0;
}
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-list li {
  background: #faf7f3; border-radius: 10px; padding: 12px 14px;
  border-left: 3px solid var(--red);
}
.svc-list strong { display: block; font-family: var(--serif); color: var(--ink); }
.svc-list span { color: var(--ink-soft); font-size: 1rem; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  background: var(--gold-soft); border: 1px solid #f1dfa8; color: #5b4316;
  padding: 7px 14px; border-radius: 999px; font-size: .97rem;
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 18px; }
.quote {
  margin: 0; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 20px 18px;
}
.quote::before {
  content: "\201C"; position: absolute; top: -18px; left: 16px;
  font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--gold);
}
.quote p { color: var(--ink-soft); }
.quote footer { border-top: 1px solid var(--line); padding-top: 10px; font-size: .97rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--red); display: block; font-family: var(--serif); }

.highlight-quote { text-align: center; max-width: 46rem; margin: 0 auto; }
.highlight-quote p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink); }
.highlight-quote cite { font-style: normal; color: var(--red); font-weight: 700; }

/* ---------- About ---------- */
.profile { display: grid; gap: 20px; }
.profile .photo { border-radius: 12px; overflow: hidden; max-width: 360px; margin-inline: auto; width: 100%; }
.profile .photo img { width: 100%; max-height: 440px; object-fit: cover; object-position: center 20%; }
@media (min-width: 960px) { .profile .photo img { max-height: none; } }
.profile .name { font-family: var(--script); font-weight: 700; color: var(--red); font-size: 2.3rem; line-height: 1; margin: 0; }
.profile .role { font-family: var(--serif); color: var(--ink-soft); margin: 4px 0 16px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; background: #faf7f3; text-decoration: none; color: var(--ink);
  font-weight: 600; word-break: break-word;
}
.contact-list a:hover { background: var(--gold-soft); color: var(--red); }
.contact-list svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, var(--gold-soft) 100%);
}
.cta .script { font-size: 2.1rem; line-height: 1.1; display: block; margin-bottom: 6px; }
.cta .btn-row { max-width: 520px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 36px; color: #fff; }
.swoosh { display: block; width: 100%; height: 70px; }
.footer-body { background: var(--red); padding: 8px 0 28px; }
.footer-tag { font-family: var(--script); font-weight: 700; font-size: 1.8rem; line-height: 1.1; color: #fff; margin: 0 0 14px; }
.footer-grid { display: grid; gap: 20px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.footer-nav a { text-decoration: none; }
.footer-contact p { margin: 0 0 4px; }
.copyright { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .88rem; opacity: .9; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; box-shadow: 0 -4px 18px rgba(60, 35, 15, .2);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px; font-weight: 700; text-decoration: none; color: var(--red);
}
.action-bar a:first-child { background: var(--red); color: #fff; }
.action-bar svg { width: 20px; height: 20px; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
  .btn-row { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; align-items: start; }
  .card { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1.2fr; }
}

/* ================= Desktop ================= */
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .brand img { height: 52px; }
  .menu-toggle { display: none; }
  .icon-btn.call { display: none; }
  .main-nav, .main-nav.open {
    display: block; position: static; box-shadow: none; border: 0; background: none; max-height: none;
  }
  .main-nav ul { display: flex; gap: 2px; padding: 0; }
  .main-nav a {
    font-size: .97rem; padding: 10px 11px; border-left: 0; border-radius: 8px;
    position: relative;
  }
  .main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
    background: var(--red); border-radius: 2px;
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--gold-soft); }

  .page-top { padding: 40px 0 0; }
  .page-top .wrap { padding: 22px 32px 18px; }
  .card { padding: 44px; margin: 30px 0; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; }
  .hero .btn { padding-inline: 16px; font-size: 1rem; }
  .hero h1 { font-size: 4.6rem; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1.25fr; gap: 44px; }
  .split .photo { position: sticky; top: calc(var(--header-h) + 24px); }
  .profile { grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
  .profile .photo { margin: 0; }
  .svc-list.two-col { grid-template-columns: 1fr 1fr; }
}
