/* Killick Family Funerals — base styles copied verbatim from the main site index.html (Oct 2026) so blog pages match exactly. */

  :root {
    --navy-950: #07142a;
    --navy-900: #0c1f3a;
    --navy-800: #142c4d;
    --navy-700: #1f4068;
    --navy-600: #2f5582;
    --navy-500: #4a6f97;
    --navy-300: #9bb0c9;
    --navy-100: #d6dfeb;

    --cream-50:  #fdfaf2;
    --cream-100: #faf4e6;
    --cream-200: #f5ecd6;
    --cream-300: #ebdfc1;
    --cream-400: #d9c89e;

    --gold-600: #a07f3e;
    --gold-500: #b8965a;
    --gold-400: #cdb079;

    --ink:    #0c1f3a;
    --ink-2:  #2a3e5c;
    --muted:  #5d7390;
    --muted-2:#8a9bb2;
    --line:   #e7decb;
    --line-dark: rgba(255,255,255,0.12);

    --shadow-sm: 0 1px 2px rgba(12,31,58,0.06), 0 1px 3px rgba(12,31,58,0.04);
    --shadow-md: 0 4px 14px rgba(12,31,58,0.08), 0 2px 6px rgba(12,31,58,0.05);
    --shadow-lg: 0 24px 48px -16px rgba(12,31,58,0.18), 0 8px 20px rgba(12,31,58,0.08);

    --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: "DM Mono", ui-monospace, monospace;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    font-size: 16px;
  }

  /* Typography */
  .display, h1.display, h2.display, h3.display {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.04;
    margin: 0;
    text-wrap: balance;
  }
  h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
  p { margin: 0; text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; }

  .eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-600);
    font-weight: 500;
  }

  /* Layout helpers */
  .container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 720px) { .container { padding: 0 20px; } }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--navy-900); color: var(--cream-50); }
  .btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }
  .btn-gold { background: var(--gold-500); color: var(--navy-950); }
  .btn-gold:hover { background: var(--gold-400); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(12,31,58,0.16); }
  .btn-ghost:hover { background: rgba(12,31,58,0.04); }
  .btn-ghost-light { background: transparent; color: var(--cream-50); border-color: rgba(255,255,255,0.4); }
  .btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
  .btn-lg { padding: 18px 28px; font-size: 16px; }
  .btn-sm { padding: 10px 16px; font-size: 14px; }

  /* Image placeholder used everywhere */
  .img-ph {
    background:
      repeating-linear-gradient(135deg, rgba(12,31,58,0.04) 0 14px, rgba(12,31,58,0.07) 14px 15px),
      linear-gradient(180deg, var(--cream-200), var(--cream-300));
    color: var(--navy-700);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 12px;
    letter-spacing: 0.05em;
    text-align: center;
    overflow: hidden;
    position: relative;
  }
  .img-ph.dark {
    background:
      repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 14px, rgba(255,255,255,0.08) 14px 15px),
      linear-gradient(180deg, var(--navy-900), var(--navy-800));
    color: var(--cream-200);
  }
  .img-ph .ph-label {
    padding: 6px 10px;
    background: rgba(252,249,241,0.7);
    border: 1px solid rgba(12,31,58,0.08);
    border-radius: 4px;
  }
  .img-ph.dark .ph-label {
    background: rgba(12,31,58,0.5);
    color: var(--cream-100);
    border-color: rgba(255,255,255,0.12);
  }

  /* Sections */
  .section { padding: 96px 0; }
  .section-sm { padding: 64px 0; }
  .section-lg { padding: 128px 0; }
  @media (max-width: 720px) {
    .section { padding: 64px 0; }
    .section-lg { padding: 80px 0; }
  }

  .bg-cream { background: var(--cream-50); }
  .bg-cream-2 { background: var(--cream-100); }
  .bg-cream-3 { background: var(--cream-200); }
  .bg-navy { background: var(--navy-900); color: var(--cream-100); }
  .bg-navy-deep { background: var(--navy-950); color: var(--cream-100); }
  .bg-white { background: #fff; }

  /* Rule */
  .hr-thin { height: 1px; background: var(--line); border: 0; margin: 0; }
  .hr-thin-dark { height: 1px; background: var(--line-dark); border: 0; margin: 0; }

  /* Cards */
  .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
  }

  /* Tag/chip */
  .chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cream-200);
    color: var(--navy-800);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--line);
  }
  .chip-dark {
    background: rgba(255,255,255,0.08);
    color: var(--cream-100);
    border-color: rgba(255,255,255,0.18);
  }

  /* Pulse dot */
  .pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #5cd093;
    box-shadow: 0 0 0 0 rgba(92,208,147,0.6);
    animation: pulse 2s infinite;
    display: inline-block;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(92,208,147,0.6); }
    70% { box-shadow: 0 0 0 8px rgba(92,208,147,0); }
    100% { box-shadow: 0 0 0 0 rgba(92,208,147,0); }
  }

  /* Marquee animation */
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* Scroll reveal */
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.on { opacity: 1; transform: none; }

  /* Header offset (because sticky-top bar) */
  .has-top-bar { padding-top: 0; }

  /* Focus */
  :focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Hide scrollbar on horiz scroll regions */
  .hide-scrollbar::-webkit-scrollbar { display: none; }
  .hide-scrollbar { scrollbar-width: none; }

  /* Selection */
  ::selection { background: var(--gold-500); color: var(--navy-950); }

  /* ===== Mobile / tablet responsive layer =====
     The app uses inline grid styles; these !important rules collapse them on
     small screens so it reads perfectly on iPhone & Samsung. */
  html, body { max-width: 100%; overflow-x: hidden; }
  img, svg, iframe { max-width: 100%; }

  @media (max-width: 1000px) {
    /* any 3+ column grid → 2 columns */
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: repeat(5"] {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }

  @media (max-width: 720px) {
    /* collapse every multi-column grid to a single column */
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    /* kill fixed-width first columns (timelines, table rows, admin list) */
    [style*="grid-template-columns"] > * { min-width: 0 !important; }

    .section { padding: 56px 0 !important; }
    .section-lg { padding: 64px 0 !important; }
    .section-sm { padding: 44px 0 !important; }

    /* sticky sidebars shouldn't pin on mobile */
    aside[style*="position: sticky"],
    [style*="position: sticky"][style*="top: 120"],
    [style*="position: sticky"][style*="top: 140"] { position: static !important; }

    /* let big gaps breathe less */
    [style*="gap: 64px"] { gap: 32px !important; }
    [style*="gap: 80px"] { gap: 36px !important; }
    [style*="gap: 56px"] { gap: 28px !important; }

    /* comfortable tap targets */
    .btn { min-height: 44px; }
  }

  @media (max-width: 460px) {
    [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
    .btn-lg { width: 100%; justify-content: center; }
  }

/* from index.html second style block */
@media (max-width: 1080px) { .hide-mobile { display: none !important; } }
@media (min-width: 1081px) { .show-mobile { display: none !important; } }
