/* ==========================================
   TRIBUTE PAGES - Preserved from pet-tributes/assets/
   mm-tribute.css + header-footer.css (unchanged)
   ========================================== */

/* ----- mm-tribute.css ----- */

/* ==========================================
   WARM TEXTURED PAGE BACKGROUND
   ========================================== */

body {
    background-color: #f0ebe6;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
}

/* ==========================================
   HERO CENTERING
   ========================================== */

.memorials-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hero-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* ==========================================
   TRIBUTE SEARCH (RELOCATED TO TOP RIGHT)
   ========================================== */

.memorials-hub .container {
    position: relative;
}

.tribute-search-wrapper {
    position: absolute;
    top: 20px;
    right: 0;
    width: 280px;
    z-index: 10;
}

#tributeSearch {
    width: 100%;
    padding: 12px 40px 12px 18px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#tributeSearch:focus {
    outline: none;
    border-color: #2e2a26;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #999;
    font-family: Arial, sans-serif;
    line-height: 1;
    display: none;
    user-select: none;
    transition: color 0.2s;
}

.search-clear-btn:hover {
    color: #333;
}

@media (max-width: 900px) {
    .tribute-search-wrapper {
        position: static;
        width: 100%;
        max-width: 320px;
        margin: 20px auto;
    }

    .hero-header-row {
        margin-top: 20px;
    }
}

.memorials-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.memorials-hero p {
    font-size: 1.05rem;
    color: #555;
}

.tribute-count {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #7d766e;
    font-family: Georgia, "Times New Roman", serif;
}

.mm-hero-subtext {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #6f6861;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   ARCHIVE GRID (NARROWER CARDS)
   ========================================== */

.tribute-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 320px));
    justify-content: center;
    gap: 40px;
    margin-top: 3rem;
}

@media (max-width: 1100px) {
    .tribute-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .tribute-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ARCHIVE CARD
   ========================================== */

.mm-archive-card {
    background: #faf8f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mm-archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
}

.mm-archive-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mm-archive-thumb {
    overflow: hidden;
    position: relative;
}

.mm-archive-thumb-link {
    display: block;
}

.mm-archive-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: transform 0.4s ease;
}

.mm-archive-card:hover img {
    transform: scale(1.06);
}

.pin-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #5c554e;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.mm-archive-card:hover .pin-button {
    opacity: 1;
}

.pin-button:hover {
    background: #fff;
    color: #2e2a26;
}

.mm-archive-meta {
    padding: 22px;
    position: relative;
}

.mm-archive-title {
    font-size: 1.3rem;
    margin: 0 0 10px;
    line-height: 1.2;
}

.featured-badge {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
}

.mm-archive-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    max-width: calc(100% - 28px);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.5em * 2);
}

.mm-archive-more {
    margin-top: 2px;
    margin-bottom: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 5px;
    line-height: 1;
    margin-right: -8px;
    color: #7a7a7a;
}

.mm-archive-more-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.35px;
    text-transform: lowercase;
    opacity: 0.78;
}

.mm-archive-chevron {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 0.9;
}

.mm-archive-years {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.mm-hero-cta {
    margin-top: 22px;
}

.mm-btn-primary,
.mm-btn-secondary {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.mm-btn-primary {
    background: #2e2a26;
    color: #ffffff;
}

.mm-btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
}

.mm-btn-secondary {
    background: transparent;
    border: 1px solid #2e2a26;
    color: #2e2a26;
}

.mm-btn-secondary:hover {
    background: #2e2a26;
    color: #ffffff;
    transform: translateY(-2px);
}

.mm-bottom-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 20px;
}

.mm-bottom-cta h3 {
    margin-bottom: 28px;
    font-size: 1.5rem;
}

.mm-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mm-date-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 20px;
    color: #555;
    letter-spacing: 0.6px;
    font-weight: 500;
}

.mm-archive-attribution {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 0.8rem;
    color: #8c8c8c;
    text-align: right;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-pagination {
    margin-top: 60px;
    text-align: center;
}

.mm-pagination a {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    background: #f1f1f1;
    color: #333;
    transition: all .2s ease;
}

.mm-pagination a:hover {
    background: #2c3e50;
    color: #fff;
}

.mm-pagination .mm-page-active {
    background: #2c3e50;
    color: #fff;
}

.mm-explore-links {
    margin-top: 28px;
    text-align: center;
}

.mm-explore-links h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.mm-explore-links-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mm-explore-links-row a {
    color: #5d5650;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.94rem;
}

.mm-explore-links-row a:hover {
    text-decoration: underline;
}

.mm-recently-remembered {
    margin-top: 56px;
}

.mm-recently-remembered h3 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.mm-tribute-system {
  padding: 80px 20px 100px;
  width: 100%;
}

.mm-tribute-wrapper {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.mm-tribute-intro {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.mm-tribute-divider {
  width: 60px;
  height: 2px;
  margin: 20px auto 30px;
  background: rgba(0,0,0,0.4);
}

.mm-tribute-name {
  font-size: 48px;
  margin: 0 0 12px;
  font-weight: 600;
  text-align: center;
}

.mm-tribute-image {
  margin: 0 auto 40px;
}

.mm-tribute-image img {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.mm-tribute-image.mm-tribute-image-secondary {
  margin-top: -10px;
}

.mm-placeholder {
  opacity: 0.85;
}

.mm-tribute-meta {
  margin-bottom: 40px;
  font-size: 15px;
  opacity: 0.8;
}

.mm-tribute-meta p {
  margin: 4px 0;
}

.mm-tribute-message {
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.tribute-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
}

.tribute-intro {
  text-align: center;
  font-size: 1.15rem;
  margin: 12px 0 30px 0;
  color: #555;
}

.tribute-body h2 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.tribute-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.tribute-cta {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
}

.tribute-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  background: #2b2b2b;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
}

.tribute-button:hover {
  background: #000;
}

.mm-tribute-share {
  margin: 34px auto 0;
  color: #777;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.mm-share-label {
  color: #666;
  font-weight: 500;
}

.mm-share-link {
  color: #7a7a7a;
  text-decoration: none;
  margin: 0 6px;
}

.mm-share-link:hover {
  color: #555;
  text-decoration: underline;
}

.mm-share-sep {
  color: #b0b0b0;
}

@media (max-width: 768px) {
  .mm-tribute-name {
    font-size: 34px;
  }

  .mm-tribute-image img {
    max-width: 300px;
  }

  .mm-tribute-system {
    padding: 60px 16px 80px;
  }

  .tribute-body {
    max-width: 92%;
    padding: 18px;
  }
}

.mm-image-wrapper img {
  width: 92% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
}

.mm-tribute-card:hover img,
.mm-tribute-card img {
  transform: none !important;
  transition: none !important;
}

.archive-card .stone-wrapper {
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
}

.mm-archive-card .mm-archive-thumb {
  width: 100%;
  position: relative;
}

/* ----- header-footer.css (header/footer styles for tribute pages) ----- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', serif;
    background: #f8f6f3;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

.site-header {
    background: linear-gradient(to right, #1a1a1a, #222);
    padding: 20px 0;
    position: relative;
    z-index: 100;
    width: 100%;
    margin: 0;
}

.nav-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-list,
.nav-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.nav-list a:hover {
    opacity: 0.7;
}

.brand {
    margin-left: -4px;
    text-align: center;
}

.brand a {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-main {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 1.5px;
    line-height: 1.05;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-top,
.brand-bottom {
    display: block;
}

.brand-tagline {
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.85;
    text-align: center;
}

.site-footer {
    background: linear-gradient(to bottom, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    padding: 60px 0 0;
    border-top: 1px solid #2a2a2a;
    position: relative;
    z-index: 10;
}

.footer-content {
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    width: 92%;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo .brand-main {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.footer-logo .brand-top,
.footer-logo .brand-bottom {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
}

.footer-logo .brand-tagline {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0 0 15px 0;
}

.footer-rating {
    font-size: 0.95rem;
    color: #ffd700;
    margin-top: 15px;
}

.footer-rating span {
    color: #b0b0b0;
    margin-left: 8px;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: #b0b0b0;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0;
}

.footer-contact-info strong {
    color: #ffffff;
}

.footer-email,
.footer-phone {
    color: #b0b0b0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover,
.footer-phone:hover {
    color: #ffffff !important;
}

.footer-bottom {
    background: #0a0a0a;
    border-top: 1px solid #2a2a2a;
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 92%;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal span {
    margin: 0 10px;
    color: #444;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-payments img {
    display: block;
    height: 24px;
    width: auto;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-list {
        gap: 20px;
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger-bar {
        width: 22px;
        height: 2px;
        background: #ffffff;
        display: block;
    }

    .brand-main {
        font-size: 22px;
    }

    .brand-tagline {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .footer-payments {
        width: 100%;
    }
}
