@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* 
  ========================================
  CORE LAYOUT, FONTS, AND SCROLL BEHAVIOR
  ========================================
  This section defines the foundational styles, including the Google Font import, global box-sizing, and the main scroll container setup.
*/

/* --- Core Layout & Scroll Snap --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #FFFFFF;
    background-color: #000;
}

/* The main container for the scroll-snapping sections. 
   - 'scroll-snap-type: y mandatory;' is the key rule that enforces snapping.
   - 'overflow-y: scroll;' enables vertical scrolling.
   - 'height: 100dvh;' makes the container take up the full viewport height, correctly accounting for mobile browser UI. */
.scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100dvh;
}

.scroll-section {
    height: 100dvh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    /* Using 'background-attachment: fixed;' creates a simple, yet effective parallax effect. 
       As the user scrolls, the background image remains fixed in place, creating a sense of depth. */
    background-attachment: fixed;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 1rem 1rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* 🖼️ Full-size logo container styling */
.header-logo {
  display: block;
  width: 484px; /* Width of your full-size logo */
  height: 40px; /* Height of your full-size logo */
  background-image: url('images/suite-three-studios-wide-logo.png');
  background-size: contain; /* Ensures the image fits without stretching */
  background-repeat: no-repeat;
  background-position: left center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.hamburger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

/* Media query for tablets and mobile devices */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide the regular nav links */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .nav-links.active {
        display: flex; /* Show the dropdown menu */
    }

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

    .hamburger-menu {
        display: block; /* Show the hamburger icon */
    }

    .two-column {
        flex-direction: column;
    }
}

/* --- Content Styling --- */
.content-block {
    background: rgba(0, 0, 0, 0.70);
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    max-width: 900px;
    width: 90%;
}

h1, h2, h3, p {
    margin: 0 0 1rem 0;
}

h1, h2 {
    text-transform: uppercase;
    border: 2px solid #fff;
    padding: 1rem;
    display: inline-block;
}

.btn {
    font-weight: bold;
    text-transform: uppercase;
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ccc;
}

/* --- Section Specific Styling --- */
#home .content-block {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

#home .hero-logo {
    max-width: 300px;
    margin-bottom: 2rem;
}

#home .btn {
    margin-top: 2rem;
    padding: 20px 40px;
    font-size: 1.5rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Match the gear-list gap */
    margin-top: 2rem;
    text-align: left; /* Match the gear-list alignment */
}

.card h3 {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #fff;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.card p {
    color: #ccc;
}

.two-column {
    display: flex;
    gap: 2rem;
    text-align: left;
}

.two-column .text-content, .two-column .image-content {
    flex: 1;
}

#about .text-content {
    flex: 1;
}

#about .image-content {
    flex: 0.7;
}

#about .text-content p {
    line-height: 1.5;
}

.two-column .image-content img {
    width: 100%;
    border-radius: 10px;
}

.gear-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.gear-category h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #fff;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.gear-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gear-category li {
    color: #ccc;
    margin-bottom: 0.25rem;
}

#gear .content-block a {
    color: #fff;
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 400px; /* Adjust as needed */
    background: #333;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    filter: grayscale(1);
}

.location-info p {
    margin: 0.5rem 0;
}



#contact .contact-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#contact form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the form fields */
    gap: 1rem;
    margin-top: 2rem;
}

#contact input, #contact textarea, #contact .btn {
    max-width: 500px; /* Set a max-width for form fields */
    width: 100%; /* Ensure they take up the full width of the container up to the max-width */
    box-sizing: border-box; /* Include padding in the width calculation */
}

#contact input, #contact textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

#contact input::placeholder, #contact textarea::placeholder {
    color: #ccc;
}

/* --- Footer --- */
footer {
    background-color: #111;
    padding: 2rem;
    color: #aaa;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: center;
}


.footer-logo {
    height: 125px;
}

.footer-column h3 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #fff;
}

.social-media-icons a {
    margin: 0 0.5rem;
}

.social-media-icons img {
    height: 48px;
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    padding-top: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-down-arrow {
    animation: bounce 2s infinite;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 3.125rem;
    text-decoration: none;
}

/* 📱 Media query for mobile screens (e.g., 768px and below) */
/* --- Custom Scrollbar Styling --- */
.content-block::-webkit-scrollbar {
  width: 8px;
}

.content-block::-webkit-scrollbar-track {
  background: transparent;
}

.content-block::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Firefox scrollbar styling */
.content-block {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

@media (max-width: 768px) {
    /* The .no-scroll class is added via JS to the body for the home, contact, and footer sections */
    body:not(.no-scroll) .content-block {
        margin-top: 80px; /* Use margin to push the entire block down */
        box-sizing: border-box;
    }

    .content-block {
        width: 90%; /* Enforce consistent margins on all sections */
        max-height: 85vh;
        overflow-y: auto;
    }

    .service-cards,
    .gear-list {
        grid-template-columns: 1fr;
    }

  .header-logo {
    width: 75px; /* New, smaller width for the logo */
    height: 30px; /* New, smaller height for the logo */
    background-image: url('images/suite-three-studios-logo-waveform-only-transparent-bg.png'); /* Swaps to the smaller logo file */
  }

    #home h1 {
        font-size: 1.5rem;
        padding: 0.8rem;
    }
}
