:root {
  --ink: #172553;
  --ink-2: #243264;
  --teal: #119da4;
  --teal-2: #20b8b2;
  --leaf: #6fba74;
  --gold: #f4c95d;
  --coral: #e46f5a;
  --paper: #fbfdfc;
  --mist: #eef7f6;
  --line: #dbe8e9;
  --soft: #f6faf9;
  --white: #ffffff;
  --text: #20313f;
  --muted: #5f6e7c;
  --shadow: 0 20px 60px rgba(23, 37, 83, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 232, 233, 0.88);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  font-size: 1.08rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 12px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--mist);
  color: var(--teal);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: #0f868d;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 157, 164, 0.24);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.button.secondary:hover {
  background: var(--mist);
  box-shadow: 0 12px 28px rgba(23, 37, 83, 0.16);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.button[disabled],
button[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.hero {
  min-height: clamp(530px, 76vh, 720px);
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 23, 50, 0.88), rgba(17, 157, 164, 0.58)),
    url("../img/funeral-cover-promo.jpeg") center / cover no-repeat;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
  padding: 68px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.eyebrow.dark {
  background: var(--mist);
  color: var(--teal);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}

.hero h1 {
  color: var(--white);
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.35rem, 7vw, 5.25rem);
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.section-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.center-actions {
  justify-content: center;
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-item {
  min-height: 118px;
  padding: 24px;
  background: var(--white);
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.trust-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 88px 0;
}

.section.compact {
  padding: 58px 0;
}

.section.mist {
  background: var(--mist);
}

.section.ink {
  background: var(--ink);
  color: var(--white);
}

.section.ink h2,
.section.ink h3 {
  color: var(--white);
}

.section.ink p,
.section.ink .lead {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.section-head p,
.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.plan-card,
.feature-card,
.step-card,
.contact-card,
.quote-box,
.form-panel,
.price-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(23, 37, 83, 0.07);
}

.plan-card,
.feature-card,
.step-card,
.contact-card {
  padding: 26px;
}

.plan-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.plan-tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e9f7f1;
  color: #327d42;
  font-size: 0.78rem;
  font-weight: 800;
}

.plan-card h3,
.feature-card h3,
.step-card h3 {
  margin-top: 12px;
  font-size: 1.35rem;
}

.plan-card p,
.feature-card p,
.step-card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--teal);
  transform: translateY(-50%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 34px;
  align-items: center;
}

.promo-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.coupon-note {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fef7df;
  border: 1px solid rgba(244, 201, 93, 0.48);
  color: #5b4c17;
  font-weight: 700;
}

.step-card {
  min-height: 230px;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.cta-band {
  background: linear-gradient(90deg, var(--teal), var(--leaf));
  color: var(--white);
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.cta-band p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
}

.page-hero {
  padding: 82px 0 52px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-head {
  margin-bottom: 0;
}

.product-layout,
.apply-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.price-panel,
.form-panel,
.quote-box {
  padding: 28px;
}

.price-panel {
  position: sticky;
  top: 104px;
}

.price-result {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.price-result strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.price-result span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfdedf;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(32, 184, 178, 0.2);
  border-color: var(--teal);
}

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

.field {
  margin-bottom: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.step-pill {
  min-height: 52px;
  padding: 12px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.step-pill.active {
  background: var(--ink);
  color: var(--white);
}

.step-pill.done {
  background: #e9f7f1;
  color: #327d42;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
  text-align: right;
}

.alert {
  display: none;
  margin: 14px 0;
  padding: 13px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
}

.alert.show {
  display: block;
}

.alert.error {
  border-color: rgba(228, 111, 90, 0.4);
  background: #fff1ee;
  color: #7a2d20;
}

.alert.success {
  border-color: rgba(111, 186, 116, 0.48);
  background: #edf8ef;
  color: #255f2c;
}

.payment-stage {
  display: none;
}

.payment-stage.active {
  display: block;
}

.micro-copy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 70px 0;
  background: var(--mist);
}

.status-panel {
  width: min(760px, calc(100% - 32px));
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.status-panel img {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.status-panel h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.status-panel p {
  color: var(--muted);
}

.site-footer {
  background: #111b3d;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.footer-brand img {
  width: 54px;
  height: 54px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding-top: 22px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .trust-grid,
  .grid.three,
  .grid.two,
  .split,
  .product-layout,
  .apply-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    gap: 0;
  }

  .price-panel {
    position: static;
  }

  .cta-band .section-inner {
    display: block;
  }
}

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-copy {
    padding: 52px 0;
  }

  .section {
    padding: 62px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .stepper {
    grid-template-columns: 1fr;
  }

  .status-panel {
    padding: 28px 20px;
  }
}
