/* 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;
        left: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        border-bottom: 1px solid #ccc;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        visibility: hidden;
    }

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

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

    .menu-icon {
        display: block;
    }

    /* Show the mobile nav when toggled */
    .nav-links.show {
        max-height: 500px;
        visibility: visible;
    }

    /* 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;
    }
}

/* CONTACT FORM STYLES */
.contact-section {
    /* max-width already set by .section-placeholder */
}

.contact-form {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'PT Sans Caption', sans-serif;
    font-size: 1rem;
    color: #333;
}

.form-group textarea {
    resize: vertical;
    /* Allow vertical resize, disable horizontal */
    min-height: 120px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'PT Sans Caption', sans-serif;
}

.submit-button:hover {
    background-color: #333;
}

/* Success and Error Messages */
.success-message {
    color: green;
    background-color: #e6ffed;
    border: 1px solid #b7ebc9;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.error-message {
    color: red;
    background-color: #ffeeee;
    border: 1px solid #ffc2c2;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}


/* RESPONSIVE FOR CONTACT FORM */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .submit-button {
        font-size: 1rem;
        padding: 0.7rem;
    }
}

/* HONEYPOT FIELD - HIDE FROM HUMANS */
.honeypot-field-container {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    /* Ensure it's not clickable */
    /* Alternative method: display: none; 
       However, some bots might detect display:none. 
       The opacity/positioning method is often more robust. */
}

.honeypot-field {
    /* Optional: further ensure it's not visible if the container style fails */
    visibility: hidden;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
}