/* ============================================================
   Andrea Easley — In Loving Memory
   Palette: warm cream, soft golden yellow, sage, floral accents
   ============================================================ */

:root {
  --cream:      #fdf9ef;
  --cream-2:    #f7efdd;
  --ink:        #4a4238;
  --ink-soft:   #6f6656;
  --gold:       #e6b422;
  --gold-deep:  #c8951a;
  --gold-soft:  #f6e2a3;
  --sage:       #8a9a7b;
  --sage-deep:  #6f7f60;
  --rose:       #d98b8b;
  --line:       #e7dcc4;
  --shadow:     0 18px 50px -24px rgba(120, 96, 40, 0.45);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Nunito Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

a { color: var(--gold-deep); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }

.placeholder,
.placeholder-inline {
  color: #b6a071;
  font-style: italic;
}
.placeholder-inline {
  background: #fbf1cf;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 0.94em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(200, 149, 26, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(200, 149, 26, 0.8); }
.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
  border: 1.5px solid var(--sage);
  padding: 0.65rem 1.3rem;
}
.btn-ghost:hover { background: var(--sage); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(253, 249, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.nav-links { display: flex; gap: clamp(0.8rem, 2.5vw, 2rem); }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--gold-deep); }
@media (max-width: 560px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem 4rem;
  background:
    radial-gradient(120% 90% at 50% -10%, #fff8e2 0%, var(--cream) 55%),
    var(--cream);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

.hero-photo {
  width: clamp(160px, 40vw, 230px);
  height: clamp(160px, 40vw, 230px);
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--gold-soft), #fff);
  box-shadow: var(--shadow);
}
.hero-photo img,
.hero-photo .photo-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 0.4rem;
}
.hero-name { font-size: clamp(2.8rem, 9vw, 4.8rem); margin: 0 0 0.5rem; color: var(--ink); }
.hero-dates {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.hero-tag { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; margin: 0 auto 2rem; }

.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  z-index: 1;
}

/* Floating petals */
.petals { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.petals::before,
.petals::after {
  content: "\2740";
  position: absolute;
  color: var(--gold-soft);
  opacity: 0.55;
  font-size: 3rem;
}
.petals::before { top: 12%; left: 8%; transform: rotate(-15deg); }
.petals::after  { top: 22%; right: 10%; font-size: 2.2rem; color: #f3d0d0; opacity: 0.6; }

/* ---------- Photo placeholders ---------- */
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.4rem;
  background: repeating-linear-gradient(45deg, #f6edd6, #f6edd6 12px, #f2e6c8 12px, #f2e6c8 24px);
  color: #b6a071;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.photo-placeholder svg { width: 34px; height: 34px; fill: #cdb682; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 3rem); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0.3rem 0 0.6rem; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.floral-mark { color: var(--gold); font-size: 1.6rem; display: inline-block; }

/* ---------- Service ---------- */
.service { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 540px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.card-accent { border-top: 4px solid var(--gold); }
.card h3 { font-size: 1.5rem; margin: 0 0 0.4rem; color: var(--gold-deep); }
.card-note { color: var(--ink-soft); margin: 0 0 1.2rem; font-size: 0.98rem; }
.detail-list { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.detail-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}
.detail-list li:last-child { border-bottom: none; }
.detail-list .label { color: var(--sage-deep); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.detail-list .value { text-align: right; font-weight: 600; }

.service-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto 0;
}
.extra-item {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.extra-item h4 { margin: 0 0 0.5rem; color: var(--gold-deep); font-size: 1.15rem; }
.extra-item p { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Story ---------- */
.story { background: var(--cream); }
.story-body { max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.story-body p { margin: 0 0 1.4rem; }
.dropcap {
  float: left;
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 0.8;
  padding: 0.35rem 0.5rem 0 0;
  color: var(--gold);
}
.story-closing {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sage-deep);
  margin-top: 2rem !important;
}

/* ---------- Gallery ---------- */
.gallery { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.photo-tile {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-note { text-align: center; margin: 1.6rem auto 0; max-width: 40rem; }

/* ---------- Memories + form ---------- */
.memories { background: var(--cream); }
.memory-form {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink); }
.field em { color: var(--ink-soft); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field textarea { resize: vertical; }

.rsvp-block { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; margin: 0 0 1.4rem; }
.rsvp-block legend { font-weight: 700; font-size: 0.9rem; padding: 0 0.5rem; color: var(--ink); }
.rsvp-options { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.8rem; }
.rsvp-options label { font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.field-inline { max-width: 220px; margin-bottom: 0; }
.field-inline span { font-size: 0.82rem; }

.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.2rem; }
.form-status.success { color: var(--sage-deep); }
.form-status.error { color: var(--rose); }

/* ---------- Memory wall ---------- */
.memory-wall { max-width: 720px; margin: 0 auto; }
.memory-wall h3 { text-align: center; font-size: 1.7rem; margin: 0 0 1.6rem; color: var(--gold-deep); }
.memory-list { display: flex; flex-direction: column; gap: 1rem; }
.memory-empty { text-align: center; color: var(--ink-soft); font-style: italic; }
.memory-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-soft);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 10px 30px -22px rgba(120, 96, 40, 0.5);
}
.memory-card .m-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.memory-card .m-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.memory-card .m-relation { font-size: 0.82rem; color: var(--sage-deep); font-weight: 600; }
.memory-card .m-msg { margin: 0; color: var(--ink-soft); }
.memory-card .m-badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: #eef2e8;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
}
.footer .floral-mark { display: block; margin-bottom: 0.6rem; }
.footer-name { font-family: var(--serif); font-size: 1.8rem; margin: 0; color: var(--ink); }
.footer-dates { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: 0.2rem 0 1rem; }
.footer-love { color: var(--sage-deep); font-weight: 600; margin: 0; }
