/* --- Color Palette --- */
:root {
    /* Define the color palette variables */
    --bg-wall-white:#F9F9F7;
    --bg-oatmeal:#E6E0D5;
    --bg-marble-grey:#DEDFE1;
    --bg-warm-stone:#8C8682;
    --bg-brass-accent:#cda058;
    
    /* Define text colors for contrast */
    --text-dark:#1A1A1A; /* Near black for light backgrounds */
    --text-light:#FFFFFF; /* White for dark backgrounds */
}


#content-sections {
    position: relative; /* Establishes stacking context */
    z-index: 1; /* Sits on top of the fixed-background */
}
/* --- FIX: Adjust carousel to allow scrolling --- */
#carousel-container {
    position: relative; /* Keep it in the document flow */
    height: 100vh; /* It can still be full height */
    z-index: 1; /* FIX: Ensure it's on top of the fixed background */
}
.content-section {
    position: relative;
    border-top: 2px solid rgba(255, 255, 255, 0.2); /* Fine line to distinguish section */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Fine line to distinguish section */
}
.content-inner {
    min-height: 100vh;
    width: 100%;
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    background: none; /* Ensure this element has no background, letting the parent section's style show through. */
}
.reveal-gap {
    height: 75vh; /* This is the transparent area that reveals the image */
    background-color: transparent;
}
.content-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    /* Animation properties */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.content-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.content-section div p {
    max-width: 600px;
    margin-top: 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}
/* Style for founder names */
.content-section div h3 {
    max-width: 600px;
    width: 100%;
    margin-top: 40px; /* Add more space above names */
    font-size: 1.5rem;
}
/* Style for bolded labels in Services */
.content-section div p b {
    margin-top: 20px;
}
.we-can-help-logo {
    width: 380px;
    margin-bottom: 30px;
}

/* Styles for the Inspire section carousel */
.inspire-carousel-container {
    display: flex;
    overflow-x: auto;
    width: 100%;
    padding: 20px 0;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 #f1f1f1; /* Firefox */
}
.inspire-carousel-container::-webkit-scrollbar { width: 8px; }
.inspire-carousel-container::-webkit-scrollbar-track { background: #f1f1f1; }
.inspire-carousel-container::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }

.inspire-image-wrapper {
    position: relative; /* Needed to position the button inside */
    flex-shrink: 0; /* Prevent images from shrinking */
    margin-right: 15px; /* Space between images */
}

.inspire-carousel-container img {
    height: 400px; /* Fixed height for tiles */
    display: block; /* Remove any bottom space under the image */
}

.inspire-fullscreen-btn {
    position: absolute;
    bottom: 10px;
    left: 50%; /* Position relative to the center */
    transform: translateX(calc(-100% - 7.5px)); /* Move left by its own width plus half the gap */
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    opacity: 1; /* Make the icon fully opaque by default */
    transition: background-color 0.3s ease;
    z-index: 5;
}

.inspire-fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* --- Section-Specific Background Colors --- */

#section-services {
    background-image: linear-gradient(#e5d7cc, var(--bg-warm-stone));
    color: var(--text-light);
    background-color: transparent; /* Ensure background-color is transparent so it doesn't block the gradient */
}

#section-inspire {
    background-image: linear-gradient(#e5d7cc, var(--bg-warm-stone));
    color: var(--text-light);
}

/* Ensure text inside Inspire section is dark for contrast */
#section-inspire .content-header,
#section-inspire .inspire-nav-arrow {
    color: var(--text-dark);
}

/* Reduce vertical padding for the Inspire section to make it more compact */
#section-inspire .content-inner {
    min-height: auto; /* Allow the section to be shorter than the viewport height */
    padding-top: 8vh; /* Use viewport height units for more consistent vertical spacing */
    padding-bottom: 8vh;
}

/* For dark backgrounds, we need to override the default dark text colors */
#section-studio {
    background-image: linear-gradient(#e5d7cc, var(--bg-warm-stone));
    color: var(--text-light); /* Set default text color for the section */
}

#section-we-can-help {
    background-image: linear-gradient(#e5d7cc, var(--bg-warm-stone));
    color: var(--text-light); /* Set default text color for the section */
}

#section-studio div p,
#section-we-can-help div p {
    color: var(--text-light); /* Override specific paragraph colors to be light on dark backgrounds */
}

/* --- Fixed Header Menu --- */
.header-menu-toggle {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 44px;
    height: 44px;
    z-index: 1200; /* Position above menu panel and most content */
    cursor: pointer;
    background-color: #000; /* Black disc background */
    border: none;
    padding: 0;
    border-radius: 50%; /* Make it a circle */
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.header-menu-toggle.is-hidden {
    opacity: 0;
    pointer-events: none; /* Prevent interaction when the service panel is open */
}

.header-menu-toggle:hover {
    background-color: #333; /* Darken slightly on hover */
}

.header-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: var(--text-light); /* White lines for the hamburger icon */
    border-radius: 2px;
    opacity: 1;
    left: 10px; /* Center lines in the 44px button */
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

/* When menu is open, icon should be light against the dark nav menu */
.header-menu-toggle.is-open span {
    /* The lines are already light, so this rule is still fine. */
    background: var(--text-light); 
}

.header-menu-toggle span:nth-child(1) { top: 15px; }
.header-menu-toggle span:nth-child(2) { top: 21px; }
.header-menu-toggle span:nth-child(3) { top: 27px; }

.header-menu-toggle.is-open span:nth-child(1) {
    top: 21px;
    transform: rotate(135deg);
}

.header-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
    left: -24px; /* Animate out of view */
}

.header-menu-toggle.is-open span:nth-child(3) {
    top: 21px;
    transform: rotate(-135deg);
}

.header-nav-menu {
    position: fixed;
    top: 0;
    right: 0; /* Start off-screen to the right */
    width: 100%;
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.98);
    z-index: 1100; /* Below the toggle, above other content */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    visibility: hidden;
    /* This defines the transition for CLOSING the menu.
       It slides out and then becomes hidden. */
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.8s;
}

.header-nav-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    /* This defines the transition for OPENING the menu.
       It slides in smoothly. */
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.header-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.header-nav-menu li { margin: 20px 0; }

.header-nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.header-nav-menu a:hover { color: var(--bg-brass-accent); }

/* --- Service Panel --- */
.service-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000; /* Match service page background */
    color: var(--text-light);
    z-index: 1150; /* Above menu panel, below menu toggle */
    overflow-y: auto; /* Allow content to scroll */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.8s;
}

.service-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.service-panel-close {
    position: absolute; /* Position relative to the panel */
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10; /* Position above the panel's content */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-panel-close:hover {
    opacity: 1;
}

.service-panel-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 40px 40px; /* Top padding to avoid close button */
}

/* Styles adapted from service-page.css */
.service-panel-content h1 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 300; }
.service-panel-content h3 { margin-top: 2rem; border-bottom: 1px solid #333; padding-bottom: 10px; }
.service-panel-content ul { line-height: 1.8; color: #cccccc; }


/* --- Site Footer & Contact Panel --- */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-footer:hover {
    background-color: #1a1a1a; /* Subtle hover effect */
}

.site-footer-brand-text {
    color: var(--text-light);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    white-space: nowrap; /* Prevent text from wrapping */
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.site-footer-legal-info {
    max-height: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.8rem;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.site-footer.is-open .site-footer-legal-info {
    max-height: 300px; /* A large enough value to show all content */
    padding-bottom: 20px;
}

.site-footer-legal-info p {
    margin: 5px 0;
    line-height: 1.5;
}

.site-footer-legal-info .legal-links {
    margin: 15px 0 0; /* Adjust margin for new layout */
}

.contact-link-wrapper {
    /* Center the standalone 'Contact Us' button and add spacing */
    margin: 10px 0 15px;
}

.site-footer-legal-info .legal-link-btn {
    background: none;
    border: none;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

/* Make the "Contact Us" button in the footer more prominent */
#footer-contact-btn {
    font-size: 1rem; /* Approx. 25% larger than the inherited 0.8rem */
    font-weight: 600; /* Add some weight to make it more distinct */
}

.site-footer-legal-info .legal-link-btn:hover {
    color: var(--bg-brass-accent);
}

.site-footer-legal-info .legal-separator {
    margin: 0 10px;
}

.contact-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.98); /* Almost opaque dark color */
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.contact-panel.is-active {
    transform: translateY(0);
}

.contact-panel-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-panel-close:hover {
    opacity: 1;
}

.contact-panel-content {
    text-align: center;
}

.contact-panel-logo {
    width: 250px; /* Adjust size as needed */
    margin-bottom: 30px; /* Space between logo and header */
    opacity: 0.9;
}

.contact-panel-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.contact-panel-content a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    margin: 20px 0;
    transition: color 0.3s ease;
}

.contact-panel-content a:hover {
    color: var(--bg-brass-accent);
}

.contact-panel-version {
    position: absolute;
    bottom: 20px;
    right: 40px;
    color: rgba(255, 255, 255, 0.4); /* Make it subtle */
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none; /* Prevent it from interfering with clicks */
}

/* --- Fullscreen Image Modal --- */
.fullscreen-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    /* Animation properties */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.fullscreen-image-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.fullscreen-image-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2vw; /* Add some padding around the content */
    box-sizing: border-box;
}

.fullscreen-image-content img {
    /* Ensure image fits within the viewport while maintaining aspect ratio */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Prevent clicks on the image from closing the modal if needed, but for now it's fine */
    cursor: default;
}

.fullscreen-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10000; /* Ensure it's above the image content */
}

.fullscreen-modal-close:hover {
    opacity: 1;
}

.contact-socials {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.contact-socials a {
    font-size: 1.8rem; /* Increase size for better visibility */
    color: var(--text-light); /* Ensure icons use the light text color */
    transition: color 0.3s ease;
}

/* New button for main contact form */
.contact-panel-content .text-button {
    background: none;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px 0;
    display: inline-block;
}

.contact-panel-content .text-button:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

/* New button for "loving" an image in the Inspire carousel */
.inspire-love-btn {
    position: absolute;
    bottom: 10px; /* Position at the bottom */
    left: 50%; /* Position relative to the center */
    transform: translateX(7.5px); /* Move right by half the gap */
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 5;
}

.inspire-love-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--bg-brass-accent); /* Use accent color on hover */
    transform: scale(1.1);
}

/* Style for a "love" icon that has been clicked */
.inspire-love-btn.is-active {
    color: var(--bg-brass-accent);
    transform: scale(1); /* Ensure it doesn't stay scaled up if active */
}

/* --- Inquiry Modal Styles --- */
.inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align modal to the top to ensure header is visible */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    padding-top: 5vh; /* Add some space from the top of the viewport */
}

.inquiry-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.inquiry-modal-content {
    position: relative;
    background-color: var(--bg-wall-white);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    /* Add initial state for scale animation and a smooth transition */
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.inquiry-modal.is-visible .inquiry-modal-content {
    transform: scale(1);
}

/* Make the content area of legal modals scrollable */
.inquiry-modal-content .legal-content-wrapper {
    max-height: 70vh; /* Set a max height for the content area */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Add a little space for the scrollbar */
}

.inquiry-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.inquiry-modal-close:hover {
    opacity: 1;
}

.inquiry-modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 15px; /* Space between header and thumbnail */
}

.inquiry-modal-thumbnail {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 25px; /* Center the image and provide space below it */
    border: 1px solid #ddd;
    background-color: #f9f9f9; /* Placeholder color while image loads */
}

.inquiry-modal-content form .form-field {
    margin-bottom: 20px;
    text-align: left;
}

.inquiry-modal-content form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.inquiry-modal-content form input,
.inquiry-modal-content form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

/* Add a highlight effect when form fields are focused */
.inquiry-modal-content form input:focus,
.inquiry-modal-content form textarea:focus {
    outline: none;
    border-color: var(--bg-brass-accent);
    box-shadow: 0 0 0 2px rgba(205, 160, 88, 0.3); /* Soft glow using the accent color */
}

.inquiry-modal-content form textarea {
    resize: vertical;
}

.inquiry-modal-content form button[type="submit"] {
    background-color: var(--bg-warm-stone);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.inquiry-modal-content form button[type="submit"]:hover {
    background-color: #7a726e; /* Darker stone */
}

.inquiry-modal-content form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Success message styling */
.inquiry-modal-content h2 + p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Styles for the Inspire section carousel indicator */
.inspire-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between the numbers */
    margin-top: 20px; /* Space above the indicator */
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark); /* Match the header text color */
    font-weight: 300;
}

.inspire-indicator .indicator-current {
    font-weight: 600; /* Make the current number bold */
    font-size: 1.5rem; /* Make it slightly larger */
    padding: 5px 15px;
    border: 1px solid var(--text-dark);
    border-radius: 4px;
    min-width: 30px; /* Ensure it has some width even with '—' */
    text-align: center;
}

.inspire-indicator .indicator-start,
.inspire-indicator .indicator-end {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.inspire-indicator .indicator-start:hover,
.inspire-indicator .indicator-end:hover {
    color: var(--bg-brass-accent);
    transform: scale(1.1);
}

/* --- Mobile-specific adjustments --- */
@media (max-width: 768px) {
    .site-footer-brand-text {
        height: 48px; /* Increase footer bar height by 20% on mobile */
        font-size: 1.1rem; /* Adjust font size for smaller bar */
    }
}