/* font setup - THIS NEEDS CHANGING IN PROD */

@font-face {
    font-family: 'Brandon Grotesque Light';
    src: url('fonts/brandon_grotesque_light.otf') format('opentype');
    font-weight: lighter; 
    font-style: normal;
}

@font-face {
    font-family: 'Brandon Grotesque Regular';
    src: url('fonts/brandon_grotesque_regular.otf') format('opentype');
    font-weight: 400; 
    font-style: normal;
}

@font-face {
    font-family: 'Brandon Grotesque Bold';
    src: url('fonts/brandon_grotesque_bold.otf') format('opentype');
    font-weight: 400; 
    font-style: normal;
}

@font-face {
    font-family: 'Warbler Regular';
    src: url('fonts/brandon_grotesque_light.otf') format('opentype');
    font-weight: 400; 
    font-style: normal;
}


/* Basic Setup*/
body {
    margin: 0;
    font-family: 'Brandon Grotesque Light', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #E9E6D5; 
}

body.page-inner .main-nav,
body.page-inner #main-content {
    transition-delay: 0s !important;
    opacity: 1 !important; 
}

h1, h2, h3, h4 {
    font-family: 'Warbler Regular' -apple-system, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

li {
    font-family: 'Brandon Grotesque Regular', -apple-system, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body.animation-in-progress {
    overflow: hidden;
}

* {
    box-sizing: border-box;
}


/* Initial Header State */

#main-header {
    height: 100vh;
    width: 100%;
    background-color: #E9E6D5; 
    
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;     
    
    position: relative; 
    transition: all 0.6s ease-in-out; 
}

#logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    
    line-height: 0; 
}

#logo {
    width: 1000px;
    max-width: 80%;
    height: auto;
    transition: all 0.6s ease-in-out;
}

.main-nav {
    position: absolute;
    top: 0;
    height: 80px; 
    display: flex;
    align-items: center; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    text-align: center;

    -webkit-text-stroke: 1px #333;
}



#nav-left {
    right: 52%; 
    
    margin-right: 100px; 
    
    text-align: right; 
}
#nav-right {
    left: 52%; 
    
    margin-left: 100px; 
}

.main-nav a.active {
    color: transparent;
    font-family: 'Brandon Grotesque Bold', -apple-system, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

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

.main-nav li {
    margin: 0 80px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 24px;
}


/* Scrolled State (Sticky Nav) */

body.scrolled #main-header,
body.page-inner #main-header {
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;

    padding-bottom: 20px;
    padding-top: 20px;

    
    flex-direction: row; 
    
    justify-content: center; 
    
    background-color: rgba(233, 230, 213, 0.7);
    box-shadow: none;
    z-index: 1000;

    backdrop-filter: blur(5px);
    
}

body.scrolled #logo,
body.page-inner #logo {
    width: 300px;
}

body.scrolled .main-nav,
body.page-inner .main-nav {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.4s;
    padding-top: 20px;
    padding-bottom: 20px;
}


/* Main Content Handling */

#main-content {
    padding: 20px 20%;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
}

#main-content h2 {
    text-align: center;
    font-size: 64px;
}

#main-content p {
    font-size: 24px;
}

#main-content .content-2, .content-3 {
    margin-top: 280px;
}

#main-content .content-3 {
    margin-bottom: 60px;
}

#main-content .content-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main-content .content-2 ul {
    font-size: 24px;
    font-weight: lighter;
    align-self: center;
}

body.scrolled #main-content {
    padding-top: 100px;
    opacity: 1; 
    transition-delay: 0.6s; 

}

#main-content .content-3-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 200px;
}

.content-3-buttons .content-3-button1, .content-3-button2 {
    padding-inline: 30px;
    padding-block: 10px;
    font-family: 'Brandon Grotesque Light', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
    text-decoration: none;
}

.content-3-buttons .content-3-button1 {
    background-color: #1D2622;
    color: #E9E6D5;
}

.content-3-buttons .content-3-button1:hover {
    background-color: #E9E6D5;
    color: #1D2622;
    transform: scale(1.05);
    border: 1px solid #1D2622
}

.content-3-buttons .content-3-button2 {
    color: #1D2622;
    background-color: #E9E6D5;
    border: 1px solid #1D2622;
}

.content-3-buttons .content-3-button2:hover {
    background-color: #1D2622;
    color: #E9E6D5;
    transform: scale(1.05);
}



/* image styles for 'our work' page */
.our-work-flex {
    margin-top: 200px;
    display:flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.image-container {
    position: relative; 
    flex: 0 1 calc(50% - 20px); 
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
    line-height: 0; 
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Style the image to be responsive */
.image-container img {
    width: 100%;
    height: 100%;
    display: block; 
    object-fit: cover;
}

/* The overlay layer */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    
    background-color: rgba(0, 0, 0, 0.7); 
    
    opacity: 0;
    
    transition: opacity 0.3s ease-in-out;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; 
    text-align: left; 
    
    box-sizing: border-box; 
    
    color: white;
    line-height: 1.4;
}

/* Hover effect */
.image-container:active .image-overlay,
.image-container:focus .image-overlay, 
.image-container:hover .image-overlay {
    opacity: 1;
    padding: 16px;
}

/* --- Text Styles --- */
#main-content .overlay-text-top h2 {
    text-align: left;
    font-family: 'Brandon Grotesque Light', sans-serif; 
    font-size: 2rem; 
    margin: 0;
    padding: 0;
}

.overlay-text-bottom p {
    font-family: 'Brandon Grotesque Light', sans-serif; 
    font-style: italic;
    font-size: 0.9rem; 
    margin: 0;
}

/* ======================= 
   CONTACT FORM STYLES
======================= */

.form-container {
    max-width: 800px; 
    margin: 50px auto; 
    padding: 40px;
    margin-bottom: 150px;
}

.form-group {
    margin-bottom: 30px; 
}

.form-group label {
    display: block; 
    margin-bottom: 8px;
    font-family: 'Brandon Grotesque Light', sans-serif; 
    font-weight: 700;
    font-size: 16px;
    color: #2a3b3a; 
}

/* General style for all inputs and textareas */
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid black;
    background: transparent;
    
    
    padding: 10px;
    font-size: 18px; 
    font-family: 'Brandon Grotesque Light', sans-serif; 
    color: #2a3b3a;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8a8d8c;
    font-family: 'Brandon Grotesque Light', serif; 
    font-style: italic; 
    font-size: 18px;
    padding: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #5d6867; 
}

.form-group textarea {
    height: 150px;
    resize: vertical; 
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 30px; 
}

.form-group.half-width {
    flex: 1;
    min-width: 0; 
}

.button-wrapper {
    text-align: center;
    margin-top: 20px;
}

.button-wrapper button {
    padding: 15px 30px;
    font-family: 'Brandon Grotesque Light', sans-serif;
    font-size: 16px;
    color: #f5f1e9; 
    background-color: #2a3b3a; 
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.button-wrapper button:hover {
    background-color: #4a5c5b; 
    transform: translateY(-2px);
}

.direct-contact {
    text-align: center;
}

hr {
    margin-top: 200px;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    margin-bottom: 200px;
}

.contact-social-links a img {
    width: 64px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; 
        gap: 0; 
    }
    
    .form-container {
        padding: 20px;
    }
}



/* ======================= 
   FOOTER STYLES
======================= */

#main-footer {
    background-color: #1D2622; 
    
    color: #eef0e9; 
    
    padding: 60px 5% 20px 5%; 
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 30px; 
    max-width: 1300px; 
    margin: 0 auto; 
    padding-bottom: 40px;
}

.footer-col {
    flex-grow: 1;
    flex-basis: 200px; 
}

/* Logo */
#footer-logo {
    width: 250px
}

#footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#footer-links li {
    margin-bottom: 12px;
}
#footer-links a {
    text-decoration: none;
    color: #eef0e9;
    font-family: 'Brandon Grotesque Light', sans-serif;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s ease;
}
#footer-links a:hover {
    color: #ffffff;
}

#footer-contact p {
    font-family: 'Brandon Grotesque Light', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.social-icons {
    display: flex; 
    gap: 20px; 
}
.social-icons a {
    text-decoration: none;
    color: #eef0e9;
    transition: color 0.3s ease;
}

.social-icons a img {
    width: 24px;
}

.social-icons a:hover {
    color: #ffffff;
}

/* Divider & Bottom  */
.footer-divider {
    border: none;
    height: 1px;
    background-color: #5d6867; 
    margin: 20px 0;
}
.footer-bottom {
    text-align: center;
}
.footer-bottom p {
    font-family: 'Brandon Grotesque Light', sans-serif;
    font-size: 14px;
    color: #a0a6a3;
    margin: 0;
}

/* ======================= 
   MOBILE NAV STYLES
======================= */

/* --- Default Hidden Hamburger Button --- */
#hamburger-btn { 
    width: 30px;
    height: 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;

    visibility: hidden; 
    opacity: 0;
    
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.btn-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- Default Hidden Mobile Menu Overlay --- */
#mobile-menu {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(233, 230, 213, 0.8); 
    backdrop-filter: blur(5px);
    z-index: 1001;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

#mobile-nav li {
    margin: 25px 0;
}

#mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-family: 'Brandon Grotesque Bold', sans-serif;
}


body.mobile-nav-open #mobile-menu {
    opacity: 1;
    visibility: visible;
}

/* currently not functional, x hamburger animation */
body.mobile-nav-open #hamburger-btn .btn-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
body.mobile-nav-open #hamburger-btn .btn-line:nth-child(2) {
    opacity: 0;
}
body.mobile-nav-open #hamburger-btn .btn-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ======================= 
   MOBILE MEDIA QUERY
======================= */

/* adjustments made to accommodate mobile devices */

@media (max-width: 768px) {

    .main-nav {
        display: none;
    }
    
   body.scrolled #hamburger-btn {
    visibility: visible;
    opacity: 1;
    transition-delay: 0.6s; 
    }

    body.page-inner #hamburger-btn {
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }

        
    #mobile-menu {
        display: flex;
    }

    body.scrolled #main-header {
        height: 70px;
        background-color: rgba(233, 230, 213, 0.7);
        backdrop-filter: blur(5px);
        
        -webkit-mask-image: none;
        mask-image: none;
    }

    body.scrolled #logo {
        width: 200px;
    }

    body.page-inner #logo {
        width: 200px;
    }

    body.scrolled #main-content,
    body.page-inner #main-content {
        padding-top: 90px; 

        padding-left: 42px;
        padding-right: 42px;
    }

    .content-3-buttons a {
        color: inherit;
    }

    .overlay-text-top h2 {
        font-size: 1.2rem !important;
    }

    .overlay-text-bottom p {
        font-size: 0.7rem !important;
    }

    .contact-social-links a img {
        width: 30px;
    }

    /* stack images on our-work in a column on mobile */
    .our-work-flex {
        flex-direction: column;
        gap: 30px;
        margin-top: 100px;
    }

    .image-container {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
}

@media (hover:none) and (pointer:coarse) {
    .image-container:active .image-overlay {
        opacity: 1;
    }
}
