/* ==============================================
CORE LAYOUT & GLOBAL STYLES (Applies to all devices)
============================================== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

/* --- Main Header Top Elements --- */

.main-image-container {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    margin-top: -3rem;
}

.main-image-container img {
    width: 100%;
    display: block;
}

/* --- Info Container Styles --- */

.info-container h1 {
    font-family: "Shadows Into Light Two", cursive;
    text-align: left;
    font-size: 3.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.info-container p {
    font-family: Helvetica, Arial, sans-serif;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5rem;
}

main h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 200%;
    background-color: #ffffff;
    background-image: linear-gradient(#262626, #262626);
    background-repeat: no-repeat;
    background-size: 40% 100%;
}

/* ==============================================
HEADER & NAVIGATION (DESKTOP STYLES)
============================================== */

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    flex-shrink: 0;
    background-color: transparent;
    position: relative;
}

.link-disabled {
    position: relative;
    display: inline-block;
}

.link-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #382F30;
    transform: rotate(-10deg); /* Angled "cancelled" look */
    pointer-events: none;
    opacity: 0.6;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 15%;
    min-height: 30px;
    position: relative;
    font-size: 0.9em;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #4a4a4a;
    left: 10%;
    right: 10%;
}

.top-bar p {
    margin: 0;
    color: black;
    font-size: 1.2em;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    flex-grow: 1;
}

.logo img {
    height: 130px;
    padding: 0 10px;
    padding-top: 10px;
}

.main-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex: 1;
    align-items: center;
}

.nav-left {
    justify-content: space-evenly;
}

.nav-right {
    justify-content: space-evenly;
}

.main-nav a {
    text-decoration: none;
    color: black;
    font-weight: 150;
    font-size: 1.1em;
    padding: 20px;
    font-family: Helvetica, Arial, sans-serif;
    transition: color 0.3s ease-out;
}

.main-nav a:hover {
    color: #7d7d7d;
}

.main-nav a.active {
    color: #7d7d7d;
}

.mobile-menu-button {
    display: none;
}

/* ==============================================
MAIN CONTENT CONTAINERS (DESKTOP STYLES)
============================================== */

/* --- Two-Sided Container (Normal and Text-only) --- */
.two-sided-container{
    align-items: center !important;
}

.two-sided-container,
.two-sided-container-t {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 3rem;
    margin-top: 10vh;
}

.two-sided-container:first-of-type {
    align-items: center;
}

.two-sided-container.reverse-order {
    flex-direction: row-reverse;
}

.left-side, 
.right-side {
    flex: 1;
}

/* --- Left Side Image --- */
.side-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* --- Section Headings (H2) --- */
.right-side h2,
.left-side h2,
.centered-info-block h2 {
    font-family: "Shadows Into Light Two", cursive;
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

/* --- Desktop Content Font Sizes --- */
.right-side p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.1rem; 
    line-height: 1.7;
    color: #555;
}

.two-sided-container ul li,
.two-sided-container-t ul li,
.centered-info-block ul li {
    font-size: 1rem; 
    margin-bottom: 0.8em;
}

/* --- Centered Info Block --- */
.centered-info-block {
    max-width: 800px;
    margin: 4rem auto 4rem auto;
    text-align: left; /* Changed from center to left */
}

.centered-info-block p {
    text-align: left;
}

.centered-info-block ul {
    display: block; /* Changed from inline-block to block */
    padding-left: 20px; /* Provides room for bullets */
    text-align: left;
}

/*reels container*/
/* Container for the whole grid */
.reel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    justify-items: center; /* Centers the reels within their grid cells */
}

/* Individual Reel Wrapper */
.reel-item {
    width: 100%;
    max-width: 350px; /* Limits how wide a single reel can get */
    display: flex;
    justify-content: center;
}

/* Overriding the Instagram Embed defaults */
.reel-item .instagram-media {
    margin: 0 !important; /* Remove the auto-margin from the embed */
    width: 100% !important;
    min-width: 320px !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .reel-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
        gap: 1.5rem;
    }
}

/* --- Image Gallery Container --- */
.image-gallery-container {
    margin-top: 10vh;
    margin-bottom: -5vh;
    text-align: center;
}

.image-gallery-container h2 {
    font-family: "Shadows Into Light Two", cursive;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.gallery-images {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 450px;
    text-align: center;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:first-child .gallery-image {
    transform: rotate(-5deg);
}

.gallery-item:last-child .gallery-image {
    transform: rotate(5deg);
}

.gallery-image:hover {
    transform: scale(1.03) rotate(0deg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 350px;
}

/* --- Global Styles for Decorative SVG Wrappers --- */
.decorative-svg-wrapper {
    /* Break out of the 'main' container to reach screen edges */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    line-height: 0;
    overflow: hidden;
}

.decorative-svg-wrapper svg {
    width: 100%;      /* Stretch to wrapper width */
    height: auto;     /* Maintain aspect ratio */
    display: block;
}

.decorative-svg-wrapper svg path {
    stroke-width: 1.5px; 
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* --- MARGIN CONTROL --- */
/* Use these classes to control the spacing for each specific line */

.svg-top {
    margin-top: 2rem;    /* Control top space */
    margin-bottom: 2rem; /* Control bottom space */
}

.svg-bottom {
    position: relative;
    /* PULL ENTIRE GROUP UP: Increase this negative value to move everything higher */
    margin-top: -2rem; 
    
    /* PIN TO H1: This negative margin pulls the H1 up into the SVG space */
    margin-bottom: -15vw; 
    
    z-index: 15; 
    line-height: 0;
}

/* Responsive adjustment for SVGs */
@media (max-width: 768px) {
    .decorative-svg-wrapper svg {
        /* Scaling up the SVG slightly on mobile so it doesn't look too thin */
        width: 150%; 
        margin-left: -25%; 
    }
}

/* --- H1 Container --- */
.blended-h1-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20; 

    /* Remove the old margin-top: -18rem; we are using the SVG's margin now */
    margin-top: 0; 

    /* FINE-TUNE H1 POSITION: 
       Decrease the first number in clamp to move the H1 strictly toward the SVG top. */
    transform: translateY(clamp(20px, 5vw, 100px)); 
    
    /* Pull the rugged container closer */
    margin-bottom: -6vw; 
}

.blended-h1-wrapper h1 {
    font-family: "Shadows Into Light Two", cursive;
    font-size: clamp(4.5rem, 18vw, 18rem);
    color: #382F30;
    letter-spacing: 0.05em;
    font-weight: 350;
    text-align: center;
    margin: 0;
    text-decoration: none !important;
}

.blended-h1-wrapper h1::after {
    display: none !important;
    content: none !important;
}

.rugged-section-container {
    z-index: 10; 
    position: relative;
}

/* --- Rugged Section Container --- */
.rugged-section-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 4rem;
    margin-bottom: 4rem;
    overflow: hidden; /* Prevents rugged SVG edges from causing horizontal scroll */
}

/* The Colored Box */
.rugged-content-middle {
    background-color: #382F30; /* Your separate container color */
    width: 100%;
    position: relative; /* Required for absolute positioning of edges */
    padding: 150px 0;   /* Generous vertical space so content doesn't touch rugged edges */
    z-index: 1;
}

/* --- Rugged Edge Positioning --- */
.rugged-edge {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height based on how deep your SVG 'cuts' */
    line-height: 0;
    z-index: 10;   /* Ensures edges sit on top of the background color */
    shape-rendering: geometricPrecision;
}

.rugged-edge svg {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

/* Pins SVG to the internal top of the colored container */
.top-edge {
    top: -2px;
}

/* Pins SVG to the internal bottom of the colored container */
.bottom-edge {
    bottom: -2px;
}

/* --- Inner Content Styles --- */
.split-feature-inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center; /* Vertically centers text and image side-by-side */
    gap: 5rem;
    position: relative;
    z-index: 5;
}

/* Restore Split Column Flex */
.split-col {
    flex: 1;
}

/* Text Styling inside the container */
.text-col h2 {
    font-family: "Shadows Into Light Two", cursive;
    font-size: 3.5rem;
    color: #ffffff; /* White text for contrast on dark background */
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* --- Text-Col List Fixed --- */
.text-col ul {
    list-style: disc; /* Ensures bullets appear */
    padding-left: 20px; 
    margin: 0;
}

.text-col ul li {
    font-size: 1rem;
    color: #f4f4f4;
    margin-bottom: 1rem;
    display: list-item; /* Changed from flex to list-item */
    line-height: 1.6;   /* Improves readability when text wraps */
}

/* Remove the ::before bullet if you are using standard list-style */
.text-col ul li::before {
    content: none; 
}

/* Image Styling inside the container */
.feature-img {
    width: 60%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Adds depth inside the colored block */
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .split-feature-inner {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .rugged-content-middle {
        padding: 100px 0;
    }

    .text-col ul li {
            font-size: 0.95rem;
            text-align: left; 
            display: list-item; /* Ensure flex is disabled here too */
            list-style-position: outside;
        }
}

/* ==============================================
FOOTER (DESKTOP STYLES)
============================================== */

.footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    height: 0;
    padding-bottom: 93.11%;
}

.footer-main-content {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    width: 50%;
    max-width: 1100px;
    justify-content: space-around;
    text-align: left;
    color: #262626;
}

.footer-copyright {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.footer-copyright p {
    margin: 0;
    color: black;
    font-size: 0.9em;
}

.footer-column {
    color: #262626;
    text-align: left;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 200%;
    background-color: #ffffff;
    background-image: linear-gradient(#262626, #262626);
    background-repeat: no-repeat;
    background-size: 40% 100%;
    transition: background-size 0.4s ease-out;
}

.footer-column h4.is-active::after {
    background-size: 100% 100%;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-column li {
    font-size: 1.2rem;
}
.footer-column a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: #6f6f6f;
}
.parallax-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.parallax-layer img {
    image-rendering: -webkit-optimize-contrast;
}
.layer-1 { z-index: 1; }
.layer-2 { z-index: 2; }
.layer-3 { z-index: 3; }
.layer-4 { z-index: 4; }
.layer-5 { z-index: 5; }

.layer-1 img { position: absolute; width: 100%; height: 46%; bottom: 52%; left: 0; object-fit: cover; }
.layer-2 img { position: absolute; width: 100%; height: 80%; bottom: 15%; left: 0; object-fit: cover; }
.layer-3 img { position: absolute; width: 100%; height: 67%; bottom: -5%; left: 0; object-fit: cover; }
.layer-4 .figure-left,
.layer-4 .figure-right { position: absolute; width: 20%; height: auto; bottom: -5%; object-fit: contain; }
.layer-4 .figure-left { left: 0; }
.layer-4 .figure-right { right: 0; }
.layer-5 img { position: absolute; width: 100%; height: 40%; bottom: -10%; left: 0; object-fit: cover; }

/* ==============================================
STYLES FOR INSTAGRAM REEL CONTAINER
============================================== */

/* --- Instagram Reel Container Styles --- */
.reel-gallery-container {
    margin-top: 10vh;
    margin-bottom: 10vh;
    text-align: center;
}

.reel-gallery-container h2 {
    font-family: "Shadows Into Light Two", cursive;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.reel-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.reel-card {
    display: block;
    text-decoration: none;
    width: 280px; /* Fixed rectangular width */
    height: 500px; /* Fixed rectangular height */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    /* Transition for the gradual size increase */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

.reel-media-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #000;
}

.reel-static, .reel-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease-in-out;
}

.reel-gif {
    opacity: 0; /* Hidden by default */
}

.reel-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: Helvetica, Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0.8;
}

/* --- Hover Effects --- */

.reel-card:hover {
    transform: scale(1.08); /* Gradual increase in size */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.reel-card:hover .reel-static {
    opacity: 0; /* Hide static image on hover */
}

.reel-card:hover .reel-gif {
    opacity: 1; /* Show/Play GIF on hover */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reel-card {
        width: 220px;
        height: 400px;
    }
    .reel-card:hover {
        transform: scale(1.03); /* Smaller scale on mobile */
    }
}


/* Embedded insta post */

/* Center the Instagram Embed */
.instagram-media {
    margin: 40px auto !important; /* 'auto' centers it horizontally */
    display: block !important;
    min-width: 326px !important;
}

/* Optional: Completely hide the "A post shared by..." text 
   if you want the most minimalist look possible */
.instagram-media + script + p, 
.instagram-media div > p {
    display: none !important;
}

/* Optional: To make the post slightly smaller on the page */
.instagram-media {
    max-width: 450px !important; /* Default is usually 540px */
}

.instagram-reel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem auto 6rem; 
    padding: 1rem;
}

.instagram-reel-link {

    display: block;
    position: relative;
    width: 250px;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none; 
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.instagram-reel-link:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.reel-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.reel-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: background-color 0.2s ease, transform 0.3s ease-out;
}

.reel-play-button i {
    color: #ffffff;
    font-size: 24px;
    transform: translateX(2px);
}


.instagram-reel-link:hover .reel-play-button {
    background-color: rgba(150, 150, 150, 0.7); 
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 600px) {
    .instagram-reel-link {
        width: 180px;
        height: 320px;
    }
    .reel-play-button {
        width: 45px;
        height: 45px;
    }
    .reel-play-button i {
        font-size: 18px;
    }
    .instagram-reel-link:hover {
        transform: scale(1.02); /* Less dramatic zoom on mobile */
    }
}

/*RESPONSIVE FIX*/
/* --- Global Fix --- */
html, body {
    /* Prevent horizontal scrolling caused by breakout elements */
    overflow-x: hidden; 
    width: 100%;
}

/* --- Rugged Container Responsive Fix --- */
.rugged-section-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* Use fluid margins instead of fixed px */
    margin-top: clamp(2rem, 8vw, 5rem);
    margin-bottom: clamp(2rem, 8vw, 5rem);
    display: flex;
    flex-direction: column;
}

.rugged-content-middle {
    background-color: #382F30;
    width: 100%;
    position: relative;
    /* Fluid padding so text has breathing room on mobile */
    padding: clamp(60px, 12vw, 150px) 0; 
    z-index: 1;
}

/* Fix for SVG Ridges on Mobile */
.rugged-edge {
    position: absolute;
    left: 0;
    width: 100%;
    /* Keep a consistent height so ridges don't look like needles on mobile */
    height: clamp(40px, 6vw, 100px); 
    line-height: 0;
    z-index: 10;
}

.rugged-edge svg {
    width: 100%;
    height: 100%;
    display: block;
    /* preserveAspectRatio="none" is handled in HTML to allow stretching */
}

/* --- H1 Blended Heading Fluid Fix --- */
.blended-h1-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20; 
    /* Remove the static -18rem. Use a fluid calc or clamp */
    margin-top: clamp(-10rem, -15vw, -18rem);
    transform: translateY(clamp(10px, 8vw, 150px));
    margin-bottom: -5vw; 
}

.blended-h1-wrapper h1 {
    font-family: "Shadows Into Light Two", cursive;
    /* Font size scales smoothly from 2.5rem to 6rem */
    font-size: clamp(4.5rem, 18vw, 18rem);
    color: #382F30;
    letter-spacing: 0.05em;
    font-weight: 350;
    text-align: center;
}

/* --- Two-Sided Container Mobile Stacking --- */
@media (max-width: 768px) {
    .two-sided-container {
        flex-direction: column; /* Stack image on top, text below */
        gap: 2rem;
        margin-top: 5vh;
    }

    .left-side, .right-side {
        width: 100%;
    }

    .right-side h2 {
        font-size: 2rem;
        text-align: center;
    }

    .right-side p {
        font-size: 1rem;
        text-align: center;
    }

    /* Adjust Rugged Section for Mobile */
    .split-feature-inner {
        flex-direction: column; /* Image top, text bottom */
        text-align: center;
        gap: 2.5rem;
    }

    .feature-img {
        width: 90% !important; /* Larger on mobile for visibility */
        margin: 0 auto;
    }

    .text-col h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .text-col ul li {
        font-size: 0.95rem;
        text-align: left; /* Keep list readable */
        justify-content: flex-start;
    }
}

/* --- Decorative Lines Breakout Fix --- */
.decorative-svg-wrapper {
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    position: relative;
}

@media (max-width: 480px) {
    /* Scale decorative lines up so they don't look like dots on tiny screens */
    .decorative-svg-wrapper svg {
        width: 200%;
        margin-left: -50%;
    }
}

/* --- Fix for the Rugged Edge "Shrink" Bug --- */
.rugged-edge svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 768px) {
    
    /* 1. Prevent SVG-Bottom from overlapping the content above it */
    .svg-bottom {
        margin-top: 0; 
        /* Reduce the pull-up so the H1 doesn't hide the text above */
        margin-bottom: -10vw; 
    }

    /* 2. Fix H1 Wrapper Overlap */
    .blended-h1-wrapper {
        /* Reset the massive negative margin that causes text overlap on mobile */
        margin-top: -5rem; 
        /* Adjust the vertical position so it sits nicely under the decorative line */
        transform: translateY(20px);
        /* Ensure it doesn't overlap the rugged section below */
        margin-bottom: -4.5rem; 
    }

    .blended-h1-wrapper h1 {
        /* Scale font size down slightly more for very small screens */
        font-size: clamp(4.5rem, 15vw, 6rem);
    }

    /* 3. Ensure the container above (two-sided) has enough space */
    .two-sided-container {
        margin-bottom: 5rem;
        z-index: 5;
        position: relative;
    }

    /* 4. Fix Rugged Section visuals on mobile */
    .rugged-edge {
        /* Increase height on mobile so the "rugged" look is visible and not flat */
        height: 60px; 
    }
    
    .rugged-content-middle {
        /* Add more padding so text inside dark box doesn't hit the ridges */
        padding: 80px 20px;
    }
}

/* Specific fix for very small devices */
@media (max-width: 480px) {
    .blended-h1-wrapper {
        margin-top: -3rem;
    }
    .svg-bottom {
        margin-bottom: -15vw;
    }
}

/* --- Dedicated Tablet/iPad Fix (768px - 1180px) --- */
@media screen and (min-width: 768px) and (max-width: 1180px) {
    .two-sided-container {
        display: flex !important;
        flex-direction: row !important; /* Force side-by-side, no stacking */
        align-items: center; 
        gap: 40px;
        padding: 0 20px;
    }

    .left-side {
        /* This forces the image side to take up 50% of the width and no less */
        flex: 0 0 50% !important; 
        min-width: 350px; 
    }

    .right-side {
        /* This allows the text side to take the remaining 50% */
        flex: 1 1 50% !important;
    }

    .side-image {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        /* Ensures the image doesn't look tiny if the text side is long */
        min-height: 300px; 
    }

    /* Adjusting the text size for tablet so it doesn't look cramped */
    .right-side h2 {
        font-size: 2.2rem !important;
    }

    .right-side p, .right-side ul li {
        font-size: 1rem !important;
        line-height: 1.5;
    }
}

/* ==============================================
TOP-ANCHORED NAVBAR STYLES
============================================== */

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-100%); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.navbar.navbar--anchored {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    animation: slideDown 0.5s ease-out;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .navbar.navbar--anchored {
        height: 8vh;
        min-height: 65px;
        padding: 0;
        align-items: center;
    }
    .navbar.navbar--anchored .main-nav {
        gap: 25px;
        flex: 1;
    }
    .navbar.navbar--anchored .nav-left {
        justify-content: flex-end;
    }
    .navbar.navbar--anchored .nav-right {
        justify-content: flex-start;
    }
    .navbar.navbar--anchored .logo img {
        height: 8vh;
        max-height: 60px;
    }
    .navbar.navbar--anchored .main-nav a {
        padding: 1.5rem;
        font-size: 1em;
    }
}

@media (max-width: 1024px) {
    .navbar.navbar--anchored {
        padding: 0 1.5rem;
    }
}

/* ==============================================
RESPONSIVE STYLES (TABLET/MOBILE)
============================================== */

/* --- Mobile Menu Styles --- */
@keyframes dropDownItem {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 1024px) {
    header { 
        height: auto; 
        padding-bottom: 1rem; 
    }
    .top-bar { 
        flex-direction: column; 
        padding: 1rem; 
        gap: 10px; 
        text-align: center; 
    }
    .navbar { 
        flex-wrap: wrap; 
        padding: 0 1.5rem; 
    }
    .logo { 
        order: -1; 
    }
    .logo img { 
        height: 80px; 
        padding: 0; 
    }
    .mobile-menu-button { 
        display: block; 
        background: none; 
        border: none; 
        font-size: 1.8rem; 
        cursor: pointer; 
        color: #333; 
        padding: 10px; 
        z-index: 1100; 
    }
    .main-nav { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        order: 3; 
        flex: none; 
    }
    .nav-left, 
    .nav-right { 
        width: 100%; 
    }
    .navbar.nav-open { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh; 
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px); 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        z-index: 1099; 
        flex-wrap: nowrap; 
        padding: 0; 
        box-sizing: border-box; 
    }
    .navbar.nav-open .logo { 
        display: none; 
    }
    .navbar.nav-open .mobile-menu-button { 
        position: absolute; 
        top: 2rem; 
        right: 1.5rem; 
    }
    .navbar.nav-open .main-nav { 
        display: flex; 
        padding: 0; 
        gap: 0; 
    }
    .main-nav a { 
        padding: 1rem; 
        display: block; 
        width: 100%; 
        text-align: center; 
        border-bottom: 1px solid #eee; 
        font-weight: bold; 
        font-size: 1.2rem; 
    }
    .main-nav li:last-child a { 
        border-bottom: none; 
    }
    .navbar.nav-open .main-nav li { 
        opacity: 0; 
        transform: translateY(-20px); 
        animation: dropDownItem 0.5s ease-out forwards; 
    }
    .navbar.nav-open .main-nav li:nth-child(1) { 
        animation-delay: 0.1s; 
    }
    .navbar.nav-open .main-nav li:nth-child(2) { 
        animation-delay: 0.2s; 
    }
    .navbar.nav-open .main-nav li:nth-child(3) { 
        animation-delay: 0.3s; 
    }
    .navbar.nav-open .main-nav li:nth-child(4) { 
        animation-delay: 0.4s; 
    }

    /* Tablet/Mobile Heading Size */
    .right-side h2,
    .left-side h2,
    .centered-info-block h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Adjust Main Padding for Mobile */
    main {
        padding: 2rem 1rem;
    }
    .two-sided-container,
    .two-sided-container-t {
        flex-direction: column;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .left-side, 
    .right-side {
        flex: 1 1 100%;
        width: 100%;
    }

    .centered-info-block {
        max-width: 100%;
        padding: 0 1rem; 
        box-sizing: border-box;
    }

    .gallery-images {
        gap: 2rem;
        flex-direction: column;
    }

    .gallery-item {
        max-width: 100%;
        width: 100%;
    }

    .gallery-item:first-child .gallery-image,
    .gallery-item:last-child .gallery-image {
        transform: rotate(0deg); 
    }

    .right-side h2,
    .left-side h2,
    .centered-info-block h2 {
        font-size: 2rem;
    }

    .right-side p,
    .centered-info-block p,
    .gallery-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .two-sided-container ul li,
    .two-sided-container-t ul li,
    .centered-info-block ul li {
        font-size: 0.85rem;
        margin-bottom: 0.5em;
    }

    .footer { 
        height: auto; 
        padding: 8rem 1rem 4rem 1rem; 
        background-image: none; 
    }
    .parallax-backgrounds { 
        display: none; 
    }
    .footer-main-content { 
        position: relative; 
        top: auto; 
        left: auto; 
        transform: none; 
        flex-direction: column-reverse; 
        align-items: flex-start; 
        width: 85%; 
        padding-left: 5%; 
        gap: 20px; 
    }
    .footer-column { 
        text-align: left; 
        width: 100%; 
    }
    .footer-column h4 { 
        font-size: 0.9rem; 
        margin-bottom: 15px; 
    }
    .footer-column ul li { 
        font-size: 0.8rem; 
    }
    .footer-column ul { 
        gap: 10px; 
    }
}