:root {
  --ink: #173b4e;
  --blue: #0b668f;
  --blue-deep: #075174;
  --blue-pale: #e8f4f8;
  --gold: #bd7a37;
  --gold-soft: #d7a86f;
  --paper: #fffdf9;
  --white: #ffffff;
  --line: #cddfe6;
  --muted: #617985;
  --shadow: 0 24px 70px rgba(20, 76, 100, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(197, 221, 231, 0.45), transparent 20rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
label {
  touch-action: manipulation;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1380px, calc(100% - 64px));
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
  width: 154px;
  overflow: hidden;
}

.brand img,
footer img {
  width: 100%;
  mix-blend-mode: multiply;
}

.header-link {
  padding: 12px 2px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  width: min(1380px, calc(100% - 64px));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 670px;
  padding: 72px 0 112px;
}

.eyebrow,
.step-label,
.preview-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
.tribute-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(5.1rem, 7vw, 6rem);
  line-height: 0.84;
}

h1 em {
  color: var(--gold);
  font-weight: 400;
}

.hero-text {
  max-width: 540px;
  margin: 32px 0 30px;
  color: #476573;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 25px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  color: var(--white);
  background: var(--blue-deep);
  box-shadow: 0 12px 28px rgba(7, 81, 116, 0.2);
}

.secondary-button {
  color: var(--blue-deep);
  background: transparent;
  border-color: rgba(7, 81, 116, 0.32);
}

.privacy-note {
  display: flex;
  margin: 18px 0 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.privacy-note span {
  color: var(--gold);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: min(76svh, 760px);
  min-height: 570px;
  margin: 0;
  overflow: visible;
  align-self: center;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: -18px 28px 28px -18px;
  border: 1px solid rgba(189, 122, 55, 0.38);
  border-radius: 180px 28px 28px 28px;
  content: "";
}

.hero-visual img {
  width: 100%;
  height: 100%;
  border-radius: 180px 28px 28px 28px;
  object-fit: cover;
  object-position: 50% 54%;
  box-shadow: 0 34px 80px rgba(18, 58, 73, 0.16);
}

.hero-visual figcaption {
  position: absolute;
  left: -54px;
  bottom: 48px;
  width: min(390px, 72%);
  padding: 24px 28px 26px;
  color: #fff;
  border-radius: 14px;
  background: var(--blue-deep);
  box-shadow: 0 22px 50px rgba(7, 81, 116, 0.24);
}

.hero-visual figcaption span {
  display: block;
  margin-bottom: 7px;
  color: #e9bd84;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-visual figcaption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 400;
  line-height: 1.25;
}

.tribute-section {
  padding: 110px max(20px, calc((100vw - 1180px) / 2));
  background: #f1f8fa;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-heading h2,
.planting-intro h2,
.bloom-section h2,
.garden-section h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
}

.section-heading > p:last-child,
.planting-intro > p:last-child,
.bloom-section > div > p:last-child,
.garden-section > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.tribute-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  gap: clamp(42px, 8vw, 104px);
  align-items: start;
}

.tribute-form {
  max-width: 640px;
}

fieldset {
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

legend span {
  float: right;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-picker {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

.photo-preview {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #94b4c0;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.56);
  font-size: 1.6rem;
  background-position: center;
  background-size: cover;
}

.photo-picker strong,
.photo-picker small {
  display: block;
}

.photo-picker small,
.consent-row small {
  margin-top: 4px;
  color: var(--muted);
}

#photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.text-button {
  margin: 8px 0 0 100px;
  padding: 7px 0;
  border: 0;
  color: var(--blue-deep);
  background: transparent;
  cursor: pointer;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tribute-form label:not(.photo-picker):not(.consent-row) {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 740;
}

.tribute-form input[type="text"],
.tribute-form input[type="date"],
.tribute-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #a8c3ce;
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.tribute-date-grid {
  display: grid;
  margin: 2px 0 24px;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tribute-date-grid label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.tribute-form textarea {
  resize: vertical;
}

.tribute-form input:focus,
.tribute-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 102, 143, 0.1);
}

.tribute-form [aria-invalid="true"] {
  border-color: #a43b3b;
}

.field-error {
  min-height: 22px;
  margin: 5px 0 12px;
  color: #8c2f2f;
  font-size: 0.82rem;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.label-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.consent-row {
  display: grid;
  margin: 0 0 32px;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  cursor: pointer;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.consent-row strong,
.consent-row small {
  display: block;
}

.form-button {
  width: 100%;
}

.preview-panel {
  position: sticky;
  top: 28px;
  width: 100%;
}

.tribute-card {
  position: relative;
  aspect-ratio: 952 / 1200;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: #eaf4f6;
  box-shadow: 0 28px 72px rgba(20, 76, 100, 0.16);
  text-align: center;
}

.card-model {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.card-photo {
  position: absolute;
  z-index: 2;
  top: 13.1%;
  left: 34.7%;
  display: grid;
  width: 30.6%;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border: 2px solid #b48635;
  border-radius: 50%;
  color: #b78139;
  background: radial-gradient(circle at 50% 35%, #fffdf6, #e9dfcb);
  background-position: center;
  background-size: cover;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 7vw, 4rem);
}

.card-name-frame {
  position: absolute;
  z-index: 2;
  top: 42.25%;
  left: 14.5%;
  display: grid;
  width: 71%;
  min-height: 8.75%;
  place-items: center;
  padding: 0 2%;
  background: linear-gradient(90deg, rgba(250, 248, 239, 0), #faf8ef 9%, #faf8ef 91%, rgba(250, 248, 239, 0));
}

.card-name-frame h3 {
  max-width: 100%;
  margin: 0;
  color: #074e70;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 6vw, 3.45rem);
  font-weight: 400;
  line-height: 0.96;
  text-wrap: balance;
}

.card-message-frame {
  position: absolute;
  z-index: 2;
  top: 54.3%;
  left: 18.45%;
  display: grid;
  width: 63.3%;
  min-height: 14.1%;
  place-items: center;
  padding: 4.2% 8.5% 3.3%;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(75, 69, 52, 0.08);
}

.card-quote {
  position: absolute;
  top: 1%;
  left: 5%;
  color: #b57a2c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}

.card-message {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #214f68;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.65rem, 1.8vw, 1rem);
  font-style: italic;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.preview-actions {
  display: grid;
  margin-top: 22px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-feedback {
  min-height: 20px;
  margin: 2px 0 0;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.download-actions {
  display: grid;
  margin-top: 12px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.garden-form {
  display: grid;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  grid-column: 1 / -1;
  gap: 10px;
  border: 1px solid rgba(11, 102, 143, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.garden-form-heading {
  margin-bottom: 10px;
}

.garden-form-heading h3 {
  margin: 2px 0 8px;
  color: var(--blue-deep);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.garden-form-heading p:last-child,
.privacy-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.garden-form > label:not(.consent-row),
.lead-grid label {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
}

.garden-form input[type="text"],
.garden-form input[type="tel"],
.garden-form select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #a8c3ce;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.garden-form input:focus,
.garden-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 102, 143, 0.1);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-grid > div {
  display: grid;
  gap: 8px;
}

.lead-grid label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.garden-form .consent-row {
  margin: 12px 0 2px;
}

.inline-button {
  padding: 0;
  border: 0;
  color: var(--blue-deep);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.garden-feedback {
  min-height: 22px;
  margin: 4px 0 0;
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.5;
}

.garden-form button:disabled,
.garden-form input:disabled,
.garden-form select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.planting-section {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 124px 0;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(52px, 10vw, 130px);
}

.planting-intro {
  position: sticky;
  top: 32px;
  align-self: start;
}

.planting-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.planting-steps li {
  display: grid;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 62px 1fr;
  gap: 22px;
}

.planting-steps li:first-child {
  padding-top: 0;
}

.planting-steps li > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.planting-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.planting-steps p {
  margin: 0;
  color: var(--muted);
}

.flower-share-section {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 120px;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: clamp(40px, 7vw, 84px);
  align-items: start;
}

.flower-share-intro {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 55, 83, .9), rgba(2, 42, 65, .94)),
    url("assets/memorial-floral-background.png?v=1") center / cover;
}

.flower-share-intro::after {
  position: absolute;
  right: -240px;
  bottom: 56px;
  width: 390px;
  height: 150px;
  border: 1px solid rgba(214, 165, 89, .64);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.flower-share-copy {
  position: relative;
  z-index: 1;
  padding: clamp(42px, 6vw, 72px);
}

.flower-share-star { display: block; margin-bottom: 18px; color: #e1b264; font-size: 1.45rem; }
.flower-share-copy .eyebrow { color: #e5bb76; }
.flower-share-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 3.7vw, 3.6rem);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.flower-share-copy > p:last-child { max-width: 450px; margin: 22px 0 0; color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.65; }

.flower-form {
  display: grid;
  padding: clamp(26px, 5vw, 42px);
  gap: 10px;
  border: 1px solid rgba(189, 122, 55, .35);
  border-radius: 24px;
  background: #fffaf0;
  box-shadow: 0 24px 60px rgba(6, 61, 93, .13);
}

.flower-photo-picker {
  position: relative;
  display: grid;
  min-height: 250px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #9db9c4;
  border-radius: 18px;
  cursor: pointer;
  background: rgba(255,255,255,.78);
}

.flower-photo-preview { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); background-position: center; background-size: cover; font-size: 2.5rem; }
.flower-photo-preview::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2,39,58,.45)); content: ""; opacity: 0; transition: opacity 160ms ease; }
.flower-photo-picker.has-photo .flower-photo-preview::after { opacity: 1; }
.flower-photo-copy { position: relative; z-index: 2; max-width: 260px; padding: 18px; border-radius: 14px; color: var(--blue-deep); background: rgba(255,255,255,.9); text-align: center; }
.flower-photo-copy strong, .flower-photo-copy small { display: block; }
.flower-photo-copy small { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.flower-photo-picker.has-photo .flower-photo-copy { align-self: end; margin-bottom: 14px; padding: 10px 14px; color: white; background: rgba(3,47,73,.84); backdrop-filter: blur(8px); }
.flower-photo-picker.has-photo .flower-photo-copy small { color: rgba(255,255,255,.72); }

#flower-photo-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); }
.flower-remove { margin: 0; justify-self: start; }
.flower-form > label:not(.flower-photo-picker):not(.consent-row), .flower-form-grid label { margin: 8px 0 0; color: #254d61; font-size: .84rem; font-weight: 760; }
.flower-form > label span { color: var(--muted); font-size: .76rem; font-weight: 500; }
.flower-form input[type="text"], .flower-form textarea { width: 100%; min-height: 50px; border: 1px solid #a9c4ce; border-radius: 12px; padding: 13px 14px; color: var(--ink); background: white; font: inherit; font-size: 16px; outline: none; }
.flower-form textarea { min-height: 100px; resize: vertical; }
.flower-form input:focus, .flower-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,102,143,.1); }
.flower-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flower-form-grid > div { display: grid; gap: 8px; }
.flower-consent { margin: 16px 0 4px; }
.flower-form .primary-button { width: 100%; }
.flower-feedback { min-height: 22px; margin: 4px 0 0; color: var(--blue-deep); font-size: .84rem; font-weight: 650; text-align: center; }

.flower-gallery-heading { grid-column: 1 / -1; margin-top: 36px; text-align: center; }
.flower-gallery-heading .eyebrow { color: var(--gold); }
.flower-gallery-heading h3 { margin: 0; color: var(--blue-deep); font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; }
.flower-gallery-heading > p:last-child { margin: 14px 0 0; color: var(--muted); }
.flower-gallery { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.flower-card { min-width: 0; overflow: hidden; border: 1px solid rgba(189,122,55,.28); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(12,67,91,.08); text-align: left; }
.flower-card img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; }
.flower-card-content { padding: 18px; }
.flower-card h4 { margin: 0; color: var(--blue-deep); font: 400 1.35rem/1.1 Georgia, serif; }
.flower-card small { display: block; margin-top: 5px; color: var(--muted); }
.flower-card p { margin: 12px 0 0; color: #486673; font-family: Georgia, serif; font-size: .9rem; font-style: italic; line-height: 1.5; }
.flower-gallery-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); text-align: center; }
.flower-gallery-empty[hidden] { display: none !important; }

.garden-section {
  position: relative;
  display: flex;
  min-height: 700px;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 92px 20px 110px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(3, 54, 82, 0.91), rgba(2, 43, 67, 0.89) 60%, rgba(2, 35, 55, 0.97)),
    url("assets/memorial-floral-background.png?v=1") center / cover fixed;
  text-align: center;
}

.garden-section::before,
.garden-section::after {
  position: absolute;
  width: 720px;
  height: 250px;
  border: 1px solid rgba(218, 172, 96, 0.55);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.garden-section::before { top: 260px; left: -590px; transform: rotate(13deg); }
.garden-section::after { right: -570px; bottom: 100px; transform: rotate(-17deg); }

.garden-section > * { position: relative; z-index: 1; }

.garden-mark {
  margin-bottom: 12px;
  color: #e4b468;
  font-size: 1.6rem;
}

.garden-eyebrow {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 18px;
  color: #e4b468;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.garden-eyebrow::before,
.garden-eyebrow::after {
  width: 48px;
  height: 1px;
  background: currentColor;
  content: "";
}

.garden-section h2 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.garden-section > p:not(.garden-eyebrow):not(.wall-empty) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
}

.memory-wall {
  display: grid;
  width: min(1180px, 100%);
  margin-top: 52px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.memory-entry { min-width: 0; }

.memory-card {
  position: relative;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  padding: 38px 26px 168px;
  border: 1px solid rgba(218, 172, 96, 0.8);
  border-radius: 22px;
  color: #123f58;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.99) 0%, rgba(255, 250, 240, 0.97) 49%, rgba(255, 250, 240, 0.64) 68%, rgba(255, 250, 240, 0.08) 100%),
    url("assets/memorial-floral-background.png?v=1") 52% 100% / auto 80% no-repeat;
  box-shadow: 0 26px 62px rgba(0, 21, 35, 0.34);
  text-align: center;
}

.memory-card::after {
  position: absolute;
  top: 24px;
  right: 15px;
  width: 70px;
  height: 130px;
  opacity: 0.34;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 150'%3E%3Cg fill='none' stroke='%23b88943' stroke-width='1.2'%3E%3Cpath d='M52 143C42 108 42 72 53 20M50 52C34 50 25 40 21 27c16 3 25 12 29 25Zm-5 34c-16-3-25-14-28-28 16 4 25 14 28 28Zm7-14c16-3 25-14 28-28-16 4-25 14-28 28Zm-5 39c16-4 24-15 27-29-16 5-24 14-27 29Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.memory-portrait {
  position: relative;
  z-index: 1;
  display: grid;
  width: 128px;
  height: 128px;
  overflow: hidden;
  place-items: center;
  border: 2px solid #cb9848;
  border-radius: 50%;
  color: #a87731;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(6, 61, 93, 0.14);
  font-family: Georgia, serif;
  font-size: 2.7rem;
}

.memory-portrait img { width: 100%; height: 100%; object-fit: cover; }

.memory-kicker {
  margin: 24px 0 8px;
  color: #b07b31;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.memory-card h3 {
  max-width: 100%;
  margin: 0;
  color: #0a4666;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 2.7vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

.memory-dates {
  margin: 19px 0 0;
  color: #765f42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.memory-divider {
  display: flex;
  margin: 12px auto 10px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #c69447;
}

.memory-divider::before,
.memory-divider::after { width: 38px; height: 1px; background: currentColor; content: ""; }
.memory-divider span { font-size: 1rem; }

.memory-message {
  display: -webkit-box;
  max-width: 290px;
  margin: 0;
  overflow: hidden;
  color: #294c5e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.memory-actions {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.memory-open {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: rgba(3, 47, 73, 0.87);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.memory-signature { width: 98px; height: auto; }

.memory-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(218, 172, 96, 0.78);
  border-radius: 24px;
  color: #123f58;
  background: #fffaf0;
  box-shadow: 0 34px 90px rgba(0, 20, 33, 0.46);
}

.memory-dialog::backdrop { background: rgba(2, 32, 50, 0.76); backdrop-filter: blur(5px); }
.memory-dialog-content { position: relative; padding: 48px 30px 32px; text-align: center; }
.memory-dialog-portrait { display: grid; width: 150px; height: 150px; margin: 0 auto; overflow: hidden; place-items: center; border: 2px solid #cb9848; border-radius: 50%; color: #a87731; background: #fff; font: 3rem Georgia, serif; }
.memory-dialog-portrait img { width: 100%; height: 100%; object-fit: cover; }
.memory-dialog h2 { margin: 0; color: #0a4666; font-size: clamp(2.2rem, 8vw, 3.8rem); line-height: 1; }
.memory-dialog-dates { margin: 20px 0 0; color: #765f42; font: 0.9rem Georgia, serif; letter-spacing: 0.06em; }
.memory-dialog blockquote { margin: 0 auto; color: #294c5e; font: italic 1.15rem/1.65 Georgia, serif; }
.memory-dialog-signature { width: 150px; margin: 28px auto 0; padding: 10px 14px; border-radius: 12px; background: #073e5a; }

.wall-empty {
  margin-top: 24px !important;
  font-size: 0.88rem;
}

.wall-empty[hidden] {
  display: none !important;
}

.privacy-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(84vh, 760px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 33, 48, 0.32);
}

.privacy-dialog::backdrop {
  background: rgba(2, 33, 48, 0.62);
  backdrop-filter: blur(3px);
}

.privacy-dialog-content {
  position: relative;
  padding: clamp(28px, 6vw, 52px);
}

.privacy-dialog h2 {
  margin: 4px 0 22px;
  color: var(--blue-deep);
  font-size: clamp(2rem, 5vw, 3rem);
}

.privacy-dialog p {
  color: #425f6d;
  line-height: 1.6;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--blue-pale);
  cursor: pointer;
  font-size: 1.5rem;
}

footer {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 56px 24px calc(56px + env(safe-area-inset-bottom));
  color: var(--blue-deep);
  background: #fffaf0;
  text-align: center;
}

.footer-logo {
  width: 180px;
  margin-bottom: 18px;
}

.footer-copy p,
.footer-contact span {
  margin: 0;
}

.footer-name {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.footer-service {
  margin-top: 2px !important;
  color: var(--muted);
  font-size: .88rem;
}

.footer-contact {
  display: grid;
  margin-top: 20px;
  gap: 2px;
}

.footer-phone {
  color: var(--blue-deep);
  font-size: 1.08rem;
  font-weight: 780;
  text-decoration: none;
}

.footer-contact span {
  color: var(--muted);
  font-size: .78rem;
}

.footer-actions {
  display: flex;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--blue-deep);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--blue-deep);
  background: transparent;
  font-size: .88rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.footer-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-action-whatsapp {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 10px 24px rgba(7, 81, 116, .16);
}

:focus-visible {
  outline: 3px solid rgba(189, 122, 55, 0.5);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover,
  .secondary-button:hover {
    transform: translateY(-2px);
  }

  .primary-button:hover {
    background: #064565;
    box-shadow: 0 16px 34px rgba(7, 81, 116, 0.26);
  }

  .secondary-button:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .footer-action:hover {
    transform: translateY(-2px);
  }

  .footer-action-instagram:hover {
    color: #fff;
    background: var(--blue-deep);
  }

  .footer-action-whatsapp:hover {
    background: #064565;
    box-shadow: 0 14px 30px rgba(7, 81, 116, .22);
  }
}

@media (max-width: 1040px) and (min-width: 841px) {
  .flower-share-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flower-share-intro {
    min-height: 440px;
  }

  .flower-share-copy h2 {
    max-width: 640px;
  }

  .flower-gallery-heading {
    margin-top: 48px;
  }

  .flower-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: 72px;
  }

  .brand {
    width: 130px;
  }

  .hero {
    width: calc(100% - 32px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 92px;
  }

  .hero-copy {
    padding: 58px 0 8px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 5.8rem);
  }

  .hero-visual {
    width: calc(100% - 20px);
    height: min(64svh, 580px);
    min-height: 500px;
    margin-left: auto;
  }

  .hero-visual::before,
  .hero-visual img {
    border-radius: 130px 22px 22px 22px;
  }

  .hero-visual figcaption {
    left: -20px;
    bottom: 28px;
    width: min(390px, 82%);
  }

  .tribute-section {
    padding: 84px 20px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .tribute-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .preview-panel {
    position: static;
    max-width: 540px;
    margin: 0 auto;
  }

  .planting-section {
    width: calc(100% - 40px);
    padding: 92px 0;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .planting-intro {
    position: static;
  }

  .flower-share-section { width: calc(100% - 32px); margin-bottom: 84px; grid-template-columns: 1fr; gap: 28px; }
  .flower-share-intro { position: static; min-height: 420px; }
  .flower-gallery-heading { margin-top: 48px; }
  .flower-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .memory-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .header-link {
    font-size: 0.68rem;
  }

  .hero-copy {
    padding-top: 42px;
  }

  .hero-text {
    margin-top: 24px;
  }

  .hero .primary-button {
    width: 100%;
  }

  .hero-visual {
    width: calc(100% - 8px);
    height: 470px;
    min-height: 0;
  }

  .hero-visual::before,
  .hero-visual img {
    border-radius: 96px 18px 18px 18px;
  }

  .hero-visual::before {
    inset: -10px 14px 18px -10px;
  }

  .hero-visual figcaption {
    left: -8px;
    bottom: 20px;
    width: calc(100% - 22px);
    padding: 20px 22px 22px;
  }

  .section-heading h2,
  .planting-intro h2,
  .flower-share-copy h2,
  .garden-section h2 {
    font-size: 2.65rem;
  }

  .tribute-form {
    padding: 0;
  }

  .preview-actions {
    grid-template-columns: 1fr;
  }

  .download-actions {
    grid-template-columns: 1fr;
  }

  .lead-grid,
  .memory-wall {
    grid-template-columns: 1fr;
  }

  .tribute-date-grid {
    grid-template-columns: 1fr;
  }

  .flower-share-section { width: 100%; margin-bottom: 74px; }
  .flower-share-intro { min-height: 440px; border-radius: 0; }
  .flower-share-copy { padding: 58px 20px 110px; text-align: center; }
  .flower-share-copy > p:last-child { margin-inline: auto; }
  .flower-form { width: calc(100% - 36px); margin: -76px auto 0; padding: 22px; border-radius: 22px; }
  .flower-photo-picker { min-height: 235px; }
  .flower-form-grid { grid-template-columns: 1fr 1fr; }
  .flower-gallery-heading { padding: 0 18px; }
  .flower-gallery-heading h3 { font-size: 2.8rem; }
  .flower-gallery { padding: 0 18px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .flower-card-content { padding: 13px 12px 15px; }
  .flower-card h4 { font-size: 1.08rem; }
  .flower-card p { display: none; }

  footer {
    padding-inline: 18px;
  }

  .footer-actions,
  .footer-action {
    width: 100%;
  }

  .planting-steps li {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .garden-section {
    min-height: 500px;
    padding: 74px 18px 90px;
    background-attachment: scroll;
  }

  .garden-section h2 { font-size: 3.25rem; }
  .garden-eyebrow { gap: 12px; font-size: 0.63rem; }
  .garden-eyebrow::before,
  .garden-eyebrow::after { width: 34px; }
  .memory-wall { width: min(100%, 390px); gap: 30px; }
  .memory-card { min-height: 560px; padding-inline: 22px; }
  .memory-portrait { width: 136px; height: 136px; }
  .memory-actions { right: 16px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
