/*
Theme Name: Laser Magic Theme
Description: Boutique Craft WooCommerce Styling
Author: Bill
Version: 1.0
*/

/* ------------------------------
   GLOBAL RESET + BASE TYPOGRAPHY
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #faf8f5;
    color: #333;
    line-height: 1.6;
}

a {
    color: #b48a3c;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #8a6b2a;
}

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

/* ------------------------------
   BOUTIQUE CRAFT VARIABLES
--------------------------------*/
:root {
    --gold: #c9a86a;
    --gold-dark: #a78954;
    --wood: #5a4632;
    --shadow-soft: 0 4px 14px rgba(0,0,0,0.08);
    --radius: 14px;
}

/* ------------------------------
   GOLD FOIL DESCRIPTION POPOUT
--------------------------------*/
.lm-description-popout {
    background: #ffffff;
    padding: 28px 32px;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.18rem;
    line-height: 1.65;
    color: #3a3a3a;

    /* Gold foil border */
    border: 2px solid transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(135deg, #d4af37, #f7e7b7, #b68e4c, #f4d98a, #d4af37);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    /* Soft shadow */
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);

    /* Gold shimmer */
    position: relative;
    overflow: hidden;
}

.lm-description-popout::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.35) 45%,
        rgba(255,255,255,0.15) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: lmGoldShimmer 6s infinite linear;
    pointer-events: none;
}

@keyframes lmGoldShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* ------------------------------
   HERO SECTION
--------------------------------*/
.lm-category-hero {
    position: relative;
    width: 100%;
    min-height: 320px; /* adjust to taste */
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* optional */
}


/* Remove dimming */
.lm-hero-bg::before,
.lm-category-hero::before {
    content: none !important;
}

/* Background image */
.lm-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.lm-hero-content {
    position: relative;
    z-index: 2;
}

/* Intro text (if used inside hero) */
.lm-hero-intro {
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 600px;
}

/* ------------------------------
   SUBCATEGORY GRID
--------------------------------*/
.lm-subcategory-grid {
    padding: 60px 20px;
}

.lm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px;
}

.lm-subcat-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    text-align: center;
}

.lm-subcat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.lm-subcat-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.lm-subcat-title {
    padding: 18px 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--wood);
}

/* ------------------------------
   PRODUCT GRID
--------------------------------*/
.lm-product-grid,
.lm-category-products {
    padding: 60px 20px;
}

.products .product {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    padding-bottom: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.products .product img {
    border-bottom: 1px solid #eee;
}

.products .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px;
    color: var(--wood);
}

.products .price {
    padding: 0 15px 15px;
    color: var(--gold-dark);
    font-weight: 600;
}

/* ------------------------------
   BUTTONS
--------------------------------*/
button,
.button,
.add_to_cart_button,
.single_add_to_cart_button {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

button:hover,
.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 768px) {
    .lm-category-hero {
        height: 200px;
    }

    .lm-hero-content {
        padding: 30px 20px;
    }

    .lm-hero-content h1 {
        font-size: 2.2rem;
    }
}
/* ------------------------------
   MEMORIAL PAGES
--------------------------------*/

.lm-memorial-section {
    padding: 60px 20px;
}

.lm-memorial-page,
.lm-memorial-home,
.lm-memorial-archive,
.lm-create-memorial-page {
    background: #faf8f5;
}

.lm-memorial-hero {
    position: relative;
    min-height: 420px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    color: #fff;
}

.lm-memorial-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.6);
}

.lm-memorial-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 50px;
    max-width: 700px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.lm-memorial-name {
    font-size: 2.6rem;
    font-weight: 700;
    color: #f7f2e9;
}

.lm-memorial-dates {
    font-size: 1.1rem;
    margin-top: 6px;
    opacity: 0.9;
}

.lm-memorial-quote {
    margin-top: 14px;
    font-style: italic;
    max-width: 550px;
}

/* Cards */
.lm-memorial-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    padding: 24px 28px;
    max-width: 900px;
    margin: 0 auto;
}

/* Timeline */
.lm-memorial-timeline-list {
    max-width: 900px;
    margin: 0 auto;
    border-left: 2px solid rgba(0,0,0,0.08);
    padding-left: 24px;
}

.lm-memorial-timeline-item {
    margin-bottom: 24px;
    position: relative;
}

.lm-memorial-timeline-year {
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 4px;
}

.lm-memorial-timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
}

/* Gallery */
.lm-memorial-gallery-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.lm-memorial-gallery-item img {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Videos */
.lm-memorial-video-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.lm-memorial-video-embed iframe,
.lm-memorial-video-embed video {
    width: 100%;
    height: 180px;
    border-radius: 10px;
}

/* QR card */
.lm-memorial-qr-card {
    text-align: center;
}

.lm-memorial-qr-card img {
    max-width: 220px;
    margin: 0 auto 16px;
}

/* Guestbook / comments */
.lm-memorial-guestbook .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lm-memorial-guestbook .comment {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.lm-memorial-guestbook .comment-author {
    font-weight: 600;
    color: var(--wood);
}

.lm-memorial-guestbook .comment-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
}

/* Archive & home grids */
.lm-memorial-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.lm-memorial-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.lm-memorial-card-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #e8dfcf, #f5eee1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #a78954;
    font-weight: 700;
}

.lm-memorial-card-body {
    padding: 16px 18px 18px;
}

.lm-memorial-card-body h2,
.lm-memorial-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--wood);
}

.lm-memorial-card-dates {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 8px;
}

.lm-memorial-card-link {
    font-size: 0.95rem;
    color: var(--gold-dark);
}

/* Memorial home hero */
.lm-memorial-home-hero {
    text-align: center;
    padding: 80px 20px 50px;
}

.lm-memorial-home-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.lm-memorial-home-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.lm-memorial-hero-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* How it works */
.lm-memorial-how-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.lm-memorial-how-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    padding: 20px 22px;
}

/* Create memorial form card */
.lm-memorial-form-card .acf-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .lm-memorial-hero {
        height: 240px;
    }

    .lm-memorial-hero-content {
        padding: 24px 20px;
    }

    .lm-memorial-name {
        font-size: 2rem;
    }

    .lm-memorial-hero-actions {
        flex-direction: column;
    }
}
/* Background hero shared styles */
.lm-memorial-home-hero,
.lm-memorial-archive-hero,
.lm-memorial-create-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px 80px;
    text-align: center;
    color: #fff;
}

.lm-memorial-home-hero-overlay,
.lm-memorial-archive-overlay,
.lm-memorial-create-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.lm-memorial-home-hero-inner,
.lm-memorial-archive-inner,
.lm-memorial-create-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.lm-memorial-home-hero h1,
.lm-memorial-archive-hero h1,
.lm-memorial-create-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    color: #f7f2e9;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.lm-memorial-home-hero p,
.lm-memorial-archive-hero p,
.lm-memorial-create-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}
/* HERO BACKGROUND */
.lm-memorial-hero-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 140px 20px 100px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* DARK VIGNETTE OVERLAY */
.lm-memorial-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
    z-index: 1;
}

/* CANDLE GLOW */
.lm-memorial-hero-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 500px;
    height: 300px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,220,150,0.45), transparent 70%);
    filter: blur(40px);
    z-index: 1;
}

/* HERO CONTENT */
.lm-memorial-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease;
}

/* GOLD FOIL TEXT */
.lm-gold-foil {
    background: linear-gradient(135deg, #d4af37, #f7e7b7, #b68e4c, #f4d98a, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* SECTION TITLES */
.lm-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--wood);
}

/* FADE IN ANIMATION */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}
/* MAIN PHOTO — full resolution, clean, crisp */


.lm-memorial-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lm-memorial-dates {
    font-size: 20px;
    opacity: 0.7;
}

/* SECTION TITLES */
.lm-section-title {
    font-size: 28px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

/* LIFE STORY */
.lm-story-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 18px;
}

/* GALLERY */
.lm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.lm-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* QR CODE */
.lm-qr-wrapper {
    text-align: center;
    margin-top: 20px;
}

.lm-qr-image {
    width: 200px;
    height: auto;
}

.lm-qr-caption {
    text-align: center;
    margin-top: 10px;
    opacity: 0.7;
}


@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Force spacing between ACF form buttons */
.acf-form .acf-form-submit {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px !important;
    margin-top: 20px !important;
}

.acf-form .acf-form-submit input[type="submit"],
.acf-form .acf-form-submit .acf-button {
    padding: 10px 20px !important;
    border-radius: 6px;
}


.acf-form-submit {
    display: flex;
    gap: 12px;
}
.lm-memorial-form-card {
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.lm-memorial-form-fields {
    display: grid;
    gap: 18px;
}

.lm-memorial-form-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.lm-btn-primary {
    background: #c89b3c;
    color: #fff;
}

.lm-btn-secondary {
    background: #f3f3f3;
    color: #333;
}
/* Full-resolution memorial photo */
.lm-memorial-photo-wrapper {
    text-align: center;
    margin: 20px auto 30px;
}

.lm-memorial-main-photo {
    width: 100%;
    height: auto;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    display: block;
    margin: 0 auto;
}

/* Name + dates */
.lm-memorial-header {
    text-align: center;
    margin-bottom: 40px;
}

.lm-memorial-name {
    font-size: 42px;
    font-weight: 700;
}

.lm-memorial-dates {
    font-size: 20px;
    opacity: 0.7;
}

/* Sections */
.lm-section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 16px;
}

.lm-story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}

/* Gallery */
.lm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.lm-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* QR */
.lm-qr-wrapper {
    text-align: center;
}

.lm-qr-image {
    width: 200px;
    height: auto;
}

.lm-qr-caption {
    text-align: center;
    opacity: 0.7;
    margin-top: 10px;
}
/* Clean full-res header image */
.lm-create-header-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Header text */
.lm-create-memorial-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.lm-create-memorial-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.lm-create-memorial-header p {
    font-size: 18px;
    opacity: 0.8;
}

/* Form card */
.lm-memorial-form-card {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 0 auto;
}
.lm-qr-download {
    text-align: center;
    margin-top: 15px;
}

.lm-download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #d4af37; /* gold */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

.lm-download-btn:hover {
    background: #b8922c;
    transform: translateY(-2px);
}
/* HERO */
.lm-memorial-home-hero {
    position: relative;
    text-align: center;
    padding: 40px 20px;
}

.lm-memorial-home-hero-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    margin-bottom: 20px;
}

.lm-memorial-home-hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lm-memorial-home-hero-text p {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.lm-memorial-home-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #d4af37;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

.lm-memorial-home-btn:hover {
    background: #b8922c;
    transform: translateY(-2px);
}

/* GRID */
.lm-memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
}

.lm-memorial-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: 0.2s ease;
}

.lm-memorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.lm-memorial-card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.lm-memorial-card-info {
    padding: 16px;
    text-align: center;
}

.lm-memorial-card-info h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.lm-memorial-card-dates {
    font-size: 16px;
    opacity: 0.7;
}
/* PRINT-READY MEMORIAL CARD */
.lm-card {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.lm-card-inner {
    text-align: center;
}

.lm-card-photo {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.lm-card-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 6px;
}

.lm-card-dates {
    font-size: 18px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.lm-card-story {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.lm-card-qr img {
    width: 160px;
    height: auto;
}

.lm-card-qr-caption {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 6px;
}
/* Full-resolution memorial photo */
.lm-memorial-photo-wrapper {
    text-align: center;
    margin: 20px auto 30px;
}

.lm-memorial-main-photo {
    width: 100%;
    height: auto;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    display: block;
    margin: 0 auto;
}

/* Name + dates */
.lm-memorial-header {
    text-align: center;
    margin-bottom: 40px;
}

.lm-memorial-name {
    font-size: 42px;
    font-weight: 700;
}

.lm-memorial-dates {
    font-size: 20px;
    opacity: 0.7;
}

/* Section titles */
.lm-section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Life Story */
.lm-story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}

/* Gallery */
.lm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.lm-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* QR Code */
.lm-qr-wrapper {
    text-align: center;
    margin-top: 20px;
}

.lm-qr-image {
    width: 200px;
    height: auto;
}

.lm-qr-caption {
    text-align: center;
    opacity: 0.7;
    margin-top: 10px;
}

/* Download QR button */
.lm-qr-download {
    text-align: center;
    margin-top: 15px;
}

.lm-download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #d4af37;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

.lm-download-btn:hover {
    background: #b8922c;
    transform: translateY(-2px);
}

/* Memorial Card Button */
.lm-memorial-card-btn-wrap {
    text-align: center;
    margin-top: 15px;
}
.lm-card-print-btn-wrap {
    text-align: center;
    margin-top: 20px;
}

@media print {
    .lm-download-btn,
    .lm-card-print-btn-wrap {
        display: none !important;
    }
}
.lm-share-buttons {
    text-align: center;
    margin-top: 20px;
}

.lm-share-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 6px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.lm-share-btn.fb { background: #1877f2; }
.lm-share-btn.ig { background: #d62976; }
.lm-memorial-dashboard {
    max-width: 800px;
    margin: 40px auto;
}

.lm-dashboard-list {
    list-style: none;
    padding: 0;
}

.lm-dashboard-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.lm-dashboard-links a {
    margin-right: 10px;
    font-size: 14px;
}
@media (max-width: 768px) {

    .lm-memorial-main-photo {
        max-width: 100%;
        border-radius: 12px;
    }

    .lm-memorial-name {
        font-size: 32px;
    }

    .lm-memorial-dates {
        font-size: 16px;
    }

    .lm-section-title {
        font-size: 22px;
    }

    .lm-story-content {
        padding: 0 16px;
        font-size: 16px;
    }

    .lm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .lm-memorial-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .lm-memorial-card-img {
        height: 220px;
    }

    .lm-memorial-home-hero-img {
        max-height: 260px;
        border-radius: 12px;
    }

    #lm-search-input {
        font-size: 16px;
    }

    .lm-card {
        margin: 20px 10px;
        padding: 20px;
    }
}
.lm-alert-success {
    background: #f7f2e8;
    border-left: 5px solid #c9a24b;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 16px;
    color: #3a3a3a;
    border-radius: 4px;
}
@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/YOURTHEME/assets/fonts/inter/Inter-Regular.woff2') format('woff2'),
         url('/wp-content/themes/YOURTHEME/assets/fonts/inter/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/YOURTHEME/assets/fonts/inter/Inter-Bold.woff2') format('woff2'),
         url('/wp-content/themes/YOURTHEME/assets/fonts/inter/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* ================================
   SUBCATEGORY GRID (Laser Magic)
   ================================ */

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    margin: 60px 0;
    padding: 0 10px;
}

/* Subcategory Card */
.subcategory-card {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Hover effect */
.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Image wrapper */
.subcategory-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f3ef; /* soft warm neutral */
}

/* Image */
.subcategory-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title */
.subcategory-card__title {
    padding: 18px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #3a2f28; /* warm dark brown */
    letter-spacing: 0.3px;
    text-align: left;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 22px;
        margin: 40px 0;
    }

    .subcategory-card__title {
        font-size: 1rem;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .subcategory-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}
/* ============================================
   LASER MAGIC — CATEGORY HERO
   ============================================ */

/* ============================================
   LASER MAGIC — CATEGORY HERO
   ============================================ */

.lm-category-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
}

.lm-category-hero__inner {
    max-width: 900px;
}

.lm-category-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.lm-category-intro {
    font-size: 1.15rem;
    color: #f5f5f5;
    max-width: 700px;
    line-height: 1.55;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ============================================
   LASER MAGIC — SUBCATEGORY GRID
   ============================================ */

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    margin: 60px 0;
    padding: 0 10px;
}

/* Subcategory Card */
.subcategory-card {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* ============================================
   SUBCATEGORY IMAGE (your .lm-subcat-img)
   ============================================ */

.lm-subcat-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f7f3ef; /* warm neutral fallback */
}

/* ============================================
   SUBCATEGORY TITLE
   ============================================ */

.subcategory-card__title {
    padding: 18px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #3a2f28; /* warm dark brown */
    letter-spacing: 0.3px;
    text-align: left;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 22px;
        margin: 40px 0;
    }

    .subcategory-card__title {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .lm-category-hero {
        min-height: 300px;
        padding: 30px;
    }

    .lm-category-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .subcategory-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .lm-category-hero {
        min-height: 260px;
        padding: 20px;
    }

    .lm-category-title {
        font-size: 1.7rem;
    }
}