/**
 * Memorial Landing Page Styles - FOREST THEME
 * Version: 2.0.0 - Theme System Refactor
 * Location: /assets/css/memorial-page-forest.css
 * 
 * Earthy, atmospheric, organic design with warm browns and natural textures.
 * This CSS is designed for the forest/template.php HTML structure.
 * 
 * Color Palette:
 * - Background: #f5f1eb (warm cream)
 * - Primary Dark: #2c1810 (deep brown)
 * - Primary: #4a3728 (forest brown)
 * - Accent: #8b7355 (warm bronze)
 * - Accent Light: #c9a86c (muted gold)
 * - Card Dark: #3d2e1e (dark wood)
 * 
 * @package QR_Code_Generator
 */

/* =================================================================
   CSS VARIABLES
   ================================================================= */
:root {
    --forest-cream: #f5f1eb;
    --forest-cream-alt: #ece6dc;
    --forest-brown-deep: #2c1810;
    --forest-brown: #4a3728;
    --forest-brown-medium: #5c483a;
    --forest-bronze: #8b7355;
    --forest-gold: #c9a86c;
    --forest-gold-muted: #a89060;
    --forest-card-dark: #3d2e1e;
    --forest-text: #3d2e1e;
    --forest-text-light: #6b5a4a;
    --forest-border: #d4ccc0;
}

/* =================================================================
   BASE STYLES
   ================================================================= */
* {
    box-sizing: border-box;
}

body.memorial-landing-page.memorial-theme-forest {
    margin: 0;
    padding: 0;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--forest-cream);
    color: var(--forest-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =================================================================
   HERO SECTION - Full Width Atmospheric
   ================================================================= */
.forest-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--forest-brown);
}

.forest-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 24, 16, 0.4) 0%,
        rgba(44, 24, 16, 0.5) 50%,
        rgba(44, 24, 16, 0.7) 100%
    );
    pointer-events: none;
}

.forest-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.forest-hero-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 500;
    color: var(--forest-cream);
    margin: 0 0 20px;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.forest-hero-dates {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(18px, 3vw, 24px);
    color: var(--forest-gold);
    margin: 0 0 20px;
    letter-spacing: 4px;
    font-weight: 400;
}

.forest-hero-epitaph {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    color: rgba(245, 241, 235, 0.9);
    margin: 0 0 30px;
    font-weight: 400;
}

.forest-hero-preview {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: rgba(245, 241, 235, 0.8);
    margin: 0 0 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.forest-hero-cta {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    border: 2px solid var(--forest-gold);
    color: var(--forest-gold);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forest-hero-cta:hover {
    background: var(--forest-gold);
    color: var(--forest-brown-deep);
}

/* =================================================================
   NAVIGATION
   ================================================================= */
.forest-nav {
    background: var(--forest-cream);
    border-bottom: 1px solid var(--forest-border);
    padding: 0;
    transition: all 0.3s ease;
}

.forest-nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.forest-nav-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.forest-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 20px 25px;
    color: var(--forest-brown);
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.forest-nav-link:hover {
    color: var(--forest-gold-muted);
    border-bottom-color: var(--forest-gold-muted);
}

.forest-nav-link.active {
    color: var(--forest-brown-deep);
    border-bottom-color: var(--forest-gold);
}

.forest-nav-icon {
    font-size: 10px;
    opacity: 0.6;
}

/* =================================================================
   CONTENT SECTIONS
   ================================================================= */
.forest-content {
    background: var(--forest-cream);
}

.forest-section {
    padding: 100px 20px;
    background: var(--forest-cream);
}

.forest-section-alt {
    background: var(--forest-cream-alt);
}

.forest-section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.forest-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: var(--forest-brown-deep);
    text-align: center;
    margin: 0 0 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.forest-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--forest-gold-muted);
    margin: 25px auto 0;
}

.forest-section-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: var(--forest-text-light);
    text-align: center;
    margin: 30px 0 50px;
}

/* =================================================================
   OBITUARY
   ================================================================= */
.forest-obituary {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 2;
    color: var(--forest-text);
    max-width: 800px;
    margin: 50px auto 0;
}

.forest-obituary p {
    margin-bottom: 24px;
    text-align: justify;
}

.forest-obituary p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 72px;
    float: left;
    line-height: 1;
    padding-right: 15px;
    padding-top: 8px;
    color: var(--forest-brown);
}

.forest-no-content {
    text-align: center;
    color: var(--forest-text-light);
    font-style: italic;
    margin: 50px 0;
}

/* =================================================================
   FAVOURITES - Circular Icons Style
   ================================================================= */
.forest-favourites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.forest-favourites-category {
    text-align: center;
}

.forest-favourites-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--forest-cream);
    border: 3px solid var(--forest-gold-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.forest-favourites-category:hover .forest-favourites-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.forest-favourites-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--forest-brown-deep);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.forest-favourites-items {
    text-align: center;
}

.forest-favourite-item {
    margin-bottom: 15px;
}

.forest-favourite-name {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--forest-text);
    font-weight: 600;
}

.forest-favourite-author {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: var(--forest-text-light);
    font-style: italic;
}

/* =================================================================
   TIMELINE
   ================================================================= */
.forest-timeline {
    position: relative;
    margin-top: 60px;
    padding-left: 50px;
}

.forest-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--forest-gold-muted);
}

.forest-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px 50px 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
}

.forest-timeline-date {
    text-align: right;
    padding-right: 20px;
}

.forest-timeline-year {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--forest-brown-deep);
}

.forest-timeline-monthday {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: var(--forest-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forest-timeline-marker {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--forest-cream);
    border: 3px solid var(--forest-gold-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-left: -25px;
}

.forest-timeline-icon {
    font-size: 20px;
}

.forest-timeline-content {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--forest-gold-muted);
}

.forest-timeline-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--forest-brown-deep);
    margin: 0 0 10px;
}

.forest-timeline-content p {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--forest-text);
    margin: 0;
    line-height: 1.7;
}

.forest-timeline-location {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: var(--forest-text-light);
    margin-top: 10px;
}

/* =================================================================
   GALLERY
   ================================================================= */
.forest-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.forest-gallery-header .forest-section-title {
    margin: 0;
}

.forest-gallery-header .forest-section-title::after {
    display: none;
}

.forest-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.forest-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.forest-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.forest-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.forest-gallery-item:hover img {
    transform: scale(1.05);
}

.forest-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forest-gallery-item:hover .forest-gallery-overlay {
    opacity: 1;
}

/* =================================================================
   VIDEOS
   ================================================================= */
.forest-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.forest-video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--forest-gold-muted);
}

.forest-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.forest-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.forest-video-info {
    padding: 20px 25px;
}

.forest-video-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--forest-brown-deep);
    margin: 0 0 10px;
}

.forest-video-info p {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--forest-text-light);
    margin: 0;
    line-height: 1.6;
}

/* =================================================================
   TRIBUTES - Dark Cards
   ================================================================= */
.forest-section-tributes {
    background: var(--forest-cream);
}

.forest-tributes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.forest-tributes-header .forest-section-title {
    margin: 0;
}

.forest-tributes-header .forest-section-title::after {
    display: none;
}

.forest-tributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.forest-tribute-card {
    background: var(--forest-card-dark);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    gap: 20px;
}

.forest-tribute-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--forest-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-cream);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    overflow: hidden;
}

.forest-tribute-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forest-tribute-content {
    flex: 1;
}

.forest-tribute-message {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--forest-cream);
    line-height: 1.7;
    margin: 0 0 15px;
}

.forest-tribute-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.forest-tribute-author {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--forest-gold);
}

.forest-tribute-date {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: rgba(245, 241, 235, 0.6);
}

.forest-tribute-photos {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.forest-tribute-photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--forest-gold-muted);
}

.forest-no-tributes {
    text-align: center;
    color: var(--forest-text-light);
    font-style: italic;
    padding: 40px;
    grid-column: 1 / -1;
}

/* =================================================================
   SERVICE SECTION
   ================================================================= */
.forest-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.forest-service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--forest-gold-muted);
}

.forest-service-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--forest-brown-deep);
    margin: 0 0 25px;
}

.forest-service-item {
    margin-bottom: 15px;
}

.forest-service-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--forest-text-light);
    margin-bottom: 5px;
}

.forest-service-value {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--forest-text);
    line-height: 1.5;
}

.forest-service-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.forest-service-map iframe {
    display: block;
}

.forest-service-rsvp {
    grid-column: 1 / -1;
}

.forest-link {
    color: var(--forest-gold-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forest-link:hover {
    color: var(--forest-gold);
}

/* =================================================================
   FORMS
   ================================================================= */
.forest-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.forest-form-group {
    margin-bottom: 20px;
}

.forest-form-group label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--forest-text-light);
    margin-bottom: 8px;
}

.forest-input,
.forest-select,
.forest-textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--forest-text);
    background: var(--forest-cream);
    border: 1px solid var(--forest-border);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.forest-input:focus,
.forest-select:focus,
.forest-textarea:focus {
    outline: none;
    border-color: var(--forest-gold-muted);
    box-shadow: 0 0 0 3px rgba(168, 144, 96, 0.1);
}

.forest-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.forest-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.forest-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =================================================================
   BUTTONS
   ================================================================= */
.forest-btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forest-btn-primary {
    background: var(--forest-card-dark);
    color: var(--forest-cream);
}

.forest-btn-primary:hover {
    background: var(--forest-brown-deep);
}

.forest-btn-secondary {
    background: transparent;
    color: var(--forest-brown);
    border: 2px solid var(--forest-border);
}

.forest-btn-secondary:hover {
    border-color: var(--forest-brown);
}

.forest-btn-full {
    width: 100%;
}

/* =================================================================
   FOOTER
   ================================================================= */
.forest-footer {
    background: var(--forest-card-dark);
    padding: 50px 20px;
    text-align: center;
}

.forest-footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.forest-footer-logo {
    max-width: 160px;
    height: auto;
    opacity: 0.7;
    margin-bottom: 20px;
}

.forest-footer p {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: rgba(245, 241, 235, 0.6);
    margin: 0;
}

.forest-footer a {
    color: rgba(245, 241, 235, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forest-footer a:hover {
    color: var(--forest-gold);
}

/* =================================================================
   MEMORIAL MODALS (Shared Components - Standard Classes)
   ================================================================= */
.memorial-slideshow,
.memorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.memorial-slideshow.active,
.memorial-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-slideshow-overlay,
.memorial-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.95);
}

.memorial-slideshow-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.memorial-modal-content {
    position: relative;
    background: var(--forest-cream);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.memorial-slideshow-close,
.memorial-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--forest-cream);
    font-size: 36px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.memorial-modal-close {
    top: 15px;
    right: 15px;
    color: var(--forest-text);
    font-size: 28px;
}

.memorial-slideshow-prev,
.memorial-slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(245, 241, 235, 0.2);
    border: none;
    color: var(--forest-cream);
    font-size: 48px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.memorial-slideshow-prev:hover,
.memorial-slideshow-next:hover {
    background: rgba(245, 241, 235, 0.3);
}

.memorial-slideshow-prev {
    left: -80px;
}

.memorial-slideshow-next {
    right: -80px;
}

.memorial-slideshow-image-container {
    text-align: center;
}

.memorial-slideshow-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.memorial-slideshow-counter {
    margin-top: 15px;
    color: var(--forest-cream);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.memorial-slideshow-controls {
    margin-top: 20px;
    text-align: center;
}

.memorial-modal-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--forest-brown-deep);
    margin: 0 0 10px;
}

.memorial-modal-content > p {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--forest-text-light);
    margin: 0 0 25px;
}

.memorial-modal-content .memorial-form-group {
    margin-bottom: 20px;
}

.memorial-modal-content label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--forest-text-light);
    margin-bottom: 8px;
}

.memorial-modal-content input[type="text"],
.memorial-modal-content input[type="email"],
.memorial-modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--forest-text);
    background: white;
    border: 1px solid var(--forest-border);
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.memorial-modal-content input:focus,
.memorial-modal-content textarea:focus {
    outline: none;
    border-color: var(--forest-gold-muted);
}

.memorial-modal-content small {
    display: block;
    font-size: 12px;
    color: var(--forest-text-light);
    margin-top: 5px;
}

.memorial-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.memorial-btn {
    display: inline-block;
    padding: 12px 25px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.memorial-btn-primary {
    background: var(--forest-card-dark);
    color: var(--forest-cream);
}

.memorial-btn-primary:hover {
    background: var(--forest-brown-deep);
}

.memorial-btn-secondary {
    background: transparent;
    color: var(--forest-brown);
    border: 1px solid var(--forest-border);
}

.memorial-btn-secondary:hover {
    border-color: var(--forest-brown);
}

.memorial-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 900px) {
    .forest-timeline {
        padding-left: 30px;
    }
    
    .forest-timeline::before {
        left: 10px;
    }
    
    .forest-timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-left: 40px;
    }
    
    .forest-timeline-date {
        text-align: left;
        padding-right: 0;
    }
    
    .forest-timeline-marker {
        position: absolute;
        left: -30px;
        margin-left: 0;
    }
    
    .forest-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .forest-hero {
        min-height: 80vh;
    }
    
    .forest-hero-name {
        letter-spacing: 4px;
    }
    
    .forest-nav-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .forest-nav-link {
        padding: 15px 20px;
        white-space: nowrap;
    }
    
    .forest-nav-icon {
        display: none;
    }
    
    .forest-section {
        padding: 60px 15px;
    }
    
    .forest-favourites-grid {
        gap: 40px;
    }
    
    .forest-favourites-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .forest-tributes-grid,
    .forest-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .forest-tribute-card {
        flex-direction: column;
        text-align: center;
    }
    
    .forest-tribute-footer {
        justify-content: center;
    }
    
    .forest-gallery-header,
    .forest-tributes-header {
        flex-direction: column;
        text-align: center;
    }
    
    .memorial-slideshow-prev,
    .memorial-slideshow-next {
        position: fixed;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .memorial-slideshow-prev {
        left: 20px;
    }
    
    .memorial-slideshow-next {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .forest-hero-content {
        padding: 40px 15px;
    }
    
    .forest-hero-cta {
        padding: 12px 30px;
    }
    
    .forest-obituary p:first-of-type::first-letter {
        font-size: 56px;
    }
    
    .forest-service-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    .forest-hero {
        min-height: auto;
        padding: 40px 20px;
        background: white !important;
    }
    
    .forest-hero-overlay {
        display: none;
    }
    
    .forest-hero-name,
    .forest-hero-dates {
        color: #333 !important;
        text-shadow: none !important;
    }
    
    .forest-nav,
    .forest-btn,
    .memorial-slideshow,
    .memorial-modal,
    .forest-footer {
        display: none !important;
    }
    
    .forest-section {
        break-inside: avoid;
        padding: 30px 0;
    }
    
    .forest-tribute-card {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}