/* CSS Variables & Reset */
:root {
    --color-primary: #1A3C34;
    /* Deep Forest Green */
    --color-secondary: #8C6B4B;
    /* Roasted Coffee */
    --color-accent: #D4B996;
    /* Cream/Latte */
    --color-text: #F9F7F2;
    /* Off-white for dark background */
    --color-text-dark: #2C2C2C;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition-standard: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-primary);
    color: var(--color-text);
    overflow-x: hidden;
    height: 100vh;
    width: 100%;
}

/* Layout */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Dimmed for text readability */
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

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

.content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
}

/* Typography & Elements */
h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-accent);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(249, 247, 242, 0.9);
    letter-spacing: 0.05em;
}

.cta-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background-color: var(--color-secondary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    /* Stitch style pill shape */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition-standard);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-icon {
    transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
}

/* Animations */
@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 1s;
}

@keyframes fadeIn {
    to {
        opacity: 0.7;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 14px 30px;
        width: 100%;
        justify-content: center;
    }
}

/* Image Slider */
.slider-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: rgba(26, 60, 52, 0.9);
    /* Semi-transparent background matching theme */
    padding: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.slider {
    height: 150px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 12);
    /* 250px slide width * 12 slides */
}

.slide {
    height: 150px;
    width: 250px;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 4));
    }

    /* Move by 4 slides (the length of one set) then reset */
}

/* Pause animation on hover */
.slide-track:hover {
    animation-play-state: paused;
}

/* Adjust scroll bar/scroll indicator to be above the slider */
/* Adjust scroll bar/scroll indicator to be above the slider */
.scroll-indicator {
    bottom: 220px;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    /* Ensure high z-index */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    /* Darker background */
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    /* Flex to center content */
    opacity: 1;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    /* Leave room for button */
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
    background: transparent;
    border: none;
    line-height: 1;
}

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

.lightbox-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background-color: var(--color-secondary);
    color: white;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: var(--transition-standard);
    margin-top: 10px;
}

.lightbox-cta:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 185, 150, 0.4);
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}