/* --- 1. CORE LAYOUT & FONTS --- */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

html.noscroll,
body.noscroll {
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

/* --- NEW STYLES FOR MAIN CONTENT --- */

main.main-content h1 {
    text-align: center;
}

/* 1. Image Container */
.main-image-container {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    margin-top: -3rem;
}

.main-image-container img {
    width: 100%;
    display: block;
}

/* new get in touch container */

/* Container Wrapper */
.contact-section-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 3rem; /* Distance from the intro paragraph above */
}

/* Left Side: Tighten the text-to-icon distance */
.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px !important; 
    padding-top: 1rem;
}

.connect-text {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 !important; 
    color: #262626;
    line-height: 1.2;
}

.social-icon-links {
    display: flex;
    gap: 25px;
    margin: 0;
}

.social-icon-links a {
    font-size: 2rem;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon-links a:hover {
    color: #3a7c49;
    transform: translateY(-5px);
}

/* Right Side: Get in Touch Card */
.contact-right {
    flex: 1;
}

.get-in-touch-card {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 20px;
}

.get-in-touch-card h2 {
    font-family: "Shadows Into Light Two", cursive;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.get-in-touch-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
    resize: none; 
    min-height: 120px; 
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #3a7c49;
}

.submit-btn {
    background: linear-gradient(to left, #d4fc79, #6cd17a);
    color: #333;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: scale(1.02);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .contact-section-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* 2. Info Container */
.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.2rem;
    line-height: 1.6;
    color: #000000;
    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%;
}

/* --- 2. HEADER & NAVIGATION --- */
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;
    pointer-events: none;
}

.mobile-menu-button {
    display: none;
}

@media (max-width:600px){
    .main-image-container {
        margin-top: -3rem;
    }
}


/* --- 3. FOOTER --- */
.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; }


/* ==============================================
    DEFINITIVE MOBILE RESPONSIVE STYLES
============================================== */

/* --- 1. Animation Definition --- */
@keyframes dropDownItem {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 2. Mobile Layout & Fixes (Tablets & Below) --- */
@media (max-width: 1024px) {
    /* --- Main Header & Nav Structure --- */
    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%;
    }

    /* --- Styles for the OPEN Mobile Menu --- */
    .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;
        padding-right: 2.1rem;
    }

    /* --- Styling for Individual Links & Animation --- */
    .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;
    }

    /* Animation delays */
    .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; }
}

@media (max-width: 768px) {
    /* --- Mobile Footer --- */
    .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;
    }

    /* --- Mobile Pill Nav --- */
    .pill-nav-items {
        width: 95%;
        gap: 5px;
        padding: 5px;
        flex-wrap: wrap;
    }
    .pill {
        padding: 0.8rem 1rem;
    }
    .pill-nav-items {
       --nav-font-size: 14px;
    }

    /* --- Mobile Content Font Size --- */
    .info-container p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ==============================================
    TOP-ANCHORED NAVBAR STYLES
============================================== */

/* 1. Defines the new slide-down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Styles for the top-anchored bar */
.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;
}

/* 3. Desktop-specific layout for the anchored bar */
@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: 2rem;
        font-size: 1em;
    }
}

/* 4. Mobile-specific layout for the anchored bar */
@media (max-width: 1024px) {
    .navbar.navbar--anchored {
        padding: 0 1.5rem;
    }
}

/* Final Tablet Layout (601px to 1024px) */

@media (min-width: 601px) and (max-width: 1024px) {
    /* Hide scroll path elements */
    .dashed-line,
    #mobile-line-svg,
    #svg-tip-counter {
        display: none !important;
    }

    /* Forcefully apply side-by-side layout to the specific containers */
    .state-container--split {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1.5rem;
        padding: 1rem;
        min-height: 420px;
        margin-bottom: 2rem;
        box-sizing: border-box;
    }

    /* Apply the reverse layout for relevant containers */
    .state-container--split.reverse {
        flex-direction: row-reverse !important;
    }

    /* Define column widths and reset mobile styles */
    .state-container--split .info-column,
    .state-container--split .image-column {
        flex: 1 1 50%;
        max-width: 50%;
        position: relative;
        margin: 0;
        padding: 0;
        min-height: unset;
    }

    .image-column img {
       width: 100%;
       height: auto;
       max-height: 400px;
       object-fit: contain;
       display: block;
    }

    /* Adjust the popup and text elements */
    .h2-popup {
        position: absolute;
        top: 0;
        left: 1rem;
        opacity: 1;
        transform: none;
    }

    .info-column h2 {
        font-size: 2.5rem;
        padding: 5rem 3rem 1rem 1rem;
        margin: 0;
    }

    .info-column p {
        font-size: 0.9rem;
        padding-left: 1rem;
    }

    .info-button {
        margin-left: 1rem;
    }

    .footer-main-content {
        width: 70%;
        top: 28%;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-column ul li {
        font-size: 0.8rem;
    }

    .footer-column ul {
        gap: 10px;
    }

    /* Move parallax layers down */
    .layer-3 img,
    .layer-4 .figure-left,
    .layer-4 .figure-right {
        bottom: -5%;
    }

    .layer-5 img {
        bottom: -10%;
    }

    .layer-2 img {
        bottom: 20%;
    }

    .layer-1 img {
        bottom: 62% !important;
    }

    .overlay-button {
        bottom: 35%;
    }
}

/* ==============================================
    ENHANCED MOBILE PILL NAVIGATION
============================================== */

/* For screens 600px and smaller */
@media (max-width: 600px) {
    .pill-nav-items {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .pill {
        padding: 1.2rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .pill-nav-items {
        --nav-font-size: 16px;
    }
}