:root {
  --navy: #042742;
  --white: #ffffff;
  --ink-90: rgba(4, 39, 66, 0.9);
  --ink-72: rgba(4, 39, 66, 0.72);
  --ink-54: rgba(4, 39, 66, 0.54);
  --line: rgba(4, 39, 66, 0.14);
  --wash: rgba(4, 39, 66, 0.035);
  --container: 1240px;
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.7rem, 7vw, 7rem);
}

h2 {
  font-size: clamp(2.45rem, 4.6vw, 4.7rem);
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

p {
  margin-bottom: 1.25rem;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 30;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.footer-note,
.narrow,
.donation-intro,
.charity-logos,
.donation-form,
.guestbook-layout,
.tributes-inner {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 36px;
}

.memorial-name {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  line-height: 1.15;
}

.memorial-name span {
  color: var(--ink-54);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.memorial-name strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--ink-72);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.header-nav a:not(.header-gift):hover,
.header-nav a:not(.header-gift):focus-visible {
  color: var(--navy);
}

.header-gift {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: var(--white) !important;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  min-height: calc(100vh - var(--header-height));
  background: var(--white);
}

.hero-image-wrap {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--wash);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

.hero-image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 76%, rgba(255, 255, 255, 0.18));
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 8vw, 132px) clamp(48px, 8vw, 132px);
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--ink-54);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.centered {
  text-align: center;
}

.hero h1 {
  max-width: 720px;
}

.hero-lead {
  margin: 34px 0 14px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.hero-intro {
  max-width: 640px;
  margin-bottom: 36px;
  color: var(--ink-72);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0a3555;
}

.button-text {
  min-height: auto;
  padding: 12px 0;
  color: var(--navy);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.button-text span {
  margin-left: 8px;
}

.section {
  padding: clamp(104px, 11vw, 172px) 0;
}

.narrow {
  max-width: 940px;
}

.remembrance {
  background: var(--white);
}

.remembrance h2,
.donation-intro h2 {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.remembrance-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 96px);
  margin-top: 62px;
}

.remembrance-copy p {
  margin: 0;
  color: var(--ink-72);
}

blockquote {
  position: relative;
  margin: clamp(72px, 9vw, 116px) auto 0;
  padding: 56px 20px 0;
  border-top: 1px solid var(--line);
  max-width: 760px;
  text-align: center;
}

.quote-mark {
  position: absolute;
  top: 22px;
  left: 50%;
  color: rgba(4, 39, 66, 0.18);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  transform: translateX(-50%);
}

blockquote p {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.35;
}


.guestbook {
  background: #fbfaf7;
  border-top: 1px solid rgba(4, 39, 66, 0.08);
  border-bottom: 1px solid rgba(4, 39, 66, 0.08);
}

.guestbook-heading {
  max-width: 900px;
  text-align: center;
}

.guestbook-heading h2 {
  text-align: center;
}

.guestbook-heading > p:last-child {
  max-width: 760px;
  margin: 30px auto 0;
  color: var(--ink-72);
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(54px, 7vw, 96px);
  max-width: 1160px;
  margin-top: 72px;
  align-items: start;
}

.message-book {
  min-width: 0;
}

.message-book-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.message-book-label {
  margin: 0 0 6px;
  color: var(--ink-54);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message-book-heading h3 {
  margin: 0;
}

.message-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink-54);
  font-size: 0.72rem;
  font-weight: 600;
}

.message-list {
  display: grid;
}

.message-entry {
  position: relative;
  padding: 34px 4px 32px 42px;
  border-bottom: 1px solid var(--line);
}

.message-entry::before {
  position: absolute;
  top: 31px;
  left: 4px;
  content: "“";
  color: rgba(4, 39, 66, 0.18);
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 1;
}

.message-entry blockquote {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.message-entry blockquote p {
  margin: 0;
  color: var(--ink-90);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.72;
  white-space: pre-wrap;
}

.message-attribution {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 17px;
}

.message-attribution strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.message-attribution span,
.message-attribution time {
  color: var(--ink-54);
  font-size: 0.7rem;
  font-weight: 500;
}

.message-attribution span::before,
.message-attribution time::before {
  margin-right: 10px;
  content: "·";
}

.message-loading,
.message-empty,
.message-error {
  padding: 54px 10px;
  color: var(--ink-54);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.message-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.sign-book {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  padding: clamp(34px, 4vw, 50px);
  background: var(--white);
  border: 1px solid rgba(4, 39, 66, 0.12);
  box-shadow: 0 22px 60px rgba(4, 39, 66, 0.08);
}

.sign-book .eyebrow {
  margin-bottom: 14px;
}

.sign-book h3 {
  max-width: 430px;
  margin-bottom: 18px;
}

.sign-book-intro {
  margin-bottom: 30px;
  color: var(--ink-72);
  font-size: 0.88rem;
}

.guestbook-form {
  display: grid;
  gap: 20px;
}

.form-field {
  position: relative;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
}

.form-field label span {
  color: var(--ink-54);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(4, 39, 66, 0.22);
  border-radius: 2px;
  outline: 0;
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(4, 39, 66, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(4, 39, 66, 0.4);
}

.character-count {
  margin-top: 5px;
  color: var(--ink-54);
  font-size: 0.65rem;
  text-align: right;
}

.check-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-72);
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1.55;
}

.check-field input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.submit-message {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--ink-72);
  font-size: 0.76rem;
  line-height: 1.55;
}

.form-status.success {
  color: #22553a;
}

.form-status.error {
  color: #8a2530;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.memorial-gift {
  background: var(--wash);
}

.donation-intro {
  max-width: 900px;
  text-align: center;
}

.donation-intro > p:last-child {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--ink-72);
}

.charity-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-top: 76px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.charity-logos figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 38px;
  text-align: center;
}

.charity-logos figure + figure {
  border-left: 1px solid var(--line);
}

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 94px;
  margin-bottom: 20px;
}

.logo-frame img {
  max-width: 210px;
  max-height: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.charity-logos figcaption {
  color: var(--ink-72);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

.donation-form {
  max-width: 720px;
  margin-top: 72px;
}

.donation-form iframe {
  background: transparent;
}

.tributes {
  background: var(--white);
}

.tributes-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(70px, 10vw, 150px);
  max-width: 1080px;
  align-items: start;
}

.tributes-heading h2 {
  max-width: 520px;
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
}

.tributes-copy > p {
  max-width: 560px;
  margin-bottom: 42px;
  color: var(--ink-72);
}

.tribute-links {
  border-top: 1px solid var(--line);
}

.tribute-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label arrow"
    "title arrow";
  width: 100%;
  padding: 25px 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.tribute-link > span:first-child {
  grid-area: label;
  margin-bottom: 2px;
  color: var(--ink-54);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tribute-link strong {
  grid-area: title;
  font-size: 0.96rem;
  font-weight: 600;
}

.tribute-link > span:last-child {
  grid-area: arrow;
  align-self: center;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.tribute-link:hover > span:last-child,
.tribute-link:focus-visible > span:last-child {
  transform: translate(3px, -3px);
}

.site-footer {
  padding: 64px 0 34px;
  color: var(--white);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner strong {
  color: var(--white);
  font-size: 1.08rem;
}

.footer-inner a {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-note {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  line-height: 1.5;
}

.mobile-gift {
  display: none;
}

.tribute-modal {
  width: min(calc(100% - 32px), 820px);
  max-height: min(88vh, 940px);
  margin: auto;
  padding: 0;
  color: var(--navy);
  background: var(--white);
  border: 0;
  box-shadow: 0 30px 90px rgba(4, 39, 66, 0.28);
}

.tribute-modal::backdrop {
  background: rgba(4, 39, 66, 0.78);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  padding: clamp(42px, 7vw, 76px);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 42px;
  height: 42px;
  margin-top: -20px;
  margin-right: -20px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.modal-heading {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.modal-heading h2 {
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.modal-copy {
  padding-top: 36px;
  color: var(--ink-72);
}

.modal-opening {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 600;
}

.modal-footer {
  padding-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .tribute-link > span:last-child {
    transition: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
  }

  .header-inner,
  .footer-inner,
  .footer-note,
  .narrow,
  .donation-intro,
  .charity-logos,
  .donation-form,
  .guestbook-layout,
  .tributes-inner {
    width: min(calc(100% - 40px), var(--container));
  }

  .header-nav > a:not(.header-gift) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    order: 1;
    padding: 72px 40px 68px;
  }

  .hero-image-wrap {
    order: 2;
    min-height: 620px;
  }

  .hero h1 {
    font-size: clamp(4rem, 10vw, 6.5rem);
  }

  .remembrance-copy,
  .guestbook-layout,
  .tributes-inner {
    grid-template-columns: 1fr;
  }

  .guestbook-layout {
    max-width: 760px;
  }

  .sign-book {
    position: static;
  }

  .remembrance-copy {
    gap: 26px;
  }

  .tributes-inner {
    gap: 48px;
  }

  .charity-logos figure {
    padding: 0 22px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 68px;
    font-size: 15px;
  }

  .site-header {
    height: 70px;
  }

  .header-inner {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-gift {
    display: none !important;
  }

  .memorial-name strong {
    font-size: 0.92rem;
  }

  .hero-content {
    padding: 64px 24px 58px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.7rem);
    letter-spacing: -0.055em;
  }

  .hero-lead {
    margin-top: 28px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-image-wrap {
    min-height: 480px;
  }

  .hero-image {
    object-position: 50% 44%;
  }

  .section {
    padding: 92px 0;
  }

  .remembrance h2,
  .donation-intro h2,
  .tributes-heading h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .remembrance-copy {
    margin-top: 46px;
  }

  blockquote {
    margin-top: 62px;
    padding-inline: 0;
  }

  blockquote p {
    font-size: 1.55rem;
  }

  .guestbook-layout {
    width: min(calc(100% - 32px), var(--container));
    margin-top: 48px;
    gap: 44px;
  }

  .guestbook-heading {
    width: min(calc(100% - 32px), var(--container));
  }

  .message-book-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .message-entry {
    padding: 28px 0 27px 34px;
  }

  .message-entry::before {
    top: 25px;
    left: 0;
  }

  .message-attribution {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .message-attribution span::before,
  .message-attribution time::before {
    display: none;
  }

  .sign-book {
    padding: 30px 22px;
  }

  .charity-logos {
    grid-template-columns: 1fr;
    margin-top: 54px;
    padding: 0;
  }

  .charity-logos figure {
    padding: 34px 0;
  }

  .charity-logos figure + figure {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .logo-frame {
    height: 78px;
  }

  .donation-form {
    width: 100%;
    margin-top: 48px;
  }

  .donation-form iframe {
    width: 100% !important;
  }

  .tribute-link {
    padding: 22px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-gift {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    color: var(--white);
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
  }

  .modal-panel {
    padding: 38px 24px;
  }

  .modal-close {
    margin-top: -22px;
    margin-right: -8px;
  }
}

/* v5.1.0: inverse memorial header and larger beneficiary marks */
.site-header {
  color: var(--white);
  background: var(--navy);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.memorial-name span {
  color: rgba(255, 255, 255, 0.62);
}

.memorial-name strong {
  color: var(--white);
}

.header-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.header-nav a:not(.header-gift):hover,
.header-nav a:not(.header-gift):focus-visible {
  color: var(--white);
}

.header-gift {
  color: var(--white) !important;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.header-gift:hover,
.header-gift:focus-visible {
  color: var(--navy) !important;
  background: var(--white);
  border-color: var(--white);
}

.charity-logos {
  max-width: 1080px;
  padding-block: 54px;
}

.charity-logos figure {
  padding-inline: 30px;
}

.logo-frame {
  height: 132px;
  margin-bottom: 24px;
}

.logo-frame img {
  width: auto;
  height: auto;
  max-width: 280px;
  max-height: 116px;
}

@media (max-width: 980px) {
  .logo-frame {
    height: 118px;
  }

  .logo-frame img {
    max-width: 240px;
    max-height: 104px;
  }
}

@media (max-width: 680px) {
  .charity-logos figure {
    padding-block: 38px;
  }

  .logo-frame {
    height: 108px;
    margin-bottom: 18px;
  }

  .logo-frame img {
    max-width: min(280px, 82vw);
    max-height: 96px;
  }
}


/* v5.1.1: inverse hero panel to navy with white typography */
.hero {
  background: var(--navy);
}

.hero-content {
  color: var(--white);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.hero h1,
.hero-lead {
  color: var(--white);
}

.hero-intro {
  color: rgba(255, 255, 255, 0.76);
}

.hero .button-primary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.hero .button-primary:hover,
.hero .button-primary:focus-visible {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.hero .button-text {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.hero-image-wrap::after {
  background: linear-gradient(90deg, transparent 72%, rgba(4, 39, 66, 0.44) 100%);
}

@media (max-width: 980px) {
  .hero-content {
    background: var(--navy);
  }
}


/* v5.1.2: transparent beneficiary artwork and responsive horizontal widget */
.charity-logos {
  max-width: 1120px;
}

.logo-frame {
  height: 150px;
}

.logo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
}

.charity-logos figure:nth-child(1) .logo-frame img {
  width: min(100%, 300px);
  max-height: 96px;
}

.charity-logos figure:nth-child(2) .logo-frame img {
  width: min(100%, 280px);
  max-height: 136px;
}

.charity-logos figure:nth-child(3) .logo-frame img {
  width: min(100%, 300px);
  max-height: 124px;
}

.donation-form {
  width: min(calc(100% - 64px), 1180px);
  max-width: 1180px;
  margin-top: 64px;
  overflow: visible;
}

.memorial-donation-widget {
  width: 100% !important;
  min-height: 760px;
  height: 760px;
  background: transparent;
  border: 0;
  overflow: hidden;
  transition: height 180ms ease;
}

@media (max-width: 980px) {
  .logo-frame {
    height: 132px;
  }

  .charity-logos figure:nth-child(1) .logo-frame img {
    width: min(100%, 250px);
  }

  .charity-logos figure:nth-child(2) .logo-frame img {
    width: min(100%, 235px);
  }

  .charity-logos figure:nth-child(3) .logo-frame img {
    width: min(100%, 250px);
  }

  .donation-form {
    width: min(calc(100% - 40px), 980px);
  }

  .memorial-donation-widget {
    min-height: 940px;
    height: 940px;
  }
}

@media (max-width: 680px) {
  .charity-logos {
    width: min(calc(100% - 32px), var(--container));
  }

  .logo-frame {
    height: 116px;
  }

  .charity-logos figure:nth-child(1) .logo-frame img,
  .charity-logos figure:nth-child(2) .logo-frame img,
  .charity-logos figure:nth-child(3) .logo-frame img {
    width: min(100%, 280px);
    max-height: 104px;
  }

  .donation-form {
    width: 100%;
    max-width: none;
    margin-top: 42px;
  }

  .memorial-donation-widget {
    width: 100% !important;
    min-height: 1450px;
    height: 1450px;
  }
}


/* v5.1.4: prominent condolence-message confirmation */
.message-confirmation {
  padding: clamp(30px, 4vw, 44px);
  color: var(--navy);
  background: rgba(4, 39, 66, 0.045);
  border: 1px solid rgba(4, 39, 66, 0.16);
  text-align: center;
  outline: none;
}

.message-confirmation[hidden],
.guestbook-form[hidden] {
  display: none !important;
}

.confirmation-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.message-confirmation .eyebrow {
  margin-bottom: 10px;
}

.message-confirmation h4 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.message-confirmation > p:not(.eyebrow) {
  margin: 0 auto 26px;
  max-width: 470px;
  color: var(--ink-72);
  font-size: 0.88rem;
  line-height: 1.7;
}

.button-secondary {
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(4, 39, 66, 0.34);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}


/* Mobile memorial navigation */
.mobile-menu-toggle,
.mobile-navigation {
  display: none;
}

.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .header-inner {
    gap: 12px;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 40;
    display: block;
    color: var(--white);
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 34px rgba(4, 39, 66, 0.24);
  }

  .mobile-navigation[hidden] {
    display: none;
  }

  .mobile-navigation-inner {
    display: grid;
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
    padding: 10px 0 16px;
  }

  .mobile-navigation a {
    display: flex;
    align-items: center;
    min-height: 52px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-navigation a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
  }

  .mobile-navigation .mobile-navigation-gift {
    justify-content: center;
    min-height: 48px;
    margin-top: 14px;
    padding: 10px 16px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--white);
    border-radius: 4px;
  }
}


/* Fortony hamburger alignment fix */
header .mobile-menu-toggle {
  position: relative !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin-left: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

header .mobile-menu-toggle > span {
  position: absolute !important;
  left: 11px !important;
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  opacity: 1 !important;
  transform: none !important;
  transform-origin: center !important;
}

header .mobile-menu-toggle > span:nth-child(1) {
  top: 12px !important;
}

header .mobile-menu-toggle > span:nth-child(2) {
  top: 19px !important;
}

header .mobile-menu-toggle > span:nth-child(3) {
  top: 26px !important;
}

header .mobile-menu-toggle[aria-expanded="true"] > span:nth-child(1) {
  top: 19px !important;
  transform: rotate(45deg) !important;
}

header .mobile-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0 !important;
}

header .mobile-menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  top: 19px !important;
  transform: rotate(-45deg) !important;
}

@media (min-width: 981px) {
  header .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 980px) {
  header .mobile-menu-toggle {
    display: block !important;
  }
}


/* Hero secondary condolence button */
.hero .button-hero-secondary {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero .button-hero-secondary:hover,
.hero .button-hero-secondary:focus-visible {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

@media (max-width: 560px) {
  .hero-actions {
    width: 100%;
    gap: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
