/* =========================================================
   Lots Of TLC — Stylesheet
   Palette: soft pastel blue, warm brick-red heart accent
   Type: Fraunces (display) + Karla (body)
   ========================================================= */

:root {
  --bg: #F6FAFC;
  --bg-soft: #E7F1F7;
  --bg-softer: #EFF6FA;
  --card: #FFFFFF;
  --primary: #4C7A96;
  --primary-dark: #345B72;
  --primary-darker: #294A5E;
  --sky: #AACFE3;
  --sky-pale: #D3E6F0;
  --accent: #BD5B4C;
  --accent-dark: #A24638;
  --text: #24363F;
  --text-muted: #5D7280;
  --border: #D8E7EF;
  --shadow: 0 10px 30px -12px rgba(41, 74, 94, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(41, 74, 94, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Karla', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--primary-darker);
  line-height: 1.18;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-muted); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
  font-size: 1.05rem;
  margin-bottom: 0.4em;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary-darker);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--sky-pale); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary-darker);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main-nav a {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--primary-darker);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
nav.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--primary-darker);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero-lede { font-size: 1.12rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-art { position: relative; height: 420px; }
.blob {
  position: absolute;
  border-radius: 62% 38% 55% 45% / 48% 55% 45% 52%;
  background: var(--sky-pale);
  z-index: 0;
}
.blob-1 { width: 380px; height: 380px; top: -10px; right: 10px; }
.blob-2 {
  width: 200px; height: 200px; bottom: -20px; left: 0;
  background: var(--bg-soft);
}
.hero-photo {
  position: absolute;
  top: 30px; right: 40px;
  width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  z-index: 2;
}
.hero-photo img { width: 100%; height: 340px; object-fit: cover; }
.hero-photo-2 {
  position: absolute;
  bottom: 0; left: 10px;
  width: 170px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 5px solid #fff;
  z-index: 3;
}
.hero-photo-2 img { width: 100%; height: 130px; object-fit: cover; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hero-tags span {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ---------- Section basics ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-art { position: relative; height: 380px; }
.about-photo-main {
  position: absolute;
  top: 0; left: 40px;
  width: 78%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo-main img { width: 100%; height: 320px; object-fit: cover; }
.about-photo-accent {
  position: absolute;
  bottom: -20px; left: 0;
  width: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-sm);
}
.about-photo-accent img { width: 100%; height: 120px; object-fit: cover; }

.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  font-weight: 600;
}
.check-list li:last-child { border-bottom: none; }
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* ---------- Services grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.icon-badge {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.96rem; margin-bottom: 14px; }
.card-link { font-weight: 700; color: var(--accent-dark); font-size: 0.92rem; }
.card-link:hover { text-decoration: underline; }

/* ---------- Dementia focus ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.feature-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.feature-row h4 { font-family: 'Fraunces', serif; font-size: 1.08rem; margin-bottom: 4px; color: var(--primary-darker); }
.feature-row p { font-size: 0.94rem; margin-bottom: 0; }

.focus-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.focus-photo img { width: 100%; height: 280px; object-fit: cover; }

.pull-quote {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--primary-darker);
  box-shadow: var(--shadow-sm);
}

/* ---------- Therapy programs ---------- */
.therapy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.therapy-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.therapy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.therapy-photo { height: 140px; overflow: hidden; position: relative; }
.therapy-photo img { width: 100%; height: 100%; object-fit: cover; }
.therapy-badge {
  position: absolute;
  bottom: -18px; left: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.85rem;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.therapy-body { padding: 30px 22px 22px; }
.therapy-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.therapy-body p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--sky-pale);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(41,74,94,0.78), transparent);
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- Community ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.community-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.community-photo { height: 170px; overflow: hidden; }
.community-photo img { width: 100%; height: 100%; object-fit: cover; }
.community-body { padding: 24px; }
.community-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #DCEAF2; margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.12); }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
footer {
  background: var(--primary-darker);
  color: #CFE0E9;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 50%; }
.footer-brand-text { font-family: 'Fraunces', serif; font-size: 1.15rem; color: #fff; }
footer h4 { color: #fff; font-family: 'Karla', sans-serif; font-size: 0.98rem; margin-bottom: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
footer a { color: #B9D2DE; font-size: 0.94rem; }
footer a:hover { color: #fff; }
footer p { color: #B9D2DE; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #92AEBB;
}
.footer-bottom a { color: #92AEBB; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Fade-in on load (single orchestrated hero moment) ---------- */
.fade-rise {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeRise 0.8s ease forwards;
}
.fade-rise.d1 { animation-delay: 0.05s; }
.fade-rise.d2 { animation-delay: 0.2s; }
.fade-rise.d3 { animation-delay: 0.35s; }
@keyframes fadeRise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .focus-grid { grid-template-columns: 1fr; }
  .hero-art, .about-art { height: 340px; margin-top: 20px; }
  .card-grid, .therapy-grid, .community-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-inner .btn-sm { display: none; }
  .card-grid, .therapy-grid, .community-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .cta-band { flex-direction: column; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
