/* ==========================================================================
   Pets @ Rest — Design System
   Palette pulled directly from the brand mark and hero photography:
   ink (line-art charcoal-green), mauve (logo accent), gold (sunset), cream (paper)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink: #17251c;
  --ink-soft: #3f4a41;
  --mauve: #8b7c99;
  --mauve-deep: #695b78;
  --gold: #c79a5c;
  --gold-deep: #a97e42;
  --cream: #fbf7f0;
  --cream-deep: #f1e8db;
  --white: #ffffff;
  --line: rgba(23, 37, 28, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--mauve-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  display: inline-block;
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--mauve-deep);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 247, 240, 0.55);
}
.btn-ghost:hover { background: rgba(251, 247, 240, 0.12); color: var(--cream); border-color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--mauve-deep); }
.main-nav a[aria-current="page"] { color: var(--mauve-deep); }
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 37, 28, 0.1);
  min-width: 190px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--cream-deep); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.header-phone svg { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(23,20,15,0.78) 0%, rgba(23,20,15,0.32) 46%, rgba(23,20,15,0.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 68px;
  width: 100%;
}
.hero-content .eyebrow { color: var(--cream); opacity: 0.85; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; color: rgba(251,247,240,0.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

/* smaller inner-page hero (photo strip, not full height) */
.page-hero {
  min-height: 42vh;
}
.page-hero .hero-content { padding: 52px 24px; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-deep { background: var(--cream-deep); }
.bg-ink { background: var(--ink); color: rgba(251,247,240,0.9); }
.bg-ink h2, .bg-ink h3 { color: var(--cream); }
.bg-ink .eyebrow { color: var(--gold); }
.bg-ink a:not(.btn) { color: var(--gold); }

.section-head { max-width: 62ch; margin-bottom: 2.6em; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Line divider (signature motif) ---------- */
/* A single continuous line, echoing the logo's line-art dog + cat curled together —
   used quietly as a section transition, never as decoration for its own sake. */

.line-divider {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  color: var(--mauve);
  opacity: 0.75;
}
.line-divider svg { width: 120px; height: 28px; }

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step { position: relative; padding-left: 0; }
.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3em;
  display: block;
}
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(23, 37, 28, 0.08);
  border-color: var(--mauve);
}
.service-card .icon { width: 40px; height: 40px; color: var(--mauve-deep); margin-bottom: 18px; }
.service-card h3 { margin-bottom: 0.35em; }
.service-card p { font-size: 0.95rem; margin-bottom: 0.6em; }
.service-card .card-link { font-size: 0.88rem; font-weight: 700; color: var(--gold-deep); }

/* ---------- Two column ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--radius); }
.split.reverse .split-media { order: 2; }

/* ---------- Pricing table ---------- */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.pricing-table thead th {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  background: var(--cream-deep);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.pricing-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

/* ---------- Product cards (urns) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card .product-media {
  aspect-ratio: 1;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mauve);
}
.product-card .product-media svg { width: 46px; height: 46px; }
.product-card-body { padding: 18px 20px; }
.product-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin: 0 0 4px; color: var(--ink); }
.product-card .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-deep); }

/* ---------- FAQ accordion ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-question .plus {
  flex: none;
  width: 20px; height: 20px;
  position: relative;
}
.faq-question .plus::before, .faq-question .plus::after {
  content: '';
  position: absolute;
  background: var(--mauve-deep);
  transition: transform 0.25s ease;
}
.faq-question .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-question .plus::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item[open] .faq-question .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 68ch;
}
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Callout / bereavement band ---------- */

.callout {
  background: var(--mauve);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.callout h2, .callout p { color: var(--cream); }
.callout .eyebrow { color: rgba(251,247,240,0.85); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.info-block { margin-bottom: 2em; }
.info-block h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.info-block p { margin-bottom: 0.2em; color: var(--ink-soft); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--mauve);
  outline: none;
}
.form-status { margin-top: 14px; font-size: 0.92rem; }
.form-status[data-state="success"] { color: #3f6b46; }
.form-status[data-state="error"] { color: #a2453a; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(251,247,240,0.78);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.5em;
}
.footer-tag { font-size: 0.9rem; color: var(--mauve); margin-bottom: 1.2em; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1em;
}
.footer-col a {
  display: block;
  color: rgba(251,247,240,0.78);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.7em;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(251,247,240,0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(251,247,240,0.55);
}
.footer-bottom a { color: rgba(251,247,240,0.55); }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.9rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone span.phone-label { display: none; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .split-media { order: -1 !important; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 60px 0; }
  .callout { padding: 40px 24px; }
}

@media (max-width: 560px) {
  .card-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .pricing-table th, .pricing-table td { padding: 12px 14px; font-size: 0.88rem; }
}

/* ---------- Mobile nav panel ---------- */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-nav-close { background: none; border: none; color: var(--cream); cursor: pointer; padding: 6px; }
.mobile-nav-close svg { width: 26px; height: 26px; }
.mobile-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(251,247,240,0.14);
}
.mobile-nav .sub-links { padding-left: 16px; }
.mobile-nav .sub-links a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; padding: 10px 0; border: none; }
.mobile-nav-phone { margin-top: 24px; }
