:root {
  --bg: #f8f3ea;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: #eef4ef;
  --line: rgba(29, 78, 58, 0.12);
  --text: #183126;
  --muted: #355345;
  --gold: #b8894a;
  --green: #2f6a4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, #fffaf4 0%, #edf3ee 45%, #f8f4eb 100%);
  line-height: 1.6;
}

img { display: block; width: 100%; height: auto; }

a { text-decoration: none; color: inherit; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #fffaf4 0%, #edf3ee 100%);
}

.small-hero {
  min-height: 56vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(246, 210, 122, 0.16), transparent 25%),
              radial-gradient(circle at bottom right, rgba(47, 106, 79, 0.12), transparent 20%);
  pointer-events: none;
}

.nav, .hero-inner {
  position: relative; z-index: 1;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 1.6rem;
  box-shadow: 0 28px 60px rgba(60, 96, 76, 0.14);
}

.hero-photo-wrap {
  position: relative;
}

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(33, 60, 45, 0.12);
}

.hero-photo {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  min-height: 380px;
  max-height: 460px;
}

.hero-copy {
  display: grid;
  gap: 0.35rem;
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
  gap: 0.75rem;
}

.brand {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.95rem; position: relative; }
.nav-links a.active {
  color: var(--green);
  font-weight: 700;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  inset: auto 0 -0.15rem 0;
  height: 3px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 999px;
}

.hero-inner {
  display: grid; align-content: center;
  min-height: calc(100vh - 72px);
  padding: 3rem 0 5rem;
}

.small-hero .hero-inner {
  min-height: calc(56vh - 72px);
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.85rem;
  color: var(--gold);
}

h1, h2, h3 { font-family: 'Playfair Display', serif; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 0.3rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

.subtle, .details, .body-copy, .timeline-item p, .tribute-card p, .details-list {
  color: var(--muted);
}

.cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(217, 119, 6, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.98);
  color: #1f2937;
  border: 1px solid rgba(29, 78, 58, 0.16);
  box-shadow: 0 10px 20px rgba(29, 78, 58, 0.08);
}

.button.highlight {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.button.highlight.secondary {
  background: rgba(255, 255, 255, 0.98);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
}

.cta:hover, .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.28);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

main { padding: 1rem 0 4rem; display: grid; gap: 1rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 1.2rem; box-shadow: 0 18px 40px rgba(60, 96, 76, 0.14);
}

.section-heading { margin-bottom: 1rem; }

.timeline { display: grid; gap: 0.85rem; }
.timeline-item {
  border: 1px solid var(--line); border-radius: 18px; padding: 0.9rem;
  background: rgba(255,255,255,0.04);
}
.timeline-item span {
  display: inline-block; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; font-size: 0.92rem;
}

.tribute-grid, .gallery-grid {
  display: grid; gap: 1rem;
}

.tribute-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tribute-card, .gallery-card {
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240, 247, 242, 0.92));
  padding: 0.95rem;
}

.tribute-page-card {
  padding: clamp(1rem, 3vw, 2rem);
}

.tribute-list {
  display: grid;
  gap: 1rem;
}

.tribute-letter {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: clamp(1rem, 3vw, 1.7rem);
  max-width: 900px;
}

.tribute-letter:nth-child(even) {
  justify-self: end;
}

.tribute-letter p {
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.tribute-letter h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.tribute-feature {
  max-width: none;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(238, 244, 239, 0.94));
  border-color: rgba(184, 137, 74, 0.28);
}

.quote-line {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--green) !important;
}

.tribute-signature {
  color: var(--text) !important;
  font-weight: 700;
}

.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery-card img { border-radius: 14px; min-height: 180px; object-fit: cover; }

.image-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.slides {
  display: grid;
  position: relative;
}

.slide {
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  inset: 0;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 24px;
}

.slider-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.slider-controls button {
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(33, 60, 45, 0.12);
}

.slider-controls button:hover {
  transform: translateY(-1px);
}

.map-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1.1fr;
}
iframe {
  width: 100%; min-height: 320px; border: 1px solid var(--line); border-radius: 18px; background: #111827;
}

.details-list { padding-left: 1rem; }

.floating-live {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.75rem 0.95rem; border-radius: 999px;
  background: #ff0033; color: #fff; font-weight: 700;
  box-shadow: 0 14px 24px rgba(255, 0, 51, 0.35);
}

.message-section { margin-bottom: 1rem; }
.message-form {
  display: grid; gap: 0.85rem; max-width: 760px;
}
.message-form label {
  display: grid; gap: 0.35rem; color: var(--muted); font-weight: 600;
}
.message-form input,
.message-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(248, 250, 247, 0.98); color: var(--text); padding: 0.8rem 0.9rem;
  font: inherit;
}
.message-form button {
  width: fit-content; border: none; border-radius: 999px;
  padding: 0.75rem 1rem; background: linear-gradient(135deg, #f6d27a, #f59e0b); color: #111827;
  font-weight: 700; cursor: pointer;
}
.form-note { min-height: 1.2em; color: var(--gold); font-size: 0.95rem; }

.footer {
  text-align: center; padding: 1rem 0 2rem; color: var(--muted); font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .floating-live {
    right: 0.6rem; bottom: 0.6rem;
    padding: 0.65rem 0.75rem; font-size: 0.92rem;
  }
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
  .nav-links {
    gap: 0.45rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links a {
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
  }
  .hero-inner {
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .small-hero {
    min-height: 0;
  }
  h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .card { padding: 1rem; border-radius: 18px; }
  .timeline-item, .tribute-card, .gallery-card { padding: 0.85rem; }
  .tribute-letter,
  .tribute-letter:nth-child(even) {
    justify-self: stretch;
  }
}
