/* ==========================================================================
   Helping Hands Medical Equipment Ministry — brand stylesheet
   Matches the layout of the original Duda site (hhmedicalequipment.org).
   Palette sampled from the logo, share image and site CSS.
   ========================================================================== */
:root {
  --hh-indigo: #261c69;      /* "HELPING" wordmark */
  --hh-mint: #6dffd8;        /* "hands" wordmark (logo only) */
  --hh-teal: #5dc4dc;        /* buttons, quick-link card, underlines, icons */
  --hh-teal-dark: #3ea9c3;   /* hover state */
  --hh-plum: #463758;        /* heart share image */
  --hh-coral: #f26554;       /* reserved: alerts / secondary CTA */
  --hh-sky: #1db6e8;
  --hh-ink: #1a1a1a;
  --hh-body: #313131;
  --hh-muted: #6c6c6c;
  --hh-paper: #f7f7f7;
  --hh-white: #ffffff;

  --font-serif: "Marcellus", Georgia, "Times New Roman", serif;   /* h1–h3 */
  --font-sans: "Poppins", "Helvetica Neue", Arial, sans-serif;     /* body, nav, h4+, buttons */
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-weight: 300; color: var(--hh-body); background: var(--hh-white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-serif); font-weight: 400; color: var(--hh-ink); }
h4, h5, h6, .h4, .h5, .h6 { font-family: var(--font-sans); font-weight: 600; color: var(--hh-ink); }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.35rem; }
p { line-height: 1.85; }
a { color: var(--hh-teal-dark); }
a:hover { color: var(--hh-indigo); }
.small-copy { font-size: .9rem; }

/* Underline accent under headings (short teal bar, as on the live site) */
.hh-underline::after { content: ""; display: block; width: 40px; height: 2px; background: var(--hh-teal); margin: .9rem 0 1.6rem; }
.text-center .hh-underline::after, .hh-underline.center::after { margin-left: auto; margin-right: auto; }

/* Buttons: pill, uppercase, bold sans ---------------------------------- */
.btn { font-family: var(--font-sans); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: .85rem 2.4rem; transition: all .15s; }
.btn-teal { background: var(--hh-teal); border-color: var(--hh-teal); color: #fff; }
.btn-teal:hover, .btn-teal:focus { background: var(--hh-teal-dark); border-color: var(--hh-teal-dark); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--hh-teal-dark); }
.btn-white:hover, .btn-white:focus { background: var(--hh-teal); border-color: var(--hh-teal); color: #fff; }
.btn-indigo { background: var(--hh-indigo); border-color: var(--hh-indigo); color: #fff; }
.btn-indigo:hover, .btn-indigo:focus { background: #1b1450; border-color: #1b1450; color: #fff; }
.btn-outline-indigo { border-color: var(--hh-indigo); color: var(--hh-indigo); }
.btn-outline-indigo:hover { background: var(--hh-indigo); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--hh-indigo); outline-offset: 2px; }

/* Header ----------------------------------------------------------------- */
.hh-header { background: #fff; }
.hh-header .brand img { height: auto; width: 100%; max-width: 330px; }
@media (min-width: 768px) { .hh-header .brand img { max-width: 420px; } }
.hh-header .address { font-size: .85rem; color: var(--hh-body); line-height: 1.4; }
.hh-header .address svg { width: 18px; height: 18px; color: var(--hh-teal); flex: none; }
.hh-nav { font-size: .9rem; }
.hh-nav .nav-link { color: var(--hh-ink); font-weight: 400; padding: .35rem 0; margin: 0 .9rem; border-bottom: 2px solid transparent; }
.hh-nav .nav-link:hover, .hh-nav .nav-link:focus { color: var(--hh-teal-dark); }
.hh-nav .nav-link.active { border-bottom-color: var(--hh-ink); }
.hh-nav .navbar-toggler { border: 0; }

/* Hero ------------------------------------------------------------------- */
.hh-hero { position: relative; color: #fff; display: flex; align-items: center; min-height: clamp(520px, 78vh, 860px); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hh-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.hh-hero > .container { position: relative; }
.hh-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.35; max-width: 880px; margin: 0 auto; }
.hh-hero .verse { font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; margin-bottom: 2.5rem !important; }
.hh-hero.hh-hero-short { min-height: clamp(300px, 45vh, 440px); }
.hh-hero.hh-hero-short h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* Quick links card (overlaps hero bottom) -------------------------------- */
.hh-quicklinks { position: relative; z-index: 2; margin-top: -60px; }
.hh-quicklinks .card-teal { background: var(--hh-teal); border-radius: 4px; padding: 2rem 1rem; }
.hh-quicklinks a { display: block; color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.25; padding: .5rem; border-radius: 4px; transition: background .15s; }
.hh-quicklinks a:hover, .hh-quicklinks a:focus { background: rgba(255,255,255,.14); color: #fff; }
.hh-quicklinks img { width: 56px; height: 56px; margin-bottom: .5rem; }

/* Sections --------------------------------------------------------------- */
.hh-section { padding: 5rem 0; }
.hh-section-paper { background: var(--hh-paper); }
.hh-figure { border-radius: 6px; object-fit: cover; width: 100%; aspect-ratio: 5 / 4; }

/* Photo strip (Request / Volunteer / Donate / PUMC) --------------------- */
.hh-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.hh-strip a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; color: #fff; text-decoration: none; }
.hh-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hh-strip a:hover img, .hh-strip a:focus-visible img { transform: scale(1.05); }
/* Teal outline drawn inside the tile on hover/keyboard focus (inset so the grid stays seamless) */
.hh-strip a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--hh-teal); transition: box-shadow .15s; pointer-events: none; }
.hh-strip a:hover::after, .hh-strip a:focus-visible::after { box-shadow: inset 0 0 0 5px var(--hh-teal); }
.hh-strip a:focus-visible { outline: none; }
.hh-strip .caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.hh-strip .caption h3 { color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.hh-strip .caption p { color: rgba(255,255,255,.9); font-size: .85rem; margin: .25rem 0 0; line-height: 1.4; }
@media (max-width: 767px) { .hh-strip { grid-template-columns: repeat(2, 1fr); } }

/* Contact ---------------------------------------------------------------- */
.hh-contact .form-control { background: var(--hh-paper); border: 1px solid #e6e6e6; border-radius: 3px; font-size: .85rem; padding: .7rem .9rem; }
.hh-contact .form-control::placeholder { color: #8a8a8a; }
.hh-map { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: 4px; }

/* Footer ----------------------------------------------------------------- */
.hh-footer { background: var(--hh-paper); color: var(--hh-body); padding: 3.5rem 0 1.5rem; border-top: 1px solid #ececec; }
.hh-footer h4 { font-size: 1rem; margin-bottom: 1rem; }
.hh-footer a { color: var(--hh-body); text-decoration: none; }
.hh-footer a:hover { color: var(--hh-teal-dark); }
.hh-footer ul li { font-size: .85rem; margin-bottom: .15rem; }
.hh-footer .contact-lines { font-size: .85rem; line-height: 1.9; }
.hh-footer .form-label { font-size: .85rem; font-weight: 400; color: var(--hh-body); margin-bottom: .25rem; }
.hh-footer .form-control { background: #fff; border: 1px solid #e6e6e6; border-radius: 2px; }
.hh-footer .copyright { margin-top: 3rem; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Forms ------------------------------------------------------------------ */
.form-control:focus, .form-select:focus { border-color: var(--hh-teal); box-shadow: 0 0 0 .2rem rgba(93,196,220,.25); }
.form-label { font-weight: 500; font-size: .85rem; color: var(--hh-ink); }
.hh-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Skip link (a11y) ------------------------------------------------------- */
.skip-link { position: absolute; left: -10000px; top: 8px; z-index: 2000; background: var(--hh-indigo); color: #fff; padding: .5rem 1rem; border-radius: 4px; }
.skip-link:focus { left: 8px; color: #fff; }

/* App (authenticated) shell ------------------------------------------------ */
.hh-app-nav { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.hh-app-nav .navbar-brand img { height: 32px; max-width: 100%; }
.hh-app-nav .navbar-toggler { border: 0; padding: .25rem .5rem; }
@media (max-width: 767px) { .hh-app-nav .navbar-toggler { display: block; } }  /* .navbar-expand hides it by default */
.hh-app-nav .nav-link { white-space: nowrap; }
@media (max-width: 575px) { .hh-app-nav .navbar-brand img { height: 26px; } .hh-app-nav .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .85rem; } }
.hh-app-nav .nav-link { color: var(--hh-indigo); font-weight: 500; font-size: .9rem; }
.hh-app-sidebar { background: var(--hh-indigo) !important; }  /* !important: .offcanvas-md resets bg to transparent at ≥md */
@media (min-width: 768px) { .hh-app-sidebar { min-height: calc(100vh - 56px); } }
/* Offcanvas drawer on small screens keeps the indigo background */
.hh-app-sidebar.offcanvas-md { --bs-offcanvas-bg: var(--hh-indigo); --bs-offcanvas-width: 260px; }
.hh-app-sidebar .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.12); }
.hh-app-sidebar .nav-link { color: rgba(255,255,255,.8); font-weight: 500; }
.hh-app-sidebar .nav-link:hover, .hh-app-sidebar .nav-link.active { color: var(--hh-mint); background: rgba(255,255,255,.06); }
.hh-page-title { font-family: var(--font-sans); font-weight: 600; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--hh-indigo); }
@media (max-width: 767px) { .hh-app-main { padding: 1rem !important; } }
.hh-stat { border-left: 4px solid var(--hh-teal); background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.hh-stat .value { font-family: var(--font-sans); font-size: 2rem; font-weight: 700; color: var(--hh-indigo); }
.hh-stat .label { color: var(--hh-muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }

/* Icon helpers: SVGs are black by default; recolor via CSS filters -------- */
.icon-white { }
.icon-badge { background: var(--hh-teal); border-radius: 50%; padding: 11px; }

/* Request form ------------------------------------------------------------ */
.hh-request .form-label { margin-bottom: .25rem; }
.hh-request legend.form-label { font-size: .85rem; }
.hh-request .form-check-input:checked { background-color: var(--hh-teal); border-color: var(--hh-teal); }
.hh-request .form-text { font-size: .78rem; }
.hh-equip-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.hh-equip-row .form-check { flex: 1 1 auto; margin-bottom: 0; }
.hh-equip-row .hh-variant { flex: 0 0 170px; }
.hh-equip-row .hh-variant:disabled { opacity: .45; }
@media (max-width: 575px) { .hh-equip-row { flex-wrap: wrap; } .hh-equip-row .hh-variant { flex-basis: 100%; margin-left: 1.5rem; } }

/* Request form callouts ---------------------------------------------------- */
.hh-callout { border-left: 4px solid var(--hh-teal); background: var(--hh-paper); padding: .9rem 1.1rem; border-radius: 3px; font-size: .9rem; }
.hh-callout-urgent { border-left-color: #f26554; }
.hh-char-count { font-size: .78rem; color: #6c6c6c; text-align: right; }
.hh-char-count.at-limit { color: #b3261e; font-weight: 600; }

/* Print: requests and daily report print cleanly from the browser ------------ */
.print-only { display: none; }
@media print {
  .hh-app-nav, .hh-app-sidebar, .hh-header, .hh-footer, .no-print, .skip-link { display: none !important; }
  .print-only { display: block; }
  .hh-app-main { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; padding: 0 !important; background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  body { font-size: 11pt; }
  a[href]::after { content: none; }
}
