/* ============================================
   LILIES HOME CARE — SHARED STYLESHEET
   Used by all pages.
   ============================================ */

:root {
  --purple-deep: #3a1f5d;
  --purple: #4e2a84;
  --purple-mid: #6b3fa0;
  --lilac: #b9a5d9;
  --lilac-soft: #e8dff5;
  --cream: #faf6ef;
  --cream-warm: #f3ebdb;
  --ink: #1f1430;
  --ink-soft: #4a3d5e;
  --gold: #c89b3c;
  --rule: rgba(58, 31, 93, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--purple-deep);
  color: var(--lilac-soft);
  font-size: 13px;
  padding: 10px 0;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: white; }
.topbar .left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar .right { display: flex; gap: 16px; align-items: center; }
.topbar .phone { font-weight: 500; color: white; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* ---------- NAV ---------- */
nav.main {
  background: rgba(58, 31, 93, 0.96);
  border-bottom: 1px solid rgba(185, 165, 217, 0.18);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
nav.main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--cream);
}
.logo-mark {
  height: 52px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-mark img {
  height: 100%;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(250, 246, 239, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a.active { border-bottom: 1px solid var(--lilac); padding-bottom: 4px; }
.nav-cta {
  background: var(--cream);
  color: var(--purple-deep) !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 500 !important;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--lilac-soft);
  transform: translateY(-1px);
}
.nav-cta.active { border-bottom: none !important; padding-bottom: 11px !important; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(185, 165, 217, 0.2);
  }
  .menu-toggle { display: block !important; }
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--cream);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--cream);
  color: var(--purple-deep);
}
.btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250, 246, 239, 0.4);
}
.btn-ghost:hover {
  background: rgba(250, 246, 239, 0.08);
  border-color: var(--cream);
}
.btn-dark {
  background: var(--purple);
  color: var(--cream);
}
.btn-dark:hover {
  background: var(--purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(58, 31, 93, 0.2);
}
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: var(--cream);
}
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- TYPOGRAPHY ---------- */
.display { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }

section { padding: 110px 0; }
@media (max-width: 760px) { section { padding: 70px 0; } }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--purple); font-weight: 400; }
.section-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- PAGE HEADER (sub-pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 60%, var(--purple-mid) 100%);
  color: var(--cream);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(185, 165, 217, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 24px;
  display: inline-block;
}
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 820px;
}
.page-header h1 em { font-style: italic; color: var(--lilac); }
.page-header .lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(250, 246, 239, 0.85);
  max-width: 640px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo-mark {
  height: 64px;
  margin-bottom: 8px;
}
.footer-brand p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--cream);
  font-size: 16px;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(250, 246, 239, 0.65);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--lilac); }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(250, 246, 239, 0.45);
}

/* ---------- STICKY MOBILE CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sticky-cta.visible {
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(58, 31, 93, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.sticky-cta a:hover { background: var(--purple-deep); transform: translateY(-2px); }
.sticky-cta a.cream { background: var(--cream); color: var(--purple-deep); }
.sticky-cta a.cream:hover { background: white; }
@media (max-width: 600px) {
  .sticky-cta { bottom: 16px; right: 16px; left: 16px; }
  .sticky-cta a { flex: 1; justify-content: center; padding: 14px 16px; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
