/* Site-wide styling fixes for lndmemorialday.org */

@import url('https://fonts.googleapis.com/css2?family=Enriqueta:wght@400;700&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --site-font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --site-font-heading: 'Enriqueta', Georgia, 'Times New Roman', serif;
}

body,
.font_7,
.font_8,
.font_9,
.wixui-rich-text__text,
.wixui-button__label {
  font-family: var(--site-font-body) !important;
}

.font_0,
.font_2,
.font_3,
.font_4,
.font_5,
.font_6,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--site-font-heading) !important;
}

/* Prevent layout shift from broken images */
img {
  max-width: 100%;
  height: auto;
}

img[src=""],
img:not([src]) {
  opacity: 0;
}

/* Footer decorative icons */
#WPhta img,
#WPht9 img,
#WPhtc img,
#WPhte img {
  display: block;
  margin: 0 auto;
  object-fit: contain !important;
}

/* Social media icons */
#LnkBr0 .mpGTIt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

#LnkBr0 .O6KwRn {
  display: inline-flex;
}

#LnkBr0 .oRtuWN {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#LnkBr0 .oRtuWN:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

#LnkBr0 img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
}

/* ── Header ─────────────────────────────────────────────── */
#SITE_HEADER {
  background:
    radial-gradient(circle at 12% 50%, rgba(60, 59, 110, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 88% 50%, rgba(178, 34, 52, 0.2) 0%, transparent 40%),
    linear-gradient(180deg, #071428 0%, #122a52 55%, #0c1e3a 100%) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  border-bottom: 3px solid #b22234;
  position: relative;
  overflow: hidden;
}

#SITE_HEADER::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
}

#SITE_HEADER::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #b22234, #ffffff 40%, #3c3b6e 70%, #b22234);
  pointer-events: none;
}

#SITE_HEADER ._C0cVf,
#SITE_HEADER .gUbusX,
#SITE_HEADER [data-testid="screenWidthContainerBg"],
#SITE_HEADER [data-testid="screenWidthContainerBgCenter"] {
  background: transparent !important;
}

[data-mesh-id="SITE_HEADERinlineContent-gridContainer"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 16px 16px !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

[data-mesh-id="SITE_HEADERinlineContent-gridContainer"] > [id="WPht2-vx1"],
[data-mesh-id="SITE_HEADERinlineContent-gridContainer"] > [id="DrpDwnMn0"],
[data-mesh-id="SITE_HEADERinlineContent-gridContainer"] > #lnd-primary-nav,
[data-mesh-id="SITE_HEADERinlineContent-gridContainer"] > [id="HtmlCmpnnt0-4iw"],
[data-mesh-id="SITE_HEADERinlineContent-gridContainer"] > #lnd-header-brand {
  position: relative !important;
  left: 0 !important;
  margin: 0 !important;
  justify-self: center !important;
  width: 100% !important;
}

/* Custom brand block (logo + title) */
.lnd-header-brand {
  width: 100%;
}

.lnd-header-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lnd-header-brand-link:hover {
  border-color: rgba(245, 215, 110, 0.45);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

.lnd-header-emblem {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.lnd-header-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.lnd-header-kicker {
  font-family: var(--site-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 215, 110, 0.92);
}

.lnd-header-title {
  font-family: var(--site-font-heading);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lnd-header-subtitle {
  font-family: var(--site-font-heading);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.92);
}

.lnd-header-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(178, 34, 52, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--site-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.lnd-header-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 118px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(245, 215, 110, 0.35);
  text-align: center;
}

.lnd-header-date-label {
  font-family: var(--site-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 215, 110, 0.9);
}

.lnd-header-date-value {
  font-family: var(--site-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-top: 2px;
}

.lnd-header-date-time {
  font-family: var(--site-font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
}

/* Hide legacy Wix title image when custom brand is active */
#SITE_HEADER:has(#lnd-header-brand) #WPht2-vx1 {
  display: none !important;
}

#SITE_HEADER:not(:has(#lnd-header-brand)) #WPht2-vx1 {
  display: block !important;
  width: auto !important;
  max-width: 600px !important;
  text-align: center;
}

#SITE_HEADER:not(:has(#lnd-header-brand)) #WPht2-vx1 img {
  object-fit: contain !important;
  max-height: 100px;
  width: auto !important;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

#HtmlCmpnnt0-4iw {
  display: none !important;
}

/* Hide legacy Wix menu (replaced by lnd-primary-nav) */
#DrpDwnMn0.lnd-wix-nav-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Custom primary navigation */
#lnd-primary-nav {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.lnd-primary-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.lnd-primary-nav-list a {
  display: block;
  padding: 7px 11px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--site-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.lnd-primary-nav-list a:hover,
.lnd-primary-nav-list a[aria-current="page"] {
  color: #f5d76e;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Homepage showcase (replaces broken Wix strip gallery) ── */
#comp-ldxg5jp0 {
  overflow: visible;
  width: 100% !important;
  min-width: 0 !important;
}

[data-mesh-id="comp-ldxg5jp0inlineContent-gridContainer"] > [id="lnd-home-showcase"] {
  position: relative !important;
  left: 0 !important;
  margin: 0 auto 20px !important;
  justify-self: center !important;
  width: 100% !important;
  max-width: 980px !important;
}

#StrpShwcs0-12qw.lnd-strip-hidden,
.lnd-home-showcase + table#StrpShwcs0-12qw {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lnd-home-showcase {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lnd-home-showcase-banner {
  background: linear-gradient(135deg, #0c3c60 0%, #061e30 100%);
  padding: 26px 24px 22px;
  text-align: center;
  border-bottom: 3px solid #b22234;
}

.lnd-home-showcase-banner h2 {
  margin: 0 0 12px;
  font-family: var(--site-font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.lnd-home-showcase-lead {
  margin: 0 auto 18px;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.lnd-home-showcase-lead strong {
  color: #f5d76e;
}

.lnd-home-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lnd-home-showcase-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lnd-home-showcase-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(245, 215, 110, 0.5);
  transform: translateY(-1px);
}

.lnd-home-showcase-btn--accent {
  background: #901318;
  border-color: #b22234;
}

.lnd-home-showcase-btn--accent:hover {
  background: #b22234;
}

.lnd-home-photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: #061e30;
  padding: 3px;
}

.lnd-home-photo-strip img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #0a2840;
}

#comp-jhsdtvc5 {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  left: 0 !important;
}

/* Homepage featured image grid */
#comp-l0j02wjh {
  width: 100% !important;
  max-width: 836px !important;
  margin: 0 auto !important;
}

[data-mesh-id="comp-l0j02wjhinlineContent-gridContainer"] {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
}

[data-mesh-id="comp-l0j02wjhinlineContent-gridContainer"] > [id^="comp-k"] {
  position: relative !important;
  left: 0 !important;
  margin: 0 !important;
  grid-area: auto !important;
  width: 100% !important;
}

[data-mesh-id="comp-l0j02wjhinlineContent-gridContainer"] .wixui-image,
[data-mesh-id="comp-l0j02wjhinlineContent-gridContainer"] .MazNVa {
  width: 100% !important;
  height: auto !important;
}

[data-mesh-id="comp-l0j02wjhinlineContent-gridContainer"] img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* Button polish */
.wixui-button .uDW_Qe {
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.wixui-button .uDW_Qe:hover {
  transform: translateY(-1px);
}

/* Gallery images */
.wixui-image img,
.MazNVa img {
  object-fit: cover;
}

/* PDF / document download icons */
.comp-ijkco8pk img,
.comp-ike159sl img,
.LhCmu6 .HlRz5e img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Footer text contrast */
#SITE_FOOTER .wixui-rich-text__text a {
  color: inherit;
}

/* Responsive spacing */
@media (max-width: 900px) {
  .lnd-home-photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .lnd-home-photo-strip img {
    height: 120px;
  }

  .lnd-primary-nav-list a {
    font-size: 10px;
    padding: 6px 8px;
  }
}

@media (max-width: 768px) {
  #LnkBr0 .mpGTIt {
    gap: 16px;
  }

  #comp-js0slzuw,
  #comp-l0mvdvv3,
  #comp-js0sosm4 {
    text-align: center;
  }

  .lnd-home-photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .lnd-home-showcase-banner {
    padding: 20px 16px 18px;
  }

  [data-mesh-id="comp-l0j02wjhinlineContent-gridContainer"] {
    grid-template-columns: 1fr !important;
  }

  [data-mesh-id="comp-l0j02wjhinlineContent-gridContainer"] img {
    height: 220px !important;
  }

  .lnd-header-brand-link {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 12px;
  }

  .lnd-header-brand-text {
    align-items: center;
  }

  .lnd-header-date {
    width: 100%;
    max-width: 260px;
  }

  .lnd-header-emblem {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .lnd-home-photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .lnd-home-photo-strip img {
    height: 100px;
  }
}

/* Donate section slideshow (#iaoqx0pd) */
#iaoqx0pd {
  overflow: hidden !important;
  background: #061e30 !important;
}

#iaoqx0pd .OH99EZ,
#iaoqx0pd gallery-image-sizer,
#iaoqx0pd .kS_F23,
#iaoqx0pd .Neu4IN,
#iaoqx0pd .wixui-gallery__item,
#iaoqx0pd .vIASS6 {
  visibility: visible !important;
}

#iaoqx0pd .kS_F23,
#iaoqx0pd .Neu4IN,
#iaoqx0pd gallery-image-sizer {
  width: 100% !important;
  height: 100% !important;
}

#iaoqx0pd img {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

#iaoqx0pd .Usdo1P .wixui-gallery__item:first-child,
#iaoqx0pd .nUkL7Y .wixui-gallery__item:first-child {
  opacity: 1 !important;
}

#iaoqx0pd .lnd-slideshow-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
}

#iaoqx0pd .lnd-slideshow-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#iaoqx0pd {
  position: relative;
}
