/* Fentie's Adult Family Home — colors taken from the logo */
:root {
  --plum: #4f2d66;
  --plum-dark: #3a1f4d;
  --peach: #f2bf8f;
  --peach-light: #fbe7d4;
  --teal: #23627e;
  --cream: #fbf7f2;
  --ink: #2b2433;
  --muted: #6b6274;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(58, 31, 77, .10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--cream); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--plum); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--teal); margin: 0 0 .6rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; background: var(--plum); color: var(--white); font-weight: 700; text-decoration: none; border: 2px solid var(--plum); transition: background .2s, transform .2s, color .2s; }
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); transform: translateY(-2px); }
.btn-small { padding: .5rem 1.1rem; font-size: .92rem; }
.btn-ghost { background: transparent; border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--plum); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--white); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(79, 45, 102, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { height: 40px; width: auto; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--plum); line-height: 1; font-variant: small-caps; }
.brand-name span { color: var(--teal); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--peach); transition: width .25s; }
.site-nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--plum); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: center; color: var(--white); overflow: hidden; background: var(--plum-dark); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(58, 31, 77, .82) 0%, rgba(58, 31, 77, .45) 55%, rgba(35, 98, 126, .15) 100%); }
.hero-content { position: relative; padding: 5rem 0; max-width: 640px; margin-left: max(1.25rem, (100% - 1180px) / 2); }
.hero .eyebrow { color: var(--peach); }
.hero h1 { color: var(--white); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 600; }
.hero-lead { font-size: 1.2rem; margin: 0 0 2rem; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn:not(.btn-ghost) { background: var(--peach); border-color: var(--peach); color: var(--plum-dark); }
.hero .btn:not(.btn-ghost):hover { background: var(--white); border-color: var(--white); }
.video-toggle { position: absolute; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; }
.video-toggle svg { width: 18px; fill: var(--white); }
.video-toggle .i-play { display: none; }
.video-toggle.paused .i-play { display: block; }
.video-toggle.paused .i-pause { display: none; }

/* Facts */
.facts { background: var(--plum); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--peach); line-height: 1.1; }
.fact span { font-size: .95rem; opacity: .9; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-text > p { color: var(--muted); }
.mission { margin-top: 2rem; padding: 1.5rem 1.75rem; background: var(--white); border-left: 4px solid var(--peach); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.mission h3 { margin-bottom: .3rem; }
.mission p { margin: 0; }
.about-photo { margin: 0; position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; background: var(--peach-light); border-radius: var(--radius); z-index: -1; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.values-title { text-align: center; margin: 5rem 0 2rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.values li { background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center; box-shadow: var(--shadow); }
.value-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--peach-light); color: var(--plum); font-size: 1.4rem; margin-bottom: .8rem; }
.values h4 { font-size: 1.4rem; margin-bottom: .25rem; }
.values p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Gallery */
.photos { background: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; grid-auto-flow: dense; }
.g-item { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--cream); }
.g-item.g-wide { grid-column: span 2; }
.g-item.g-big { grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; text-align: left; color: var(--white); font-weight: 700; background: linear-gradient(transparent, rgba(43, 36, 51, .75)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:hover span, .g-item:focus-visible span { opacity: 1; transform: none; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.service:nth-child(3n+2) { border-top-color: var(--peach); }
.service:nth-child(3n) { border-top-color: var(--plum); }
.service ul { list-style: none; padding: 0; margin: 0; }
.service li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-bottom: 1px dashed rgba(79, 45, 102, .12); }
.service li:last-child { border-bottom: 0; }
.service li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--peach); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--cream), var(--peach-light)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-lead { color: var(--muted); margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--plum); fill: var(--peach); }
.contact-list .label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.contact-list a { color: var(--ink); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact-list a:hover { color: var(--teal); }
.contact-list small { display: block; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--white); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--white); padding: 3rem 0 2rem; text-align: center; border-top: 1px solid rgba(79, 45, 102, .08); }
.footer-logo { width: 200px; height: auto; margin: 0 auto 1rem; }
.site-footer p { margin: .3rem 0; color: var(--muted); }
.footer-links a { color: var(--plum); font-weight: 700; text-decoration: none; }
.copyright { font-size: .85rem; margin-top: 1.25rem !important; }

/* Watch video button + viewer */
.watch-video { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .8rem; background: none; border: 0; padding: 0; color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.play-circle { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid var(--peach); transition: background .2s, transform .2s; }
.play-circle svg { width: 20px; fill: var(--peach); margin-left: 3px; }
.watch-video:hover .play-circle { background: var(--peach); transform: scale(1.08); }
.watch-video:hover .play-circle svg { fill: var(--plum-dark); }
.video-modal { position: fixed; inset: 0; z-index: 100; background: rgba(28, 20, 36, .94); display: grid; place-items: center; padding: 4rem 1.5rem; }
.video-modal[hidden] { display: none; }
.video-modal video { width: min(1100px, 100%); max-height: 85vh; border-radius: 10px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vm-close { position: absolute; top: 1rem; right: 1rem; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.vm-close:hover { background: rgba(255,255,255,.22); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28, 20, 36, .94); display: grid; place-items: center; padding: 3rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: var(--white); margin-top: .8rem; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo::before { inset: .9rem -.6rem -.9rem .9rem; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid rgba(79,45,102,.1); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(79,45,102,.08); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name span { display: none; }
  .values, .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 8px; }
  .g-item span { opacity: 1; transform: none; font-size: .85rem; padding: 1.5rem .6rem .5rem; }
  .lightbox { padding: 3.5rem .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
