/*
Theme Name: Photography One-Pager
Theme URI: http://example.com/photography-one-pager/
Author: Gemini CLI
Author URI: http://example.com/
Description: A simple and clean one-page theme for photography businesses.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photography-one-pager
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* --- General Styles --- */
:root {
    --karoo-light-bg: #fdfaf6; /* Very light, warm off-white */
    --karoo-sand: #e6dace; /* Light sand/beige */
    --karoo-earth: #c2b29c; /* Muted earthy tone */
    --karoo-dark: #5c534a; /* Darker earth/brown for text */
    --karoo-accent: #7a9e8e; /* Muted green/blue for accent */
    --karoo-accent-rgb: 122, 158, 142; /* RGB values for karoo-accent */
    --karoo-text-light: #6b635a;
    --karoo-text-light-rgb: 107, 99, 90;
    --karoo-text-dark: #3a332d;
    --karoo-text-dark-rgb: 58, 51, 45;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
}

html {
    font-size: 100%; /* Base font size, 1rem = 16px */
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--karoo-text-light);
    background-color: var(--karoo-light-bg);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth; /* For smooth scrolling */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px / 16 = 1.25rem */
}

#about .container {
    max-width: 90vw; /* Use 90% of viewport width for the about section container */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--karoo-text-dark);
    font-weight: 700;
}

/* Base h1 styling - will be overridden by hero h1 */
h1 { font-size: 2.8rem; } /* 2.8em -> 2.8rem */
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3.75rem; position: relative; } /* 2.2em -> 2.2rem, 60px -> 3.75rem */
h2::after {
    content: '';
    display: block;
    width: 3.75rem; /* 60px -> 3.75rem */
    height: 3px;
    background-color: var(--karoo-accent);
    margin: 0.9375rem auto 0; /* 15px -> 0.9375rem */
}
h3 { font-size: 1.6rem; } /* 1.6em -> 1.6rem */

p {
    margin-bottom: 1em;
}

a {
    color: var(--karoo-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--karoo-dark);
}

/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.55);
    color: var(--karoo-text-dark);
    padding: 0.625rem 0; /* 10px -> 0.625rem */
    box-shadow: 0 0.125rem 0.625rem var(--shadow-light); /* 2px -> 0.125rem, 10px -> 0.625rem */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 6.25rem; /* 100px -> 6.25rem */
    width: auto;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-left: 1.875rem; /* 30px -> 1.875rem */
}

nav ul li a {
    color: var(--karoo-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem; /* Increased from 1.05rem */
    padding: 0.3125rem 0; /* 5px -> 0.3125rem */
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -0.3125rem; /* 5px -> 0.3125rem */
    left: 0;
    background-color: var(--karoo-accent);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--karoo-accent);
}

/* --- Sections --- */
section {
    padding: 5rem 0; /* 80px -> 5rem */
    background: #ffffff;
    border-bottom: 1px solid var(--karoo-sand);
}

section:nth-of-type(even) {
    background-color: var(--karoo-light-bg);
}

section:last-of-type {
    border-bottom: none;
}

/* --- Hero Section --- */
#hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover; /* Relative path to images folder */
    position: relative;
    color: #fff;
    text-align: center;
    padding: 16.875rem 0 9.375rem 0; /* 270px -> 16.875rem, 150px -> 9.375rem */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Make it take up a good portion of the viewport height */
    margin-top: -7.5rem; /* -120px -> -7.5rem */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 83, 74, 0.2); /* Slightly less noticeable brownish tint */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h1 {
    font-size: 3.8rem; /* 3.8em -> 3.8rem */
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
    color: #fff; /* Ensure text is white */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

#hero .subtitle {
    font-size: 1.5rem; /* 1.5em -> 1.5rem */
    margin-bottom: 2.5rem; /* 40px -> 2.5rem */
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    white-space: normal;
}

.hero-cta {
    background: var(--karoo-accent);
    color: #fff;
    padding: 0.9375rem 1.875rem; /* 15px -> 0.9375rem, 30px -> 1.875rem */
    border: none;
    border-radius: 50px;
    font-size: 1.2rem; /* 1.2em -> 1.2rem */
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.hero-cta:hover {
    background-color: var(--karoo-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}



/* --- Gallery Section (Scrolling) --- */
.scrolling-gallery-wrapper {
    overflow-x: hidden; /* Hide scrollbar but keep scrolling */
    white-space: nowrap; /* Prevent items from wrapping */
    padding-bottom: 20px; /* Space for scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    max-width: 75vw; /* Use 75% of screen width */
    margin: 0 auto; /* Center the gallery */
    position: relative; /* For absolute positioning of items if needed, or animation */
}

/* Hide scrollbar for Webkit browsers */
.scrolling-gallery-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-button-container {
    text-align: center;
    margin-top: 30px; /* Reduced margin to bring it closer to the gallery */
    /* margin-bottom removed as section padding will handle spacing */
}

.scrolling-gallery {
    display: inline-flex; /* Arrange items in a row */
    gap: 1.5625rem; /* 25px -> 1.5625rem */
    padding-top: 1.25rem; /* 20px -> 1.25rem */
    animation: scroll-gallery 20s linear infinite; /* Animation applied here */
}

.scrolling-gallery .gallery-item {
    flex: 0 0 auto; /* Do not grow, do not shrink, base size auto */
    width: 40vh; /* Fixed width for gallery items based on viewport height */
    height: 60vh; /* Fixed height for gallery items based on viewport height */
    overflow: hidden;
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    box-shadow: 0 0.25rem 0.9375rem var(--shadow-medium); /* 4px -> 0.25rem, 15px -> 0.9375rem */
    transition: transform 0.3s ease-in-out;
    background-color: var(--karoo-sand); /* Placeholder background */
}

.scrolling-gallery .gallery-item:hover {
    transform: translateY(-0.3125rem); /* -5px -> -0.3125rem */
    box-shadow: 0 0.375rem 1.25rem var(--shadow-medium); /* 6px -> 0.375rem, 20px -> 1.25rem */
}

.scrolling-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if necessary */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    display: block;
}

/* --- Full Gallery Page Styles --- */
section#full-gallery {
    padding: 3rem 0; /* Adjust padding for the full gallery section */
    background: var(--karoo-light-bg); /* Use a consistent background */
}

.gallery-container {
    max-width: 85vw; /* User requested 85% of screen width */
    margin: 0 auto;
    padding: 0 1rem; /* Add some horizontal padding */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Spacing between images */
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.9375rem var(--shadow-medium);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.gallery-item::before {
    content: '';
    display: block;
    padding-top: 66.66%; /* 3:2 aspect ratio (height is 2/3 of width) */
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.gallery-item:hover {
    box-shadow: 0 0.5rem 1.5625rem var(--shadow-medium);
    transform: translateY(-5px);
}

.gallery-item.hidden {
    display: none !important;
}

/* Gallery Filters */
.gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem; /* Spacing between buttons */
}

.filter-button {
    background-color: rgba(var(--karoo-text-light-rgb), 0.7); /* Semi-transparent light brown */
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px; /* Rounded edges */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px; /* Ensure a minimum width */
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 180px; /* Limit max width for larger buttons */
}

.filter-button:hover {
    background-color: rgba(var(--karoo-text-dark-rgb), 0.8); /* Slightly darker on hover */
    transform: translateY(-2px);
}

.filter-button.active {
    opacity: 0.7; /* Lower opacity for selected button */
    background-color: var(--karoo-accent); /* Change active background for better visibility */
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: none; /* No lift effect when active */
}

/* Adjust button sizes for "View All" */
.filter-button[data-filter="all"] {
    min-width: 120px;
    max-width: 200px;
    font-size: 1.1rem;
    padding: 0.7rem 1.4rem;
}


/* --- Lightbox Styles --- */
.lightbox-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Dark overlay */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex; /* Show when active */
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain; /* Ensure the entire image is visible */
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -30px; /* Position relative to lightbox-content */
    right: -30px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    z-index: 10000;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--karoo-accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.8rem 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
    transition: background-color 0.2s ease;
    border-radius: 0.3rem;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
    left: -60px; /* Position outside the image */
}

.lightbox-next {
    right: -60px; /* Position outside the image */
}

/* Responsive adjustments for lightbox controls */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.5rem 0.3rem;
        font-size: 1.5rem;
        width: 40px;
        height: 80px; /* Make taller for easier tap target */
        top: 50%;
        transform: translateY(-50%);
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; /* Adjust minmax for 2 columns on mobile */
        gap: 1rem !important; /* Adjust gap for mobile */
    }

    .scrolling-gallery .gallery-item {
        height: 45vh !important; /* Adjust height for mobile scrolling gallery */
        width: 30vh !important; /* Set a specific width to maintain aspect ratio and ensure visibility */
    }

    .scrolling-gallery-wrapper {
        max-width: 90vw !important; /* Allow wrapper to take more width on mobile */
    }
}




/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--karoo-sand); /* Light background for contrast */
    padding: 5rem 0; /* 80px -> 5rem */
}

#testimonials h2 {
    color: var(--karoo-text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.875rem; /* 30px -> 1.875rem */
    max-width: 62.5rem; /* 1000px -> 62.5rem */
    margin: 3.75rem auto 0 auto; /* 60px -> 3.75rem */
}

.testimonial-item {
    background: #ffffff;
    padding: 1.875rem; /* 30px -> 1.875rem */
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    box-shadow: 0 0.3125rem 1.25rem var(--shadow-light); /* 5px -> 0.3125rem, 20px -> 1.25rem */
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.testimonial-item:hover {
    transform: translateY(-0.3125rem); /* -5px -> -0.3125rem */
    box-shadow: 0 0.5rem 1.5625rem var(--shadow-medium); /* 8px -> 0.5rem, 25px -> 1.5625rem */
}

.testimonial-item .quote {
    font-size: 1.1em;
    font-style: italic;
    color: var(--karoo-text-light);
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
    line-height: 1.6;
}

.testimonial-item .client-name {
    font-weight: 600;
    color: var(--karoo-accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
}

/* --- Pricing Section --- */
.pricing-list-container {
    max-width: 50rem; /* 800px -> 50rem */
    margin: 0 auto;
    padding-top: 1.25rem; /* 20px -> 1.25rem */
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.875rem 0; /* 30px -> 1.875rem */
    border: 1px solid var(--karoo-sand);
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    box-shadow: 0 0.3125rem 1.25rem var(--shadow-light); /* 5px -> 0.3125rem, 20px -> 1.25rem */
    background-color: #ffffff;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9375rem 1.25rem; /* 15px -> 0.9375rem, 20px -> 1.25rem */
    border-bottom: 1px solid var(--karoo-sand);
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--karoo-text-dark);
    flex-grow: 1;
}

.pricing-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--karoo-accent);
    margin-left: 0.9375rem; /* 15px -> 0.9375rem */
    white-space: nowrap; /* Prevent price from wrapping */
}

.pricing-details {
    color: var(--karoo-text-light);
    font-size: 0.9em;
    margin-left: 0.625rem; /* 10px -> 0.625rem */
}

.pricing-cta {
    text-align: center;
    margin-top: 1.875rem; /* 30px -> 1.875rem */
}

.button.primary {
    background: var(--karoo-accent);
    color: #fff;
    padding: 0.75rem 1.5625rem; /* 12px -> 0.75rem, 25px -> 1.5625rem */
    border: none;
    border-radius: 3.125rem; /* 50px -> 3.125rem */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Make it behave like a block for padding/margin */
}

.button.primary:hover {
    background-color: var(--karoo-dark);
    transform: translateY(-2px);
}

/* --- Contact Section --- */
#contact {
    background-color: rgb(241, 247, 247);
    padding: 3.75rem 0; /* 60px -> 3.75rem */
}
.contact-layout-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    align-items: center; /* Align items to the center */
    gap: 5rem; /* 80px -> 5rem */
    max-width: 56.25rem; /* 900px -> 56.25rem */
    margin: 0 auto;
    padding: 2.5rem 0; /* 40px -> 2.5rem */
}

.contact-details-wrapper {
    flex: 1 1 auto; /* Allow to grow and shrink */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align links */
    gap: 1.25rem; /* 20px -> 1.25rem */
    min-width: 17.5rem; /* 280px -> 17.5rem */
}

.photographer-image {
    flex: 1 1 auto; /* Allow to grow and shrink */
    max-width: 21.25rem; /* 340px -> 21.25rem */
    text-align: center;
}

.photographer-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    box-shadow: 0 0.3125rem 1.25rem rgba(0,0,0,0.08); /* 5px -> 0.3125rem, 20px -> 1.25rem */
}

.contact-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--karoo-text-dark);
    transition: color 0.3s ease;
    text-decoration: none; /* Ensure no underline */
}

.contact-link:hover {
    color: var(--karoo-accent);
}

.contact-link i {
    font-size: 1.5em;
    margin-right: 0.625rem; /* 10px -> 0.625rem */
    color: var(--karoo-accent);
}

.contact-link span {
    text-decoration: none;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2.5rem 1.25rem; /* 40px -> 2.5rem, 20px -> 1.25rem */
    background-color: var(--karoo-dark);
    color: var(--karoo-light-bg);
    font-size: 0.9em;
}

footer p {
    margin: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important; /* Force some default padding for all containers on mobile */
        max-width: 100% !important; /* Ensure containers can expand */
        box-sizing: border-box !important;
    }
    /*Contact Links*/
    .contact-details-wrapper {
        align-items: center;
    }
    /* Hero Section Responsive Adjustments */
    #hero {
        min-height: 70vh !important;
        padding: 6.25rem 0 !important;
        width: 100vw !important; /* Ensure it takes full viewport width */
        margin-left: calc(50% - 50vw) !important; /* Center it */
        box-sizing: border-box !important;
    }
    #hero h1 {
        font-size: 2.5rem !important;
    }
    #hero .subtitle {
        font-size: 1.2rem !important;
    }
    .hero-cta {
        font-size: 1rem !important;
        padding: 0.625rem 1.25rem !important;
    }

    /* General responsive heading adjustments */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; margin-bottom: 2.5rem !important; }

    /* Header & Navigation Responsive Adjustments */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    /* Hide desktop navigation on mobile by default */
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: block; /* Show hamburger menu on mobile */
    }
    body.no-scroll .menu-toggle {
        display: none; /* Hide hamburger when menu is open */
    }
    header {
        padding: 0.5rem 0;
    }
    .site-logo img {
        max-height: 2.5rem;
    }

    /* Full Gallery Grid Responsive Adjustments */
    .full-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }
    .gallery-item-full img {
        height: 150px !important;
    }
    .lightbox-content {
        padding: 10px !important;
    }
    .lightbox-close {
        font-size: 30px !important;
        top: 5px !important;
        right: 10px !important;
    }


    /* About Section Responsive Adjustments - Final Aggressive Reset for Mobile */
    #about {
        width: 90% !important; /* Adjusted to 90% width */
        margin: 0 auto !important; /* Centered */
        padding: 0 !important; /* Remove any default padding */
        box-sizing: border-box !important; /* Ensure padding/border don't add to width */
    }
    #about .container {
        width: 100% !important; /* Ensure full width relative to its parent (90% #about) */
        max-width: 100% !important; /* Override any max-width */
        margin: 0 !important; /* Remove default margins */
        padding: 0 1rem !important; /* Add internal padding for content within the 90% width */
        box-sizing: border-box !important;
    }

    .about-content-wrapper {
        flex-direction: column-reverse !important; /* Flip order for mobile: text above image */
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important; /* Ensure full width on mobile */
        gap: 0 !important; /* Remove gap between columns when stacked */
        margin: 0 auto !important; /* Force center and remove external margins */
        padding: 0 !important; /* Force remove default padding */
        box-sizing: border-box !important;
    }

    .about-image-column {
        flex: 1 1 100% !important; /* Ensure image column takes full width and stacks */
        max-width: 100% !important; /* Ensure image column takes full width */
        margin: 0 auto !important; /* Center image content */
        padding: 0 !important; /* Remove default padding */
        text-align: center !important; /* Center image content */
        box-sizing: border-box !important;
    }

    .about-image-column img {
        display: block !important; /* Ensure image behaves as block for margin auto */
        margin: 0 auto !important; /* Center image itself */
        max-width: 100% !important;
        height: auto !important; /* Maintain aspect ratio */
        box-sizing: border-box !important;
    }

    .about-text-column {
        flex: 1 1 100% !important; /* Ensure text column takes full width and stacks */
        max-width: 100% !important; /* Ensure text column takes full width */
        margin: 0 auto !important; /* Remove default margins */
        padding: 1.875rem 0 0 !important; /* Corrected: Removed horizontal padding to allow full width */
        text-align: center !important; /* Center all text content */
        box-sizing: border-box !important;
    }
    .about-text-column h2 {
        text-align: center !important; /* Center heading on mobile */
    }
    .about-text-column h2::after {
        margin: 0.9375rem auto 0 !important; /* Center underline on mobile */
    }
    .about-text-column p {
        text-align: center !important; /* Center paragraphs on mobile */
    }
    .about-highlights {
        justify-content: center !important; /* Ensure highlights are centered */
        margin: 1rem 0 !important; /* Adjust vertical margin for highlights */
        padding: 0 1rem !important; /* Add padding to highlights container */
        box-sizing: border-box !important;
    }
    .about-highlights li {
        flex: 1 1 100% !important; /* Ensure highlights stack vertically */
        justify-content: center !important; /* Center highlight items */
        text-align: center !important; /* Center text within highlight items */
    }
    .about-highlights li i {
        margin-right: 0.5rem !important; /* Adjust icon spacing */
    }
}

/* --- About Section Enhancements --- */
.about-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    align-items: center; /* Vertically center aligned for larger screens */
    gap: 3.75rem; /* 60px -> 3.75rem */
    padding-top: 1.25rem; /* 20px -> 1.25rem */
}

.about-image-column {
    flex: 1 1 21.875rem; /* 350px -> 21.875rem */
    max-width: 45%; /* Max width for image column */
    text-align: center;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.1); /* 10px -> 0.625rem, 30px -> 1.875rem */
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    overflow: hidden; /* Ensure border-radius applies to image */
}

.about-image-column img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.625rem; /* 10px -> 0.625rem */
}

.about-text-column {
    flex: 2 1 28.125rem; /* 450px -> 28.125rem */
    max-width: 55%;
}

.about-text-column h2 {
    text-align: left; /* Align heading left within text column */
    margin-bottom: 1.5625rem; /* 25px -> 1.5625rem */
}
.about-text-column h2::after {
    margin-left: 0; /* Align underline with text */
}

.about-text-column p {
    text-align: left; /* Ensure paragraphs are left-aligned */
    max-width: none; /* Remove previous max-width constraint */
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 1.875rem 0; /* 30px -> 1.875rem */
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem; /* 20px -> 1.25rem */
    justify-content: center; /* Center the items */
}

.about-highlights li {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--karoo-text-dark);
    font-size: 1.05em;
    flex: 1 1 calc(50% - 0.625rem); /* 10px -> 0.625rem */
}

.about-highlights li i {
    color: var(--karoo-accent);
    margin-right: 0.625rem; /* 10px -> 0.625rem */
    font-size: 1.3em;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0.5rem;
    position: relative;
    width: 2.5rem; /* 40px */
    height: 2rem; /* 32px */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    margin-left: auto;
}

.menu-toggle-icon {
    display: block;
    position: relative;
    width: 100%;
    height: 3px;
    background-color: var(--karoo-text-dark);
    transition: background-color 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--karoo-text-dark);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.menu-toggle-icon::before {
    top: -10px; /* 10px above current bar */
}

.menu-toggle-icon::after {
    bottom: -10px; /* 10px below current bar */
}

/* Animation for when menu is active */
.menu-toggle.is-active .menu-toggle-icon {
    background-color: transparent; /* Hide middle bar */
}

.menu-toggle.is-active .menu-toggle-icon::before {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-icon::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* Main Navigation (now adaptable for mobile) */
.main-navigation {
    transition: transform 0.3s ease-out;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation ul li {
    display: inline-block;
    margin-left: 1.875rem;
}

.main-navigation ul li a {
    color: var(--karoo-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 0.3125rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -0.3125rem;
    left: 0;
    background-color: var(--karoo-accent);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--karoo-accent);
}

/* Close menu button (desktop hidden) */
.close-menu {
    display: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important; /* Force some default padding for all containers on mobile */
        max-width: 100% !important; /* Ensure containers can expand */
        box-sizing: border-box !important;
    }

    /* Hero Section Responsive Adjustments */
   #hero {
    /* 1. Use dynamic viewport height to fill the screen perfectly */
    min-height: 100dvh !important; 

    /* 2. Increase top/bottom padding (e.g., from 6.25rem to 10rem) */
    padding: 10rem 0 !important; 

    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    box-sizing: border-box !important;

    /* 3. Ensure content stays centered if the height is very large */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    }
    #hero h1 {
        font-size: 2.5rem !important;
        padding-top: 5.5rem !important; 
    }
    #hero .subtitle {
        font-size: 1.2rem !important;
    }
    .hero-cta {
        font-size: 1rem !important;
        padding: 1rem 1.25rem !important;
    }

    /* General responsive heading adjustments */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; margin-bottom: 2.5rem !important; }

    /* Header & Navigation Responsive Adjustments */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    /* Hide desktop navigation on mobile by default */
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: block; /* Show hamburger menu on mobile */
    }
    body.no-scroll .menu-toggle {
        display: none; /* Hide hamburger when menu is open */
    }
    header {
        padding: 0.5rem 0;
    }
    .site-logo img {
        max-height: 2.5rem;
    }

    /* Full Gallery Grid Responsive Adjustments */
    .full-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }
    .gallery-item-full img {
        height: 150px !important;
    }
    .lightbox-content {
        padding: 10px !important;
    }
    .lightbox-close {
        font-size: 30px !important;
        top: 5px !important;
        right: 10px !important;
    }


    /* About Section Responsive Adjustments - Final Aggressive Reset for Mobile */
    #about {
        width: 90% !important; /* Adjusted to 90% width */
        margin: 0 auto !important; /* Centered */
        padding: 0 !important; /* Remove any default padding */
        box-sizing: border-box !important; /* Ensure padding/border don't add to width */
    }
    #about .container {
        width: 100% !important; /* Ensure full width relative to its parent (90% #about) */
        max-width: 100% !important; /* Override any max-width */
        margin: 0 !important; /* Remove default margins */
        padding: 0 1rem !important; /* Add internal padding for content within the 90% width */
        box-sizing: border-box !important;
    }

    .about-content-wrapper {
        flex-direction: column-reverse !important; /* Flip order for mobile: text above image */
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important; /* Ensure full width on mobile */
        gap: 0 !important; /* Remove gap between columns when stacked */
        margin: 0 auto !important; /* Force center and remove external margins */
        padding: 0 !important; /* Force remove default padding */
        box-sizing: border-box !important;
    }

    .about-image-column {
        flex: 1 1 100% !important; /* Ensure image column takes full width and stacks */
        max-width: 100% !important; /* Ensure image column takes full width */
        margin: 0 auto !important; /* Center image content */
        padding: 0 !important; /* Remove default padding */
        text-align: center !important; /* Center image content */
        box-sizing: border-box !important;
    }

    .about-image-column img {
        display: block !important; /* Ensure image behaves as block for margin auto */
        margin: 0 auto !important; /* Center image itself */
        max-width: 100% !important;
        height: auto !important; /* Maintain aspect ratio */
        box-sizing: border-box !important;
    }

    .about-text-column {
        flex: 1 1 100% !important; /* Ensure text column takes full width and stacks */
        max-width: 100% !important; /* Ensure text column takes full width */
        margin: 0 auto !important; /* Remove default margins */
        padding: 1.875rem 0 0 !important; /* Corrected: Removed horizontal padding to allow full width */
        text-align: center !important; /* Center all text content */
        box-sizing: border-box !important;
    }
    .about-text-column h2 {
        text-align: center !important; /* Center heading on mobile */
    }
    .about-text-column h2::after {
        margin: 0.9375rem auto 0 !important; /* Center underline on mobile */
    }
    .about-text-column p {
        text-align: center !important; /* Center paragraphs on mobile */
    }
    .about-highlights {
        justify-content: center !important; /* Ensure highlights are centered */
        margin: 1rem 0 !important; /* Adjust vertical margin for highlights */
        padding: 0 1rem !important; /* Add padding to highlights container */
        box-sizing: border-box !important;
    }
    .about-highlights li {
        flex: 1 1 100% !important; /* Ensure highlights stack vertically */
        justify-content: center !important; /* Center highlight items */
        text-align: center !important; /* Center text within highlight items */
    }
    .about-highlights li i {
        margin-right: 0.5rem !important; /* Adjust icon spacing */
    }
}

/* --- About Section Enhancements --- */
.about-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    align-items: center; /* Vertically center aligned for larger screens */
    gap: 3.75rem; /* 60px -> 3.75rem */
    padding-top: 1.25rem; /* 20px -> 1.25rem */
}

.about-image-column {
    flex: 1 1 21.875rem; /* 350px -> 21.875rem */
    max-width: 45%; /* Max width for image column */
    text-align: center;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.1); /* 10px -> 0.625rem, 30px -> 1.875rem */
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    overflow: hidden; /* Ensure border-radius applies to image */
}

.about-image-column img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.625rem; /* 10px -> 0.625rem */
}

.about-text-column {
    flex: 2 1 28.125rem; /* 450px -> 28.125rem */
    max-width: 55%;
}

.about-text-column h2 {
    text-align: left; /* Align heading left within text column */
    margin-bottom: 1.5625rem; /* 25px -> 1.5625rem */
}
.about-text-column h2::after {
    margin-left: 0; /* Align underline with text */
}

.about-text-column p {
    text-align: left; /* Ensure paragraphs are left-aligned */
    max-width: none; /* Remove previous max-width constraint */
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 1.875rem 0; /* 30px -> 1.875rem */
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem; /* 20px -> 1.25rem */
    justify-content: center; /* Center the items */
}

.about-highlights li {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--karoo-text-dark);
    font-size: 1.05em;
    flex: 1 1 calc(50% - 0.625rem); /* 10px -> 0.625rem */
}

.about-highlights li i {
    color: var(--karoo-accent);
    margin-right: 0.625rem; /* 10px -> 0.625rem */
    font-size: 1.3em;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0.5rem;
    position: relative;
    width: 2.5rem; /* 40px */
    height: 2rem; /* 32px */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    margin-left: auto;
}

.menu-toggle-icon {
    display: block;
    position: relative;
    width: 100%;
    height: 3px;
    background-color: var(--karoo-text-dark);
    transition: background-color 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--karoo-text-dark);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.menu-toggle-icon::before {
    top: -10px; /* 10px above current bar */
}

.menu-toggle-icon::after {
    bottom: -10px; /* 10px below current bar */
}

/* Animation for when menu is active */
.menu-toggle.is-active .menu-toggle-icon {
    background-color: transparent; /* Hide middle bar */
}

.menu-toggle.is-active .menu-toggle-icon::before {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-icon::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* Main Navigation (now adaptable for mobile) */
.main-navigation {
    transition: transform 0.3s ease-out;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation ul li {
    display: inline-block;
    margin-left: 1.875rem;
}

.main-navigation ul li a {
    color: var(--karoo-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 0.3125rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -0.3125rem;
    left: 0;
    background-color: var(--karoo-accent);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--karoo-accent);
}

/* Close menu button (desktop hidden) */
.close-menu {
    display: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important; /* Force some default padding for all containers on mobile */
        max-width: 100% !important; /* Ensure containers can expand */
        box-sizing: border-box !important;
    }

    /* Hero Section Responsive Adjustments */
    #hero {
        min-height: 70vh !important;
        padding: 6.25rem 0 !important;
        width: 100vw !important; /* Ensure it takes full viewport width */
        margin-left: calc(50% - 50vw) !important; /* Center it */
        box-sizing: border-box !important;
    }
    #hero h1 {
        font-size: 2.5rem !important;
    }
    #hero .subtitle {
        font-size: 1.2rem !important;
    }
    .hero-cta {
        font-size: 1rem !important;
        padding: 0.625rem 1.25rem !important;
    }

    /* General responsive heading adjustments */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; margin-bottom: 2.5rem !important; }

    /* Header & Navigation Responsive Adjustments */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    /* Hide desktop navigation on mobile by default */
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: block; /* Show hamburger menu on mobile */
    }
    body.no-scroll .menu-toggle {
        display: none; /* Hide hamburger when menu is open */
    }
    header {
        padding: 0.5rem 0;
    }
    .site-logo img {
        max-height: 2.5rem;
    }

    /* Full Gallery Grid Responsive Adjustments */
    .full-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }
    .gallery-item-full img {
        height: 150px !important;
    }
    .lightbox-content {
        padding: 10px !important;
    }
    .lightbox-close {
        font-size: 30px !important;
        top: 5px !important;
        right: 10px !important;
    }


    /* About Section Responsive Adjustments - Final Aggressive Reset for Mobile */
    #about {
        width: 90% !important; /* Adjusted to 90% width */
        margin: 0 auto !important; /* Centered */
        padding: 0 !important; /* Remove any default padding */
        box-sizing: border-box !important; /* Ensure padding/border don't add to width */
    }
    #about .container {
        width: 100% !important; /* Ensure full width relative to its parent (90% #about) */
        max-width: 100% !important; /* Override any max-width */
        margin: 0 !important; /* Remove default margins */
        padding: 0 1rem !important; /* Add internal padding for content within the 90% width */
        box-sizing: border-box !important;
    }

    .about-content-wrapper {
        flex-direction: column-reverse !important; /* Flip order for mobile: text above image */
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important; /* Ensure full width on mobile */
        gap: 0 !important; /* Remove gap between columns when stacked */
        margin: 0 auto !important; /* Force center and remove external margins */
        padding: 0 !important; /* Force remove default padding */
        box-sizing: border-box !important;
    }

    .about-image-column {
        flex: 1 1 100% !important; /* Ensure image column takes full width and stacks */
        max-width: 100% !important; /* Ensure image column takes full width */
        margin: 0 auto !important; /* Center image content */
        padding: 0 !important; /* Remove default padding */
        text-align: center !important; /* Center image content */
        box-sizing: border-box !important;
    }

    .about-image-column img {
        display: block !important; /* Ensure image behaves as block for margin auto */
        margin: 0 auto !important; /* Center image itself */
        max-width: 100% !important;
        height: auto !important; /* Maintain aspect ratio */
        box-sizing: border-box !important;
    }

    .about-text-column {
        flex: 1 1 100% !important; /* Ensure text column takes full width and stacks */
        max-width: 100% !important; /* Ensure text column takes full width */
        margin: 0 auto !important; /* Remove default margins */
        padding: 1.875rem 0 0 !important; /* Corrected: Removed horizontal padding to allow full width */
        text-align: center !important; /* Center all text content */
        box-sizing: border-box !important;
    }
    .about-text-column h2 {
        text-align: center !important; /* Center heading on mobile */
    }
    .about-text-column h2::after {
        margin: 0.9375rem auto 0 !important; /* Center underline on mobile */
    }
    .about-text-column p {
        text-align: center !important; /* Center paragraphs on mobile */
    }
    .about-highlights {
        justify-content: center !important; /* Ensure highlights are centered */
        margin: 1rem 0 !important; /* Adjust vertical margin for highlights */
        padding: 0 1rem !important; /* Add padding to highlights container */
        box-sizing: border-box !important;
    }
    .about-highlights li {
        flex: 1 1 100% !important; /* Ensure highlights stack vertically */
        justify-content: center !important; /* Center highlight items */
        text-align: center !important; /* Center text within highlight items */
    }
    .about-highlights li i {
        margin-right: 0.5rem !important; /* Adjust icon spacing */
    }
}

/* --- About Section Enhancements --- */
.about-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    align-items: center; /* Vertically center aligned for larger screens */
    gap: 3.75rem; /* 60px -> 3.75rem */
    padding-top: 1.25rem; /* 20px -> 1.25rem */
}

.about-image-column {
    flex: 1 1 21.875rem; /* 350px -> 21.875rem */
    max-width: 45%; /* Max width for image column */
    text-align: center;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.1); /* 10px -> 0.625rem, 30px -> 1.875rem */
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    overflow: hidden; /* Ensure border-radius applies to image */
}

.about-image-column img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.625rem; /* 10px -> 0.625rem */
}

.about-text-column {
    flex: 2 1 28.125rem; /* 450px -> 28.125rem */
    max-width: 55%;
}

.about-text-column h2 {
    text-align: left; /* Align heading left within text column */
    margin-bottom: 1.5625rem; /* 25px -> 1.5625rem */
}
.about-text-column h2::after {
    margin-left: 0; /* Align underline with text */
}

.about-text-column p {
    text-align: left; /* Ensure paragraphs are left-aligned */
    max-width: none; /* Remove previous max-width constraint */
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 1.875rem 0; /* 30px -> 1.875rem */
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem; /* 20px -> 1.25rem */
    justify-content: center; /* Center the items */
}

.about-highlights li {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--karoo-text-dark);
    font-size: 1.05em;
    flex: 1 1 calc(50% - 0.625rem); /* 10px -> 0.625rem */
}

.about-highlights li i {
    color: var(--karoo-accent);
    margin-right: 0.625rem; /* 10px -> 0.625rem */
    font-size: 1.3em;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0.5rem;
    position: relative;
    width: 2.5rem; /* 40px */
    height: 2rem; /* 32px */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    margin-left: auto;
}

.menu-toggle-icon {
    display: block;
    position: relative;
    width: 100%;
    height: 3px;
    background-color: var(--karoo-text-dark);
    transition: background-color 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--karoo-text-dark);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.menu-toggle-icon::before {
    top: -10px; /* 10px above current bar */
}

.menu-toggle-icon::after {
    bottom: -10px; /* 10px below current bar */
}

/* Animation for when menu is active */
.menu-toggle.is-active .menu-toggle-icon {
    background-color: transparent; /* Hide middle bar */
}

.menu-toggle.is-active .menu-toggle-icon::before {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-icon::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* Main Navigation (now adaptable for mobile) */
.main-navigation {
    transition: transform 0.3s ease-out;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation ul li {
    display: inline-block;
    margin-left: 1.875rem;
}

.main-navigation ul li a {
    color: var(--karoo-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 0.3125rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -0.3125rem;
    left: 0;
    background-color: var(--karoo-accent);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--karoo-accent);
}

/* Close menu button (desktop hidden) */
.close-menu {
    display: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header & Navigation Responsive Adjustments */
    header .container {
        justify-content: space-between;
    }
    .site-logo img {
        max-height: 2.5rem;
    }

    .menu-toggle {
        display: block;
    }

            .main-navigation {
                display: none; /* Hidden by default on mobile */
                position: fixed;
                top: 0;
                left: 0;
                right: 0; /* Ensure full width */
                bottom: 0; /* Ensure full height */
                width: 100vw; /* Explicitly set to viewport width */
                height: 100vh; /* Explicitly set to viewport height */
                background: rgba(255, 255, 255, 0.8); /* More transparent white */
                backdrop-filter: blur(8px);
                -webkit-backdrop-filter: blur(8px);
                z-index: 1050;
                flex-direction: column; /* Keep for the overall container structure */
                transform: translateX(100%); /* Start off-screen to the right */
                visibility: hidden;
                transition: transform 0.4s ease-out, visibility 0s 0.4s;
                /* Removed overflow-y and -webkit-overflow-scrolling from here, moved to ul */
            }
    .main-navigation.is-active {
        display: flex !important; /* Only show and flex when active, enforce with !important */
        transform: translateX(0); /* Slide in */
        visibility: visible;
        transition: transform 0.4s ease-out, visibility 0s;
    }

    .main-navigation ul {
        width: 100%;
        height: 100%; /* Make ul take full height of main-navigation */
        text-align: center; /* Center the block-level list items */
        display: flex; /* Make the ul a flex container */
        flex-direction: column; /* Stack items vertically */
        justify-content: center; /* Center items within the ul */
        align-items: center; /* Center items horizontally within the ul */
        overflow-y: auto; /* Allow the UL content to scroll if it overflows */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .main-navigation ul li {
        display: block !important; /* Force list items to stack vertically, override inline-block */
        margin: 1rem 0;
    }

    .main-navigation ul li a {
        color: var(--karoo-text-dark);
        font-size: 1.5rem;
        padding: 0.5rem 0;
        display: block; /* Make links full width for easier tapping and centering */
        /* text-align: center is handled by parent ul */
    }

    .main-navigation ul li a::after {
        display: none; /* Hide underline animation for mobile */
    }

    .close-menu {
        display: none; /* Hide close button on mobile by default */
        position: fixed; /* Changed to fixed so it stays with viewport */
        top: 1.5rem;
        right: 1.5rem;
        z-index: 1200; /* Ensure it's above the main-navigation overlay */
        background: none;
        border: none;
        font-size: 2.5rem;
        color: var(--karoo-text-dark);
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }
    body.no-scroll .close-menu {
        display: block;
    }

    body.no-scroll {
        overflow: hidden;
    }
}