/*
Theme Name: TailLumen
Theme URI: https://taillumen.com/
Author: TailLumen
Author URI: https://taillumen.com/
Description: A warm, SEO-friendly WordPress theme for TailLumen pet memorial pages, tribute stories, and keepsake books.
Version: 0.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: taillumen
*/

:root {
  --tl-ink: #211b16;
  --tl-green: #17483f;
  --tl-green-dark: #102a26;
  --tl-cream: #fbf6ed;
  --tl-paper: #fffdf8;
  --tl-muted: #6f6255;
  --tl-line: rgba(93, 72, 52, 0.15);
  --tl-gold: #a0713d;
  --tl-soft: #f3e6d2;
  --tl-rose: #9f6f66;
  --tl-shadow: 0 24px 70px rgba(54, 38, 25, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--tl-ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(160, 113, 61, 0.13), transparent 30%),
    radial-gradient(circle at 84% 6%, rgba(159, 111, 102, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(246, 238, 226, 0.96)),
    var(--tl-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.tl-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(255, 252, 246, 0.82);
  border-bottom: 1px solid rgba(93, 76, 58, 0.13);
  backdrop-filter: blur(16px);
}

.tl-logo,
.tl-nav-links a,
.tl-button,
.tl-footer a,
.tl-price-card a {
  text-decoration: none;
}

.tl-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tl-green-dark);
  font-weight: 850;
  letter-spacing: 0.01em;
}

.tl-logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fffaf0;
  background: linear-gradient(145deg, #1e5b50, #102f2a);
  box-shadow: 0 12px 30px rgba(23, 72, 63, 0.2);
}

.tl-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--tl-muted);
  font-size: 14px;
}

.tl-button,
.tl-nav-cta,
.tl-generator button,
.tl-memorial-form button {
  min-height: 46px;
  border: 1px solid #d8cfc1;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--tl-paper);
  color: #24302c;
  cursor: pointer;
  font: inherit;
}

.tl-button-primary,
.tl-nav-cta {
  background: linear-gradient(135deg, #1f5a50, #12332d);
  border-color: #1b5148;
  color: #fffaf0;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(23, 72, 63, 0.18);
}

.tl-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) clamp(30px, 5vw, 64px);
  overflow: hidden;
}

.tl-hero::before {
  content: "";
  position: absolute;
  inset: 5% auto auto 44%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(160, 113, 61, 0.18);
  border-radius: 50%;
  opacity: 0.65;
  pointer-events: none;
}

.tl-hero-copy {
  position: relative;
  z-index: 1;
}

.tl-eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tl-gold);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tl-hero h1,
.tl-section h2 {
  margin: 0;
  color: var(--tl-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.tl-hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.4vw, 94px);
  line-height: 0.95;
  text-wrap: balance;
}

.tl-section h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
  text-wrap: balance;
}

.tl-hero p,
.tl-section-heading p,
.tl-card p,
.tl-faq p,
.tl-footer span {
  color: var(--tl-muted);
  line-height: 1.7;
}

.tl-hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 21px);
}

.tl-actions,
.tl-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tl-actions {
  margin-top: 30px;
}

.tl-trust-row {
  margin-top: 24px;
  color: #5d554b;
  font-size: 14px;
}

.tl-hero-visual {
  position: relative;
  min-height: min(72vh, 720px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(56, 39, 25, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.68);
  isolation: isolate;
}

.tl-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(18, 47, 42, 0.28));
  pointer-events: none;
  z-index: 1;
}

.tl-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.tl-memory-card {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 2;
  width: min(310px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid rgba(255, 250, 240, 0.54);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 22px 46px rgba(31, 24, 17, 0.18);
  backdrop-filter: blur(18px);
}

.tl-memory-card span {
  color: var(--tl-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tl-memory-card strong {
  display: block;
  margin-top: 10px;
  color: var(--tl-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.tl-memory-card p {
  margin: 8px 0 0;
  color: #615447;
  line-height: 1.55;
}

.tl-value-band {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  transform: translateY(-18px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--tl-line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(93, 72, 52, 0.14);
  box-shadow: var(--tl-shadow);
}

.tl-value-band div {
  padding: 22px 24px;
  background: rgba(255, 253, 248, 0.9);
}

.tl-value-band strong,
.tl-value-band span {
  display: block;
}

.tl-value-band strong {
  color: var(--tl-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.tl-value-band span {
  margin-top: 7px;
  color: var(--tl-muted);
  line-height: 1.55;
}

.tl-section {
  padding: clamp(64px, 8vw, 116px) clamp(18px, 5vw, 72px);
}

.tl-section-heading {
  max-width: 800px;
  margin-bottom: 32px;
}

.tl-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tl-centered p {
  margin-left: auto;
  margin-right: auto;
}

.tl-section-heading p {
  max-width: 700px;
  margin: 16px 0 0;
}

.tl-grid-2 {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1.08fr);
  gap: 18px;
}

.tl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tl-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tl-card,
.tl-generator,
.tl-output,
.tl-faq {
  border: 1px solid var(--tl-line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--tl-shadow);
}

.tl-card {
  padding: clamp(22px, 3vw, 30px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(160, 113, 61, 0.28);
  box-shadow: 0 28px 78px rgba(54, 38, 25, 0.13);
}

.tl-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tl-soft);
  color: var(--tl-gold);
  font-weight: 900;
}

.tl-generator {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
}

.tl-generator label {
  display: grid;
  gap: 7px;
  color: #4f463d;
  font-size: 14px;
  font-weight: 800;
}

.tl-generator input,
.tl-generator textarea,
.tl-generator select,
.tl-memorial-form input,
.tl-memorial-form textarea,
.tl-memorial-form select {
  width: 100%;
  border: 1px solid #d8cfc1;
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.92);
  color: var(--tl-ink);
  outline: none;
  padding: 12px 13px;
  font: inherit;
}

.tl-generator textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.6;
}

.tl-help-first {
  padding-bottom: clamp(46px, 6vw, 78px);
}

.tl-showcase {
  padding-top: clamp(60px, 8vw, 106px);
}

.tl-memorial-showcase {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr);
  grid-template-rows: repeat(2, minmax(220px, auto));
  gap: 18px;
}

.tl-sample-card {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--tl-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(250, 241, 228, 0.94)),
    var(--tl-paper);
  box-shadow: var(--tl-shadow);
  overflow: hidden;
}

.tl-sample-large {
  grid-row: span 2;
  min-height: 460px;
}

.tl-sample-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.tl-sample-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 31, 0.08), rgba(15, 35, 31, 0.6));
}

.tl-sample-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(24px, 4vw, 42px);
}

.tl-sample-large .tl-sample-copy {
  max-width: 520px;
  color: #fff8ec;
}

.tl-sample-copy span {
  color: var(--tl-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.tl-sample-large .tl-sample-copy span,
.tl-sample-large .tl-sample-copy p,
.tl-sample-large .tl-sample-copy a {
  color: #f8ead8;
}

.tl-sample-copy h3 {
  margin: 10px 0 0;
  color: var(--tl-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
}

.tl-sample-large .tl-sample-copy h3 {
  color: #fff8ec;
}

.tl-sample-copy p {
  color: var(--tl-muted);
  line-height: 1.7;
}

.tl-sample-years {
  margin: 8px 0 12px;
  font-weight: 800;
}

.tl-sample-copy a {
  color: var(--tl-green);
  font-weight: 900;
  text-decoration: none;
}

.tl-path {
  padding-top: clamp(34px, 6vw, 76px);
  padding-bottom: clamp(34px, 6vw, 80px);
}

.tl-step-row {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--tl-line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(93, 72, 52, 0.14);
  box-shadow: var(--tl-shadow);
}

.tl-step-row article {
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 253, 248, 0.9);
}

.tl-step-row span {
  color: var(--tl-gold);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.tl-step-row h3 {
  margin: 16px 0 8px;
  color: var(--tl-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.tl-step-row p {
  margin: 0;
  color: var(--tl-muted);
  line-height: 1.7;
}

.tl-conversion {
  padding-top: clamp(38px, 6vw, 84px);
  padding-bottom: clamp(38px, 6vw, 84px);
}

.tl-conversion-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(160, 113, 61, 0.18), transparent 28%),
    linear-gradient(135deg, #102a26, #1b3c36 58%, #2f2823);
  box-shadow: 0 30px 90px rgba(16, 42, 38, 0.24);
}

.tl-conversion-panel h2 {
  margin: 0;
  color: #fff8ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
}

.tl-conversion-panel p {
  color: #dfd1bf;
  line-height: 1.82;
}

.tl-conversion-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 248, 236, 0.12);
}

.tl-conversion-list article {
  padding: 22px;
  background: rgba(255, 248, 236, 0.08);
}

.tl-conversion-list strong,
.tl-conversion-list span {
  display: block;
}

.tl-conversion-list strong {
  color: #fff8ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.tl-conversion-list span {
  margin-top: 7px;
  color: #dfd1bf;
  line-height: 1.7;
}

.tl-form-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.tl-memorial-form {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--tl-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(250, 241, 228, 0.92)),
    var(--tl-paper);
  box-shadow: var(--tl-shadow);
}

.tl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tl-memorial-form label {
  display: grid;
  gap: 8px;
  color: #4f463d;
  font-size: 14px;
  font-weight: 850;
}

.tl-memorial-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.65;
}

.tl-memorial-form input[type="file"] {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.tl-consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  line-height: 1.55;
  font-weight: 650;
}

.tl-consent input {
  width: auto;
  margin-top: 3px;
}

.tl-form-hint {
  margin: -4px 0 0;
  color: var(--tl-muted);
  font-size: 14px;
}

.tl-form-message {
  width: min(980px, 100%);
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 8px;
  line-height: 1.6;
  font-weight: 800;
}

.tl-form-success {
  border: 1px solid rgba(23, 72, 63, 0.22);
  background: rgba(229, 242, 236, 0.9);
  color: #17483f;
}

.tl-form-error {
  border: 1px solid rgba(159, 73, 61, 0.24);
  background: rgba(255, 238, 233, 0.9);
  color: #89382f;
}

.tl-output {
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(251, 243, 232, 0.92)),
    var(--tl-paper);
}

.tl-output h3 {
  margin: 0 0 18px;
  color: var(--tl-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.tl-output-text {
  white-space: pre-line;
  color: #4f463d;
  line-height: 1.85;
  font-size: 16px;
}

.tl-examples {
  background:
    radial-gradient(circle at 15% 10%, rgba(160, 113, 61, 0.2), transparent 32%),
    linear-gradient(135deg, #102a26, #1b3c36 58%, #2f2823);
}

.tl-examples h2,
.tl-examples .tl-eyebrow {
  color: #fff8ec;
}

.tl-examples .tl-card {
  background: rgba(255, 248, 236, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.tl-resource-hub {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(242, 232, 218, 0.66));
}

.tl-resource-hub .tl-section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tl-resource-hub .tl-section-heading p {
  margin-left: auto;
  margin-right: auto;
}

.tl-resource-hub .tl-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--tl-green);
  font-weight: 900;
  text-decoration: none;
}

.tl-ritual {
  padding-top: clamp(42px, 6vw, 84px);
  padding-bottom: clamp(42px, 6vw, 84px);
}

.tl-ritual-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 42, 38, 0.96), rgba(31, 78, 67, 0.92)),
    var(--tl-green-dark);
  color: #fff8ec;
  box-shadow: 0 30px 90px rgba(16, 42, 38, 0.22);
  overflow: hidden;
}

.tl-ritual-inner::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -120px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 50%;
}

.tl-ritual-inner h2 {
  position: relative;
  max-width: 720px;
  color: #fff8ec;
}

.tl-ritual-inner p:not(.tl-eyebrow) {
  position: relative;
  max-width: 720px;
  color: #dfd1bf;
  line-height: 1.8;
  font-size: 18px;
}

.tl-price {
  margin: 18px 0 8px;
  color: var(--tl-green);
  font-size: 38px;
  font-weight: 900;
}

.tl-price-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.tl-price-card a {
  margin-top: auto;
  color: var(--tl-green);
  font-weight: 900;
}

.tl-faq {
  max-width: 980px;
  padding: 10px 28px;
}

.tl-faq details {
  border-bottom: 1px solid #e6ded2;
  padding: 18px 0;
}

.tl-faq details:last-child {
  border-bottom: 0;
}

.tl-faq summary {
  cursor: pointer;
  color: #23332f;
  font-weight: 900;
}

.tl-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.35fr);
  gap: 20px;
  padding: clamp(36px, 5vw, 62px) clamp(18px, 5vw, 72px);
  background: linear-gradient(135deg, #102a26, #1b332f);
  color: #fff8ec;
}

.tl-memorial-page {
  background:
    radial-gradient(circle at 12% 7%, rgba(160, 113, 61, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 238, 226, 0.96));
}

.tl-memorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 7vw, 98px) clamp(18px, 5vw, 72px);
}

.tl-memorial-hero h1 {
  margin: 0;
  color: var(--tl-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  text-wrap: balance;
}

.tl-memorial-photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--tl-shadow);
}

.tl-memorial-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.tl-memorial-story {
  width: min(880px, 100%);
  margin: 0 auto 30px;
}

.tl-photo-gallery {
  width: min(1060px, 100%);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tl-photo-gallery figure {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(54, 38, 25, 0.12);
}

.tl-photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-share-panel {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 8px;
  background: var(--tl-green-dark);
  color: #fff8ec;
  box-shadow: 0 24px 70px rgba(16, 42, 38, 0.2);
}

.tl-share-panel h2 {
  margin: 0;
  color: #fff8ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
}

.tl-share-panel p {
  color: #dfd1bf;
  line-height: 1.75;
}

.tl-footer strong,
.tl-footer span,
.tl-footer a {
  display: block;
}

.tl-footer span {
  margin-top: 6px;
  color: #d7cab8;
}

.tl-footer a {
  color: #d7cab8;
  text-decoration: none;
  line-height: 1.8;
}

.tl-footer a:hover {
  color: #fff8ec;
}

.tl-footer-brand > a {
  margin-top: 18px;
  color: #fff8ec;
  font-weight: 850;
}

.tl-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tl-footer-nav strong {
  margin-bottom: 10px;
  color: #fff8ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

@media (max-width: 980px) {
  .tl-nav-links {
    display: none;
  }

  .tl-hero,
  .tl-grid-2 {
    grid-template-columns: 1fr;
  }

  .tl-hero {
    min-height: auto;
  }

  .tl-hero-visual {
    min-height: 420px;
  }

  .tl-grid-3,
  .tl-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-memorial-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .tl-sample-large {
    grid-row: auto;
  }

  .tl-step-row {
    grid-template-columns: 1fr;
  }

  .tl-conversion-panel,
  .tl-footer {
    grid-template-columns: 1fr;
  }

  .tl-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-memorial-hero {
    grid-template-columns: 1fr;
  }

  .tl-value-band {
    grid-template-columns: 1fr;
    transform: none;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .tl-nav {
    padding: 12px 16px;
  }

  .tl-nav-cta {
    display: none;
  }

  .tl-hero-visual {
    min-height: 320px;
  }

  .tl-memory-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -98px 14px 14px;
  }

  .tl-grid-3,
  .tl-grid-4,
  .tl-form-grid,
  .tl-photo-gallery {
    grid-template-columns: 1fr;
  }

  .tl-sample-large {
    min-height: 420px;
  }

  .tl-footer {
    align-items: flex-start;
  }

  .tl-footer-nav {
    grid-template-columns: 1fr;
  }
}
