.home-page {
  --bg: #eaf3f7;
  --paper: #f8fcff;
  --ink: #114f7d;
  --ink-deep: #0a3960;
  --accent: #59bdcc;
  --line: #c7dee8;
  --detail-accent: #31859a;
  background: var(--bg);
  color: var(--ink-deep);
  line-height: 1.75;
}

.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page img { display: block; width: 100%; height: auto; object-fit: cover; }
.home-page figure { margin: 0; }
.home-page h1, .home-page h2, .home-page h3 { color: var(--ink); }
.home-page h2 { font-size: 3.35rem; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 1.5rem; }
.home-page h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; }
.home-page h1 em, .home-page h2 em { font-weight: 600; font-style: normal; color: #237b92; }
.home-page p { margin: 0 0 1.2rem; }
.home-page .eyebrow { color: #28788f; font-size: 0.75rem; letter-spacing: 0.18em; line-height: 1.6; margin: 0 0 1.3rem; font-weight: 700; }
.home-page :focus-visible { outline: 3px solid #31859a; outline-offset: 5px; }
.home-page section[id], .home-page main[id] { scroll-margin-top: 7rem; }
.home-page .skip-link { position: fixed; left: 1rem; top: 0.5rem; z-index: 100; padding: 0.8rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.home-page .skip-link:focus { transform: translateY(0); }

.home-page .topbar {
  width: calc(100% - 2rem);
  max-width: 1248px;
  margin: 1rem auto 0;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.92);
  top: 0.75rem;
}
.home-page .brand-text { font-size: 2.25rem; }
.home-page .brand-sub { font-size: 0.58rem; color: #1f6480; }
.home-page .brand-mark::before { border-bottom-color: #59bdcc; }
.home-page .brand-mark::after { border-top-color: #59bdcc; }
.home-page .nav > a:not(.btn), .home-page .dropdown-toggle { font-size: 0.88rem; min-height: 44px; display: flex; align-items: center; }
.home-page .dropdown-menu { background: #f8fcff; border-color: var(--line); box-shadow: 0 14px 30px #0a396014; }
.home-page .dropdown-menu::before { background: #f8fcff; border-color: var(--line); }
.home-page .menu-btn { width: 44px; height: 44px; }
.home-page .btn { gap: 0.8rem; border-radius: 999px; padding: 0.85rem 1.2rem; font-size: 0.9rem; font-weight: 600; box-shadow: 0 6px 14px rgba(14, 63, 98, 0.1); background: var(--ink); border: 1px solid var(--ink); color: white; }
.home-page .btn:hover { background: #106d8e; transform: translateY(-2px); }
.home-page .btn-ghost { background: transparent; color: var(--ink); }
.home-page .btn-ghost:hover { background: #e2f4f8; }
.home-page .support-pill { background: #fff; color: var(--ink) !important; border-color: var(--line); padding: 0.65rem 1rem; margin-left: 0.5rem; }
.home-page .support-pill:hover { background: #e5f7fb; }
.home-page .home-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #59bdcc; font-size: 0.95rem; font-weight: 600; }
.home-page .home-link:hover { text-decoration-color: currentColor; }
.home-page .home-link span, .home-page .btn span { font-size: 1.15rem; font-weight: 400; }
.home-page main { max-width: 1280px; padding: 2rem 1rem 0; }

.welcome-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: center; padding: 3rem 2rem; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 8% 12%, rgba(89, 189, 204, 0.28), transparent 38%), linear-gradient(140deg, #f8fdff 0%, #edf7fb 50%, #e8f3f8 100%); box-shadow: var(--shadow); }
.welcome-copy { max-width: 550px; }
.welcome-copy h1 { font-size: 4.8rem; line-height: 1.03; letter-spacing: -0.025em; margin: 0 0 1.9rem; font-weight: 600; }
.welcome-copy > p:not(.eyebrow) { font-size: 1.125rem; max-width: 480px; }
.welcome-copy .welcome-lead { font-size: 1.3rem !important; line-height: 1.65; font-weight: 500; }
.welcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.8rem; }
.welcome-copy .welcome-note { max-width: 390px; font-size: 0.9rem !important; color: #366780; margin: 1.3rem 0 0; }
.welcome-photos { position: relative; padding: 0 0 6.3rem 0.6rem; min-width: 0; }
.welcome-main-photo { border: 1px solid var(--line); border-radius: 24px; background: var(--paper); padding: 0.6rem 0.6rem 0; box-shadow: 0 16px 40px #0e3f6216; }
.welcome-main-photo img, .welcome-small-photo img { border-radius: 18px; }
.welcome-main-photo img { aspect-ratio: 1.15; object-position: 50% 42%; }
.welcome-main-photo figcaption, .welcome-small-photo figcaption { text-align: center; font-size: 0.85rem; color: #366780; padding: 0.85rem 0.2rem; }
.welcome-main-photo figcaption { width: 45%; }
.welcome-small-photo { position: absolute; right: -0.4rem; bottom: -0.4rem; width: 48%; padding: 0.55rem 0.55rem 0; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 12px 35px #0e3f6222; }
.welcome-small-photo img { aspect-ratio: 1.25; }
.welcome-small-photo figcaption { font-size: 0.78rem; padding: 0.6rem 0.1rem; }
.photo-note { position: absolute; bottom: 2.3rem; left: 1rem; max-width: 170px; font-family: "Cormorant Garamond", serif; font-size: 1.65rem; line-height: 1.15; color: #28788f; }
.welcome-strip { display: flex; align-items: center; justify-content: center; gap: 3rem; border-bottom: 1px solid var(--line); padding: 1.7rem 0; color: #28788f; font-size: 0.85rem; letter-spacing: 0.035em; }
.welcome-strip [aria-hidden] { color: var(--detail-accent); font-size: 0.9rem; }
.home-section { margin: 0; padding: 6.5rem 0; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.home-section-heading h2 { margin-bottom: 0; }
.home-section-heading > p { color: #366780; font-size: 1.125rem; margin: 0; }

.home-story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6rem; align-items: center; }
.story-photo { max-width: 425px; padding: 0.8rem 0.8rem 0; background: #f8fcff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.story-photo img { border-radius: 18px; }
.story-photo img { aspect-ratio: 0.94; object-position: 50% 17%; }
.story-photo figcaption { font-family: "Cormorant Garamond", serif; font-style: italic; text-align: center; padding: 0.7rem; font-size: 1.25rem; color: #28788f; }
.story-copy > p:not(.eyebrow) { font-size: 1.125rem; }
.story-copy .story-signature { font-family: "Cormorant Garamond", serif; font-size: 1.8rem !important; font-style: italic; color: #237b92; margin: 1.7rem 0 0.25rem; }
.find-place { border-top: 1px solid var(--line); padding-top: 4.5rem; }
.welcome-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.welcome-path { display: flex; flex-direction: column; padding: 2.2rem; background: #f8fcff; color: var(--ink-deep); text-decoration: none; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); transition: border-color 180ms ease, transform 180ms ease; }
.welcome-path:nth-child(2) { background: #f8fcff; }
.welcome-path:nth-child(3) { background: #f8fcff; }
.welcome-path:hover { border-color: #59bdcc; transform: translateY(-4px); }
.path-number { font-size: 0.72rem; letter-spacing: 0.13em; color: #28788f; font-weight: 600; }
.welcome-path h3 { font-size: 2.1rem; line-height: 1.12; margin: 1.7rem 0 1.1rem; }
.welcome-path p { font-size: 1.125rem; }
.path-link { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; font-weight: 600; border-top: 1px solid #0a396026; margin-top: auto; padding-top: 1.2rem; }
.path-link span { font-size: 1.15rem; }

.community-life { padding-top: 0; }
.community-life .home-section-heading h2 { max-width: 650px; }
.life-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 2rem 2.8rem; }
.life-feature { grid-row: span 2; }
.life-feature > img { aspect-ratio: 0.97; border-radius: 6px; object-position: 42% 50%; }
.life-caption { padding-top: 1.4rem; }
.life-caption .eyebrow { margin-bottom: 0.6rem; }
.life-caption h3 { font-size: 2rem; line-height: 1.15; margin: 0 0 0.7rem; }
.life-caption p { font-size: 1.125rem; margin-bottom: 0.6rem; }
.life-small { display: grid; grid-template-columns: 0.86fr 1fr; gap: 1.5rem; align-items: center; }
.life-small > img { height: 100%; min-height: 260px; max-height: 350px; object-position: 57% 40%; border-radius: 6px; }
.life-small .life-caption { padding: 0; }
.life-small .life-caption h3 { font-size: 1.7rem; }

.home-hospitality { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 4rem; padding: 3.5rem 4rem; background: linear-gradient(135deg, #e2f5f9, #f8fcff); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.hospitality-copy > p { font-size: 1.125rem; }
.hospitality-copy .btn { margin-top: 0.6rem; }
.hospitality-copy .hospitality-note { font-size: 0.9rem; color: #366780; margin-top: 1rem; margin-bottom: 0; }
.home-hospitality figure { background: #f8fcff; padding: 0.7rem 0.7rem 0; border: 1px solid var(--line); border-radius: 24px; }
.home-hospitality img { border-radius: 18px; }
.home-hospitality img { aspect-ratio: 0.9; object-position: center; }
.home-hospitality figcaption { font-family: "Cormorant Garamond", serif; font-style: italic; text-align: center; font-size: 1.1rem; padding: 0.6rem; }
.home-care { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.home-care h2 { font-size: 2.85rem; margin-bottom: 0; }
.home-care > div > p:not(.eyebrow) { font-size: 1.125rem; }
.care-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.home-hadera { display: grid; grid-template-columns: 1.25fr 0.8fr; gap: 3.8rem; align-items: center; padding-top: 0; }
.home-hadera > img { aspect-ratio: 1.2; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); object-position: 50% 55%; }
.home-hadera p { font-size: 1.125rem; }
.home-hadera .home-link { display: flex; width: fit-content; margin-top: 0.5rem; }
.home-giving { text-align: center; background: linear-gradient(120deg, #114f7d, #106d8e); color: #f5feff; border-radius: 28px; padding: 4.5rem 2rem; position: relative; overflow: hidden; }
.home-giving::before, .home-giving::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid #ffffff15; border-radius: 50%; pointer-events: none; }
.home-giving::before { left: -180px; bottom: -190px; }
.home-giving::after { right: -160px; top: -160px; }
.home-giving .eyebrow { color: #c9edf3; }
.home-giving h2 { color: #f8fcff; font-size: 4rem; }
.home-giving h2 em { color: #9ddde8; }
.home-giving > p:not(.eyebrow) { max-width: 600px; margin: 0 auto 1.7rem; font-size: 1.2rem; }
.giving-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.4rem; }
.home-giving .btn { background: #ffffff; color: #0a3960; border-color: #ffffff; }
.home-giving .btn:hover { background: #e5f7fb; }
.home-giving .home-link { color: #f8fcff; text-decoration-color: #9ddde8; }
.home-stay { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 4rem 0; }
.home-stay h2 { font-size: 2.3rem; margin-bottom: 0.6rem; }
.home-stay p { font-size: 1.125rem; margin-bottom: 0; }
.home-stay .eyebrow { margin-bottom: 0.8rem; }
.home-stay .btn { flex-shrink: 0; }
.home-page .footer { max-width: 1280px; margin-top: 0; padding: 3rem 2rem 1.5rem; color: #215f80; }
.home-page .footer-desc, .home-page .footer-links a, .home-page .footer-heading, .home-page .footer-social a { color: #215f80; }

@media (prefers-reduced-motion: no-preference) {
  .welcome-copy { animation: home-arrive 650ms ease both; }
  .welcome-photos { animation: home-arrive 850ms 100ms ease both; }
  @keyframes home-arrive { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .btn:hover, .welcome-path:hover { transform: none; }
}

@media (max-width: 1100px) {
  .welcome-hero { gap: 2rem; }
  .welcome-copy h1 { font-size: 4.6rem; }
  .home-story { gap: 3rem; }
  .home-page h2 { font-size: 2.8rem; }
  .home-section { padding-top: 5rem; padding-bottom: 5rem; }
  .welcome-path { padding: 1.5rem; }
  .life-grid { gap: 2rem; }
  .life-small { grid-template-columns: 1fr; gap: 1rem; }
  .life-small > img { height: 200px; min-height: 0; }
  .life-feature > img { aspect-ratio: 0.7; }
  .home-hospitality { padding: 3rem; gap: 2rem; }
  .community-life, .home-hadera { padding-top: 0; }
  .home-care { gap: 2rem; }
}

@media (max-width: 900px) {
  .home-page .topbar { padding: 1rem 1.5rem; border-radius: 18px; }
  .home-page .nav { background: #f8fcff; border-color: var(--line); max-height: calc(100dvh - 110px); overflow-y: auto; }
  .home-page .nav > a:not(.btn), .home-page .dropdown-toggle { font-size: 0.95rem; }
  .home-page .support-pill { margin-left: 0; justify-content: center; }
  .welcome-hero { padding-top: 3rem; }
  .welcome-copy h1 { font-size: 3.9rem; }
  .welcome-actions { gap: 0.6rem 1rem; }
  .welcome-strip { gap: 1.5rem; font-size: 0.78rem; }
  .photo-note { font-size: 1.35rem; max-width: 120px; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 1.2rem; }
  .home-stay { align-items: start; flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 700px) {
  .home-page main { padding: 1.25rem 1rem 0; }
  .home-page .topbar { padding: 0.9rem 1.25rem; }
  .home-page .brand-text { font-size: 2rem; }
  .home-page h2 { font-size: 2.65rem; }
  .welcome-hero { grid-template-columns: 1fr; gap: 2rem; padding: 1.6rem 1.2rem 2rem; }
  .welcome-copy { max-width: 540px; }
  .welcome-copy h1 { font-size: 3.7rem; line-height: 1; margin-bottom: 1.4rem; }
  .welcome-copy .welcome-lead { font-size: 1.15rem !important; }
  .desktop-break { display: none; }
  .welcome-copy > p:not(.eyebrow) { max-width: none; }
  .welcome-copy .eyebrow { font-size: 0.68rem; letter-spacing: 0.13em; }
  .welcome-copy .welcome-note { max-width: 340px; }
  .welcome-actions { margin-top: 1.2rem; gap: 0.8rem 1.3rem; }
  .welcome-photos { margin: 0 0.5rem; padding-bottom: 5rem; }
  .welcome-main-photo img { aspect-ratio: 1.25; }
  .welcome-small-photo { width: 46%; right: 0; bottom: -0.3rem; }
  .photo-note { left: 0.5rem; bottom: 1.2rem; max-width: 140px; }
  .welcome-strip { justify-content: space-around; gap: 0.7rem; padding: 1.1rem 0; font-size: 0.75rem; text-align: center; }
  .welcome-strip [aria-hidden] { font-size: 0.65rem; }
  .home-section { padding: 3.8rem 0; }
  .home-story { grid-template-columns: 1fr; gap: 2rem; }
  .story-copy { grid-row: 1; }
  .story-photo { width: 85%; max-width: 370px; justify-self: center; }
  .story-photo img { aspect-ratio: 1; }
  .welcome-paths { grid-template-columns: 1fr; gap: 1rem; }
  .welcome-path { padding: 1.8rem; }
  .welcome-path h3 { font-size: 2.2rem; margin-top: 1rem; }
  .welcome-path h3 br { display: none; }
  .welcome-path p { max-width: 420px; }
  .life-grid { grid-template-columns: 1fr; gap: 2.7rem; }
  .life-feature { grid-row: auto; }
  .life-feature > img { aspect-ratio: 1.2; }
  .life-small { display: block; }
  .life-small > img { height: auto; max-height: none; aspect-ratio: 1.3; object-position: 50% 35%; }
  .life-small .life-caption { padding-top: 1.4rem; }
  .life-small .life-caption h3 { font-size: 2rem; }
  .community-life { padding-top: 0; }
  .home-hospitality { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 2rem; }
  .home-hospitality figure { width: 90%; max-width: 340px; justify-self: center; }
  .home-care { grid-template-columns: 1fr; gap: 1rem; }
  .care-actions { gap: 0.4rem 1rem; }
  .home-hadera { grid-template-columns: 1fr; gap: 2rem; padding-top: 0; }
  .home-hadera > img { aspect-ratio: 1.25; }
  .home-giving { padding: 3.5rem 1.5rem; }
  .home-giving h2 { font-size: 3.3rem; }
  .giving-actions { gap: 0.7rem; flex-direction: column; }
  .home-stay { padding: 3rem 0; }
  .home-stay h2 { font-size: 2.2rem; }
  .home-page .footer { padding: 2.5rem 1.25rem 1.5rem; }
}

@media (max-width: 370px) {
  .welcome-copy h1 { font-size: 3.5rem; }
  .home-page h2 { font-size: 2.3rem; }
  .welcome-actions { align-items: stretch; flex-direction: column; }
  .welcome-actions .home-link { justify-content: center; }
  .welcome-strip { font-size: 0.68rem; }
  .home-giving .btn { font-size: 0.85rem; }
}

/* Wide footer: brand + four link columns (shared with inner pages) */
.footer-grid.footer-grid-wide { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2rem 1.6rem; }
@media (max-width: 1000px) { .footer-grid.footer-grid-wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid.footer-grid-wide { grid-template-columns: 1fr; } }

/* Mobile menu: open dropdowns stack under their button */
@media (max-width: 900px) {
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-dropdown .dropdown-menu { width: 100%; }
}
