:root {
    /* Color Palette */
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #f9f7f1; /* Cream/organic white */
    
    --text-light: #f4f4f4;
    --text-dark: #222222;
    --text-muted-light: #a0a0a0;
    --text-muted-dark: #555555;
    
    --accent: #d4af37; /* Premium gold / earth tone */
    --accent-hover: #b5952f;
    
    --forest-dark: #1a2421; /* Dark green for specific sections */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 10px;
}

.btn-primary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-primary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-nav {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0.6rem 1.5rem;
}

.btn-nav:hover {
    background: var(--accent-hover);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--text-light);
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-bg {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 5rem;
    letter-spacing: 10px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    color: var(--text-light);
}

/* Common Layout Sections */
.section {
    padding: 8rem 0;
}

.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.dark-section {
    background-color: var(--bg-darker);
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.align-start {
    align-items: start;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-separator {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem 0 2rem 0;
}

.title-separator.center {
    margin: 1.5rem auto 2rem auto;
}

/* Typography specifics for sections */
.manifesto-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-dark);
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: inherit;
    opacity: 0.9;
}

.dark-section .story-text {
    color: var(--text-muted-light);
}

/* Image Placeholders */
.image-placeholder {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px dashed #bbb;
}

.dark-section .image-placeholder {
    background-color: #222;
    border-color: #444;
    color: #888;
}

.image-placeholder span {
    padding: 1rem;
    opacity: 0.7;
}

.portrait {
    aspect-ratio: 3/4;
    width: 100%;
}

.landscape {
    aspect-ratio: 16/9;
    width: 100%;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cards Grid for Experiences */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.small-placeholder {
    height: 250px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
}

.card-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card-content p {
    color: var(--text-muted-light);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 6rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-title {
    font-size: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    width: 100%;
    color: var(--text-muted-dark);
    font-size: 0.9rem;
}

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }

.active {
    opacity: 1;
    transform: translate(0);
}

/* Gallery Section */
.gallery-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-tab {
    background: transparent;
    color: var(--text-muted-dark);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 30px;
}

.btn-tab.active, .btn-tab:hover {
    background: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-dark);
}

.gallery-subtabs {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-subtab {
    background: transparent;
    color: var(--text-muted-dark);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-subtab.active, .btn-subtab:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

.masonry-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.photo-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-family: var(--font-body);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 2;
    letter-spacing: 0.5px;
}

.masonry-item:hover {
    transform: scale(1.02);
}

.masonry-item.hidden {
    display: none;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent);
    padding: 3rem;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-image span {
    padding: 0;
    font-size: 0.8rem;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

/* Blog */
.blog-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1rem 0;
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-muted-dark);
    margin-bottom: 1.5rem;
}

.blog-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-link:hover {
    color: var(--accent);
}

/* Manifesto specific */
.manifesto-heading {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

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

/* Featured Testimonial Styles */
.featured-testimonial {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    padding: 3rem;
    margin-top: 3rem;
    border-radius: 4px;
}

.testimonial-quote-large {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.testimonial-author-large h4 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.testimonial-author-large p {
    color: var(--text-muted-light);
    font-size: 0.95rem;
}

@media (min-width: 993px) {
    .grid-2.desktop-reverse > *:first-child {
        order: 2;
    }
    .grid-2.desktop-reverse > *:last-child {
        order: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: -1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 999;
    }

    .btn-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-light);
    }
}

/* PDF Modal styles */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 3% auto;
    background-color: #111;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.pdf-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.3s;
}

.pdf-modal-close:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 85%;
        margin: 15% auto;
    }
}

/* Memorial Gallery Styles */
.memorial-container {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.memorial-header {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.memorial-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.memorial-tribute {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--accent); /* Elegant gold */
    margin-top: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.memorial-masonry-grid {
    column-count: 4;
    column-gap: 1.5rem;
}

.memorial-masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memorial-masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.memorial-placeholder {
    width: 100%;
    aspect-ratio: 3/4; /* Default portrait aspect ratio */
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Mix of aspect ratios for dynamic masonry layout */
.memorial-masonry-item:nth-child(2n) .memorial-placeholder {
    aspect-ratio: 4/3; /* Landscape */
}

.memorial-masonry-item:nth-child(3n) .memorial-placeholder {
    aspect-ratio: 1/1; /* Square */
}

.memorial-masonry-item:hover .memorial-placeholder {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
    border-color: var(--accent);
}

.memorial-placeholder svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.memorial-placeholder span {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive Memorial Gallery */
@media (max-width: 1200px) {
    .memorial-masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .memorial-masonry-grid {
        column-count: 2;
        column-gap: 1rem;
    }
    .memorial-masonry-item {
        margin-bottom: 1rem;
    }
    .memorial-title {
        font-size: 1.8rem;
    }
    .memorial-tribute {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .memorial-masonry-grid {
        column-count: 1;
    }
}

/* Blog Grid Custom Styling for 2 columns */
.blog-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

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