/* Harvest Mission — shared mobile shell + page utilities */
html { scroll-behavior:smooth; }
body { -webkit-tap-highlight-color:transparent; }

.hm-wrap { max-width:1240px; margin:0 auto; padding-left:32px; padding-right:32px; }
.hm-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.hm-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.hm-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.hm-grid-pastors { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.hm-pastor-card { display:flex; flex-direction:column; width:100%; height:100%; text-align:left; background:#fff; border:1px solid #e4dccb; border-radius:3px; overflow:hidden; cursor:pointer; padding:0; }
.hm-pastor-card-media { position:relative; width:100%; aspect-ratio:1/1; overflow:hidden; }
.hm-pagination { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:40px; margin-bottom:12px; }
.hm-pagination-btn { min-width:44px; min-height:44px; padding:0 14px; border:1px solid #d3c7af; border-radius:4px; background:#fff; color:#46515c; font-size:13px; font-weight:700; letter-spacing:0.04em; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.hm-pagination-btn.is-active { background:#cf4a26; border-color:#cf4a26; color:#fff; }
.hm-pagination-btn:disabled { opacity:0.4; cursor:not-allowed; }
.hm-grid-footer { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px; }
.hm-layout-sidebar { display:grid; grid-template-columns:248px 1fr; gap:38px; align-items:start; }

.hm-logo { display:flex; align-items:center; flex-shrink:0; min-height:44px; text-decoration:none; }
.hm-logo-img { display:block; width:auto; height:78px; max-width:min(52vw, 280px); object-fit:contain; object-position:left center; }
.hm-logo--footer .hm-logo-img { height:40px; max-width:min(72vw, 240px); }
.hm-header-inner { max-width:1240px; margin:0 auto; padding:0 32px; height:78px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hm-header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.hm-nav-desktop { display:flex; align-items:center; gap:26px; flex-shrink:1; min-width:0; }
.hm-nav-desktop a, .hm-nav-desktop button { font-size:13px; font-weight:600; letter-spacing:0.04em; color:#cfd6dd; background:none; border:none; cursor:pointer; min-height:44px; display:inline-flex; align-items:center; }
.hm-nav-desktop a.is-active, .hm-nav-desktop button.is-active { font-weight:700; color:#e0673f; }
.hm-nav-dropdown { position:relative; flex-shrink:0; }
.hm-nav-dropdown-trigger { display:inline-flex; align-items:center; gap:5px; min-height:44px; font-size:13px; font-weight:600; letter-spacing:0.04em; color:#cfd6dd; text-decoration:none; white-space:nowrap; }
.hm-nav-dropdown-trigger:hover, .hm-nav-dropdown:focus-within .hm-nav-dropdown-trigger { color:#fff; }
.hm-nav-dropdown-trigger.is-active { font-weight:700; color:#e0673f; }
.hm-nav-dropdown-chevron { opacity:0.75; transition:transform .2s; flex-shrink:0; }
.hm-nav-dropdown:hover .hm-nav-dropdown-chevron, .hm-nav-dropdown:focus-within .hm-nav-dropdown-chevron { transform:rotate(180deg); }
.hm-nav-dropdown-menu { position:absolute; top:calc(100% - 4px); left:50%; transform:translateX(-50%); min-width:168px; background:#1d2c3d; border:1px solid rgba(245,239,227,0.12); border-radius:4px; padding:6px 0; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .15s, visibility .15s; box-shadow:0 8px 24px rgba(0,0,0,.28); z-index:60; }
.hm-nav-dropdown:hover .hm-nav-dropdown-menu, .hm-nav-dropdown:focus-within .hm-nav-dropdown-menu { opacity:1; visibility:visible; pointer-events:auto; }
.hm-nav-dropdown-menu a { display:block; padding:11px 18px; font-size:12px; font-weight:600; letter-spacing:0.08em; color:#cfd6dd; white-space:nowrap; min-height:0; }
.hm-nav-dropdown-menu a:hover { background:rgba(245,239,227,0.08); color:#fff; }
.hm-nav-drawer-group { margin:2px 0 10px; }
.hm-nav-drawer-label { display:block; padding:10px 14px 6px; font-size:11px; font-weight:700; letter-spacing:0.12em; color:#8a929b; text-transform:uppercase; }
.hm-nav-drawer-sub { padding-left:28px !important; font-size:14px !important; font-weight:500 !important; color:#aeb8c2 !important; min-height:44px !important; }
.hm-impact-banner { background:#15212e; color:#c4cdd6; text-align:center; padding:13px 32px; border-bottom:1px solid rgba(245,239,227,0.08); }
.hm-impact-banner p { font-size:13.5px; line-height:1.55; max-width:760px; margin:0 auto; }
.hm-impact-banner strong { color:#e0673f; font-weight:700; }
.hm-impact-tag { display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:700; letter-spacing:0.05em; color:#1f5c3a; background:#e9f3ec; border:1px solid #b8dcc4; padding:4px 8px; border-radius:2px; margin-bottom:8px; }
.hm-impact-callout { display:flex; gap:14px; align-items:flex-start; background:#f7f1e6; border:1px solid #e9dcc4; border-radius:3px; padding:16px 18px; margin-bottom:28px; }
.hm-impact-callout-icon { flex:none; width:36px; height:36px; border-radius:50%; background:#e9f3ec; display:flex; align-items:center; justify-content:center; }
.hm-impact-callout p { font-size:14px; line-height:1.55; color:#46515c; margin:0; }
.hm-impact-callout strong { color:#15212e; }
.hm-nav-toggle { display:none; width:44px; height:44px; border:none; background:rgba(245,239,227,0.08); border-radius:4px; cursor:pointer; align-items:center; justify-content:center; flex-shrink:0; }
.hm-nav-drawer { display:none; position:fixed; inset:0; z-index:200; pointer-events:none; }
.hm-nav-drawer.open { display:block; pointer-events:auto; }
.hm-nav-backdrop { position:absolute; inset:0; background:rgba(8,14,20,0.55); opacity:0; transition:opacity .25s; }
.hm-nav-drawer.open .hm-nav-backdrop { opacity:1; }
.hm-nav-panel { position:absolute; top:0; right:0; width:min(320px,88vw); height:100%; background:#15212e; border-left:1px solid rgba(245,239,227,0.12); transform:translateX(100%); transition:transform .28s ease; display:flex; flex-direction:column; padding:24px 22px calc(24px + env(safe-area-inset-bottom)); overflow-y:auto; }
.hm-nav-drawer.open .hm-nav-panel { transform:translateX(0); }
.hm-nav-panel a, .hm-nav-panel button { display:flex; align-items:center; min-height:48px; padding:0 14px; font-size:15px; font-weight:600; letter-spacing:0.04em; color:#cfd6dd; border:none; background:none; width:100%; text-align:left; cursor:pointer; border-radius:4px; }
.hm-nav-panel a:active, .hm-nav-panel button:active { background:rgba(245,239,227,0.08); }
.hm-nav-donate { margin-top:12px; justify-content:center; background:#cf4a26 !important; color:#fff !important; border-radius:4px; min-height:50px !important; }
.hm-header-cart { position:relative; background:none; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:4px; flex-shrink:0; }
.hm-header-cart:active { background:rgba(245,239,227,0.08); }

.hm-mobile-bar { display:none; position:fixed; bottom:0; left:0; right:0; z-index:90; background:rgba(21,33,46,0.96); border-top:1px solid rgba(245,239,227,0.12); padding:8px 10px calc(8px + env(safe-area-inset-bottom)); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.hm-mobile-bar-inner { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; max-width:520px; margin:0 auto; }
.hm-mobile-bar a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:8px 4px; font-size:9px; font-weight:700; letter-spacing:0.06em; color:#9aa6b2; border-radius:6px; min-height:52px; }
.hm-mobile-bar a:active, .hm-mobile-bar a.active { color:#e0673f; background:rgba(207,74,38,0.12); }

.hm-page-hero { background:#15212e; color:#f5efe3; padding:70px 32px 64px; position:relative; overflow:hidden; }
.hm-page-hero-bg { position:absolute; inset:0; opacity:0.4; background:repeating-linear-gradient(118deg,transparent 0 28px,rgba(207,74,38,0.08) 28px 29px); pointer-events:none; }
.hm-page-hero-inner { position:relative; max-width:1240px; margin:0 auto; }
.hm-page-h1 { font-family:'Newsreader',serif; font-weight:500; font-size:54px; line-height:1.04; letter-spacing:-0.01em; }
.hm-page-lead { font-size:17px; line-height:1.6; color:#c4cdd6; max-width:560px; margin-top:20px; }

.hm-filter-bar { background:#ece3d2; border-bottom:1px solid #ddd2bd; padding:20px 32px; position:sticky; top:78px; z-index:40; }
.hm-filter-inner {
  max-width:1240px; margin:0 auto;
  display:grid; grid-template-columns:1fr; gap:12px; align-items:stretch;
}
.hm-filter-search { position:relative; width:100%; max-width:400px; }
.hm-filter-search input { width:100%; padding:12px 14px 12px 38px; border:1px solid #d3c7af; border-radius:4px; background:#fff; font-size:16px; color:#15212e; outline:none; min-height:48px; }
.hm-chip-group { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hm-chip-scroll {
  position:relative; display:flex; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; width:100%; min-width:0; padding-bottom:2px;
  scroll-padding-inline-end:36px; overscroll-behavior-x:contain; touch-action:pan-x;
}
.hm-chip-scroll::-webkit-scrollbar { display:none; }
.hm-chip-scroll .hm-chip-group { flex-wrap:nowrap; padding-right:32px; }
.hm-chip-scroll button { flex-shrink:0; }
.hm-chip-scroll::before {
  content:''; position:absolute; top:0; right:0; bottom:0; width:48px; z-index:1; pointer-events:none;
  background:linear-gradient(90deg, transparent 0%, #ece3d2 78%);
  opacity:0; transition:opacity .2s;
}
.hm-chip-scroll::after {
  content:''; position:absolute; top:50%; right:12px; z-index:2; pointer-events:none;
  width:7px; height:7px; border-right:2px solid #8a7f6a; border-bottom:2px solid #8a7f6a;
  transform:translateY(-60%) rotate(-45deg); opacity:0; transition:opacity .2s;
}
.hm-chip-scroll.hm-scrollable:not(.hm-scroll-end)::before,
.hm-chip-scroll.hm-scrollable:not(.hm-scroll-end)::after { opacity:1; }

@media (min-width:900px) {
  .hm-filter-inner {
    grid-template-columns:minmax(220px,300px) 1fr;
    grid-template-rows:auto auto;
    gap:12px 20px;
  }
  .hm-filter-search { grid-row:span 2; align-self:start; max-width:none; }
}

.hm-subnav { background:#1d2c3d; border-bottom:1px solid rgba(245,239,227,0.1); }
.hm-subnav-inner { max-width:1240px; margin:0 auto; padding:0 32px; display:flex; gap:4px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.hm-subnav-inner::-webkit-scrollbar { display:none; }
.hm-subnav-inner button { flex-shrink:0; min-height:48px; padding:0 18px; font-size:13px; font-weight:700; letter-spacing:0.04em; border:none; cursor:pointer; background:none; color:#9aa6b2; border-bottom:2px solid transparent; }

.hm-section-pad { padding:38px 32px 100px; }

/* —— Elevated cards, buttons & scroll motion —— */
:root {
  --hm-shadow-card: 0 1px 2px rgba(21,33,46,0.04), 0 4px 14px rgba(21,33,46,0.06), 0 14px 32px rgba(21,33,46,0.04);
  --hm-shadow-card-hover: 0 2px 6px rgba(21,33,46,0.06), 0 10px 24px rgba(21,33,46,0.1), 0 24px 48px rgba(21,33,46,0.08);
  --hm-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-card,
.hm-pastor-card,
.hm-pillar-card,
.hm-partner-card,
.hm-church-card,
.hm-explore-card,
.hm-way-card,
.bl-card,
.hm-book-card,
.hm-give-partner-card,
.hm-give-tier-card,
.hm-give-partner {
  box-shadow: var(--hm-shadow-card);
  transition: transform 0.35s var(--hm-ease-out), box-shadow 0.35s var(--hm-ease-out), border-color 0.25s;
}

@media (hover:hover) {
  .hm-card:hover,
  .hm-pastor-card:hover,
  .hm-pillar-card:hover,
  .hm-partner-card:hover,
  .hm-church-card:hover,
  .hm-explore-card:hover,
  .hm-way-card:hover,
  .bl-card:hover,
  .hm-book-card:hover,
  .hm-give-partner-card:hover,
  .hm-give-tier-card:hover,
  .hm-give-partner:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-card-hover);
  }
}

.hm-way-card {
  background: #fff;
  border: 1px solid #e4dccb;
  border-radius: 3px;
  padding: 28px 26px;
  text-align: left;
  height: 100%;
}
.hm-way-icon {
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: #f7f1e6;
  border: 1px solid #e4dccb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.25s, border-color 0.25s;
}
.hm-way-card:hover .hm-way-icon {
  background: #fff5f0;
  border-color: #cf4a26;
}
.hm-way-card h3 {
  font-family: 'Newsreader', serif;
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 9px;
  color: #15212e;
}
.hm-way-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5b6671;
  margin: 0;
}

.hm-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; font-size:14px; font-weight:700; letter-spacing:0.03em; padding:14px 24px; border-radius:4px; min-height:48px; transition:transform .15s, box-shadow .25s var(--hm-ease-out), background-color .2s, border-color .2s, color .2s; }
@media (hover:hover) {
  .hm-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(21,33,46,0.14); }
  .hm-btn-primary:hover,
  a.hm-btn[style*="background:#cf4a26"]:hover { box-shadow: 0 6px 20px rgba(207,74,38,0.38); }
}
.hm-btn:active { transform:scale(0.98); box-shadow:none; }

html.hm-motion .hm-reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}
html.hm-motion .hm-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.hm-reveal {
  transition: opacity 0.65s var(--hm-ease-out), transform 0.65s var(--hm-ease-out);
  transition-delay: var(--hm-reveal-delay, 0ms);
}

@media (prefers-reduced-motion:reduce) {
  html.hm-motion .hm-reveal:not(.is-visible) { opacity: 1; transform: none; }
  .hm-reveal { transition: none; }
  .hm-card,
  .hm-pastor-card,
  .hm-pillar-card,
  .hm-partner-card,
  .hm-church-card,
  .hm-explore-card,
  .hm-way-card,
  .bl-card,
  .hm-book-card,
  .hm-give-partner-card,
  .hm-give-tier-card,
  .hm-give-partner { transition: border-color 0.25s; }
  @media (hover:hover) {
    .hm-card:hover,
    .hm-pastor-card:hover,
    .hm-pillar-card:hover,
    .hm-partner-card:hover,
    .hm-church-card:hover,
    .hm-explore-card:hover,
    .hm-way-card:hover,
    .bl-card:hover,
    .hm-book-card:hover,
    .hm-give-partner-card:hover,
    .hm-give-tier-card:hover,
    .hm-give-partner:hover { transform: none; }
  }
  .hm-btn:hover { transform: none; box-shadow: none; }
}

.hm-modal-backdrop { position:fixed; inset:0; background:rgba(8,14,20,0.86); z-index:180; }
.hm-modal-panel { position:fixed; z-index:190; background:#15212e; color:#f5efe3; border:1px solid rgba(245,239,227,0.12); border-radius:4px; overflow:hidden; }
.hm-media-featured { display:grid; grid-template-columns:1.7fr 1fr; gap:30px; align-items:center; }
.hm-cart-panel { position:fixed; top:0; right:0; width:min(420px,100vw); height:100%; z-index:195; background:#f5efe3; box-shadow:-8px 0 40px rgba(0,0,0,0.15); display:flex; flex-direction:column; }
.hm-detail-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:48px; align-items:start; }
.hm-detail-tabs { display:flex; gap:0; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; border-bottom:1px solid rgba(245,239,227,0.12); }
.hm-detail-tabs::-webkit-scrollbar { display:none; }

.hm-footer-meta { display:flex; flex-wrap:wrap; gap:20px 36px; padding:22px 0 26px; border-top:1px solid rgba(245,239,227,0.1); }
.hm-footer-meta-item { display:flex; flex-direction:column; gap:5px; min-width:min(100%, 160px); }
.hm-footer-meta-label { font-size:10px; font-weight:700; letter-spacing:0.14em; color:#5f6b77; text-transform:uppercase; }
.hm-footer-meta-value { font-size:13.5px; line-height:1.45; color:#aeb8c2; }
.hm-footer-meta-value a { color:inherit; text-decoration:none; }
.hm-footer-meta-value a:hover { color:#f5efe3; }
.hm-footer-copy { font-size:12.5px; color:#5f6b77; padding-top:4px; }
.hm-footer-compact .hm-footer-meta { border-top:none; padding:0; gap:16px 28px; }
.hm-footer-compact .hm-footer-copy { padding-top:14px; border-top:1px solid rgba(245,239,227,0.1); margin-top:14px; width:100%; }

@media (max-width:1200px) {
  .hm-nav-desktop { gap:18px; }
  .hm-nav-desktop a, .hm-nav-desktop button, .hm-nav-dropdown-trigger { font-size:12px; }
}

@media (max-width:1024px) {
  .hm-grid-3 { grid-template-columns:repeat(2,1fr); }
  .hm-grid-4 { grid-template-columns:repeat(2,1fr); }
  .hm-grid-pastors { grid-template-columns:repeat(3,1fr); }
  .hm-layout-sidebar { grid-template-columns:1fr; }
  .hm-page-h1 { font-size:44px; }
  .hm-media-featured { grid-template-columns:1fr; }
}

@media (max-width:768px) {
  .hm-wrap, .hm-header-inner, .hm-page-hero, .hm-filter-bar, .hm-section-pad, .hm-subnav-inner, .hm-impact-banner { padding-left:20px; padding-right:20px; }
  .hm-impact-banner p { font-size:12.5px; }
  .hm-nav-desktop { display:none !important; }
  .hm-nav-toggle { display:flex; }
  .hm-mobile-bar { display:block; }
  .hm-header-inner { height:64px; padding:0 16px; }
  .hm-logo:not(.hm-logo--footer) .hm-logo-img { height:56px; max-width:min(58vw, 220px); }
  .hm-logo--footer .hm-logo-img { height:36px; }
  .hm-tagline { display:none; }
  body { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }

  .hm-page-hero { padding:40px 20px 32px; }
  .hm-page-h1 { font-size:clamp(32px,9vw,42px); }
  .hm-page-lead { font-size:16px; margin-top:14px; }
  .hm-filter-bar { top:64px; padding:14px 20px; }
  .hm-filter-search { max-width:none; min-width:0; }
  .hm-chip-group { width:100%; }
  .hm-section-pad { padding:28px 20px 80px; }
  .hm-pagination { margin-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .hm-grid-2, .hm-grid-3, .hm-grid-4, .hm-grid-cards, .hm-grid-footer { grid-template-columns:1fr; }
  .hm-grid-pastors { grid-template-columns:repeat(2,1fr); gap:16px; }
  .hm-layout-sidebar aside { position:static !important; }
  .hm-subnav-inner { padding:0 12px; }
  .hm-subnav-inner button { min-height:50px; padding:0 16px; font-size:12px; }

  .hm-modal-panel {
    inset:auto 0 0 0 !important; width:100% !important; max-width:none !important;
    border-radius:12px 12px 0 0; max-height:92vh; overflow-y:auto;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .hm-media-featured { grid-template-columns:1fr; gap:20px; }
  .hm-cart-panel { width:100% !important; max-height:92vh; top:auto !important; bottom:0; height:auto !important; border-radius:12px 12px 0 0; padding-bottom:env(safe-area-inset-bottom); }
  .hm-detail-grid { grid-template-columns:1fr; gap:28px; }
  .hm-detail-tabs button { flex-shrink:0; min-height:50px; }
  footer { padding-bottom:calc(38px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width:480px) {
  .hm-grid-footer { grid-template-columns:1fr; }
}
