/* --------------------
   Global Variables (Customize These)
   -------------------- */
:root {
    --primary-color: #E67E22;
    --secondary-color: #34bB98;
    --dark-color: #333;
    --medium-color: #888;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --font-family: 'Helvetica Neue', Arial, sans-serif; /* Choose your font */
    --container-width: 1100px;
    --base-padding: 20px;
    --header-padding: 8px;
    --section-padding: 40px 0;
    --text-color: #333;
}

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

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

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

a:hover {
    text-decoration: underline;
    color: darken(var(--primary-color), 10%);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    margin-bottom: 0.4em;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
}

ul.list-bullets, .markdown-content ul {
    padding-left: 2em;
    list-style: disc;
}

img { /* Basic responsive images */
    max-width: 100%;
    height: auto;
}

/* --------------------
   Utility: Container
   -------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--base-padding);
}

/* --------------------
   Header & Navigation
   -------------------- */
.site-header {
    background-color: var(--white-color);
    padding: var(--header-padding) 0;
    border-bottom: 1px solid var(--light-color);
    position: sticky; /* Makes header stick on scroll */
    top: 0;
    z-index: 100;
}

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

.site-header .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
}

/* Style the logo image specifically */
.site-header .header-logo-img {
    height: 4rem; /* Adjust this value as needed */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align nicely if there's text nearby */
}

.site-header .main-navigation ul {
    display: flex;
}

.site-header .main-navigation ul li {
    margin-left: 25px;
}

.site-header .main-navigation a {
    color: var(--medium-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header .main-navigation a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Mobile Menu Button (Hidden by default on larger screens) */
.mobile-menu-button {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem; /* Adjust size as needed */
    cursor: pointer;
    color: var(--dark-color);
    padding: 5px;
    line-height: 1; /* Prevent extra spacing */
}

/* --------------------
   Buttons
   -------------------- */
.button {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    margin: 5px; /* Add some margin between buttons */
    white-space: nowrap; /* Prevent text inside buttons from wrapping */
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.button-primary:hover {
    background-color: lch(from var(--primary-color) calc(l - 30) c h);
    color: var(--white-color);
    text-decoration: none;
}

.button-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.button-secondary:hover {
    background-color: lch(from var(--secondary-color) calc(l - 30) c h);
    color: var(--white-color);
    text-decoration: none;
}

.button-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* --------------------
   Hero Section
   -------------------- */
.hero-section {
    background-color: var(--dark-color); /* Fallback color */
    background-size: cover;
    background-position: center center;
    color: var(--white-color);
    padding: 120px 0; /* Adjust padding for height */
    text-align: center;
    position: relative; /* For potential overlay */
}

/* Optional overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}

.hero-section h1 {
    color: var(--white-color);
    margin-bottom: 0.5em;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    max-width: 700px; /* Limit paragraph width */
    margin-left: auto;
    margin-right: auto;
}

/* --------------------
   General Section Styling
   -------------------- */
section,
.content-section { /* Apply standard padding to sections and content-section divs */
    padding: var(--section-padding);
}

section:nth-of-type(odd),
.alternate-bg { /* Alternate background for sections or specific divs */
    background-color: var(--light-color);
}

/* --------------------
   Intro Section
   -------------------- */
.intro-section {
   text-align: center;
   border-bottom: 1px solid var(--medium-color);
   padding-bottom: 20px;
}
.intro-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------
   Offerings Section
   -------------------- */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.offering-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Keep text centered */
}

.offering-item:hover {
    transform: translateY(-5px);
}

.offering-item .icon { /* Placeholder styling for icon text */
    display: block;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.offering-item h3 {
    margin-bottom: 10px;
}

.offering-item .learn-more {
    display: inline-block;
    margin-top: auto; /* Push link to the bottom */
    padding-top: 15px; /* Add space above the link after pushing down */
    font-weight: bold;
}

.offering-item .offering-price {
    margin-top: auto; /* Push price to the bottom */
    padding-top: 15px; /* Add space above the price */
    font-weight: bold;
    font-size: 1.1rem;
}

.offering-item ul {
    text-align: left;
}

/* --------------------
   Events Section
   -------------------- */
.events-list {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-item {
    background: var(--white-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-item h4 {
    margin-bottom: 5px;
    flex-basis: 100%; /* Title takes full width initially */
}

.event-item p {
    margin-bottom: 0;
    flex-grow: 1; /* Allow text to take available space */
    margin-right: 15px; /* Space before button/actions */
}

/* Style for workshop description within event item */
.workshop-description {
    font-size: 0.95rem;
    margin-top: 0.8em;
    padding-left: 1em; /* Indent slightly */
    flex-basis: 100%; /* Ensure it takes full width below title/details */
}

/* Container for workshop action buttons */
.workshop-actions {
    margin-left: 15px; /* Space from the text content */
    /* Align buttons vertically if needed, or adjust spacing */
    display: flex;
    flex-direction: column; /* Stack buttons if multiple */
    gap: 5px; /* Space between buttons */
    align-items: flex-end; /* Align buttons to the right */
    flex-shrink: 0; /* Prevent this container from shrinking, ensuring button has space */
}

.events-section .button-secondary { /* Center the 'View All' button */
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
}


/* --------------------
   Membership Snapshot
   -------------------- */
.membership-snapshot-section {
    background-color: var(--secondary-color); /* Example alternate background */
    color: var(--white-color);
    text-align: center;
}

.membership-snapshot-section h2 {
    color: var(--white-color);
}

.membership-snapshot-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
    color: var(--light-color); /* Lighter text on dark background */
}

/* --------------------
   Testimonials Section
   -------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: var(--white-color);
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1em;
}

.testimonial-item footer {
    font-weight: bold;
    color: var(--medium-color);
    font-style: normal;
}

/* --------------------
   Location/Hours Section
   -------------------- */
.location-hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    align-items: start; /* Align items to the top */
}

.location-info h3, .hours-info h3 {
    margin-bottom: 1em;
}

.hours-info ul li {
    margin-bottom: 0.5em;
}

.map-placeholder { /* Basic styling for the map placeholder */
    background-color: var(--light-color);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-color);
    margin-top: 1em;
    border: 1px dashed var(--medium-color);
    text-align: center;
}

/* --------------------
   Footer
   -------------------- */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.site-footer h4 {
    color: var(--white-color);
    margin-bottom: 1em;
}

.site-footer p, .site-footer li {
    margin-bottom: 0.8em;
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--primary-color);
}

.site-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-nav ul li a {
     display: block; /* Make links easier to click */
}

.footer-social a {
    margin-right: 10px;
    font-size: 1.5rem; /* Adjust size if using icon fonts */
    display: inline-block; /* Proper spacing for icons */
}

.footer-bottom {
    border-top: 1px solid var(--medium-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-color);
}

.footer-bottom p {
    margin-bottom: 0;
}

/* --------------------
   Basic Responsive Adjustments
   -------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .site-header .container {
        flex-direction: row; /* Keep logo and button on same row */
        justify-content: space-between; /* Space out logo and button */
        align-items: center;
    }

    .site-header .main-navigation {
        /* Position nav absolutely or fixed for overlay effect */
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: var(--white-color); /* Background for the dropdown */
        border-top: 1px solid var(--light-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        /* Hide nav by default */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out; /* Smooth transition */
        z-index: 99; /* Ensure it's below header but above content */
        margin-top: 0; /* Reset margin-top from previous rule */
    }

    /* Style to show the navigation when .nav-open is added */
    .site-header .main-navigation.nav-open {
        max-height: 500px; /* Set a max-height large enough for content */
    }

    .site-header .main-navigation ul {
        flex-direction: column; /* Stack nav links vertically */
        padding: 10px 0; /* Add padding inside the dropdown */
        align-items: center; /* Center links */
        text-align: center; /* Ensure text remains centered */
    }

    .site-header .main-navigation ul li {
        margin: 4px 0; /* Adjust spacing for vertical nav */
        width: 100%; /* Make list items take full width */
        text-align: center; /* Center text within list items */
    }

     .site-header .main-navigation ul li a {
        display: block; /* Make the whole area clickable */
        padding: 4px 0; /* Add padding to links */
    }

    /* Show the mobile menu button */
    .mobile-menu-button {
        display: block;
    }

    .hero-section {
        padding: 80px 0;
    }

    .offerings-grid {
        grid-template-columns: 1fr; /* Stack offerings */
    }

    .event-item {
        flex-direction: column; /* Stack event item content */
        align-items: flex-start;
    }

    .event-item .button {
        margin-top: 10px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr; /* Stack testimonials */
    }

    .location-hours-grid {
        grid-template-columns: 1fr; /* Stack location and hours */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }

    .footer-social {
        margin-top: 20px;
    }
}

/* --------------------
   Equipment Page Specific Styles
   -------------------- */

/* Grid for equipment items within a category */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-top: 2em; /* Space below category description */
}

/* Individual equipment item card */
.tool-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 25px;
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

.tool-card h3 {
    margin-top: 1em; /* Space above title if there's an image */
    margin-bottom: 0.5em;
    font-size: 1.3rem;
}

/* Placeholder for tool image */
.tool-image-placeholder {
    background-color: #eee;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-color);
    font-style: italic;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 1em;
}
/* Style for the actual tool image */
.tool-card .tool-image {
    display: block;
    width: 100%;
    height: 240px; /* Match placeholder height */
    object-fit: cover; /* Scale and crop image nicely */
    border-radius: 4px;
    margin-bottom: 1em;
}

/* Styling for item description within the card */
.tool-card .item-description {
    font-size: 0.95rem;
    margin-bottom: 1em;
    flex-grow: 1; /* Allow description to push content down */
}

/* Styling for specifications */
.tool-specs {
    font-size: 0.9rem;
    color: var(--medium-color);
    margin-bottom: 1em;
    background-color: var(--light-color); /* Slight background */
    padding: 10px;
    border-radius: 4px;
}

/* Styling for training requirement text */
.tool-training {
    font-weight: bold;
    color: var(--primary-color); /* Highlight training requirement */
    font-size: 0.9rem;
    margin-bottom: 1em;
}

/* Styling for the booking button within the card */
.tool-booking {
    margin-top: auto; /* Push button to the bottom */
    align-self: flex-start; /* Align button to the left */
}

/* --------------------
   Gallery Page Specific Styles
   -------------------- */

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

/* Shared button style for Gallery Filters and Equipment Jump-to */
.filter-button {
    background-color: var(--white-color);
    display: inline-block;
    color: var(--medium-color);
    border: 1px solid #ccc;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px; /* Rounded buttons */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.filter-button:hover {
    background-color: #eee;
    color: var(--dark-color);
}

.filter-button.active { /* Style for the active filter */
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    /* Adjust minmax for desired item size, auto-fit for responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Space between items */
    padding: var(--base-padding) 0; /* Padding for the section */
}

/* Individual Gallery Items */
.gallery-item {
    position: relative; /* Needed for absolute positioning of caption */
    overflow: hidden; /* Hide parts of caption that might overflow */
    border-radius: 8px; /* Optional: rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #eee; /* Background for the item itself */
    display: block; /* Ensure figure takes up grid space */
    transition: transform 0.3s ease; /* Subtle hover effect */
}

.gallery-item:hover {
    transform: scale(1.03); /* Slight zoom on hover */
}

/* Gallery Image Placeholder / Image styling */
.gallery-image-placeholder {
    background-color: #ccc; /* Placeholder background */
    height: 300px; /* Fixed height for uniform look, adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    width: 100%;
}
/* If using real images: */
.gallery-item img {
    display: block; /* Remove extra space below image */
    width: 100%;
    height: 300px; /* Match placeholder height */
    object-fit: cover; /* Crop image nicely to fit container */
    transition: opacity 0.3s ease;
}
.gallery-item:hover img {
   opacity: 0.8; /* Slightly fade image on hover to see caption better */
}


/* Gallery Caption Styling */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent black background */
    color: var(--white-color);
    padding: 15px;
    transform: translateY(100%); /* Start hidden below item */
    transition: transform 0.4s ease; /* Smooth slide effect */
    cursor: pointer;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0); /* Slide caption up on hover */
}

.gallery-caption h3 {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--light-color);
}

/* Link overlay (makes the whole item clickable) */
.gallery-link {
    display: block;
    text-decoration: none; /* Remove underline from link */
}

/* Filtering Hide Class */
.gallery-item.hidden {
    display: none; /* Hide items that don't match filter */
}

/* Gallery Call to Action Section */
.gallery-cta-section {
    padding: var(--section-padding); /* Reuse general section padding */
    /* Background/color already set inline/via variables */
}

.gallery-cta-section h2 {
    color: var(--white-color);
}

.gallery-cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
    color: var(--light-color);
}

/* Responsive adjustments for gallery if needed */
@media (max-width: 600px) {
    .gallery-grid {
        /* Example: Force single column on very small screens if needed */
        /* grid-template-columns: 1fr; */
    }
    .gallery-image-placeholder,
    .gallery-item img {
        height: 250px; /* Maybe taller images on mobile */
    }
}

#baguetteBox-overlay .full-image figcaption h3 {
    color: #ccc;
    line-height: 1.8;
    padding-top: 10px;
}

/* --------------------
   Membership Page: FAQ
   -------------------- */
.faq-item {
    /* Override .intro-section's text-align: center for the FAQ list */
    text-align: left;
    /* Constrain width and center the block, similar to paragraphs in this section */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em; /* Add some space between FAQ items */
}

.faq-question {
    cursor: pointer;
    font-weight: bold;
}

/* --------------------
   About Page Specific Styles (e.g., History Polaroids)
   -------------------- */
.polaroid-placeholder {
    background-color: var(--white-color);
    padding: 10px; /* White border of the polaroid */
    padding-bottom: 5px; /* Larger bottom padding for caption area */
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    width: 200px; /* Adjust as needed */
    text-align: center; /* Center the caption text */
    margin-bottom: 15px; /* Space below polaroid */
}

.polaroid-placeholder img {
    display: block; /* Remove extra space below image */
    width: 100%; /* Make image fill the container width */
    height: 240px; /* Fixed height for the image area */
    object-fit: cover; /* Scale and crop image to fit, maintaining aspect ratio */
    margin-bottom: 10px; /* Space between image and caption */
}

.polaroid-placeholder span { /* Caption styling */
    font-size: 0.9em;
    color: var(--dark-color);
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', cursive, sans-serif; /* "Handwritten" feel */
}

/* Clearfix utility */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
