/* ─── myfuneral.date — memorial page styles ─── */
:root {
  --bg: #f8f7f5;
  --bg-warm: #eeedea;
  --card: #ffffff;
  --text: #2a2825;
  --muted: #6b6862;
  --dim: #9b9891;
  --accent: #7a8578;
  --accent-dark: #5a655a;
  --accent-light: #a8b0a5;
  --border: rgba(42, 40, 37, 0.08);
  --border-strong: rgba(42, 40, 37, 0.15);
  --shadow: 0 8px 32px rgba(42, 40, 37, 0.08);
  --shadow-lg: 0 20px 60px rgba(42, 40, 37, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
p { color: var(--muted); }
a { color: var(--accent-dark); text-decoration: none; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ─── Memorial hero ─── */
.memorial-hero {
  padding: 60px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.memorial-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.memorial-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 4px solid var(--card);
  box-shadow: var(--shadow);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 3rem;
}
.memorial-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--text);
  margin-bottom: 8px;
}
.memorial-hero .dates {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
}
.memorial-hero .age {
  font-size: 0.9rem;
  color: var(--dim);
}
.memorial-hero .tribute {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.85;
}

/* ─── Sections ─── */
section { padding: 56px 0; }
section.alt { background: var(--bg-warm); }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 8px; color: var(--text); }
.section-header p { color: var(--muted); font-size: 0.95rem; }

/* ─── Service card ─── */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 4px;
}
.service-card .service-meta {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-dark);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.service-card .detail {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.service-card .detail:last-child { border: none; }
.service-card .detail .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dim);
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
  padding-top: 2px;
}
.service-card .detail .value { color: var(--text); }
.service-card .links {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(90, 101, 90, 0.3);
}
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: var(--card);
  color: var(--accent-dark);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-warm); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ─── Info box ─── */
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.info-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.info-box p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.info-box a { color: var(--accent-dark); font-weight: 600; }

/* ─── Condolence book ─── */
.condolence {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.condolence .c-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.condolence .c-rel {
  font-size: 0.78rem;
  color: var(--accent-dark);
  margin-left: 8px;
}
.condolence .c-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
  margin-top: 8px;
}
.condolence .c-date {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 8px;
}

/* ─── Form fields ─── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
}
.field textarea { resize: vertical; }

/* ─── Footer ─── */
footer {
  padding: 40px 0 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer p { font-size: 0.82rem; color: var(--dim); }
footer a { color: var(--accent-dark); font-weight: 500; }

/* ─── Map ─── */
.map-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.map-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ─── Mobile ─── */
@media (max-width: 720px) {
  section { padding: 40px 0; }
  .wrap { padding: 0 18px; }
  .memorial-hero { padding: 44px 18px 32px; }
  .memorial-photo, .memorial-photo-placeholder { width: 140px; height: 140px; }
  .service-card { padding: 24px 20px; }
  .service-card .detail { flex-direction: column; gap: 2px; }
  .btn { min-height: 48px; font-size: 16px; }
  .field input, .field textarea, .field select { font-size: 16px; }
}
