/**
 * PawCandle Styles
 * Earthy, warm, serene design
 */

:root {
    --color-bg: #F5F1EB;
    --color-bg-light: #FDFCFB;
    --color-primary: #8B4513;
    --color-primary-dark: #5D2E0F;
    --color-accent: #D4A574;
    --color-text: #2D2D2D;
    --color-text-light: #6B7280;
    --color-border: #E5E0D8;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-success: #6B8E23;
    --color-error: #C14A4A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(to bottom, var(--color-bg-light), var(--color-bg));
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Map Container */
#map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    margin: 2rem 0;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--color-shadow);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Wizard */
.wizard {
    max-width: 600px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.wizard-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: -1;
}

.wizard-step:first-child::before {
    left: 50%;
}

.wizard-step:last-child::before {
    right: 50%;
}

.wizard-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wizard-step.active .wizard-step-number {
    background: var(--color-primary);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: var(--color-success);
    color: white;
}

.wizard-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Ritual Options */
.ritual-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ritual-option {
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ritual-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.ritual-option.selected {
    border-color: var(--color-primary);
    background: rgba(139, 69, 19, 0.05);
}

.ritual-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Duration Options */
.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.duration-option {
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.duration-option.selected {
    border-color: var(--color-primary);
    background: rgba(139, 69, 19, 0.05);
}

.duration-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.duration-label {
    color: var(--color-text-light);
}

/* Memorial Page */
.memorial {
    max-width: 800px;
    margin: 0 auto;
}

.memorial-header {
    text-align: center;
    margin-bottom: 2rem;
}

.memorial-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    margin: 2rem auto;
    display: block;
}

.memorial-candle {
    text-align: center;
    margin: 2rem 0;
}

.memorial-message {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--color-shadow);
    margin: 2rem 0;
}

.memorial-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-text-light);
}

/* Admin Panel */
.admin-header {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 12px 12px 0 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Table */
.table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-primary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: var(--color-bg-light);
}

.table-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .wizard-steps {
        flex-direction: column;
    }
    
    .wizard-step::before {
        display: none;
    }
    
    #map {
        height: 400px;
    }
    
    .ritual-options,
    .duration-options {
        grid-template-columns: 1fr;
    }
}

/* === NOV HERO STIL ZA ZLIVANJE SLIKE === */

/* 1. Toplejše in mehkejše ozadje */
.hero-magical {
    padding: 80px 0 100px; /* Malo več prostora spodaj */
    /* Nežen, topel preliv, ki se ujema s sliko */
    background: linear-gradient(to right, #fffcf8 20%, #fef4e4 100%);
    border-bottom: none; /* Odstranimo oster rob spodaj */
    position: relative;
    overflow: hidden;
}

/* 2. Mreža z malo več prostora za sliko */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Slika dobi malo več prostora */
    align-items: center;
    gap: 30px;
}

.hero-content {
    z-index: 2; /* Zagotovimo, da je besedilo nad sliko, če se prekrivata */
    padding-right: 20px;
}

/* 3. Kontejner za sliko */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. Slika z mehkim zlitjem (CSS Maska) */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 24px; /* Mehkejši robovi */

    /* KLJUČNO: Maska za mehak prehod na levi in spodnji strani */
    /* To ustvari učinek, da slika "izhaja" iz ozadja */
    -webkit-mask-image: linear-gradient(110deg, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(110deg, transparent 0%, black 15%, black 85%, transparent 100%);

    /* Nežna senca, ki se zlije s toplim ozadjem */
    filter: drop-shadow(0 25px 50px rgba(139, 69, 19, 0.2));

    /* Rahlo prekrivanje v levo za bolj povezan občutek */
    margin-left: -40px;
    transform: scale(1.08); /* Rahlo povečamo za bolj dramatičen učinek */
    transition: all 0.5s ease-out;
}

/* ODSTRANI STARI STIL: .magical-frame { ... } - tega ne rabiva več */


/* Tribute Flex Fix */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.tributes-flex { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.tributes-flex .tribute-card { width: 280px; }

/* Info Card */
.info-card { 
    background: #ffffff; 
    padding: 50px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    border: 1px solid #f5f5f5; 
    max-width: 900px; 
    margin: 0 auto; 
    text-align: center;
}
.info-icon { font-size: 3rem; margin-bottom: 20px; }
.count-badge { background: #5d4037; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; }

/* Mobile Fix */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; margin-bottom: 30px; }
}

/* Prilagoditev za mobilne naprave */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    .hero-visual {
        order: 2;
    }
    .hero-img {
        margin-left: 0;
        transform: scale(1);
        max-width: 95%;
        /* Na mobilnih maska zgoraj in spodaj */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    }
}

/* =========================================
   NAVIGACIJA IN MOBILNI MENI (HAMBURGER)
========================================= */
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link { color: var(--color-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-link:hover { color: var(--color-primary-dark); }

/* Skrit hamburger gumb za desktop */
.hamburger { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--color-primary-dark); padding: 5px; }

/* Na velikih zaslonih mobilni CTA skrijemo */
@media (min-width: 769px) {
    .mobile-cta { display: none; }
}

/* Mobilni stili */
@media (max-width: 768px) {
    /* Prikazemo hamburger gumb */
    .hamburger { display: block; }
    
    /* Skrijemo standardni gumb v headerju (tisti, ki ni v meniju) */
    .header-content > div > .btn-primary:not(.mobile-cta) { display: none; }

    /* Mobilni meni - privzeto skrit in zdrsne od zgoraj */
    #mobile-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Višina headerja */
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        border-bottom: 2px solid var(--color-accent);
    }

    /* Ko je meni aktiven, zdrsne dol */
    #mobile-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid #f0e6dd;
        width: 100%;
        text-align: center;
    }
    
    .nav-link:last-child { border-bottom: none; }
    
    /* Pokažemo gumb znotraj mobilnega menija */
    .mobile-cta {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}
/* =========================================
   POSODOBITVE — 2026 (PawCandle refresh)
========================================= */

/* Topel knjižnjičarski font v body (Lora se je nalagal, ampak se ni uporabljal) */
body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
}
/* UI elementi naj ostanejo v sans-serifu zaradi berljivosti */
.btn, .nav-link, .lang-switcher, input, textarea, select, button,
.header-content, .hamburger, .map-meta, .donation-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* MANJKAJOČA RAZRED — btn-large (uporabljen v hero-CTA-ju) */
.btn-large {
    padding: 1.05rem 2.4rem;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 8px 18px -6px rgba(139, 69, 19, 0.4);
}
.btn-large:hover {
    box-shadow: 0 14px 28px -8px rgba(139, 69, 19, 0.5);
    transform: translateY(-3px);
}

/* Glavni CTA dobi bolj toplo "candle glow" verzijo */
.btn-primary.btn-large {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a55620 100%);
}
.btn-primary.btn-large:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #8B4513 100%);
}

/* Header polished */
header { backdrop-filter: blur(6px); }

/* Map popup — Lora */
.leaflet-popup-content { font-family: 'Lora', Georgia, serif; }

/* Mehkejši fokus za dostopnost */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Skritje desktop CTA na mobilu */
@media (max-width: 768px) {
    .desktop-cta { display: none !important; }
}

/* =========================================
   TEMNI HERO + DOMAČA STRAN (Topel dom paleta)
========================================= */
.dark-theme {
    --dark-bg-top:     #2f1d10;
    --dark-bg-mid:     #261810;
    --dark-bg-bottom:  #1d130a;
    --dark-card-bg:    rgba(50, 32, 18, 0.7);
    --dark-card-border: rgba(120, 80, 50, 0.4);
    --warm-text:       #fff5e6;
    --warm-text-soft:  #d8c4a9;
    --warm-text-muted: #a89378;
    --warm-accent:     #f0c987;
    --warm-cta:        #d48c46;
    --warm-cta-hover:  #b97a3c;
}

/* === DARK SECTION COMMON === */
.section-dark {
    background: linear-gradient(180deg, var(--dark-bg-top) 0%, var(--dark-bg-mid) 50%, var(--dark-bg-bottom) 100%);
    color: var(--warm-text);
    padding: 80px 0;
    position: relative;
}
.section-dark::before {
    /* Mehka vinjeta */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(15, 8, 4, 0.4) 100%);
    pointer-events: none;
}

/* === HERO === */
.hero-dark {
    background: linear-gradient(180deg, #2f1d10 0%, #1d130a 100%);
    color: var(--warm-text);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 200, 110, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero-dark .container {
    position: relative;
    z-index: 2;
}
.hero-grid-dark {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
}
.hero-content-dark h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--warm-text);
    font-weight: 500;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}
.hero-content-dark h1 .accent {
    display: block;
    font-style: italic;
    color: var(--warm-accent);
    margin-top: 5px;
}
.hero-content-dark .brand-label {
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--warm-accent);
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.hero-content-dark p.lead {
    font-size: 1.2rem;
    color: var(--warm-text-soft);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 92%;
}

/* CTA gumb temno topel */
.btn-warm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.1rem 2.4rem;
    background: linear-gradient(135deg, var(--warm-cta) 0%, #c47a36 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(212, 140, 70, 0.4), inset 0 1px 0 rgba(255, 200, 130, 0.4);
    border: 1px solid rgba(255, 200, 130, 0.3);
}
.btn-warm:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px -8px rgba(212, 140, 70, 0.55), inset 0 1px 0 rgba(255, 200, 130, 0.4);
    background: linear-gradient(135deg, #c47a36 0%, var(--warm-cta) 100%);
}

.donation-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 245, 225, 0.92);
    color: #8B4513;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid rgba(212, 165, 116, 0.5);
    margin-top: 20px;
}

.social-proof-dark {
    margin-top: 30px;
    color: var(--warm-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.social-proof-dark strong {
    color: var(--warm-text);
}

/* === HERO VIZUAL: SCENA Z LESENO POLICO === */
.hero-scene {
    position: relative;
    height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Lesena polica */
.wooden-shelf {
    position: absolute;
    bottom: 0;
    left: -10%;
    right: -10%;
    height: 60px;
    background:
        linear-gradient(180deg, transparent 0%, transparent 30%, rgba(0,0,0,0.3) 100%),
        repeating-linear-gradient(90deg, #6b3d1f 0px, #7a4a26 60px, #5d3019 120px, #6b3d1f 180px),
        linear-gradient(180deg, #8a5530 0%, #5d3019 100%);
    box-shadow:
        inset 0 8px 12px rgba(0,0,0,0.4),
        0 -2px 8px rgba(255, 195, 110, 0.05);
}
.wooden-shelf::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(180deg, rgba(255, 200, 130, 0.2), transparent);
}

/* Svečka */
.hero-candle-wrap {
    position: relative;
    width: 220px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
}
.hero-candle-glow {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 200, 110, 0.55) 0%,
        rgba(255, 190, 110, 0.22) 30%,
        rgba(255, 180, 100, 0.08) 55%,
        rgba(255, 170, 90, 0) 75%);
    filter: blur(20px);
    pointer-events: none;
    animation: candle-glow-pulse 4.5s ease-in-out infinite;
}
@keyframes candle-glow-pulse {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}
.hero-candle-img {
    position: relative;
    z-index: 2;
    width: 200px;
    height: auto;
    transform-origin: 50% 95%;
    animation: candle-breathe-hero 5s ease-in-out infinite;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}
@keyframes candle-breathe-hero {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.005, 0.998); }
}

/* === FOTO OKVIR LJUBLJENČKA === */
.hero-frame {
    position: relative;
    width: 200px;
    height: 270px;
    background: linear-gradient(135deg, #8b5a30 0%, #6b3d1f 100%);
    border-radius: 12px;
    padding: 12px 12px 0 12px;
    box-shadow:
        0 22px 35px -10px rgba(0, 0, 0, 0.6),
        inset 0 2px 0 rgba(255, 200, 130, 0.25);
    margin-bottom: 30px;
    z-index: 4;
    transition: transform 0.5s ease;
}
.hero-frame:hover {
    transform: translateY(-5px) rotate(-1deg);
}
.hero-frame-photo {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0e0c8;
}
.hero-frame-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
}
.hero-frame-photo img.fade-out {
    opacity: 0;
}
.hero-frame-caption {
    background: #fff8eb;
    padding: 10px 8px;
    margin: 4px -4px 0 -4px;
    border-radius: 0 0 8px 8px;
    text-align: center;
}
.hero-frame-caption .pet-name {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    color: #5d2e0f;
    font-size: 1.05rem;
    transition: opacity 0.8s ease;
}
.hero-frame-caption .pet-loc {
    color: #8b6b48;
    font-size: 0.75rem;
    margin-top: 2px;
    transition: opacity 0.8s ease;
}

/* Pin (kot pribit na polico) */
.hero-frame::after {
    content: '🪡';
    position: absolute;
    top: -8px;
    right: 18px;
    font-size: 14px;
    opacity: 0.5;
    pointer-events: none;
}

/* ============ SEKCIJE NA TEMNI PALETI ============ */
.section-dark .section-title {
    color: var(--warm-text);
    font-family: 'Lora', Georgia, serif;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 14px;
}
.section-dark .section-subtitle {
    color: var(--warm-text-soft);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

/* Kartice "How to Honor" */
.ritual-card-dark {
    background: var(--dark-card-bg);
    border: 1px solid var(--dark-card-border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.ritual-card-dark:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 18px 35px -10px rgba(212, 140, 70, 0.18);
}
.ritual-card-dark .ritual-icon-dark {
    font-size: 2.5rem;
    margin-bottom: 18px;
    color: var(--warm-accent);
}
.ritual-card-dark h3 {
    color: var(--warm-text);
    font-family: 'Lora', Georgia, serif;
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.ritual-card-dark p {
    color: var(--warm-text-soft);
    font-size: 0.97rem;
    line-height: 1.6;
}

/* Map sekcija na temni */
.map-card-dark {
    background: var(--dark-card-bg);
    border: 1px solid var(--dark-card-border);
    border-radius: 22px;
    padding: 28px;
    backdrop-filter: blur(8px);
}
.map-card-dark .map-meta {
    color: var(--warm-text-soft);
    margin-bottom: 22px;
}
.map-card-dark .map-meta strong {
    color: var(--warm-text);
}
.map-card-dark #map {
    border-radius: 14px;
    border: 2px solid rgba(255, 195, 110, 0.15);
}

/* Recent Memorials kartice — ostanejo svetlemu (kontrast) */
.tribute-card-dark {
    background: var(--warm-text); /* svetel papir na temni */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 220, 170, 0.5);
}
.tribute-card-dark:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.65);
}
.tribute-card-dark .tribute-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.tribute-card-dark .tribute-content {
    padding: 18px;
    text-align: center;
}
.tribute-card-dark h3 {
    color: var(--color-primary);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.tribute-card-dark .tribute-loc {
    color: #8b6b48;
    font-size: 0.83rem;
    margin-bottom: 8px;
}
.tribute-card-dark .tribute-link {
    color: var(--warm-cta);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
}

/* Healing sekcija na temni */
.healing-card-dark {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    color: var(--warm-text-soft);
}
.healing-card-dark .healing-icon {
    font-size: 2.5rem;
    color: var(--warm-accent);
    margin-bottom: 18px;
}
.healing-card-dark h2 {
    color: var(--warm-text);
    font-family: 'Lora', Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 22px;
}
.healing-card-dark p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 18px;
}
.healing-card-dark p strong {
    color: var(--warm-accent);
}

/* ============ NAVBAR & FOOTER DARK ============ */
header.dark-header {
    background: linear-gradient(180deg, rgba(35, 22, 12, 0.96) 0%, rgba(35, 22, 12, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 80, 50, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.dark-header .logo-text {
    color: var(--warm-text) !important;
}
.dark-header .nav-link {
    color: var(--warm-text-soft) !important;
}
.dark-header .nav-link:hover {
    color: var(--warm-accent) !important;
}
.dark-header .lang-switcher a {
    color: var(--warm-text-muted) !important;
}
.dark-header .lang-switcher a.active {
    color: var(--warm-accent) !important;
}
.dark-header .hamburger {
    color: var(--warm-text) !important;
}
.dark-header .desktop-cta, .dark-header .mobile-cta {
    background: linear-gradient(135deg, var(--warm-cta) 0%, #c47a36 100%) !important;
    color: white !important;
    border: 1px solid rgba(255, 200, 130, 0.3) !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-dark { padding: 70px 0 40px; }
    .hero-grid-dark { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-content-dark h1 { font-size: 2.6rem; }
    .hero-content-dark p.lead { max-width: 100%; margin: 0 auto 25px; }
    .hero-scene { height: 420px; }
    .hero-candle-wrap { width: 160px; }
    .hero-candle-img { width: 150px; }
    .hero-candle-glow { width: 240px; height: 240px; }
    .hero-frame { width: 160px; height: 220px; }
    .hero-frame-photo { height: 150px; }

    .section-dark { padding: 60px 0; }
    .section-dark .section-title { font-size: 1.8rem; }

    /* Na zelo majhnih: stack svečka + okvir vertikalno */
    .hero-scene-inner { flex-direction: column-reverse; align-items: center; }
}

/* Smooth pop-in animations */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-content-dark > * {
    animation: fade-up 0.8s ease-out both;
}
.hero-content-dark > *:nth-child(1) { animation-delay: 0s; }
.hero-content-dark > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content-dark > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content-dark > *:nth-child(4) { animation-delay: 0.3s; }
.hero-content-dark > *:nth-child(5) { animation-delay: 0.4s; }

/* === Home dark body override === */
body.home-dark {
    background: #1d130a;
    color: var(--warm-text);
}

/* Fade-up je problematic na nizki performance — naredimo da je viden takoj */
@media (prefers-reduced-motion: reduce) {
    .hero-content-dark > * { animation: none; opacity: 1; }
}
.btn-warm, .donation-pill {
    /* Bistveno: ne sme biti animiran fade-up — moramo biti vidni */
    opacity: 1 !important;
}

/* Map nazaj svetla podlaga ne pa črne kvadratke */
body.home-dark #map {
    background: #2a1d12;
}

/* Svečka mora "stati" na polici — popravim postavitev */
.hero-scene {
    position: relative;
    height: 480px;
}
.hero-scene-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    height: 100%;
}
/* Svečka mora sedeti TIK NAD polico (polica je na bottom: 0, visoka 60px) */
.hero-candle-wrap {
    position: relative;
    height: auto;
    margin-bottom: 30px;
}
.hero-candle-img {
    display: block;
}
/* Foto okvir tudi tik nad polico */
.hero-frame {
    margin-bottom: 30px;
    margin-left: -15px;
}

/* Popravki vidljivosti besedila v temni paleti */
.section-dark .section-title { color: #fff5e6 !important; }
.section-dark .section-subtitle { color: #d8c4a9 !important; }
.ritual-card-dark h3 { color: #fff5e6 !important; }
.ritual-card-dark p { color: #d8c4a9 !important; }
.healing-card-dark h2 { color: #fff5e6 !important; }
.healing-card-dark p { color: #d8c4a9 !important; }
.healing-card-dark p strong { color: #f0c987 !important; }
.map-card-dark .map-meta { color: #d8c4a9 !important; }
.map-card-dark .map-meta strong { color: #fff5e6 !important; }
.tribute-card-dark .tribute-loc { color: #8b6b48 !important; }
.social-proof-dark { color: #b8a07e !important; }
.social-proof-dark strong { color: #fff5e6 !important; }

/* Hero text */
.hero-content-dark h1 { color: #fff5e6 !important; }
.hero-content-dark .lead { color: #d8c4a9 !important; }
.hero-content-dark .brand-label { color: #f0c987 !important; }
.hero-content-dark h1 .accent { color: #f0c987 !important; }

/* === Dark map trick — OSM tiles + CSS filter (brez API ključa) ===
   invert() zamenja svetle in temne barve, hue-rotate() vrne prave barve,
   brightness() in contrast() poiščejo pravi ton. Rezultat: navadni OSM v dark mode. */
.map-tiles-dark {
    filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.7);
}
/* Popravek za CSS filter — cesta labels ostanejo berljive */
body.home-dark .leaflet-container {
    background: #1a1108;
}
/* Popup ni podvržen filtru (ker je na drugem layerju) — samo napisi na kartah */
body.home-dark .leaflet-popup-content-wrapper {
    background: #fff8eb;
    color: #5d2e0f;
}
body.home-dark .leaflet-popup-tip {
    background: #fff8eb;
}
/* Zoom kontrole */
body.home-dark .leaflet-control-zoom a {
    background: #3d2818 !important;
    color: #f0c987 !important;
    border-color: #5d4630 !important;
}
body.home-dark .leaflet-control-zoom a:hover {
    background: #5d3820 !important;
}
/* Attribution */
body.home-dark .leaflet-control-attribution {
    background: rgba(30, 20, 12, 0.85);
    color: #a89378;
}
body.home-dark .leaflet-control-attribution a {
    color: #f0c987;
}
