/* RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans Caption', sans-serif;
    background-color: #fff;
    color: #000;
    font-size: 16px;
}

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

a {
    color: #000;
    text-decoration: underline;
}

/* NAVBAR */
header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Reduced to 900px for a narrower site layout */
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* FLICKITY CAROUSEL */
/* Narrower max-width so images don't appear too wide */
.main-carousel {
    max-width: 900px;
    margin: 2rem auto;
}

/* Each slide uses a background image (rather than an <img> tag) */
.carousel-cell {
    width: 100%;
    height: 60vh;
    /* Desktop height */
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Placeholder sections (About, Contact pages) */
.section-placeholder {
    /* Also narrower than before */
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* RESPONSIVE: TALLER CAROUSEL ON MOBILE */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 200px;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-left: 1px solid #ccc;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: right;
        margin-right: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .menu-icon {
        display: block;
    }

    /* Show the mobile nav when toggled */
    .nav-links.show {
        transform: translateX(0%);
    }

    /* Make the carousel a bit taller on smaller screens */
    .carousel-cell {
        height: 70vh;
        /* e.g. 70% of viewport height on mobile */
    }

    .carousel-cell.lean-left {
        background-position: 41% center;
    }

    .carousel-cell.lean-slight-right {
        background-position: 58% center;
    }

    .carousel-cell.lean-right {
        background-position: 77% center;
    }

    .carousel-cell.lean-right-more {
        background-position: 94% center;
    }
}