/* =========================================================
   Natalia Cardoso — Memorial Website
   Stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ivory: #F4F1EB;
  --blush-beige: #EDE3DA;
  --sage: #9BA27A;
  --sage-olive: #7F8766;
  --petal-pink: #E4B1B1;
  --blush-rose: #D99699;
  --rosewood: #B56F75;
  --golden-pollen: #B78D3E;

  --text-primary: #4E5543;
  --text-secondary: #7F8766;

  /* Type */
  --font-script: "Corinthia", cursive;
  --font-plain: "Cormorant Garamond", "Times New Roman", serif;

  /* Rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 5rem;

  --max-width: 780px;
  --radius: 4px;

  --transition-fast: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-slow: 0ms;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.31  0 0 0 0 0.33  0 0 0 0 0.26  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  color: var(--sage-olive);
  font-family: var(--font-plain);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { font-family: var(--font-script); font-weight: 700; margin: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--sage-olive);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Bilingual content toggling ---------- */
html[data-lang="pt"] [data-lang-content="es"],
html[data-lang="pt"] [data-lang-content="en"] { display: none; }
html[data-lang="es"] [data-lang-content="pt"],
html[data-lang="es"] [data-lang-content="en"] { display: none; }
html[data-lang="en"] [data-lang-content="pt"],
html[data-lang="en"] [data-lang-content="es"] { display: none; }

/* ---------- Shared type treatments ---------- */
.name-script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--sage-olive);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  line-height: 1;
}

.dates {
  font-family: var(--font-plain);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage-olive);
  font-size: 1.05rem;
}

.section-heading {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5.5vw, 3rem);
  font-weight: 600;
  color: var(--sage-olive);
  text-align: center;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(78, 85, 67, 0.18);
}

.heading-plain {
  font-family: var(--font-plain);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 2.6rem);
}

.section-subheading {
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -1.3rem;
  margin-bottom: var(--space-md);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-xl) 0; position: relative; }

/* ---------------------------------------------------------
   "Panel" treatment: the plain (non-striped, non-quote-band)
   sections float as a soft card on a slightly deeper backdrop
   at every screen size, so the page fills the screen instead
   of leaving bare margins. The striped Memorial/footer and
   the blush quote-bands stay full-bleed as the visual breaks
   between panels.
   --------------------------------------------------------- */
body { background-color: var(--blush-beige); }

.hero-section,
#historia.copy-section,
.gallery-section,
.video-section,
#mensagem.copy-section {
  margin: 0 0.6rem var(--space-md);
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
  background: var(--ivory);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(78, 85, 67, 0.1);
}

@media (min-width: 1000px) {
  .hero-section,
  #historia.copy-section,
  .gallery-section,
  .video-section,
  #mensagem.copy-section {
    max-width: 1040px;
    margin: 0 auto var(--space-lg);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(78, 85, 67, 0.12);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1200ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.divider {
  max-width: 220px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--sage-olive), transparent);
  opacity: 0.5;
}

/* ---------- Quote transitions between page areas ---------- */
.quote-band {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: var(--blush-beige);
}

.quote-band-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-sm);
  border-top: 1px solid rgba(181, 111, 117, 0.25);
  border-bottom: 1px solid rgba(181, 111, 117, 0.25);
}

.quote-flower {
  width: 30px;
  height: 30px;
  margin: 0 auto var(--space-sm);
  opacity: 0.85;
}

.quote-text {
  font-family: var(--font-plain);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--rosewood);
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 2px 8px rgba(181, 111, 117, 0.15);
}

.quote-band-large {
  padding-top: calc(var(--space-lg) * 1.4);
  padding-bottom: calc(var(--space-lg) * 1.4);
}
.quote-band-large .quote-text {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
}
.quote-band-large + .copy-section {
  padding-top: calc(var(--space-xl) * 1.15);
}

/* Striped background accent — used sparingly */
.section-stripe {
  position: absolute;
  inset: 0;
  background-image: url("images/greenstripebackground.svg");
  background-repeat: repeat;
  background-size: 340px auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.splash-stripe {
  position: absolute;
  inset: 0;
  background-image: url("images/greenstripebackground.svg");
  background-repeat: repeat;
  background-size: 260px auto;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.section-inner { position: relative; z-index: 1; }

/* Buttons & links */
.btn {
  display: inline-block;
  font-family: var(--font-plain);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.85em 2em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--sage-olive);
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  box-shadow: 0 6px 16px rgba(78, 85, 67, 0.24);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #6d7457;
}
.btn-primary::after {
  content: "\2192";
  transition: transform var(--transition-fast);
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateX(3px);
}

.text-link {
  display: inline-block;
  color: var(--rosewood);
  text-decoration: underline;
  text-decoration-color: var(--blush-rose);
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--sage-olive);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-plain);
  font-weight: 600;
  color: var(--rosewood);
  text-decoration: none;
  border: 1px solid var(--rosewood);
  border-radius: 999px;
  padding: 0.55em 1.4em;
  box-shadow: 0 4px 12px rgba(181, 111, 117, 0.18);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.pill-link::after {
  content: "\2192";
  transition: transform var(--transition-fast);
}
.pill-link:hover,
.pill-link:focus-visible {
  background: var(--rosewood);
  color: var(--ivory);
}
.pill-link:hover::after,
.pill-link:focus-visible::after {
  transform: translateX(3px);
}

/* =========================================================
   SPLASH
   ========================================================= */
.splash {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  opacity: 1;
  animation: splash-fade-in 1100ms ease both;
  transition: opacity 750ms ease;
}

.splash.is-hiding {
  opacity: 0;
  pointer-events: none;
}

@keyframes splash-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .splash { animation: none; }
}

#splash[hidden] {
  display: none;
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  max-width: 420px;
}

.splash-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% -20%;
  background: radial-gradient(closest-side, rgba(244, 241, 235, 0.97), rgba(244, 241, 235, 0.8) 60%, rgba(244, 241, 235, 0) 100%);
  filter: blur(6px);
}

.splash-kicker {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 8px rgba(78, 85, 67, 0.18);
}

.splash-portrait-wrap {
  position: relative;
  z-index: 0;
  width: min(85vw, 380px);
  margin-bottom: 0.5rem;
}

.splash-portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 85, 67, 0.32) 0%, rgba(78, 85, 67, 0.14) 55%, rgba(78, 85, 67, 0) 76%);
  filter: blur(16px);
}

@media (min-width: 1000px) {
  .splash { padding: var(--space-md) var(--space-md); gap: 0; }
  .splash-content { gap: 0; max-width: 480px; }
  .splash-kicker { margin-bottom: 0.2rem; }
  .splash-portrait-wrap {
    width: clamp(240px, 36vh, 420px);
    margin-bottom: 0.3rem;
  }
  .splash-content .name-script { line-height: 0.95; }
  .splash-content .dates { margin-bottom: 1rem; }
}

.splash-portrait {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
}

.splash-content .name-script { margin-top: 0; }
.splash-content .dates { margin-bottom: 1.4rem; }

.lang-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.lang-btn {
  font-family: var(--font-plain);
  font-size: 1rem;
  letter-spacing: 0.03em;
  background: var(--ivory);
  color: var(--sage-olive);
  border: 1px solid var(--sage-olive);
  border-radius: 999px;
  padding: 0.75em 1.85em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(78, 85, 67, 0.16);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--sage-olive);
  color: var(--ivory);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site.is-entering {
  animation: splash-fade-in 900ms ease both;
}
@media (prefers-reduced-motion: reduce) {
  .site.is-entering { animation: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(127, 135, 102, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space-md);
}

.header-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--sage-olive);
  font-size: 1.75rem;
}
.header-flower { width: 22px; height: 22px; object-fit: contain; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--sage-olive);
  position: relative;
  transition: transform var(--transition-fast);
}
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--sage-olive);
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  border-color: var(--rosewood);
  color: var(--rosewood);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--sage-olive);
}
.lang-switch-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-plain);
  font-size: 0.9rem;
  color: var(--sage-olive);
  padding: 0.2rem 0.3rem;
}
.lang-switch-btn[aria-current="true"] {
  color: var(--rosewood);
  font-weight: 600;
}
.lang-switch-btn:hover,
.lang-switch-btn:focus-visible { color: var(--sage-olive); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(127, 135, 102, 0.18);
    box-shadow: 0 12px 24px rgba(78, 85, 67, 0.16);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 1rem; width: 100%; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section { padding-top: var(--space-md); text-align: center; }

.hero-inner {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-portrait-wrap {
  position: relative;
  z-index: 0;
  width: min(80vw, 340px);
}
.hero-portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 85, 67, 0.32) 0%, rgba(78, 85, 67, 0.14) 55%, rgba(78, 85, 67, 0) 76%);
  filter: blur(16px);
}

.hero-portrait {
  width: 100%;
  height: auto;
}
.hero-name { margin-top: var(--space-sm); }

@media (min-width: 1000px) {
  .hero-inner { max-width: 720px; }
  .hero-portrait-wrap { width: 660px; }
}
.hero-dates { margin-top: 0.35rem; }

/* =========================================================
   COPY SECTIONS (biography / thank-you)
   ========================================================= */
.copy-block {
  color: var(--text-primary);
  font-size: 1.08rem;
}
.copy-block p { max-width: 68ch; margin-left: auto; margin-right: auto; }

.pull-quote {
  font-style: italic;
  color: var(--rosewood);
  border-top: 1px solid rgba(181, 111, 117, 0.3);
  padding-top: 1.1em;
  margin-top: 1.5em !important;
}

.signature {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5em !important;
  text-align: right;
}

.signature-plain {
  font-family: var(--font-plain);
  font-style: italic;
  color: var(--text-primary);
}

.signature-name {
  display: inline-block;
  margin-top: 0.3em;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--sage-olive);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-section { background: var(--ivory); }

.gallery-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-olive) transparent;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 999px; }

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: clamp(150px, 32vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(78, 85, 67, 0.2);
}

.gallery-item button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item button:hover img,
.gallery-item button:focus-visible img {
  transform: scale(1.04);
}

.gallery-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sage-olive);
  background: var(--ivory);
  color: var(--sage-olive);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(78, 85, 67, 0.18);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.gallery-arrow svg { width: 18px; height: 18px; }
.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--sage-olive);
  color: var(--ivory);
}

@media (max-width: 600px) {
  .gallery-arrow { display: none; }
}

/* Gentle "swipe to see more" hint — mobile only, where the arrow
   buttons above are hidden and swipe is the only navigation. */
.gallery-scroll-hint {
  display: none;
}
@media (max-width: 600px) {
  .gallery-scroll-hint {
    display: flex;
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(244, 241, 235, 0.85);
    color: var(--sage-olive);
    pointer-events: none;
    animation: gallery-hint-nudge 1.6s ease-in-out infinite;
  }
  .gallery-scroll-hint svg { width: 16px; height: 16px; }
  .gallery-scroll-hint.is-dismissed { opacity: 0; transition: opacity var(--transition-slow); }
}

@keyframes gallery-hint-nudge {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.55; }
  50% { transform: translateY(-50%) translateX(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-scroll-hint { animation: none; opacity: 0.7; }
}

/* =========================================================
   VIDEO
   ========================================================= */
.video-frame {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blush-beige);
  box-shadow: 0 10px 28px rgba(78, 85, 67, 0.14);
}
.video-frame video { width: 100%; display: block; }

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  color: var(--text-secondary);
  padding: var(--space-md);
}
.video-placeholder-flower { width: 34px; height: 34px; opacity: 0.75; }

/* =========================================================
   MEMORIAL
   ========================================================= */
.memorial-section { background: var(--blush-beige); overflow: hidden; }

.memorial-card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  box-shadow: 0 10px 28px rgba(78, 85, 67, 0.14);
  margin-bottom: var(--space-lg);
}

.memorial-name {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--sage-olive);
  margin-bottom: 0.05em;
}

.memorial-life-dates {
  font-family: var(--font-plain);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: -0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.memorial-details { margin-bottom: var(--space-md); }

.memorial-when {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.9rem, 3.6vw, 1.15rem);
  white-space: nowrap;
  margin-bottom: 0.6em;
}

.memorial-address {
  display: inline-block;
  text-decoration: none;
  color: var(--sage-olive);
  line-height: 1.5;
  transition: color var(--transition-fast);
}
.memorial-address:hover,
.memorial-address:focus-visible { color: var(--rosewood); }

.zoom-block {
  border-top: 1px solid rgba(127, 135, 102, 0.25);
  padding-top: var(--space-md);
}

.zoom-btn { margin-bottom: var(--space-sm); }

.zoom-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.zoom-meta dt { font-style: italic; margin-bottom: 0.2em; }
.zoom-meta dd { margin: 0; }

.info-block {
  position: relative;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}
.info-block:last-child { margin-bottom: 0; }

.info-block::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6% -12%;
  background: radial-gradient(closest-side, rgba(244, 241, 235, 0.96), rgba(244, 241, 235, 0.7) 65%, rgba(244, 241, 235, 0) 100%);
  filter: blur(6px);
}

/* Song + Beliefs sit side by side as their own boxes; Family
   gets its own solo box below. The card's own solid background
   already separates it from the stripes, so the glow-behind
   trick above isn't needed on these — just switch it off. */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 720px;
  margin: 0 auto var(--space-lg);
}
@media (min-width: 700px) {
  .info-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.info-card {
  max-width: none;
  margin: 0;
  padding: var(--space-md);
  background: var(--ivory);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(78, 85, 67, 0.1);
}
.info-card::before { content: none; }

.info-card-solo {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.info-heading {
  font-family: var(--font-plain);
  font-style: normal;
  font-size: 1.35rem;
  color: var(--sage-olive);
  margin-bottom: 0.4em;
}

.song-link { margin-top: 0.3em; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.footer-stripe {
  position: absolute;
  inset: 0;
  background-image: url("images/greenstripebackground.svg");
  background-repeat: repeat;
  background-size: 260px auto;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.footer-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16% -35% -22% -35%;
  background: radial-gradient(closest-side, rgba(244, 241, 235, 0.98), rgba(244, 241, 235, 0.85) 65%, rgba(244, 241, 235, 0) 100%);
  filter: blur(6px);
}

.footer-flower { width: 26px; height: 26px; margin: 0 auto var(--space-sm); opacity: 0.85; }

.footer-name {
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  margin-bottom: 0.2em;
}
.footer-dates { font-style: normal; font-size: 0.85rem; }

/* ---------- Floating "Memorial Info" quick-access button ---------- */
.memorial-fab {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--sage-olive);
  color: var(--ivory);
  font-family: var(--font-plain);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.65em 1.3em;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(78, 85, 67, 0.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}
.memorial-fab.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.memorial-fab:hover,
.memorial-fab:focus-visible {
  background: #6d7457;
}
.memorial-fab-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .memorial-fab {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-sm);
    justify-content: center;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-fab { transition: opacity 0ms; transform: none; }
}

.site-credit {
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  opacity: 0.75;
}
.site-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.site-credit a:hover,
.site-credit a:focus-visible { color: var(--rosewood); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(37, 40, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox[hidden] { display: none; }

.lightbox-image {
  max-width: min(90vw, 900px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(244, 241, 235, 0.12);
  border: 1px solid rgba(244, 241, 235, 0.4);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.lightbox-close:hover, .lightbox-close:focus-visible,
.lightbox-nav:hover, .lightbox-nav:focus-visible {
  background: rgba(244, 241, 235, 0.28);
}
.lightbox-close svg, .lightbox-nav svg { width: 18px; height: 18px; }

.lightbox-close { top: var(--space-md); right: var(--space-md); }
.lightbox-prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* =========================================================
   No-JS fallback: keep splash from blocking content forever
   ========================================================= */
.no-js #splash { display: none; }
.no-js #site { display: block !important; }