/* Crescent Memorial splash page */

:root {
  --navy: #004B85;
  --navy-light: #1a68a6;
  --navy-mid: #2f79b8;
  --navy-dark: #003a68;
  --navy-deep: #002a4c;
  --crescent-light: #7fb6e0;
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-border: rgba(255, 255, 255, 0.85);
  --text: #1b2b3c;
  --text-soft: #33465a;
  --focus: #f2b632;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: #dfe8c9;
  overflow-x: hidden;
}

/* ---------- Background ---------- */
/* Photo (optional, assets/hero-bg.jpg) sits under a light wash; gradients are the fallback. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #cfdcb4;
  background-image:
    linear-gradient(rgba(255, 253, 245, 0.28), rgba(255, 253, 245, 0.28)),
    url("../assets/hero-bg.jpg"),
    radial-gradient(ellipse 38% 22% at 50% 0%, rgba(255, 244, 190, 0.95), rgba(255, 244, 190, 0) 100%),
    radial-gradient(ellipse 60% 55% at 50% 12%, rgba(255, 233, 160, 0.85), rgba(255, 233, 160, 0) 100%),
    radial-gradient(ellipse 30% 40% at 50% 100%, rgba(226, 224, 205, 0.9), rgba(226, 224, 205, 0) 100%),
    radial-gradient(ellipse 45% 70% at 0% 55%, rgba(78, 118, 62, 0.75), rgba(78, 118, 62, 0) 100%),
    radial-gradient(ellipse 45% 70% at 100% 55%, rgba(92, 132, 66, 0.75), rgba(92, 132, 66, 0) 100%),
    linear-gradient(180deg, #e9efc4 0%, #c2d49a 55%, #8fae74 100%);
  background-size: cover, cover, auto, auto, auto, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
}

.bokeh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: calc(clamp(20px, 5vh, 56px) + env(safe-area-inset-top)) var(--gutter) 0;
  display: flex;
  justify-content: center;
}

.choices {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 5vh, 56px) calc(var(--gutter) + env(safe-area-inset-left)) clamp(24px, 5vh, 56px) calc(var(--gutter) + env(safe-area-inset-right));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0;
}

/* ---------- Logo ---------- */
.logo { margin: 0; font-weight: 400; }

.logo__img {
  display: block;
  height: auto;
  max-width: 100%;
  width: clamp(220px, 26vw, 380px);
  filter: drop-shadow(0 1px 10px rgba(255, 255, 255, 0.7));
  animation: rise 0.9s ease-out both;
}

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 3.5vw, 44px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 36px rgba(30, 50, 40, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: rise 0.9s ease-out 0.25s both;
}

.choices > .card:last-child { animation-delay: 0.4s; }

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(30, 50, 40, 0.22);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(255, 255, 255, 0.92); }
}

.card__title {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--navy);
}

.card__text {
  margin: 0 0 clamp(20px, 3vw, 34px);
  max-width: 34ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-soft);
  flex: 1;
}

/* Divider: short horizontal when stacked, vertical when side by side */
.divider {
  width: 64px;
  height: 1px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 58, 104, 0.15);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  min-width: 180px;
  padding: 0.7em 2.2em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 45%, var(--navy-dark) 100%);
  border: 1px solid var(--navy-deep);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 42, 76, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn__arrow { display: inline-block; transition: transform 0.25s ease; }

.btn:hover {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-light) 45%, var(--navy) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 5px 14px rgba(0, 42, 76, 0.45);
}

.btn:hover .btn__arrow { transform: translateX(5px); }

.btn:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, var(--navy-dark), var(--navy-deep));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em clamp(20px, 4vw, 48px);
  padding: 18px calc(var(--gutter) + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(var(--gutter) + env(safe-area-inset-left));
  background: var(--navy-dark);
  color: #fff;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.2rem);
  text-align: center;
}

.site-footer p, .site-footer address { margin: 0; font-style: normal; }

/* ---------- Side by side ---------- */
@media (min-width: 768px) {
  .choices {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
  }

  .divider {
    width: 1px;
    height: auto;
    margin: 0 clamp(16px, 3vw, 44px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(0, 58, 104, 0.12);
  }
}

@media (min-width: 1024px) {
  .card__title { white-space: nowrap; }
}

@media (min-width: 1800px) {
  .choices { max-width: 1400px; }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { padding-top: calc(20px + env(safe-area-inset-top)); }
  .logo__img { width: clamp(150px, 22vh, 200px); }
  .choices { padding-top: 14px; padding-bottom: 16px; }
  .card { padding: 16px 20px; }
  .card__text { margin-bottom: 14px; }
  .site-footer { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .bokeh { display: none; }
}
