/* Newberg Pet Cremation
   Plain CSS. No framework. Tokens first, then base, layout, components, pages, motion. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/vollkorn-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cabin-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --cream: #f7f2ea;
  --sand: #ede3d3;
  --walnut: #3b2a20;
  --bark: #6b4f3a;
  --tan: #c9a77c;
  --tan-light: #e2cdae;
  --tan-faint: #efe6d6;
  --indigo: #2b2d8e;
  --indigo-deep: #23257a;
  --rose: #f3dcd5;
  --white: #ffffff;
  --error: #9b2c2c;

  --font-display: "Vollkorn", "Iowan Old Style", Georgia, serif;
  --font-body: "Cabin", "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.5rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  --text-4xl: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);

  --container: 1560px;
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 10px 30px -14px rgba(59, 42, 32, 0.28);
  --shadow-frame: 0 18px 40px -22px rgba(59, 42, 32, 0.45);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* 16px up to 1280px wide, growing to 19px at 1920px so wide screens fill out */
  font-size: clamp(100%, 62.5% + 0.469vw, 118.75%);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--walnut);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
  line-height: 1.25;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color var(--dur) var(--ease-out);
}

a:hover {
  color: var(--indigo-deep);
}

strong {
  font-weight: 700;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--tan-light);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--tan-light);
  color: var(--walnut);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--walnut);
  color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 54rem;
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

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

.section--walnut {
  background: var(--walnut);
  color: var(--cream);
}

.section--walnut a {
  color: var(--tan-light);
}

.section--walnut a:hover {
  color: var(--white);
}

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

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.eyebrow {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.section--walnut .eyebrow {
  color: var(--tan);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--bark);
}

.section--walnut .lead {
  color: var(--tan-light);
}

.measure {
  max-width: 62ch;
}

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2--text-first .grid-2__media {
    order: 2;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  touch-action: manipulation;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 8px 20px -12px rgba(43, 45, 142, 0.6);
}

.btn--primary:hover {
  background: var(--indigo-deep);
  color: var(--white);
  box-shadow: 0 12px 24px -12px rgba(43, 45, 142, 0.7);
}

.btn--secondary {
  background: transparent;
  color: var(--walnut);
  border-color: var(--walnut);
}

.btn--secondary:hover {
  background: var(--walnut);
  color: var(--cream);
}

.btn--light {
  background: var(--cream);
  color: var(--walnut);
}

.btn--light:hover {
  background: var(--white);
  color: var(--walnut);
}

.btn--lg {
  min-height: 56px;
  padding: 0.9rem 1.8rem;
  font-size: 1.0625rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--indigo);
}

.text-link::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}

.text-link:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--tan-light);
  box-shadow: 0 6px 24px -20px rgba(59, 42, 32, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--walnut);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  background: var(--tan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-call {
  display: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--tan-light);
  background: var(--white);
  color: var(--walnut);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.icon-btn:hover {
  border-color: var(--tan);
  background: var(--sand);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn--phone {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

.icon-btn--phone:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

/* Mobile menu panel */
.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 90;
  background: var(--cream);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  margin: 0;
  border-bottom: 1px solid var(--tan-light);
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--walnut);
  text-decoration: none;
}

.mobile-nav a[aria-current="page"] {
  color: var(--indigo);
}

.mobile-nav__footer {
  color: var(--bark);
  font-size: var(--text-sm);
}

.mobile-nav__footer .btn {
  width: 100%;
  margin-bottom: 1rem;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 960px) {
  .site-header__inner {
    min-height: 84px;
  }

  .site-logo img {
    height: 58px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .site-nav {
    display: block;
  }

  .header-call {
    display: inline-flex;
  }

  .nav-toggle,
  .icon-btn--phone,
  .mobile-nav {
    display: none !important;
  }
}

/* Larger header once there is room for it */
@media (min-width: 1280px) {
  .site-header__inner {
    min-height: 100px;
  }

  .site-logo img {
    height: 70px;
  }

  .site-nav ul {
    gap: clamp(1.5rem, 2.4vw, 2.25rem);
  }

  .site-nav a {
    font-size: 1.125rem;
  }

  .header-call {
    min-height: 52px;
    padding-inline: 1.6rem;
    font-size: 1.0625rem;
  }
}

/* Mobile sticky call bar */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(247, 242, 234, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--tan-light);
}

.call-bar .btn {
  width: 100%;
}

@media (max-width: 959px) {
  body {
    padding-bottom: 76px;
  }
}

@media (min-width: 960px) {
  .call-bar {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy .lead {
  margin-top: 1.25rem;
  max-width: 54ch;
}

.hero__note {
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  color: var(--bark);
}

.hero__media {
  max-width: 30rem;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero__media {
    max-width: none;
    justify-self: end;
    width: min(100%, 34rem);
  }
}

/* Framed photo: the memorial-print device used for every photograph */
.frame {
  background: var(--white);
  padding: 10px;
  border: 1px solid var(--tan-light);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--shadow-frame);
}

.frame img {
  width: 100%;
  border-radius: calc(var(--radius) - 12px);
  object-fit: cover;
}

.frame--portrait img {
  aspect-ratio: 4 / 5;
}

.frame--landscape img {
  aspect-ratio: 4 / 3;
}

.frame--square img {
  aspect-ratio: 1 / 1;
}

.frame__caption {
  padding: 0.85rem 0.4rem 0.3rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--bark);
  line-height: 1.4;
}

.frame__caption strong {
  display: block;
  color: var(--walnut);
  font-weight: 600;
  font-size: 1.2rem;
}

.frame__caption small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--bark);
  margin-top: 0.25rem;
}

/* Home hero with a full-width photo behind the text.
   Phones: photo sits on top as a banner, text below on the page colour.
   860px and up: photo fills the hero, text sits in a panel on the right,
   clear of the dog on the left. */
.hero--photo {
  padding-block: 0;
}

.hero__bg img {
  width: 100%;
  height: clamp(240px, 76vw, 380px);
  object-fit: cover;
  object-position: left 70%;
}

.hero--photo .hero__inner {
  padding-block: 2rem 3rem;
}

@media (min-width: 860px) {
  .hero--photo {
    display: grid;
    align-items: center;
    min-height: clamp(540px, 76vh, 860px);
  }

  .hero__bg {
    position: absolute;
    inset: 0;
  }

  .hero__bg img {
    height: 100%;
    object-position: left 68%;
  }

  .hero--photo .hero__inner {
    display: flex;
    justify-content: flex-end;
    padding-block: clamp(3rem, 6vw, 5rem);
  }

  .hero__panel {
    width: min(100%, 42rem, 53vw);
    background: rgba(247, 242, 234, 0.8);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 3vw, 3rem);
    box-shadow: 0 24px 60px -28px rgba(30, 20, 12, 0.6);
  }

  .hero__panel h1 {
    font-size: clamp(2.2rem, 1.2rem + 2.1vw, 3.4rem);
  }
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--tan-light);
  border-bottom: 1px solid var(--tan-light);
  background: var(--tan-faint);
}

.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.trust__list li {
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--tan-light);
}

.trust__list li:nth-child(odd) {
  border-right: 1px solid var(--tan-light);
}

.trust__list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.trust__stat {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.trust__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--bark);
  margin-top: 0.3rem;
}

.stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: -2px;
  margin-right: 0.35rem;
  color: var(--tan);
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (min-width: 760px) {
  .trust__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust__list li {
    border-bottom: 0;
    border-right: 1px solid var(--tan-light);
    padding: 1.4rem 1rem;
  }

  .trust__list li:last-child {
    border-right: 0;
  }
}

/* ---------- Service list (editorial rows, not cards) ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tan-light);
}

.service-list li {
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--tan-light);
  display: grid;
  gap: 0.35rem 2rem;
  grid-template-columns: 1fr;
}

.service-list h3 {
  margin: 0;
  font-size: 1.3rem;
}

.service-list .price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--walnut);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.service-list .price small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--bark);
  font-weight: 600;
}

.service-list p {
  color: var(--bark);
  margin: 0;
  max-width: 60ch;
}

@media (min-width: 700px) {
  .service-list li {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title price"
      "desc price";
    align-items: start;
  }

  .service-list h3 {
    grid-area: title;
  }

  .service-list p {
    grid-area: desc;
  }

  .service-list .price {
    grid-area: price;
    text-align: right;
  }
}

/* ---------- Pricing tables ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin: 1.25rem 0 0;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--tan-light);
  vertical-align: top;
}

.price-table th {
  font-size: var(--text-xs);
  color: var(--bark);
  font-weight: 700;
  border-bottom-color: var(--tan);
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}

.price-table th:last-child {
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.price-table td small {
  display: block;
  color: var(--bark);
  font-size: var(--text-sm);
}

.pricing-block {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-top: 1px solid var(--tan-light);
}

.pricing-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pricing-block__grid {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 860px) {
  .pricing-block__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .pricing-block__grid--single {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
}

.price-callout {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--walnut);
  margin: 0.25rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

.price-callout small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bark);
  margin-top: 0.25rem;
}

.note {
  background: var(--sand);
  border-left: 3px solid var(--tan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--walnut);
  font-size: var(--text-sm);
}

.note p {
  margin: 0;
}

/* ---------- Included package ---------- */
.included {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.included__list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.included__list li {
  margin: 0;
  padding-left: 1.6rem;
  position: relative;
}

.included__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--tan);
}

@media (min-width: 860px) {
  .included {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Urn gallery ---------- */
.urn-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.urn-grid li {
  margin: 0;
}

.urn-grid figure {
  margin: 0;
}

.urn-grid figcaption {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--walnut);
  font-weight: 600;
}

.urn-grid figcaption span {
  display: block;
  color: var(--bark);
  font-weight: 400;
}

.urn-grid .frame {
  padding: 8px;
}

.urn-grid .frame img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #121212;
}

@media (min-width: 760px) {
  .urn-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ---------- Reviews ---------- */
.reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.reviews li {
  margin: 0;
}

.review {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--tan-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.review blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--walnut);
  flex: 1;
}

.review footer {
  font-size: var(--text-sm);
  color: var(--bark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--tan-faint);
  padding-top: 1rem;
}

.review footer strong {
  color: var(--walnut);
}

@media (min-width: 760px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.reviews-cta {
  margin-top: 2rem;
  text-align: center;
  color: var(--bark);
  font-size: var(--text-sm);
}

/* ---------- Memorial (Chuck) ---------- */
.memorial {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.memorial .frame {
  max-width: 34rem;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .memorial {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--walnut);
  color: var(--cream);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.cta-band .container {
  position: relative;
}

.cta-band h2 {
  color: var(--white);
  max-width: 18ch;
}

.cta-band p {
  color: var(--tan-light);
  max-width: 54ch;
}

.cta-band__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  margin: 0.5rem 0 1rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--tan);
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.cta-band__phone:hover {
  color: var(--tan-light);
  border-color: var(--tan-light);
}

.cta-band__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.cta-band__hours {
  border-left: 2px solid rgba(201, 167, 124, 0.5);
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  color: var(--tan-light);
}

.cta-band__hours dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
}

.cta-band__hours dt {
  font-weight: 700;
  color: var(--white);
}

.cta-band__hours dd {
  margin: 0;
}

@media (min-width: 860px) {
  .cta-band__grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

/* ---------- Areas we serve (home page, above the footer) ---------- */
.areas {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

.areas h2 {
  font-size: var(--text-lg);
  margin-bottom: 0.4rem;
}

.areas p {
  font-size: var(--text-sm);
  color: var(--bark);
  max-width: 80rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--tan-light);
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lead {
  max-width: 58ch;
}

/* ---------- Resources ---------- */
.resource {
  border: 1px solid var(--tan-light);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.resource + .resource {
  margin-top: 1.5rem;
}

.resource h3 {
  margin-bottom: 0.5rem;
}

.resource dl {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-size: var(--text-sm);
}

.resource dt {
  font-weight: 700;
  color: var(--bark);
}

.resource dd {
  margin: 0;
}

.resource dd a {
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.resource dd a:hover {
  text-decoration: underline;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
    align-items: start;
  }
}

.contact-details {
  display: grid;
  gap: 1.75rem;
}

.contact-details h3 {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.contact-details .big-phone {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--walnut);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.contact-details .big-phone:hover {
  color: var(--indigo);
}

.contact-details address {
  font-style: normal;
}

.hours {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.5rem;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  margin: 0;
  color: var(--bark);
}

.form {
  background: var(--white);
  border: 1px solid var(--tan-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.form__row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 0.4rem;
}

.field label span {
  font-weight: 400;
  color: var(--bark);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--walnut);
  background: var(--cream);
  border: 1.5px solid var(--tan-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(43, 45, 142, 0.18);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field__error {
  display: none;
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: 0.4rem;
  font-weight: 600;
}

.field.is-invalid .field__error {
  display: block;
}

.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form__status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: none;
}

.form__status.is-success {
  display: block;
  background: var(--sand);
  color: var(--walnut);
}

.form__status.is-error {
  display: block;
  background: #f8e4e4;
  color: var(--error);
}

.form__fine {
  margin-top: 1rem;
  font-size: var(--text-xs);
  color: var(--bark);
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--tan-light);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--text-sm);
  color: var(--bark);
}

.site-footer a {
  color: var(--walnut);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

.footer-brand img {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 34ch;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0 0 0.5rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer .hours {
  gap: 0.3rem 1rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tan-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom li {
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 2.5rem;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal h1 {
  font-size: var(--text-3xl);
}

.legal h2 {
  font-size: var(--text-xl);
  margin-top: 2.25rem;
}

.legal .updated {
  color: var(--bark);
  font-size: var(--text-sm);
  margin-bottom: 2rem;
}

.legal p,
.legal li {
  color: var(--walnut);
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}

.not-found .frame {
  max-width: 20rem;
  margin: 0 auto 2rem;
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .hero__media .frame {
  animation: hero-in 1100ms var(--ease-out) both;
}

.js .hero__copy > * {
  animation: fade-up 800ms var(--ease-out) both;
}

.js .hero__copy > :nth-child(2) {
  animation-delay: 80ms;
}

.js .hero__copy > :nth-child(3) {
  animation-delay: 160ms;
}

.js .hero__copy > :nth-child(4) {
  animation-delay: 240ms;
}

.js .hero__copy > :nth-child(5) {
  animation-delay: 320ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.frame {
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

a .frame:hover,
.urn-grid .frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -24px rgba(59, 42, 32, 0.5);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .call-bar,
  .mobile-nav,
  .cta-band,
  .site-footer .footer-bottom {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }
}

/* ---------- Wide layouts ---------- */
/* Heading on the left, content on the right, so wide screens are filled
   without stretching lines of text. */
@media (min-width: 1000px) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2.5rem, 5vw, 6rem);
  }

  .split > * {
    grid-column: 1;
    align-self: start;
  }

  .split > :nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .split > .section-head {
    margin-bottom: 1.5rem;
  }

  .split > .btn-row {
    margin-top: 0;
  }
}

.services-photo {
  max-width: 28rem;
  margin: 2.5rem 0 0;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.owners-note {
  background: var(--white);
  border: 1px solid var(--tan-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 5vw, 6rem);
  }
}

.resource-grid {
  display: grid;
  gap: 1.5rem;
}

.resource-grid .resource {
  margin-top: 0;
}

@media (min-width: 800px) {
  .resource-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.memory-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 72rem;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .memory-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* ---------- Paw prints ---------- */
/* Decorative only. Each trail sits inside a section's own top padding, or in
   the empty right side of a page heading, so it never sits behind content. */
.paws {
  position: relative;
}

.paws::before {
  content: "";
  position: absolute;
  top: 10px;
  right: var(--gutter);
  width: min(45vw, 15rem);
  height: calc(var(--section) - 20px);
  background: url("../images/paw-trail.svg") right center / contain no-repeat;
  pointer-events: none;
}

.paws--left::before {
  right: auto;
  left: var(--gutter);
  transform: scaleX(-1);
}

@media (min-width: 1100px) {
  .page-hero .container {
    position: relative;
  }

  .page-hero .container::after {
    content: "";
    position: absolute;
    right: var(--gutter);
    top: 0;
    bottom: 0;
    width: 26%;
    background: url("../images/paw-path.svg") right center / contain no-repeat;
    pointer-events: none;
  }

  /* The page heading already carries a trail here, so skip the one below it */
  .page-hero + .paws::before {
    display: none;
  }
}

@media print {
  .paws::before,
  .page-hero .container::after {
    display: none;
  }
}
