/* Basic reset for full-screen elements */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll; vertical scroll is managed by JS. */
    font-family: 'Open Sans', sans-serif; /* Use Open Sans as the default font */
}

body {
    position: relative; /* Required for z-index stacking context */
    z-index: 0; /* Let content establish its own stacking context on top */
    background-color: transparent; /* Body must be transparent to see the pseudo-element behind it */
}

/* New, more stable parallax background strategy using a pseudo-element.
   This avoids browser bugs related to background-attachment:fixed on the body itself. */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place it behind all body content */
    background-color: #000; /* Default background, visible on splash screen */
    background-image: var(--parallax-bg-image, none); /* Use a CSS variable set by JS */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Container for the initial logo */
#logo-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Indicates it's clickable */
    transition: opacity 0.5s ease-in-out;
}

#logo-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain; /* Ensures the entire logo is visible */
}

/* Carousel container styles */
#carousel-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#carousel-container .carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes images fill the screen, cropping if necessary */
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#carousel-container .carousel-slide.active {
    opacity: 1;
}

/* Company name header that also acts as a home button MAY NEED DELETED */
.company-header {
    position: absolute;
    top: 20px;
    left: 45px;
    color: black;
    font-size: 3.0rem; /* This element may be deprecated */
    font-family: 'Montserrat', sans-serif; /* Match the section header font */
    font-weight: 300; /* Match the section header font weight */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Add a subtle shadow for readability */
    cursor: pointer;
    z-index: 10;
    margin: 0; /* Reset default h1 margin */
}

.hidden { display: none; }

/* --- Fixed Home Icon --- */
.home-icon-link {
    position: fixed;
    top: 30px;
    left: 40px; /* Symmetrical with menu toggle */
    width: 44px;
    height: 44px;
    z-index: 1200; /* Same as menu toggle */
    cursor: pointer;
    background-color: #000;
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light); /* White icon */
    opacity: 1;
}

.home-icon-link.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.home-icon-link:hover {
    background-color: #333; /* Darken slightly on hover */
}
.home-icon-link svg {
    width: 24px;
    height: 24px;
}

/* --- Inspire Section Header --- */
.inspire-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.inspire-header-container .content-header {
    margin: 0 20px; /* Add space between arrows and title */
}

.inspire-nav-arrow {
    background: none;
    border: none;
    color: #333; /* Match the content header color for visibility */
    font-size: 2.0rem; /* Make arrows large and easy to see */
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s ease;
    line-height: 1; /* Align arrows better with the text */
}

.inspire-nav-arrow:hover {
    color: #ccc; /* Slightly dim the color on hover */
}

/* Add this to your style.css */
.content-link {
    background-color: transparent; /* Allow parent background to show through */
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.5em;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.content-link:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    color: var(--text-dark); /* Ensure text is readable on light hover background */
}

.content-link h3 {
    margin-top: 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /**
     * Reduce the size of the overlay logos on smaller screens
     * to prevent them from being overwhelming.
     */
    .we-can-help-logo {
        max-width: 200px; /* Adjust this value as needed */
        width: 50%;       /* Use a percentage for flexible scaling */
    }

    /**
     * Adjust the footer layout for mobile.
     * This stacks the brand name and contact button vertically
     * to prevent them from clashing on narrow screens.
     */
    .site-footer {
        /* The height of the footer bar is controlled by its content (.site-footer-brand-text).
           No extra padding or layout changes are needed here for the current design. */
    }
}

/* --- Link Enhancement Styles --- */

/* This makes the link a block-level element for better layout control */
.content-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Add a subtle background color on hover to indicate interactivity */
.content-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Wrapper for the link heading and arrow */
.link-heading-wrapper {
    /* Switch to Grid for more powerful positioning */
    display: grid;
    /* Use a 3-column grid to center the text. 
       Col 1 and 3 are flexible, Col 2 is for the text. */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1em; /* Gap between columns */
}

.link-arrow {
    opacity: 0.8; /* Increased initial visibility */
    font-weight: bold; /* Make the arrow thicker */
    /* The 'transform' property is animatable, unlike 'justify-self' */
    transform: translateX(0);
    /* Place the arrow in the 3rd grid column */
    grid-column: 3 / 4;
    justify-self: start; /* Align to the start of its column */
    /* Slow down the travel animation. This will now work as expected. */
    transition: transform 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

/* 
 * On hover, we translate the arrow to the end of its grid column.
 * The 'justify-self' property handles the final positioning.
 */
.content-link:hover .link-arrow {
    opacity: 1;
    justify-self: end;
}

.header-nav-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.header-nav-menu li { margin: 1.5rem 0; }
.header-nav-menu a { color: var(--text-light); text-decoration: none; font-size: 2rem; font-weight: 300; padding: 0.5rem 1rem; transition: color 0.3s ease; }
.header-nav-menu a:hover { color: var(--bg-brass-accent); }
