/* Devoted Pet Bereavement — Warm Sanctuary
   Palette + type from Brand-and-Voice-Guide.md */

:root {
  --ivory:      #F6F1E7;
  --olive:      #34372B;
  --sage:       #9CAA88;
  --honey:      #C2A05A;
  --stone:      #CBBBA3;
  --rose:       #D6B2A6;
  --ivory-deep: #EFE7D6;
  --olive-soft: #5A5E4D;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--olive);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--olive);
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0 0 .6rem; }
h3 { font-size: 1.3rem; margin: 0 0 .4rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--olive); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,231,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ivory-deep);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.5rem; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand .mark { height: 50px; width: auto; display: block; }
.brand .wordmark { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.brand .name { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 400; color: var(--olive); }
.brand .sub { font-family: "Mulish", sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-soft); margin-top: .22rem; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .98rem; color: var(--olive-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--olive); }
.nav-cta {
  background: var(--olive); color: var(--ivory) !important;
  padding: .55rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { background: #2a2c22; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
  align-items: center; padding-block: 4.5rem 4rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin: 0 0 1.2rem; font-weight: 400;
}
.hero .lede { font-size: 1.22rem; color: var(--olive-soft); }
.hero-img {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(52,55,43,.16);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  padding: .85rem 1.7rem; border-radius: 999px; font-weight: 600;
  font-size: 1rem; border: 1.5px solid var(--olive);
  transition: all .2s;
}
.btn-primary { background: var(--olive); color: var(--ivory); }
.btn-primary:hover { background: #2a2c22; border-color: #2a2c22; }
.btn-ghost { background: transparent; color: var(--olive); margin-left: .6rem; }
.btn-ghost:hover { background: var(--ivory-deep); }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-tight { padding: 2.8rem 0; }
.center { text-align: center; }
.measure { max-width: 680px; margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: "Mulish", sans-serif; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  color: var(--honey); margin: 0 0 .6rem;
}

.band { background: var(--ivory-deep); }
.band-olive { background: var(--olive); color: var(--ivory); }
.band-olive h2, .band-olive h3 { color: var(--ivory); }
.band-olive .eyebrow { color: var(--stone); }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about-img { border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(52,55,43,.14); }
.about-img img { width: 100%; display: block; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.2rem; }
.card {
  background: var(--ivory); border: 1px solid var(--ivory-deep);
  border-radius: 14px; padding: 1.8rem 1.6rem;
}
.card .ic { width: 36px; height: 36px; margin-bottom: .9rem; display: block; color: var(--honey); }
.card p { margin: 0; color: var(--olive-soft); font-size: 1rem; }

/* Steps */
#expect { padding-bottom: 6.5rem; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 2.4rem; counter-reset: step; }
.step { position: relative; padding-left: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--sage); color: var(--ivory);
  display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 1.1rem;
}
.step p { font-size: 1rem; color: var(--olive-soft); margin: 0; }

/* Quote */
.quote { text-align: center; }
.quote blockquote {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.45;
  max-width: 760px; margin: 0 auto; color: var(--ivory);
}
.quote .dandelion { width: 64px; opacity: .8; margin: 0 auto 1.4rem; display: block; }

/* Blog teaser / list */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; margin-top: 2.2rem; }
.post-card {
  display: block; text-decoration: none; background: var(--ivory);
  border: 1px solid var(--ivory-deep); border-radius: 14px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(52,55,43,.12); }
.post-card .thumb { height: 150px; background: var(--stone); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.2rem 1.3rem 1.5rem; }
.post-card .date { font-size: .8rem; letter-spacing: .04em; color: var(--honey); text-transform: uppercase; }
.post-card h3 { margin: .3rem 0 .4rem; font-size: 1.2rem; }
.post-card p { font-size: .95rem; color: var(--olive-soft); margin: 0; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
form { display: grid; gap: 1.1rem; }
label { font-size: .9rem; font-weight: 700; color: var(--olive); display: block; margin-bottom: .35rem; }
input, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--olive);
  background: var(--ivory); border: 1.5px solid var(--stone);
  border-radius: 10px; padding: .8rem .9rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--honey); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--olive-soft); }

/* Footer */
.site-footer { background: var(--olive); color: var(--stone); padding: 3rem 0 2rem; }
.site-footer .brand .mark { height: 50px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer .brand .name { color: var(--ivory); }
.site-footer .brand .sub { color: var(--stone); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--ivory); }
.footer-fine { margin-top: 2rem; font-size: .82rem; opacity: .7; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.article .date { color: var(--honey); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.article h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: .4rem 0 1.4rem; }
.article h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.article img.lead { width: 100%; border-radius: 14px; margin: 1.5rem 0 2rem; }
.back-link { display: inline-block; margin: 1rem 0 0; text-decoration: none; color: var(--olive-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  .hero-img { order: -1; max-height: 360px; }
  .about { grid-template-columns: 1fr; }
  .about-img { max-height: 340px; }
  .cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 0; }

  /* Reflections: horizontal swipe strip on small screens */
  .posts {
    display: flex; gap: 1rem; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: .75rem;
    /* let cards reach the screen edges while staying aligned to the page gutter */
    margin-inline: -1.5rem; padding-inline: 1.5rem;
    scroll-padding-left: 1.5rem;
    scrollbar-width: thin;
  }
  .posts .post-card { flex: 0 0 80%; scroll-snap-align: start; }
}
