/* ==========================================================================
   EverPaw Memorials - site styles
   Design notes: warm paper palette, editorial serif headings, no purple/blue
   gradients, no nested cards, no icon tiles. Edit the tokens below to rebrand.
   ========================================================================== */

:root {
  /* ---- brand tokens: change these to rebrand the whole site ---------- */
  --ink:        #1b1917;
  --ink-soft:   #55504a;
  --ink-faint:  #857e75;
  --paper:      #fbf8f4;
  --paper-2:    #f3ece2;
  --paper-3:    #eae0d2;
  --line:       #ddd3c5;
  --clay:       #a05c3f;
  --clay-deep:  #7d452d;
  --sage:       #6c7a62;
  --white:      #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "SimSun", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", sans-serif;

  --wrap: 1120px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(27, 25, 23, .05), 0 12px 32px -20px rgba(27, 25, 23, .35);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

/* ------------------------------------------------------------- type ----- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
h4 { font-size: 1.02rem; line-height: 1.35; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1.05em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .726rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--clay); font-weight: 600; margin: 0 0 .9rem;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .89rem; color: var(--ink-faint); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 244, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.2rem; text-decoration: none; letter-spacing: .01em;
}
.wordmark span.mark { color: var(--clay); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .93rem; color: var(--ink-soft);
  padding: 9px 13px; border-radius: var(--radius);
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .nav-cta { margin-left: 8px; color: var(--white); background: var(--clay); font-weight: 600; }
.nav .nav-cta:hover { background: var(--clay-deep); color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 11px; cursor: pointer; color: var(--ink);
}

/* --------------------------------------------------------------- hero --- */
.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(46px, 7vw, 84px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: .2rem; }
.hero-art { position: relative; }
.hero-art .frame {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.hero-note {
  margin-top: 18px; display: flex; gap: 10px; align-items: flex-start;
  font-size: .87rem; color: var(--ink-soft);
}

/* ------------------------------------------------------------ sections -- */
.band { border-top: 1px solid var(--line); }
.section { padding: clamp(42px, 6vw, 74px) 0; }
.section-head { max-width: 68ch; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2 { margin-bottom: .6rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4.5vw, 64px); }

/* -------------------------------------------------------------- grids --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 38px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 38px); }

/* product / feature item: hairline top rule, no boxed card */
.item { padding-top: 20px; border-top: 1px solid var(--line); }
.item .thumb {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 16px; overflow: hidden;
}
.item .thumb svg { width: 62%; height: 62%; }
.item .thumb img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.item:hover .thumb img { transform: scale(1.035); }
.item h3 { margin-bottom: .35rem; }
.item p { font-size: .94rem; color: var(--ink-soft); margin-bottom: .5rem; }
.price { font-size: .9rem; color: var(--clay-deep); font-weight: 600; }

/* numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 38px); }
.step { padding-top: 20px; border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--clay); margin-bottom: .5rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* definition list used on services page */
.spec { border-top: 1px solid var(--line); }
.spec .row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: .93rem; }
.spec dd { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* pull quote / promise */
.promise {
  background: var(--paper-2); border-left: 3px solid var(--clay);
  padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0;
}
.promise p { font-family: var(--serif); font-size: 1.14rem; margin: 0; }

/* long-form brand story: narrow measure, serif, generous leading */
.story { max-width: 60ch; }
.story p {
  font-family: var(--serif); font-size: 1.16rem; line-height: 1.72;
  color: var(--ink); margin: 0 0 1.15em;
}
.story p.story-pivot { margin-top: 1.8em; }
.story p.story-turn { font-size: 1.32rem; margin-top: .3em; margin-bottom: 0; color: var(--clay-deep); }

/* homepage teaser of the brand story */
.story-teaser { max-width: 34ch; }
.story-teaser p {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.6; margin: 0 0 .9em;
}
.story-teaser p:last-child { color: var(--clay-deep); margin-bottom: 0; }

/* trust strip: four factual signals under the hero */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 20px 22px; border-left: 1px solid var(--line); }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.trust span { font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.compare thead th {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 12px;
}
.compare tbody th { font-weight: 600; font-size: .94rem; color: var(--ink); width: 34%; }
.compare td.ours { color: var(--clay-deep); font-weight: 600; }
.compare td.theirs { color: var(--ink-faint); }

/* guide / resource cards: plain columns, hairline rule on top */
.guide { padding-top: 18px; border-top: 2px solid var(--ink); }
.guide h3 { margin-bottom: .45rem; }
.guide p { font-size: .94rem; color: var(--ink-soft); }

/* sticky mobile action bar */
.cta-bar { display: none; }
@media (max-width: 900px) {
  body.has-cta-bar { padding-bottom: 84px; }
  .cta-bar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 244, .96);
    border-top: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(10px);
  }
  .cta-bar .btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: .9rem; }
  .cta-bar .btn-primary { flex: 1.35; }
}

@media (max-width: 900px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li { padding: 16px 18px; }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 620px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust li:first-child { border-top: 0; }
  .compare th, .compare td { padding-right: 10px; font-size: .88rem; }
  .compare tbody th { width: 40%; }
}

/* check list */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 26px; margin-bottom: .55rem; font-size: .95rem; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border-left: 1.5px solid var(--clay); border-bottom: 1.5px solid var(--clay);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ faq -- */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; font-size: .97rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--serif); font-size: 1.3rem; color: var(--clay); line-height: 1; }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 0 18px; color: var(--ink-soft); font-size: .95rem; max-width: 78ch; }

/* --------------------------------------------------------------- forms -- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .87rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay);
}
.form-note { font-size: .84rem; color: var(--ink-faint); }
.form-status { font-size: .9rem; color: var(--sage); min-height: 1.3em; }

/* contact side panel */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 3px; }
.contact-list a { color: var(--clay-deep); text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- footer -- */
.site-footer { background: var(--ink); color: #d8d2ca; margin-top: 8px; }
.site-footer .wrap { padding-top: 52px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--paper); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #d8d2ca; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brandline { font-family: var(--serif); font-size: 1.15rem; color: var(--paper); margin-bottom: .6rem; }
.site-footer .about { font-size: .92rem; color: #b6afa6; max-width: 42ch; }
.footer-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: #a49d94;
}

/* --------------------------------------------------------------- misc --- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover { transform: none; }
}

/* -------------------------------------------------------------- mobile -- */
@media (max-width: 900px) {
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; justify-content: center; border-bottom: 0; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec .row { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .site-header, .site-footer, .btn-row { display: none; }
  body { background: #fff; }
}
