/* CSS Variables for Zen/Airy Theme */
:root {
    --bg-color: #fdfbf7;
    --text-color: #343a40;
    --text-light: #5a6268;
    --accent-color: #a3b18a;
    --accent-hover: #8d9a77;
    --terracotta: #e07a5f;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-large {
    padding: 1rem 3rem;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    padding: var(--spacing-md) 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
}

/* Hero Section (Video Background) */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--text-color);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    text-align: center;
    color: var(--white);
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

/* Navbar over video */
.navbar {
    padding: var(--spacing-md) 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}
.navbar .logo { color: var(--white); }
.navbar .nav-links a:not(.btn-primary) { color: var(--white); }
.navbar .nav-links a:not(.btn-primary)::after { background-color: var(--white); }
.navbar .mobile-menu-toggle span { background-color: var(--white); }

/* About Section */
.about {
    background-color: var(--white);
}

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

@keyframes fadeUpImage {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base styles for images */
.about-image-stack {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.about-image-stack img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: absolute;
    object-fit: cover;
    opacity: 0;
    transition: all 0.4s ease;
}

/* Hover effects directly on individual images */
.about-image-stack img:hover {
    z-index: 10 !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.img-main:hover {
    width: 100%;
    height: 100%;
}

.img-secondary:hover {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
}

.img-tertiary:hover {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
}

/* Trigger animations when parent section is visible */
.about.is-visible .img-main {
    animation: fadeUpImage 0.8s ease-out forwards;
}

.about.is-visible .img-secondary {
    animation: fadeUpImage 0.8s ease-out forwards 0.2s;
}

.about.is-visible .img-tertiary {
    animation: fadeUpImage 0.8s ease-out forwards 0.4s;
}

.img-main {
    width: 65%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 2;
}

.img-secondary {
    width: 50%;
    height: 60%;
    bottom: 4%;
    right: 4%;
    z-index: 3;
}

.img-tertiary {
    width: 45%;
    height: 50%;
    top: 10%;
    right: 0;
    z-index: 1;
}

.about-text {
    padding-right: 2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 3rem;
}

.stat-box h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Philosophy Section */
.philosophy {
    background-color: var(--bg-color);
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Section */
.cta {
    background-color: var(--terracotta);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

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

.cta .btn-primary:hover {
    background-color: var(--bg-color);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: var(--spacing-lg) 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-stats {
        border-left: none;
        padding-left: 0;
        flex-direction: row;
        justify-content: space-between;
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav for mockup */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
