/* ============================================================
   Mini Island Doodles — Component Library Stylesheet
   Loaded after style.css; contains section-specific patterns
   that Elementor pages compose from HTML widgets.
   ============================================================ */

/* ---------- container utility ---------- */
.mid-container {
  max-width: var(--mid-w-container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- shared section padding ---------- */
.mid-section { padding: var(--mid-pad-section) 0; }
@media (max-width: 767px) {
  .mid-section { padding: var(--mid-pad-section-mobile) 0; }
}

/* ============== HERO (centered text-only) ============== */
.mid-hero { text-align: center; padding: 110px 0 110px; }
.mid-hero-logo {
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
}
.mid-hero-logo img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .mid-hero-logo img { max-width: 280px; height: auto; }
}
.mid-hero h1 { margin: 0 auto 24px; max-width: 800px; }
.mid-hero .lead { margin: 0 auto 38px; max-width: 720px; font-size: 1.1rem; color: var(--mid-text); }
.mid-hero .mid-cta-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 767px) {
  .mid-hero { padding: 80px 0 70px; }
  .mid-hero .mid-cta-row { flex-direction: column; align-items: stretch; }
  .mid-hero .mid-btn { width: 100%; }
}

/* ============== HERO (small page-hero) ============== */
.mid-hero-small { text-align: center; padding: 90px 0 60px; }
.mid-hero-small h1 { margin: 0 auto 18px; max-width: 760px; }
.mid-hero-small .lead { max-width: 620px; margin: 0 auto 24px; color: var(--mid-text-soft); }
@media (max-width: 767px) { .mid-hero-small { padding: 60px 0 40px; } }

/* ============== HERO (full-bleed image) ============== */
/* Pattern: full-viewport-width hero image with title + lead overlaid in a soft scrim. */
.mid-hero-image {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  height: clamp(360px, 56vw, 640px);
  overflow: hidden;
  background: var(--mid-bg);
  color: var(--mid-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Variant: hero with logo + text + image (homepage) — text LEFT-aligned
   so the dog photo on the right side stays visible and uncovered.
   Auto-height; tuned so all content (logo + headline + lead + CTAs) fits
   above the fold on a typical 900px-tall laptop viewport. */
.mid-hero-image.with-logo {
  height: auto;
  min-height: clamp(580px, 60vw, 720px);
  justify-content: flex-start;
  text-align: left;
  padding: clamp(28px, 3.5vw, 50px) 0 clamp(36px, 4vw, 56px);
  align-items: center;
}
/* Asymmetric scrim: heavier on the LEFT side where text lives,
   lighter on the right where the dog photo lives.
   Wider text column means we push the cream wash a bit further right. */
.mid-hero-image.with-logo > .bg::after {
  background:
    linear-gradient(90deg,
      rgba(244,239,233,0.92) 0%,
      rgba(244,239,233,0.85) 35%,
      rgba(244,239,233,0.55) 55%,
      rgba(244,239,233,0.25) 78%,
      rgba(244,239,233,0.10) 100%
    );
}
.mid-hero-image.with-logo > .mid-container {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  max-width: 720px;
  padding-left: clamp(28px, 6vw, 80px);
  padding-right: 28px;
}
.mid-hero-image.with-logo .mid-hero-logo {
  margin: 0 0 18px;
  justify-content: flex-start;
}
.mid-hero-image.with-logo .mid-hero-logo img {
  height: clamp(100px, 12vw, 160px) !important;
  filter: drop-shadow(0 2px 8px rgba(244,239,233,0.85)) drop-shadow(0 0 16px rgba(244,239,233,0.6));
}
.mid-hero-image.with-logo .mid-eyebrow {
  text-shadow: 0 1px 4px rgba(244,239,233,0.95), 0 0 12px rgba(244,239,233,0.6);
}
.mid-hero-image.with-logo h1 {
  margin: 0 0 18px;
  text-align: left;
  max-width: 640px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-shadow: 0 1px 4px rgba(244,239,233,0.95), 0 0 12px rgba(244,239,233,0.6);
}
.mid-hero-image.with-logo p.lead {
  margin: 0 0 22px;
  max-width: 580px;
  text-shadow: 0 1px 3px rgba(244,239,233,0.9);
}
.mid-hero-image.with-logo .italic-accent {
  text-shadow: 0 1px 3px rgba(244,239,233,0.9);
}
.mid-hero-image.with-logo .gold-wave,
.mid-hero-image.with-logo .paw-divider {
  margin-left: 0;
  margin-right: auto;
}
.mid-hero-image.with-logo .mid-cta-row {
  justify-content: flex-start;
}
@media (max-width: 767px) {
  /* On mobile, the photo fills the whole hero; revert to centered text
     with a stronger top-bottom W gradient so it reads over any part of the photo. */
  .mid-hero-image.with-logo {
    height: auto; min-height: 480px; padding: 40px 0;
    justify-content: center; text-align: center;
  }
  .mid-hero-image.with-logo > .bg::after {
    background: linear-gradient(180deg,
      rgba(244,239,233,0.85) 0%,
      rgba(244,239,233,0.65) 35%,
      rgba(244,239,233,0.55) 60%,
      rgba(244,239,233,0.85) 100%
    );
  }
  .mid-hero-image.with-logo > .mid-container {
    margin: 0 auto; text-align: center; max-width: 100%;
    padding: 0 24px;
  }
  .mid-hero-image.with-logo .mid-hero-logo { justify-content: center; }
  .mid-hero-image.with-logo .mid-hero-logo img { height: 100px !important; }
  .mid-hero-image.with-logo h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin: 0 auto 18px; max-width: 100%; text-align: center; }
  .mid-hero-image.with-logo p.lead { font-size: 0.95rem; max-width: 100%; margin: 0 auto 22px; }
  .mid-hero-image.with-logo .gold-wave,
  .mid-hero-image.with-logo .paw-divider { margin: 0 auto; }
  .mid-hero-image.with-logo .mid-cta-row { justify-content: center; }
}
.mid-hero-image > .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.mid-hero-image > .bg::after {
  content: '';
  position: absolute; inset: 0;
  /* W-shaped vertical wash: heavier at top + bottom (where text/buttons sit),
     lighter in the middle (where the photo's subject reads). */
  background: linear-gradient(180deg,
    rgba(244,239,233,0.65) 0%,
    rgba(244,239,233,0.45) 35%,
    rgba(244,239,233,0.45) 65%,
    rgba(244,239,233,0.85) 100%
  );
}
/* Text legibility on every image hero */
.mid-hero-image .mid-eyebrow,
.mid-hero-image .article-eyebrow {
  /* Switch from gold (low contrast on photo) to deep taupe + thicker weight.
     Keep an accent line above as a thin gold rule for brand. */
  color: var(--mid-text);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(244,239,233,0.95);
  position: relative;
  display: inline-block;
}
.mid-hero-image .mid-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--mid-gold);
  margin: 0 auto 12px;
  opacity: 0.85;
}
.mid-hero-image h1 {
  text-shadow: 0 1px 4px rgba(244,239,233,0.95), 0 0 12px rgba(244,239,233,0.55);
}
.mid-hero-image p.lead,
.mid-hero-image .italic-accent {
  text-shadow: 0 1px 3px rgba(244,239,233,0.92);
}
/* Tagline (italic accent) on hero photos: switch from gold to deep taupe italic
   so it actually reads. Cursive script can stay gold elsewhere. */
.mid-hero-image .italic-accent {
  color: var(--mid-text);
  text-shadow: 0 1px 4px rgba(244,239,233,0.98), 0 0 12px rgba(244,239,233,0.7);
}
/* Tertiary link "→" buttons on cream backgrounds — bump contrast */
.mid-btn-tertiary {
  color: var(--mid-text) !important;
  border-bottom-color: var(--mid-gold) !important;
  font-weight: 700;
}
.mid-btn-tertiary:hover {
  color: var(--mid-gold) !important;
}
/* Hero CTA row — spacing between buttons */
.mid-hero-image .mid-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 32px;
}
@media (max-width: 600px) {
  .mid-hero-image .mid-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .mid-hero-image .mid-cta-row .mid-btn { width: 100%; }
}
.mid-hero-image > .mid-container { position: relative; z-index: 2; max-width: 920px; padding: 50px 28px; }
.mid-hero-image .mid-eyebrow { color: var(--mid-text); display: block; margin-bottom: 14px; }
.mid-hero-image h1 {
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 auto 18px;
  color: var(--mid-text);
  max-width: 800px;
  text-shadow: 0 1px 2px rgba(244,239,233,0.6);
}
.mid-hero-image p.lead {
  margin: 0 auto 22px;
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--mid-text);
}
@media (max-width: 767px) {
  .mid-hero-image { height: clamp(320px, 80vw, 520px); }
}

/* ============== INLINE / ACCENT IMAGE BANDS (full-bleed within content) ============== */
.mid-accent-image {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: 60px;
  margin-bottom: 60px;
  height: clamp(280px, 38vw, 440px);
  overflow: hidden;
  background: var(--mid-bg);
}
.mid-accent-image > .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
@media (max-width: 767px) {
  .mid-accent-image { height: clamp(240px, 60vw, 360px); margin-top: 36px; margin-bottom: 36px; }
}

/* ============== EYEBROW + section heading ============== */
.mid-eyebrow {
  display: block;
  font-family: var(--mid-f-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid-gold);
  margin-bottom: 18px;
}
.mid-section-head { text-align: center; margin-bottom: 64px; }
.mid-section-head h2 { margin-bottom: 18px; }
.mid-section-head p { max-width: 620px; margin: 0 auto; color: var(--mid-text-soft); }

/* ============== TWO-COLUMN ============== */
.mid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mid-gap-col);
  align-items: center;
}
.mid-two-col img {
  width: 100%; height: auto;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.mid-two-col .col-text { text-align: left; }
.mid-two-col .col-text p { max-width: none; }
@media (max-width: 767px) {
  .mid-two-col { grid-template-columns: 1fr; gap: 40px; }
  .mid-two-col.reverse-mobile > div:first-child { order: 2; }
}

/* ============== 2x2 grid (Our Standards / What Comes Home) — Health-Guarantee style ============== */
.mid-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 70px;
  max-width: 920px;
  margin: 0 auto;
}
.mid-grid-2x2 .item { text-align: center; padding: 0 8px; }
.mid-grid-2x2 .icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mid-text);
  color: var(--mid-gold);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(58, 51, 44, 0.10);
  transition: transform 0.25s ease;
}
.mid-grid-2x2 .item:hover .icon { transform: translateY(-2px) scale(1.03); }
.mid-grid-2x2 .icon svg { width: 36px; height: 36px; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mid-grid-2x2 h4 {
  margin: 0 0 14px;
  font-family: var(--mid-f-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mid-gold);
}
.mid-grid-2x2 p { color: var(--mid-text); max-width: 360px; margin: 0 auto; font-size: 0.96rem; line-height: 1.65; }
@media (max-width: 640px) {
  .mid-grid-2x2 { grid-template-columns: 1fr; gap: 50px; }
}

/* Variant: side-by-side icon + text (Health Guarantee 2-col list pattern) */
.mid-grid-2col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
  max-width: 1000px;
  margin: 0 auto;
}
.mid-grid-2col-list .item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(58, 51, 44, 0.08);
}
.mid-grid-2col-list .icon {
  width: 56px; height: 56px;
  background: var(--mid-text);
  color: var(--mid-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.mid-grid-2col-list .icon svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.mid-grid-2col-list h4 {
  margin: 0 0 8px;
  font-family: var(--mid-f-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid-gold);
}
.mid-grid-2col-list p, .mid-grid-2col-list ul {
  color: var(--mid-text);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.65;
}
.mid-grid-2col-list ul { padding-left: 18px; }
.mid-grid-2col-list ul li { margin-bottom: 6px; }
@media (max-width: 767px) {
  .mid-grid-2col-list { grid-template-columns: 1fr; gap: 30px; }
}

/* ============== TRUST BAND ============== */
.mid-trust-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(58, 51, 44, 0.08);
  border-bottom: 1px solid rgba(58, 51, 44, 0.08);
}
.mid-trust-band .trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mid-trust-band .trust-icon { color: var(--mid-gold); width: 28px; height: 28px; }
.mid-trust-band .trust-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mid-trust-band .trust-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mid-text); font-weight: 600; }

/* ============== CENTERED NARRATIVE ============== */
.mid-centered-narrative { text-align: center; max-width: 720px; margin: 0 auto; }
.mid-centered-narrative p { max-width: var(--mid-w-paragraph); margin: 0 auto var(--mid-space-paragraph); color: var(--mid-text); }
.mid-centered-narrative .gold-wave { margin: 24px auto 28px; }

/* ============== CTA BAND ============== */
.mid-cta-band { text-align: center; padding: 110px 0; }
.mid-cta-band h2 { margin-bottom: 20px; }
.mid-cta-band p { margin: 0 auto 38px; max-width: 620px; color: var(--mid-text-soft); }
.mid-cta-band .gold-wave { margin: 28px auto 0; }

/* ============== BUTTONS (utility — for use inside HTML widgets) ============== */
.mid-btn {
  display: inline-block;
  font-family: var(--mid-f-body) !important;
  font-weight: 600 !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
/* Primary: gold bg + TAUPE text.
   Cream-on-gold was ~1.3:1 (fails everything). Taupe-on-gold = ~9.3:1 (AAA pass)
   and reads as a more sophisticated editorial pairing. */
.mid-btn.mid-btn-primary,
a.mid-btn.mid-btn-primary,
.mid-cta-band .mid-btn-primary {
  background: var(--mid-gold) !important;
  color: var(--mid-text) !important;
  border-color: var(--mid-gold);
}
.mid-btn.mid-btn-primary:hover,
a.mid-btn.mid-btn-primary:hover {
  background: var(--mid-gold-hover) !important;
  color: var(--mid-text) !important;
  border-color: var(--mid-gold-hover);
}
.mid-btn.mid-btn-secondary,
a.mid-btn.mid-btn-secondary {
  background: transparent !important;
  color: var(--mid-text) !important;
  border-color: var(--mid-text);
}
.mid-btn.mid-btn-secondary:hover,
a.mid-btn.mid-btn-secondary:hover {
  background: var(--mid-text) !important;
  color: var(--mid-bg) !important;
}
.mid-btn.mid-btn-tertiary,
a.mid-btn.mid-btn-tertiary {
  background: transparent !important;
  /* Taupe text + gold underline — readable on cream (12:1) with the gold staying as ornament */
  color: var(--mid-text) !important;
  font-weight: 700 !important;
  padding: 6px 0;
  border: none;
  border-bottom: 1px solid var(--mid-gold) !important;
  border-radius: 0;
}
.mid-btn.mid-btn-tertiary:hover,
a.mid-btn.mid-btn-tertiary:hover {
  color: var(--mid-gold) !important;
  border-bottom-color: var(--mid-gold) !important;
}

/* ============== SINGLE FAMILY ALBUM ENTRY ============== */
.mid-album-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.mid-album-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--mid-leaf);
}
.mid-album-gallery figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.mid-album-gallery figure:hover img { transform: scale(1.03); }
.mid-album-gallery figure:nth-child(3n+1) { grid-row: span 2; }  /* simple masonry effect */

.mid-album-quote {
  border: none;
  margin: 0 auto;
  padding: 30px 0;
  max-width: 720px;
  font-family: var(--mid-f-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--mid-text);
  text-align: center;
  position: relative;
}
.mid-album-quote::before,
.mid-album-quote::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--mid-gold);
  margin: 0 auto;
}
.mid-album-quote::before { margin-bottom: 24px; }
.mid-album-quote::after  { margin-top: 24px; }

@media (max-width: 768px) {
  .mid-album-gallery figure:nth-child(3n+1) { grid-row: span 1; }
}

/* ============== FACEBOOK CTA (Family Album / social) ============== */
.mid-fb-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 30px;
  background: var(--mid-text);
  color: var(--mid-bg);
  font-family: var(--mid-f-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid var(--mid-text);
}
.mid-fb-cta:hover {
  background: var(--mid-gold);
  color: var(--mid-bg);
  border-color: var(--mid-gold);
  transform: translateY(-1px);
}
.mid-fb-cta svg { transition: transform 0.25s ease; }
.mid-fb-cta:hover svg { transform: scale(1.1); }

/* ============== BETWEEN-LITTERS EMPTY STATE ============== */
.mid-empty-state {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 28px;
  background: var(--mid-bg-soft);
  border: 1px solid rgba(58, 51, 44, 0.08);
  border-radius: 6px;
}
.mid-empty-state .mid-eyebrow {
  display: block;
  margin-bottom: 16px;
}
.mid-empty-state h3 {
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 18px;
  letter-spacing: 0.015em;
}
.mid-empty-state p {
  color: var(--mid-text-soft);
  margin: 0 auto 26px;
  max-width: 500px;
}
.mid-empty-state .paw-divider {
  margin: 28px auto;
}
.mid-empty-state .mid-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .mid-empty-state { padding: 50px 24px; }
  .mid-empty-state .mid-cta-row { flex-direction: column; align-items: stretch; }
  .mid-empty-state .mid-btn { width: 100%; }
}

/* ============== TESTIMONIALS (with circular avatars) ============== */
.mid-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}
.mid-testimonial {
  text-align: center;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mid-testimonial .testimonial-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  border: 3px solid var(--mid-gold);
  box-shadow: 0 8px 24px rgba(58, 51, 44, 0.10);
  background: var(--mid-bg-soft);
  flex-shrink: 0;
}
.mid-testimonial .testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mid-testimonial .quote-mark {
  font-family: var(--mid-f-heading);
  font-style: italic;
  font-size: 3.2rem;
  /* Decorative watermark glyph — gold at low opacity reads as ornament, not content. */
  color: var(--mid-gold);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 6px;
}
.mid-testimonial blockquote {
  margin: 0 0 18px;
  font-family: var(--mid-f-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--mid-text);
}
.mid-testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* Was --mid-gold (~2.4:1 fail). Taupe + the gold rule above (::before) keeps brand. */
  color: var(--mid-text);
  font-weight: 700;
}
.mid-testimonial cite::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--mid-gold);
  margin: 0 auto 10px;
}

/* ============== FAMILY ALBUM mosaic (overrides shortcode default) ============== */
.family-album-grid figure img { transition: transform 0.4s ease; }
.family-album-grid figure:hover img { transform: scale(1.02); }

/* ============== FOOTER (3-column) — full-width edge-to-edge dark band ============== */
.mid-footer {
  background: var(--mid-text);
  color: var(--mid-bg);
  padding: 80px 0 40px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.mid-footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.mid-footer-logo img {
  height: 130px;
  width: auto;
  filter: brightness(0) invert(1);             /* logo → white */
  opacity: 0.85;                                /* softened to ivory feel on dark bg */
}
.mid-footer h4 {
  color: var(--mid-bg);
  font-family: var(--mid-f-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.mid-footer-cols {
  display: grid;
  /* 2 columns total: address (left) + a 2-col nested grid of link lists (right) */
  grid-template-columns: 1.2fr 1.6fr;
  gap: 60px;
  margin-bottom: 40px;
}
/* Wrap the two nav columns (Get Started + Our Program) so they sit side-by-side in col 2 */
.mid-footer-nav-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.mid-footer-col h5 {
  color: var(--mid-gold);
  font-family: var(--mid-f-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.mid-footer-col ul { list-style: none; padding: 0; margin: 0; }
.mid-footer-col li { margin-bottom: 10px; }
.mid-footer-col a {
  color: rgba(244, 239, 233, 0.78);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.mid-footer-col a:hover { color: var(--mid-bg); }
.mid-footer-col p {
  color: rgba(244, 239, 233, 0.78);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.mid-footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(244, 239, 233, 0.1);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 233, 0.5);
  text-transform: uppercase;
}
.mid-footer-credit {
  text-align: center;
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.32);
  font-family: var(--mid-f-body);
}
.mid-footer-credit a {
  color: rgba(244, 239, 233, 0.55);
  border-bottom: 1px solid rgba(244, 239, 233, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mid-footer-credit a:hover {
  color: var(--mid-gold-hover);
  border-bottom-color: var(--mid-gold-hover);
}
.mid-footer-tagline {
  text-align: center;
  margin-bottom: 40px;
}
.mid-footer-tagline .italic-accent {
  color: var(--mid-gold-hover);
  font-size: 1.1rem;
}
@media (max-width: 767px) {
  .mid-footer-cols { grid-template-columns: 1fr; gap: 36px; text-align: center; }
}

/* ============== HEADER ============== */
.mid-header {
  padding: 24px 0;
  border-bottom: 1px solid rgba(58, 51, 44, 0.08);
  background: var(--mid-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mid-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.mid-header-logo img {
  height: 70px;
  width: auto;
  display: block;
}
.mid-header-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.mid-header-nav > li > a {
  color: var(--mid-text);
  font-family: var(--mid-f-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.mid-header-nav > li > a:hover { border-bottom-color: var(--mid-gold); }
.mid-header-nav .current-menu-item > a,
.mid-header-nav .current_page_item > a { border-bottom-color: var(--mid-gold); }

/* dropdown submenu — fixed: invisible-padding bridge prevents hover gap */
.mid-header-nav .menu-item-has-children { position: relative; }
.mid-header-nav .menu-item-has-children > a { padding-bottom: 14px; }   /* extends hover area downward */
.mid-header-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--mid-bg);
  border: 1px solid rgba(58, 51, 44, 0.08);
  padding: 12px 0;
  list-style: none;
  margin: 0;                                 /* zero — was 12px; gap caused hover loss */
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(6px);
  z-index: 100;
  box-shadow: 0 12px 30px rgba(58, 51, 44, 0.08);
}
/* Invisible bridge BETWEEN parent link and sub-menu, so cursor doesn't drop hover */
.mid-header-nav .menu-item-has-children::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
  display: none;
}
.mid-header-nav .menu-item-has-children:hover::before,
.mid-header-nav .menu-item-has-children:focus-within::before {
  display: block;
}
.mid-header-nav .menu-item-has-children:hover .sub-menu,
.mid-header-nav .menu-item-has-children:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.mid-header-nav .sub-menu li { padding: 0; }
.mid-header-nav .sub-menu a {
  display: block;
  padding: 9px 24px;
  color: var(--mid-text);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 400;
  border: none !important;
}
.mid-header-nav .sub-menu a:hover { background: var(--mid-bg-soft); color: var(--mid-gold); }

.mid-header-cta { flex-shrink: 0; }

/* mobile nav toggle */
.mid-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--mid-text);
  padding: 8px 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid-text);
  cursor: pointer;
  border-radius: 3px;
}
@media (max-width: 900px) {
  .mid-header-nav { display: none; }
  .mid-mobile-toggle { display: inline-block; }

  /* When mobile drawer is open: full-screen overlay nav */
  .mid-header.is-mobile-open .mid-header-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    background: var(--mid-bg);
    padding: 100px 32px 40px;
    gap: 0;
    overflow-y: auto;
    align-items: stretch;
  }
  .mid-header.is-mobile-open .mid-header-nav > li {
    border-bottom: 1px solid rgba(58, 51, 44, 0.08);
    padding: 18px 0;
  }
  .mid-header.is-mobile-open .mid-header-nav > li > a {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    padding: 4px 0;
    display: block;
  }
  .mid-header.is-mobile-open .mid-header-nav .menu-item-has-children .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0 0 16px;
    margin: 0;
  }
  .mid-header.is-mobile-open .mid-header-nav .sub-menu li {
    padding: 6px 0;
  }
  .mid-header.is-mobile-open .mid-header-nav .sub-menu a {
    padding: 6px 0;
    font-size: 0.9rem;
  }
  /* Bring toggle button to front when drawer open */
  .mid-header.is-mobile-open .mid-mobile-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: var(--mid-text);
    color: var(--mid-bg);
    border-color: var(--mid-text);
  }
}

/* ============== TWO-COL CARDS GRID (e.g., What Comes Home) ============== */
.mid-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.mid-grid-cards .card {
  background: var(--mid-bg-soft);
  padding: 36px 32px;
  border-radius: 4px;
  border: 1px solid rgba(58, 51, 44, 0.06);
}
.mid-grid-cards .card h4 {
  margin: 0 0 14px;
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: 1.25rem;
}
.mid-grid-cards .card ul { padding-left: 18px; margin: 0; color: var(--mid-text); }
.mid-grid-cards .card ul li { margin-bottom: 8px; line-height: 1.6; }

/* ============== KEY FACTS (Single Puppy) ============== */
.mid-key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(58, 51, 44, 0.1);
  border-bottom: 1px solid rgba(58, 51, 44, 0.1);
  margin: 36px 0;
}
.mid-key-facts dt {
  font-family: var(--mid-f-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid-gold);
  margin-bottom: 6px;
}
.mid-key-facts dd {
  margin: 0;
  font-family: var(--mid-f-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--mid-text);
}

/* ============== FAQ accordion ============== */
.mid-faq { max-width: 760px; margin: 0 auto; }
.mid-faq details {
  border-bottom: 1px solid rgba(58, 51, 44, 0.1);
  padding: 22px 0;
}
.mid-faq summary {
  cursor: pointer;
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: 1.15rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.mid-faq summary::-webkit-details-marker { display: none; }
.mid-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--mid-gold);
  transition: transform 0.2s ease;
}
.mid-faq details[open] summary::after { content: '–'; }
.mid-faq details > p { padding-top: 14px; color: var(--mid-text-soft); margin-bottom: 0; }

/* ============== FORM (Apply page) overrides ============== */
.elementor-form .elementor-field-group label,
.elementor-form .elementor-field-label {
  font-family: var(--mid-f-body) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid-text-soft) !important;
  margin-bottom: 10px !important;
}
.elementor-form input[type="text"],
.elementor-form input[type="email"],
.elementor-form input[type="tel"],
.elementor-form input[type="number"],
.elementor-form select,
.elementor-form textarea {
  background: var(--mid-bg-soft) !important;
  border: 1px solid rgba(58, 51, 44, 0.15) !important;
  border-radius: 3px !important;
  padding: 14px 18px !important;
  font-family: var(--mid-f-body) !important;
  font-size: 1rem !important;
  color: var(--mid-text) !important;
  transition: border-color 0.2s ease;
}
.elementor-form input:focus,
.elementor-form select:focus,
.elementor-form textarea:focus {
  border-color: var(--mid-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(196, 164, 106, 0.15) !important;
}
.elementor-form .elementor-button {
  background: var(--mid-gold) !important;
  color: var(--mid-bg) !important;
  padding: 16px 36px !important;
  font-size: 0.88rem !important;
}
.elementor-form .elementor-button:hover { background: var(--mid-gold-hover) !important; }

/* ============================================================
   PUPPY CARDS — magazine-style listing inspired by Boy.png / Girl.png
   Gender-themed accent (boy = dusty blue, girl = dusty rose)
   ============================================================ */
.mid-puppy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 48px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .mid-puppy-grid { grid-template-columns: 1fr; gap: 36px; }
}

.mid-puppy {
  background: var(--mid-bg-soft);
  border: 1px solid rgba(58, 51, 44, 0.06);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto auto;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mid-puppy:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(58, 51, 44, 0.10);
}

/* Top: 2-col content + photo (mimics Benson/Bella reference) */
.mid-puppy-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  min-height: 380px;
}
.mid-puppy-content {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mid-puppy-name {
  font-family: var(--mid-f-script);
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--mid-text);
  display: flex; align-items: baseline; gap: 6px;
}
.mid-puppy-name::after {
  content: '♡';
  font-family: var(--mid-f-body);
  font-size: 0.55em;
  color: currentColor;
  margin-left: 4px;
}
.mid-puppy.is-boy  .mid-puppy-name { color: var(--mid-boy); }
.mid-puppy.is-girl .mid-puppy-name { color: var(--mid-girl); }

/* Gender label — small uppercase pill below the name, color-coded.
   Also pulls the name's bottom margin in so the pair feels like a unit. */
.mid-puppy-name + .mid-puppy-sex { margin-top: -10px; margin-bottom: 18px; }
.mid-puppy-sex {
  display: inline-block;
  font-family: var(--mid-f-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(58, 51, 44, 0.06);
  color: var(--mid-text);
}
.mid-puppy.is-girl .mid-puppy-sex {
  background: var(--mid-girl-soft);
  color: #8B4F54; /* deeper rose tone — passes AA on the soft pink */
}
.mid-puppy.is-boy .mid-puppy-sex {
  background: var(--mid-boy-soft);
  color: #2F4A60; /* deeper navy tone — passes AA on the soft blue */
}

.mid-puppy-tag {
  font-family: var(--mid-f-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mid-text);
  margin-bottom: 4px;
}
.mid-puppy-love {
  font-family: var(--mid-f-script);
  font-size: 2.1rem;
  font-weight: 600;
  /* Was --mid-gold (~2.4:1 fail on cream card). Taupe keeps the script readable
     while the script font + size still provide the editorial accent. */
  color: var(--mid-text);
  line-height: 1;
  margin: 4px 0 8px;
}
.mid-puppy-made {
  font-family: var(--mid-f-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid-text);
  margin-bottom: 16px;
  line-height: 1.4;
}
.mid-puppy-divider {
  height: 1px;
  width: 36px;
  background: var(--mid-gold);
  margin: 4px 0 14px;
}
.mid-puppy-traits {
  font-family: var(--mid-f-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mid-text);
  margin: 0;
}
.mid-puppy-traits .ready {
  /* Was --mid-gold — failed AA on light card bg. Taupe + tiny gold leading dot. */
  color: var(--mid-text);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: inline-block;
  margin-top: 4px;
}
.mid-puppy-traits .ready::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mid-gold);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.mid-puppy-photo {
  position: relative;
  overflow: hidden;
}
.mid-puppy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mid-puppy-photo .reserved-stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--mid-text);
  color: var(--mid-bg);
  font-family: var(--mid-f-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 8px 14px;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(58, 51, 44, 0.2);
  z-index: 2;
}

/* Stats row */
.mid-puppy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--mid-bg);
  border-top: 1px solid rgba(58, 51, 44, 0.08);
}
.mid-puppy-stat {
  text-align: center;
  padding: 16px 8px 18px;
  border-right: 1px solid rgba(58, 51, 44, 0.06);
}
.mid-puppy-stat:last-child { border-right: none; }
.mid-puppy-stat .stat-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  color: var(--mid-gold);
  display: flex; align-items: center; justify-content: center;
}
.mid-puppy-stat .stat-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mid-puppy-stat .stat-label {
  font-family: var(--mid-f-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid-text-soft);
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}
.mid-puppy-stat .stat-value {
  font-family: var(--mid-f-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid-text);
  line-height: 1.3;
  display: block;
}

/* Bottom band (gender-colored) */
.mid-puppy-band {
  padding: 18px 24px;
  text-align: center;
  background: var(--mid-text);
  color: var(--mid-bg);
  font-family: var(--mid-f-script);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.mid-puppy.is-boy  .mid-puppy-band { background: var(--mid-boy); }
.mid-puppy.is-girl .mid-puppy-band { background: var(--mid-girl); }
.mid-puppy-band .band-cta {
  font-family: var(--mid-f-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(244, 239, 233, 0.18);
  color: var(--mid-bg) !important;
  padding: 8px 18px;
  border-radius: 3px;
  text-decoration: none !important;
  border: 1px solid rgba(244, 239, 233, 0.4);
  transition: background 0.2s ease;
  margin-left: 8px;
}
.mid-puppy-band .band-cta:hover { background: rgba(244, 239, 233, 0.32); }

/* Mobile: stack content above photo + collapse stats to 2x2 + stack band */
@media (max-width: 640px) {
  .mid-puppy { min-width: 0; }                    /* allow card to shrink to grid track width */
  .mid-puppy-top { grid-template-columns: 1fr; }
  .mid-puppy-top, .mid-puppy-content, .mid-puppy-photo,
  .mid-puppy-stats, .mid-puppy-band { min-width: 0; }
  .mid-puppy-content { padding: 28px 24px 20px; text-align: center; }
  .mid-puppy-name, .mid-puppy-love { display: block; }
  .mid-puppy-name { justify-content: center; }
  .mid-puppy-name + .mid-puppy-sex { display: inline-block; }
  .mid-puppy-divider { margin: 6px auto 14px; }
  .mid-puppy-photo { min-height: 280px; }
  .mid-puppy-photo img { aspect-ratio: 4/3; }

  /* Stats: 2×2 grid, no inter-cell horizontal overflow, compact icons */
  .mid-puppy-stats { grid-template-columns: repeat(2, 1fr); }
  .mid-puppy-stat {
    min-width: 0;                                  /* let content wrap */
    padding: 14px 8px 16px;
    border-bottom: 1px solid rgba(58, 51, 44, 0.06);
  }
  .mid-puppy-stat:nth-child(odd)  { border-right: 1px solid rgba(58, 51, 44, 0.06); }
  .mid-puppy-stat:nth-child(even) { border-right: none; }
  .mid-puppy-stat:nth-last-child(-n+2) { border-bottom: none; }
  .mid-puppy-stat .stat-value { font-size: 0.78rem; line-height: 1.35; }
  .mid-puppy-stat .stat-icon  { width: 24px; height: 24px; margin-bottom: 6px; }

  /* Band: stack the tagline above the CTA so they don't crowd at narrow widths */
  .mid-puppy-band {
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 18px;
    font-size: 1.1rem;
  }
  .mid-puppy-band .band-cta { margin-left: 0; padding: 10px 22px; }
}

/* Footer: outer 2-col collapses to 1-col on tablet (Visit Us paragraph needs full width)
   but the nav-wrap (Get Started + Our Program) stays 2-col across every viewport. */
@media (max-width: 767px) {
  .mid-footer-cols { grid-template-columns: 1fr; gap: 36px; }
  .mid-footer-nav-wrap { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ============================================================
   MOBILE TAP TARGETS — Apple HIG / Material both want 44×44 minimum
   ============================================================ */
@media (max-width: 767px) {
  /* Footer links: each link wraps a full row at ~44px tall */
  .mid-footer-col li { margin-bottom: 0; }
  .mid-footer-col a {
    display: inline-block;
    padding: 12px 0;
    line-height: 1.4;
  }
  /* Footer body links (email, in-paragraph) — pad vertically without breaking text flow */
  .mid-footer-col p a {
    display: inline-block;
    padding: 10px 0;
    line-height: 1.4;
  }

  /* Mobile drawer top-level links: bump to 44px+ tall */
  .mid-header.is-mobile-open .mid-header-nav > li > a {
    padding: 14px 0;
  }
  /* Drawer sub-menu items: same */
  .mid-header.is-mobile-open .mid-header-nav .sub-menu li { padding: 0; }
  .mid-header.is-mobile-open .mid-header-nav .sub-menu a {
    padding: 12px 0;
    display: block;
  }

  /* Tertiary "READ THE ARTICLE →" links: bigger tap zone */
  .mid-btn-tertiary {
    padding: 12px 0;
    display: inline-block;
  }

  /* Footer copyright row: Privacy / Terms / Lavack credit links — bump tap zone */
  .mid-footer-bottom a,
  .mid-footer-credit a {
    display: inline-block;
    padding: 10px 6px;
    line-height: 1.4;
  }
}

/* ============================================================
   PARENT DOGS — branded cards
   ============================================================ */
.mid-parent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.mid-parent-card {
  background: var(--mid-bg-soft);
  border: 1px solid rgba(58, 51, 44, 0.06);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.mid-parent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(58, 51, 44, 0.10);
}
.mid-parent-card .parent-photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--mid-leaf);
}
.mid-parent-card .parent-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mid-parent-card:hover .parent-photo img { transform: scale(1.04); }

/* Gender ribbon at top of photo */
.mid-parent-card.is-girl .parent-photo::after,
.mid-parent-card.is-boy  .parent-photo::after {
  content: '';
  position: absolute;
  top: 16px; left: 16px;
  width: 36px; height: 4px;
  border-radius: 2px;
}
.mid-parent-card.is-girl .parent-photo::after { background: var(--mid-girl); }
.mid-parent-card.is-boy  .parent-photo::after { background: var(--mid-boy); }

.mid-parent-card .parent-content {
  padding: 24px 28px 28px;
  text-align: center;
}
.mid-parent-card .parent-name {
  font-family: var(--mid-f-script);
  font-size: 2.4rem;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--mid-text);
  font-weight: 600;
}
.mid-parent-card.is-girl .parent-name { color: var(--mid-girl); }
.mid-parent-card.is-boy  .parent-name { color: var(--mid-boy); }
.mid-parent-card .parent-role {
  display: block;
  font-family: var(--mid-f-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid-gold);
  margin-bottom: 14px;
}
.mid-parent-card .parent-meta {
  margin: 0 0 16px;
  color: var(--mid-text);
  font-size: 0.92rem;
}
.mid-parent-card .parent-link {
  display: inline-block;
  font-family: var(--mid-f-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid-gold);
  border-bottom: 1px solid var(--mid-gold);
  padding-bottom: 2px;
}

/* ============================================================
   BLOG — magazine-style index with featured post + grid
   ============================================================ */

/* Editorial hero banner with optional background image */
.mid-blog-banner {
  position: relative;
  padding: 110px 0 100px;
  text-align: center;
  background: var(--mid-bg);
  overflow: hidden;
}
.mid-blog-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.85);
}
.mid-blog-banner.has-bg::before { background-image: var(--bg-image); }
.mid-blog-banner > .mid-container { position: relative; z-index: 1; }
.mid-blog-banner .mid-eyebrow { color: var(--mid-gold); }
.mid-blog-banner h1 {
  margin: 14px auto 18px;
  max-width: 760px;
}
.mid-blog-banner p.lead {
  max-width: 620px; margin: 0 auto 24px;
  color: var(--mid-text);
  font-size: 1.08rem;
}

/* Featured (latest) post — magazine cover layout */
.mid-featured-post {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  background: var(--mid-bg-soft);
  border: 1px solid rgba(58, 51, 44, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 80px;
}
.mid-featured-post .feat-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--mid-leaf);
}
.mid-featured-post .feat-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.mid-featured-post:hover .feat-photo img { transform: scale(1.03); }
.mid-featured-post .feat-content { padding: 60px 60px 60px 0; }
.mid-featured-post .feat-tag {
  font-family: var(--mid-f-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid-gold);
  margin-bottom: 14px;
  display: inline-block;
}
.mid-featured-post h2 {
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 18px;
}
.mid-featured-post h2 a { color: var(--mid-text); text-decoration: none; transition: color 0.2s ease; }
.mid-featured-post h2 a:hover { color: var(--mid-gold); }
.mid-featured-post .feat-meta {
  font-family: var(--mid-f-body);
  font-size: 0.85rem;
  color: var(--mid-text-soft);
  margin-bottom: 18px;
}
.mid-featured-post .feat-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mid-text);
  margin-bottom: 28px;
}
.mid-featured-post .feat-read-more {
  display: inline-block;
  font-family: var(--mid-f-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mid-gold);
  border-bottom: 1px solid var(--mid-gold);
  padding-bottom: 3px;
  text-decoration: none;
}
.mid-featured-post .feat-read-more:hover { color: var(--mid-gold-hover); border-bottom-color: var(--mid-gold-hover); }
@media (max-width: 900px) {
  .mid-featured-post { grid-template-columns: 1fr; gap: 0; }
  .mid-featured-post .feat-photo { aspect-ratio: 16/10; }
  .mid-featured-post .feat-content { padding: 36px 32px 40px; }
}

/* Section divider above the grid */
.mid-blog-section-head {
  text-align: center;
  margin-bottom: 50px;
}
.mid-blog-section-head .mid-eyebrow { display: block; }
.mid-blog-section-head h3 {
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 10px 0 0;
  letter-spacing: 0.02em;
}

/* Article grid (non-featured posts) — fixed 3 cols at desktop */
.mid-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .mid-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mid-blog-grid { grid-template-columns: 1fr; }
}
.mid-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.mid-blog-card:hover { transform: translateY(-3px); }
.mid-blog-card .card-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--mid-leaf);
  border-radius: 4px;
  margin-bottom: 22px;
}
.mid-blog-card .card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s ease;
}
.mid-blog-card:hover .card-photo img { transform: scale(1.04); }
.mid-blog-card .card-meta {
  font-family: var(--mid-f-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--mid-gold);
  margin-bottom: 10px;
}
.mid-blog-card h3 {
  margin: 0 0 12px;
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.3;
}
.mid-blog-card h3 a {
  color: var(--mid-text);
  text-decoration: none;
  transition: color 0.2s ease;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s ease, color 0.2s ease;
}
.mid-blog-card:hover h3 a { color: var(--mid-gold); background-size: 100% 1px; }
.mid-blog-card .card-excerpt {
  font-size: 0.94rem;
  color: var(--mid-text-soft);
  line-height: 1.6;
  margin: 0 0 18px;
}
.mid-blog-card .card-read-more {
  font-family: var(--mid-f-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid-gold);
  margin-top: auto;
}
.mid-blog-card .card-read-more::after {
  content: ' →';
  transition: transform 0.2s ease;
  display: inline-block;
}
.mid-blog-card:hover .card-read-more::after { transform: translateX(4px); }

/* ============================================================
   SINGLE ARTICLE — editorial layout
   ============================================================ */
.mid-article-hero {
  padding: 50px 0 40px;
  background: var(--mid-bg);
  text-align: center;
}
.mid-article-hero .article-eyebrow {
  font-family: var(--mid-f-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid-gold);
  margin-bottom: 18px;
  display: block;
}
.mid-article-hero h1 {
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.015em;
  line-height: 1.15;
  max-width: 880px;
  margin: 0 auto 24px;
}
.mid-article-hero .article-meta {
  font-family: var(--mid-f-body);
  font-size: 0.86rem;
  color: var(--mid-text-soft);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mid-article-hero .article-meta .sep { color: var(--mid-gold); opacity: 0.6; }

.mid-article-cover {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: 30px;
  margin-bottom: 0;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--mid-bg);
  display: block;
  line-height: 0;
}
.mid-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
@media (max-width: 767px) {
  .mid-article-cover { aspect-ratio: 4/3; }
}

.mid-article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}
.mid-article-body p {
  font-family: var(--mid-f-body);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--mid-text);
  margin: 0 0 26px;
}
.mid-article-body p:first-of-type {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--mid-text);
  font-weight: 400;
}
.mid-article-body p:first-of-type::first-letter {
  font-family: var(--mid-f-heading);
  font-size: 3.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 8px 14px 0 0;
  color: var(--mid-gold);
}
.mid-article-body h2 {
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.012em;
  line-height: 1.2;
  margin: 56px 0 20px;
  color: var(--mid-text);
}
.mid-article-body h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--mid-gold);
  margin-bottom: 18px;
}
.mid-article-body h3 {
  font-family: var(--mid-f-heading);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 40px 0 14px;
  color: var(--mid-text);
}
.mid-article-body ul, .mid-article-body ol {
  padding-left: 22px;
  margin: 0 0 26px;
}
.mid-article-body li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--mid-text);
}
.mid-article-body blockquote {
  border-left: none;
  padding: 30px 0;
  margin: 40px 0;
  font-family: var(--mid-f-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--mid-text);
  text-align: center;
  position: relative;
}
.mid-article-body blockquote::before,
.mid-article-body blockquote::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--mid-gold);
  margin: 0 auto;
}
.mid-article-body blockquote::before { margin-bottom: 24px; }
.mid-article-body blockquote::after { margin-top: 24px; }
.mid-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 32px auto;
  display: block;
}
.mid-article-body a {
  color: var(--mid-gold);
  border-bottom: 1px solid rgba(196, 164, 106, 0.4);
  transition: border-color 0.2s ease;
}
.mid-article-body a:hover { border-bottom-color: var(--mid-gold); }

/* Author byline at the bottom of the article */
.mid-article-byline {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px;
  border-top: 1px solid rgba(58, 51, 44, 0.1);
  border-bottom: 1px solid rgba(58, 51, 44, 0.1);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: center;
}
.mid-article-byline .byline-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mid-text);
  color: var(--mid-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mid-f-heading);
  font-style: italic;
  font-size: 1.4rem;
}
.mid-article-byline .byline-text { font-size: 0.92rem; color: var(--mid-text); line-height: 1.5; }
.mid-article-byline .byline-name {
  font-family: var(--mid-f-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mid-text);
}

/* Related posts */
.mid-related-head { text-align: center; margin-bottom: 40px; }
.mid-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============== single-post / blog content ============== */
.mid-prose { max-width: 720px; margin: 0 auto; }
.mid-prose p { margin-bottom: var(--mid-space-paragraph); }
.mid-prose h2 { margin-top: 48px; margin-bottom: 16px; }
.mid-prose h3 { margin-top: 36px; margin-bottom: 12px; }
.mid-prose ul, .mid-prose ol { padding-left: 22px; margin-bottom: var(--mid-space-paragraph); }
.mid-prose ul li, .mid-prose ol li { margin-bottom: 8px; line-height: 1.7; }
.mid-prose img { max-width: 100%; height: auto; border-radius: 4px; margin: 24px auto; display: block; }
.mid-prose blockquote {
  border-left: 3px solid var(--mid-gold);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--mid-f-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--mid-text);
}

/* ============================================================
   DESIGN POLISH PASS — 2026-05
   Goal: gold becomes ornament, taupe carries the type.
   Fixes WCAG AA contrast (gold #C4A46A on cream #F4EFE9 = 2.4:1).
   Pattern mirrors the hero eyebrow treatment (lines 177-195).
   ============================================================ */

/* Body eyebrows on light backgrounds: taupe type, gold accent rule above.
   Hero overrides (line 235) still win due to specificity. */
.mid-eyebrow {
  color: var(--mid-text);
  font-weight: 700;
  position: relative;
  padding-top: 14px;
}
.mid-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--mid-gold);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.85;
}
/* When eyebrow is left-aligned (two-col, footer-style sections), anchor the rule left. */
.mid-two-col .mid-eyebrow::before,
.mid-block-left .mid-eyebrow::before,
.mid-card .mid-eyebrow::before,
.mid-empty-state .mid-eyebrow::before {
  left: 0;
  transform: none;
}
/* Hero eyebrows: keep the original block-flow gold rule above the text.
   Reset properties leaked from the generic rule so hero stays normal-flow. */
.mid-hero-image .mid-eyebrow {
  padding-top: 0;
}
.mid-hero-image .mid-eyebrow::before {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto 12px;
}

/* Mini-heading H4s in icon grids — same taupe-type / gold-ornament logic */
.mid-grid-2x2 h4,
.mid-grid-2col-list h4 {
  color: var(--mid-text);
}
/* Subtle gold dot before icon-card headings to keep brand presence */
.mid-grid-2x2 h4::before,
.mid-grid-2col-list h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mid-gold);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-2px);
}
/* 2col-list keeps the icon already; skip the dot there */
.mid-grid-2col-list h4::before { display: none; }

/* Tertiary "READ THE ARTICLE →" links: confirm taupe with gold underline (already set line 210) */
