/* ==========================================================================
   HSNEI page components (hs-*)
   Shared building blocks for every public page. Loaded after styles.css,
   which keeps the base reset, header navigation and adoptable-pet listing.
   ========================================================================== */

:root {
  --hs-navy: #013568;
  --hs-blue: #0371d2;
  --hs-sky: #8fb9ec;
  --hs-slate: #677e9a;
  --hs-ice: #eef5fd;
  --hs-paper: #fafdff;
  --hs-ink: #1f2a37;
  --hs-muted: #4b5a6b;
  --hs-red: #8b1a1a;
  --hs-radius: 14px;
  --hs-shadow: 0 10px 30px rgba(1, 53, 104, .10);
  --hs-head: 'Oswald', 'Arial Narrow', sans-serif;
  --hs-body: 'Lora', Georgia, serif;
}

.hs-main { display: block; background: #fff; color: var(--hs-ink); font-family: var(--hs-body); font-size: 17px; line-height: 1.65; }
.hs-main p { margin: 0 0 14px; }
.hs-main p:last-child { margin-bottom: 0; }
.hs-main a:not(.hs-btn):not(.hs-tile):not(.hs-logo) { color: var(--hs-blue); text-decoration: underline; text-underline-offset: 2px; }
.hs-main a:not(.hs-btn):not(.hs-tile):not(.hs-logo):hover { color: var(--hs-navy); }
.hs-main h1, .hs-main h2, .hs-main h3, .hs-main h4, .hs-main h5 { font-family: var(--hs-head); color: var(--hs-navy); line-height: 1.15; margin: 0 0 12px; font-weight: 600; }
.hs-main h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; }
.hs-main h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.hs-main h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.hs-main h4 { font-size: 1.25rem; }
.hs-main h5 { font-size: 1.08rem; }
.hs-main img { max-width: 100%; height: auto; }
.hs-main strong { color: var(--hs-navy); }

/* ---------- Layout ---------- */
.hs-wrap { width: min(1140px, 100% - 40px); margin: 0 auto; }
.hs-wrap--narrow { width: min(900px, 100% - 40px); }
.hs-section { padding: 56px 0; }
.hs-section--tight { padding: 34px 0; }
.hs-section--tint { background: var(--hs-ice); }
.hs-section--navy { background: var(--hs-navy); color: #fff; }
.hs-section--navy h1, .hs-section--navy h2, .hs-section--navy h3, .hs-section--navy h4 { color: #fff; }
.hs-center { text-align: center; }
.hs-mt { margin-top: 28px; }

.hs-grid { display: grid; gap: 26px; }
.hs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hs-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 42px; align-items: center; }
.hs-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-split--top { align-items: start; }
.hs-split--reverse > :first-child { order: 2; }
.hs-split__media img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); }

/* ---------- Page heading & hero ---------- */
.hs-head { text-align: center; max-width: 900px; margin: 0 auto 34px; }
.hs-head--left { text-align: left; margin-left: 0; }
.hs-kicker { display: block; font-family: var(--hs-head); font-size: 1.25rem; letter-spacing: .02em; color: var(--hs-blue); margin: 0 0 10px; }
.hs-lead { font-size: 1.2rem; color: var(--hs-ink); }
.hs-sub { font-family: var(--hs-head); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--hs-blue); line-height: 1.35; }

/* Page banner: the whole photo is always shown (never cropped); the title
   sits on a label over the bottom-right corner (top-left with --top). */
.hs-banner { padding: 28px 0 8px; }
.hs-hero { position: relative; margin: 0; border-radius: var(--hs-radius); overflow: hidden; box-shadow: var(--hs-shadow); background: var(--hs-ice); }
.hs-hero__media { position: relative; }
.hs-hero__img { display: block; width: 100%; height: auto; }
.hs-hero__layer { position: absolute; height: auto; pointer-events: none; }
.hs-hero__title { position: absolute; right: 0; bottom: 0; max-width: 70%; background: rgba(255, 255, 255, .94); padding: 14px 28px 12px; border-top-left-radius: var(--hs-radius); box-shadow: 0 -4px 18px rgba(1, 53, 104, .12); }
.hs-hero__title h1 { margin: 0; }
.hs-hero__title p { margin: 8px 0 0; color: var(--hs-ink); font-size: 1.12rem; line-height: 1.45; }
.hs-hero--top .hs-hero__title { top: 0; left: 0; right: auto; bottom: auto; max-width: 46%; border-radius: 0 0 var(--hs-radius) 0; box-shadow: 0 4px 18px rgba(1, 53, 104, .12); }

/* ---------- Buttons ---------- */
.hs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--hs-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; padding: 12px 26px; border-radius: 999px; background: var(--hs-blue); color: #fff; border: 2px solid var(--hs-blue); transition: background .2s, color .2s, transform .2s; text-decoration: none; }
.hs-btn:hover { background: var(--hs-navy); border-color: var(--hs-navy); color: #fff; transform: translateY(-1px); }
.hs-btn--outline { background: transparent; color: var(--hs-blue); }
.hs-btn--outline:hover { background: var(--hs-blue); color: #fff; }
.hs-btn--light { background: #fff; color: var(--hs-navy); border-color: #fff; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hs-actions--center { justify-content: center; }

/* ---------- Cards ---------- */
.hs-card { background: #fff; border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); padding: 28px; border: 1px solid #e3ecf7; }
.hs-card--flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hs-card--flush > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hs-card__body .hs-btn { margin-top: auto; align-self: flex-start; }
.hs-card--accent { border-top: 5px solid var(--hs-blue); }
.hs-card h3 a, .hs-card h2 a { color: inherit !important; text-decoration: none !important; }
.hs-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--hs-ice); color: var(--hs-blue); font-size: 1.6rem; margin-bottom: 12px; }

/* Link tiles with photo */
.hs-tile { display: block; background: #fff; border-radius: var(--hs-radius); overflow: hidden; box-shadow: var(--hs-shadow); color: var(--hs-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hs-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(1, 53, 104, .16); }
.hs-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-tile__body { padding: 16px 18px 20px; }
.hs-tile__body h3, .hs-tile__body h4 { margin: 0 0 6px; }
.hs-tile__body p { font-size: .95rem; color: var(--hs-muted); margin: 0; }

/* ---------- Lists ---------- */
.hs-list { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 9px; }
.hs-list li { position: relative; padding-left: 28px; }
.hs-list li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--hs-blue); }
.hs-list ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.hs-list ul li::before { background: var(--hs-sky); }
.hs-checks li::before { content: '\2713'; width: auto; height: auto; background: none; color: var(--hs-blue); font-weight: 700; top: 0; left: 2px; }

/* ---------- Notices ---------- */
.hs-note { background: #fff8e6; border: 1px solid #f1d38a; border-left: 6px solid #e0a800; border-radius: 12px; padding: 18px 22px; color: #4a3b00; }
.hs-note strong { color: #4a3b00; }
.hs-callout { background: var(--hs-ice); border-left: 6px solid var(--hs-blue); border-radius: 12px; padding: 20px 24px; }
.hs-quote { font-family: var(--hs-head); font-size: clamp(1.2rem, 2.3vw, 1.6rem); color: var(--hs-navy); line-height: 1.4; text-align: center; max-width: 900px; margin: 0 auto; }

/* ---------- Price lists ---------- */
.hs-prices { display: grid; gap: 0; margin: 8px 0 0; }
.hs-price { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px dashed #c9d8ec; }
.hs-price:last-child { border-bottom: 0; }
.hs-price span:last-child { font-family: var(--hs-head); font-weight: 600; font-size: 1.15rem; color: var(--hs-blue); white-space: nowrap; }
.hs-price small { display: block; font-size: .85rem; color: var(--hs-muted); font-style: italic; }
.hs-price-photo { position: relative; border-radius: var(--hs-radius); overflow: hidden; box-shadow: var(--hs-shadow); }
.hs-price-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.hs-price-photo span { position: absolute; left: 20px; bottom: 16px; font-family: var(--hs-head); font-size: 1.6rem; font-weight: 700; color: #fff; text-transform: lowercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }

/* ---------- Logo wall ---------- */
.hs-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 34px; }
.hs-logo { display: inline-flex; align-items: center; justify-content: center; }
.hs-logo img { max-height: 90px; width: auto; max-width: 240px; object-fit: contain; }
.hs-logos--sm .hs-logo img { max-height: 64px; max-width: 120px; }
.hs-logo--wide img { max-width: 300px; }
.hs-panel { border-radius: var(--hs-radius); padding: 30px 26px; }
.hs-panel--white { background: #fff; box-shadow: var(--hs-shadow); }
.hs-panel--blue { background: #a9c4ea; }
.hs-panel h3 { text-align: center; margin-bottom: 22px; }

/* ---------- People ---------- */
.hs-person { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: start; padding: 28px 0; border-bottom: 1px solid #dfe8f4; }
.hs-person:last-child { border-bottom: 0; }
.hs-person img { width: 200px; height: 240px; object-fit: cover; border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); }
.hs-person h3 { margin: 0; }
.hs-role { font-family: var(--hs-head); color: var(--hs-blue); font-size: 1.1rem; margin: 2px 0 12px; }
.hs-member { text-align: center; }
.hs-member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--hs-shadow); margin-bottom: 16px; }
.hs-member .hs-role { margin: 0 0 4px; font-size: 1rem; }
.hs-member h3 { margin: 0 0 6px; }
.hs-member p { margin: 0; color: var(--hs-muted); font-size: .98rem; }

/* ---------- Tabs ---------- */
.hs-tabs__list { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid #d6e3f3; margin-bottom: 26px; }
.hs-tabs__btn { font-family: var(--hs-head); font-size: 1.05rem; background: none; border: 0; padding: 12px 18px; color: var(--hs-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.hs-tabs__btn.is-active, .hs-tabs__btn:hover { color: var(--hs-navy); border-bottom-color: var(--hs-blue); }
.hs-tabs.is-tabbed .hs-tabs__panel { display: none; }
.hs-tabs.is-tabbed .hs-tabs__panel.is-active { display: block; }
.hs-tabs__panel + .hs-tabs__panel { margin-top: 30px; }
.hs-tabs.is-tabbed .hs-tabs__panel + .hs-tabs__panel { margin-top: 0; }

/* ---------- Numbered blocks ---------- */
.hs-num { font-family: 'Anton', var(--hs-head); font-size: 3.4rem; line-height: 1; color: var(--hs-sky); margin-bottom: 8px; display: block; }

/* ---------- Adoptable pets ---------- */
.pet-grid .pet-card[hidden], .pet-grid-empty[hidden] { display: none !important; }
.pet-filters { flex-wrap: wrap; }
.pet-filters .pet-filter-item { flex: 1 1 160px; }
.pet-filters select { width: 100%; }
.pet-card-breed { font-size: .85rem; color: var(--hs-muted); margin-top: 2px; }
.hs-main .pet-card-media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--hs-ice); }

/* ---------- Video ---------- */
.hs-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--hs-radius); overflow: hidden; box-shadow: var(--hs-shadow); }
.hs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Home ---------- */
.hs-home-intro { padding: 44px 0 10px; text-align: center; }
.hs-home-intro h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 6px; }
.hs-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hs-impact .hs-card__body { text-align: center; align-items: center; }
.hs-impact .hs-card__body .hs-btn { align-self: center; }
.hs-impact h2 { font-size: 1.6rem; margin: 0; }
.hs-cta-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--hs-navy); border-radius: var(--hs-radius); overflow: hidden; }
.hs-cta-strip a { display: block; padding: 22px 18px; color: #fff !important; text-decoration: none !important; text-align: center; border-right: 1px solid rgba(255, 255, 255, .18); transition: background .2s; }
.hs-cta-strip a:last-child { border-right: 0; }
.hs-cta-strip a:hover { background: var(--hs-blue); }
.hs-cta-strip strong { display: block; font-family: var(--hs-head); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hs-cta-strip span { font-family: var(--hs-head); font-size: .9rem; letter-spacing: .08em; color: #cfe0f6; }
.hs-story { position: relative; border-radius: var(--hs-radius); overflow: hidden; min-height: 460px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-items: stretch; }
.hs-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .25) 45%, rgba(1, 53, 104, .55) 100%); }
.hs-story__col { position: relative; z-index: 1; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.hs-story__col--right { text-align: right; align-items: flex-end; }
.hs-story__col--right h3, .hs-story__col--right a { color: #fff !important; }
.hs-story__col--right a { font-family: var(--hs-head); font-size: 2rem; }
.hs-story__foot { position: relative; z-index: 1; grid-column: 1 / -1; background: rgba(1, 53, 104, .85); color: #fff; text-align: center; padding: 12px 18px; font-family: var(--hs-head); font-size: 1.1rem; }

/* ---------- Poem / framed text ---------- */
.hs-poem { text-align: center; font-style: italic; line-height: 1.8; }
.hs-poem p { margin: 0 0 6px; }
.hs-bg-card { position: relative; border-radius: var(--hs-radius); overflow: hidden; padding: 34px 30px; box-shadow: var(--hs-shadow); }
.hs-bg-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hs-bg-card > :not(img) { position: relative; }

/* ---------- Header additions ---------- */
.topbar .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.hs-tagline { font-family: var(--hs-head); font-style: italic; font-size: 13px; color: var(--hs-red); white-space: nowrap; }
.hs-header-ctas { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.hs-care-btn { display: inline-flex; justify-content: center; font-family: var(--hs-head); font-style: italic; font-weight: 600; font-size: 13px; color: var(--hs-navy); border: 2px solid var(--hs-red); border-radius: 999px; padding: 4px 14px; white-space: nowrap; background: #fff; }
.hs-care-btn:hover { background: var(--hs-ice); }

/* Top-level menu items that only open their submenu */
.nav .nav-parent { cursor: pointer; }
.nav-item:focus-within > .dropdown { display: block; }

/* ---------- Footer ---------- */
.site-footer .footer-grid { grid-template-columns: 1.1fr .9fr; }
.hs-footer-hours h5 { margin-bottom: 4px; }
.footer-social a { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hs-header-ctas { order: 2; margin-left: auto; }
  .hs-header-ctas .donate { order: 0; margin-left: 0; }
  .hs-tagline { font-size: 11px; }
}
@media (max-width: 640px) {
  .hs-care-btn { font-size: 10px; padding: 3px 8px; }
  .hs-tagline { font-size: 10px; white-space: normal; }
}
@media (max-width: 900px) {
  .hs-grid--3, .hs-grid--4, .hs-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-split, .hs-split--even { grid-template-columns: 1fr; gap: 26px; }
  .hs-split--reverse > :first-child { order: 0; }
  .hs-cta-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-cta-strip a:nth-child(2) { border-right: 0; }
  .hs-story { grid-template-columns: 1fr; }
  .hs-story__col--right { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
  .hs-main { font-size: 16px; }
  .hs-section { padding: 38px 0; }
  .hs-grid--2, .hs-grid--3, .hs-grid--4, .hs-impact { grid-template-columns: 1fr; }
  .hs-hero__title, .hs-hero--top .hs-hero__title { position: static; max-width: none; border-radius: 0; box-shadow: none; padding: 14px 18px; }
  .hs-person { grid-template-columns: 1fr; gap: 16px; }
  .hs-person img { width: 100%; max-width: 280px; height: auto; aspect-ratio: 5 / 6; }
  .hs-cta-strip strong { font-size: 1.5rem; }
  .hs-card { padding: 22px; }
  .hs-logo img { max-height: 70px; max-width: 180px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
