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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1.5rem;
}

h1 { font-size: 4.2rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
    margin: 0 0 1.5rem;
}

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

a:hover {
    color: #303f9f;
}

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

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background: #263238;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-navigation {
    padding: 1rem 0;
}

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

.site-logo .logo-image {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.candle-link:hover {
    background: #ff6f00;
}

.story-link:hover {
    background: #2e7d32;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: url('../images/blue.jpg') center/cover, linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(57, 73, 171, 0.8) 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-logo {
    margin-bottom: 3rem;
}

.logo-main {
    height: 100px;
    width: auto;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 2rem;
    color: white;
}

.hero-description {
    font-size: 1.8rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== FOUNDER VIDEO SECTION ===== */
.founder-video-section {
    background: #f5f5f0;
    padding: 6rem 0;
}

.video-container {
    text-align: center;
}

.video-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #333;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.founder-video {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== MISSION SECTION ===== */
.mission-section {
    padding: 6rem 0;
    background: white;
}

.mission-title {
    text-align: center;
    font-size: 3.2rem;
    color: #1a237e;
    margin-bottom: 3rem;
}

.mission-text {
    font-size: 1.8rem;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    color: #555;
}

.mission-image {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="400" viewBox="0 0 600 400"><rect width="600" height="400" fill="%23f0f0f0"/><text x="300" y="200" text-anchor="middle" fill="%23999" font-family="Arial" font-size="14">Mission Image Placeholder</text></svg>');
    min-height: 400px;
}

.mission-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/clouds.png') center/cover;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1a237e;
    padding: 2rem;
    text-align: center;
}

.overlay-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.overlay-text-main {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    background: #fafafa;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cta-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    color: #1a237e;
}

.candle-cta .cta-icon {
    color: #ff6f00 !important;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.candle-cta .candle-icon {
    color: #ff6f00 !important;
}

.story-cta .cta-icon,
.story-cta .cta-icon svg,
.story-cta .story-icon {
    color: #2e7d32 !important;
}

.cta-card h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.cta-card p {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #1a237e;
    color: white;
}

.btn-primary:hover {
    background: #303f9f;
    color: white;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #1a237e;
    color: white;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 6rem 0;
    background: url('../images/blue.jpg') center/cover;
    color: white;
    text-align: center;
}

.stats-title {
    font-size: 3.2rem;
    margin-bottom: 4rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 4.8rem;
    font-weight: 700;
    color: #ffd54f;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1.8rem;
    opacity: 0.9;
}

/* ===== MEMORIES GRID ===== */
.recent-memories {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 3rem;
    color: #333;
}

.memory-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2rem;
    background: #f5f5f5;
    border: none;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1a237e;
    color: white;
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.memory-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.memory-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.memory-image.circular {
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 2rem;
}

.memory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 111, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-indicator {
    position: absolute;
    inset: 0;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memory-card:hover .candle-overlay {
    opacity: 1;
}

.memory-card:hover .story-indicator {
    opacity: 1;
}

.candle-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.story-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.memory-content {
    padding: 2rem;
}

.memory-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.memory-meta {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
}

.memory-excerpt {
    font-size: 1.4rem;
    color: #888;
    line-height: 1.4;
}

.view-all-memories {
    text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #263238;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffd54f;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    font-size: 1.4rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-mission {
    font-style: italic;
    color: #ffd54f;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #37474f;
    color: #999;
    font-size: 1.4rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    .nav-center {
        display: none;
    }
    
    .nav-center.mobile-active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-center.mobile-active .nav-menu {
        display: flex;
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-center.mobile-active .nav-menu li {
        margin: 0;
    }
    
    .nav-center.mobile-active .nav-menu a {
        display: block;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        font-size: 1.8rem;
        color: #333;
        background: none;
    }
    
    .nav-center.mobile-active .nav-menu a:hover {
        background: #f8f8f8;
        color: #333;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-card {
        padding: 3rem 2rem;
    }
    
    .memories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 52%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .founder-video-section,
    .mission-section,
    .cta-section,
    .recent-memories,
    .stats-section {
        padding: 4rem 0;
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GHOST KOENIG EDITOR REQUIRED STYLES ===== */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 4vw auto;
    transform: translateX(calc(50% - 50vw));
}

.kg-width-full {
    position: relative;
    width: 100vw;
    margin: 4vw auto;
    transform: translateX(calc(50% - 50vw));
}

@media (max-width: 1200px) {
    .kg-width-wide {
        width: 95vw;
        margin: 3vw auto;
    }
    
    .kg-width-full {
        margin: 3vw auto;
    }
}

@media (max-width: 768px) {
    .kg-width-wide {
        width: 100vw;
        margin: 2vw auto;
    }
    
    .kg-width-full {
        margin: 2vw auto;
    }
}
