/*
© 2024 SENSRZ Pty Ltd. All rights reserved.
Main style file for Sensrz.com public website
16 August 2024 - Version 1.3
*/

:root {
    --primary-color: #4A9FCE;
    --secondary-color: #F8F9FA;
    --tertiary-color: #0056b3;
    --dark-background: #0E0C1F;
    --light-silver: #C0C0C0;
    --navy-blue: #20354D;
    --hover-color: #EEC17B;
    --hover-color-dark: #CC5500;
    --hover-color-light: #FFA500;
    --sticky-opacity: 0.8;
    --cta-background: #1E76A9;
    --cta-hover-color: #EEC17B;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--secondary-color);
    background-color: var(--dark-background);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.5s ease;
}

a:hover {
    color: var(--hover-color);
}

.top-header {
    background-color: var(--dark-background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
    height: 90px;
    transition: top 0.5s ease, transform 0.5s ease;
}

.top-header .logo img {
    height: 80px;
    margin: 5px 0;
}

.top-header .cta p {
    margin: 0;
    padding: 0;
}

.top-header .cta {
    margin-left: auto;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    background-color: var(--cta-background);
    color: var(--secondary-color);
    text-transform: uppercase;
    line-height: 1.6;
}

.top-header .cta a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    font-size: 1.2em;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.5s ease;
}

.top-header .cta a:hover {
    color: var(--hover-color-light);
}

.top-header .cta .fas.fa-envelope {
    font-size: 40px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.top-header .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background-color: var(--cta-background);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.menu-toggle {
	display: none;
    bottom: 0px;
    right: 10px;
    padding: 5px;
    font-size: 50px;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 1001;
    line-height: 1.6;
}

.nav-header {
    background-color: var(--navy-blue);
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    transition: left 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
    line-height: 1.6;
}

.nav-header ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 50px 20px;
    margin: 0;
    text-transform: uppercase;
}

.nav-header ul li {
    margin: 15px 10px;
}

.nav-header ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.5s ease;
}

.nav-header ul li a:hover {
    color: var(--hover-color-light);
}

.nav-header.open {
    left: 0;
}

.menu-close {
    display: block;
    font-size: 50px;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.parallax {
    background-image: url('../images/parallax-background.jpg');
    height: 50vh;
    background-attachment: fixed;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 130% auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    text-align: center;
    font-size: 2em;
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .parallax {
        background-attachment: scroll;
        background-position: center bottom;
        background-size: 150% auto;
        font-size: 1.8em;
        line-height: 1.5;
    }
}

.parallax .content {
    padding: 20px;
    color: var(--secondary-color);
    text-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.9), 
        2px 2px 10px rgba(0, 0, 0, 0.9),
        2px 2px 15px rgba(0, 0, 0, 0.9),
        2px 2px 20px rgba(0, 0, 0, 0.9);
    line-height: 1.6;
}

.parallax .content h1, .parallax .content h2, .parallax .content h3, .parallax .content h4, .parallax .content h5, .parallax .content h6 {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 300;
    line-height: 1.6;
}

main {
    padding: 0;
    margin-left: 2%;
    margin-right: 2%;
    transition: margin 0.5s ease;
    line-height: 1.6;
}

@media (min-width: 1200px) {
    main {
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media (min-width: 955px) and (max-width: 1199px) {
    main {
        margin-left: 5%;
        margin-right: 5%;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.6;
}

.tech-item h1, .tech-item h2, .tech-item h3, .tech-item h4, .tech-item h5, .tech-item h6 {
    color: var(--tertiary-color);
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.6;
}

.tech-item h3 a {
    color: var(--tertiary-color);
    text-decoration: none;
    transition: color 0.5s ease;
    line-height: 1.6;
}

.tech-item h3 a:hover {
    color: var(--hover-color-dark);
    text-decoration: none;
    transition: color 0.5s ease;
    line-height: 1.6;
}

section {
    margin-bottom: 40px;
    line-height: 1.6;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    line-height: 1.6;
}

.tech-item {
    background-color: var(--light-silver);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: var(--dark-background);
    line-height: 1.6;
}

.tech-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: var(--navy-blue);
    color: var(--light-silver);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

.acknowledgement {
    width: 90%;
    color: var(--light-silver);
    text-align: center;
    font-size: 0.8em;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.6;
}

/* Footer Content */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 10px;
    padding: 0 20px;
}

.footer-content .site-links,
.footer-content .footer-sensrz,
.footer-content .footer-contact {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.footer-content .site-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-content .site-links ul li {
    margin: 5px 0;
}

.footer-content .site-links ul li a {
    color: var(--light-silver);
    text-decoration: none;
    transition: color 0.5s ease;
}

.footer-content .site-links ul li a:hover {
    color: var(--hover-color-light);
}

.footer-contact {
    text-align: left;
    width: 100%;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-social {
    margin-top: 50px;
    margin-left: 40px;
    display: flex;
    justify-content: left;
    text-align: left;
    gap: 10px;
    font-size: 2em;
    line-height: 1.6;
}

.footer-social a {
    color: var(--light-silver);
    text-decoration: none;
    transition: color 0.5s ease;
}

.footer-social a:hover {
    color: var(--hover-color-light);
}

.footer-sensrz {
    justify-content: left;
    text-align: left;
    width: 100%;
}

.footer-sensrz img {
    height: 60px;
    margin: 0;
    margin-left: 20px;
    display: block;
}

.footer-sensrz p {
    margin-left: 80px;
    margin-top: 0px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.6;
}

footer .copyright {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid var(--secondary-color);
    margin-top: 20px;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: left;
    }
    
    .footer-sensrz img {
        margin-top: 50px;
    }
    
    .top-header .logo img {
        height: 60px;
	}
}

@media (min-width: 601px) and (max-width: 800px) {
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer-content .site-links {
        width: 100%;
        max-width: 50%;
        margin-bottom: 20px;
    }

    .footer-content .footer-contact,
    .footer-content .footer-sensrz {
        width: 100%;
        max-width: 50%;
    }
    
    .footer-sensrz img {
        height: 80px;
        margin-top: 50px;
    }
    
    .footer-sensrz p {
		margin-left: 100px;
	}
}

@media (min-width: 801px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    
    .menu-toggle,
    .menu-close {
    	position: static;
        display: none;
    }
}

/* Other Shared Styles */
.icon-container {
    display: inline-block;
    width: 30px;
    text-align: center;
}

.form-group label {
    display: flex;
    align-items: center;
}

.form-group label .icon-container {
    margin-right: 8px;
}

.nav-header ul li a,
.footer-contact p,
.footer-social a {
    display: flex;
    align-items: center;
}

.nav-header ul li a .icon-container,
.footer-contact p .icon-container,
.footer-social a .icon-container {
    margin-right: 8px;
}

.nav-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(32, 53, 77, var(--sticky-opacity));
    left: 0;
    z-index: 1000;
    padding: 0;
    display: flex;
    align-items: center;
    height: 90px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
}

.nav-header.sticky.visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-logo-container {
    display: flex;
    align-items: center;
    position: relative;
    left: 0;
}

.sticky-logo {
    display: none;
    height: 80px;
    margin: 3px 0;
}

.nav-header.sticky .sticky-logo {
    display: block;
}

.sticky-nav-container {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    margin-left: 140px;
}

.nav-header.sticky ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 18px 25px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
    width: auto;
}

.nav-header.sticky ul li {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0 5px;
}

@media (min-width: 1200px) {
    .nav-header.sticky ul {
        grid-template-columns: repeat(6, minmax(100px, 1fr));
        gap: 0px 10px;
    }
}

@media (min-width: 955px) {
    .nav-header {
        position: static;
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
        background-color: var(--navy-blue);
        padding: 20px 20px;
        left: 0;
        top: 0;
        flex-direction: row;
        transition: none;
    }

    .nav-header ul {
        flex-direction: row;
        padding: 0;
    }

    .nav-header ul li {
        margin: 0 15px;
    }

    .sticky-logo {
        display: none;
    }
}

@media (max-width: 1200px) {
    .parallax {
        background-size: 140% auto;
        font-size: 1.9em;
    }
}

@media (max-width: 954px) {
    
    main {
        margin-left: 0;
        margin-right: 0;
        padding-left: 2%;
        padding-right: 2%;
    }
    
    .parallax {
        margin-left: 0;
        margin-right: 0;
        padding-left: 2%;
        padding-right: 2%;
    }
    
    .top-header {
        margin-left: 0;
        margin-right: 0;
        padding-left: 2%;
        padding-right: 2%;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-header {
        display: block;
        position: fixed;
        left: -100%;
    }
    
    .nav-header.open .menu-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .parallax {
        background-size: 160% auto;
        font-size: 1.7em;
        line-height: 1.4;
    }
    
    .top-header .cta {
        display: none;
    }
}

@media (max-width: 670px) {
    .parallax {
        background-size: 200% auto;
        background-position: center right;
        font-size: 1.1em;
        line-height: 1.2;
    }
    
    .menu-toggle {
    	position: absolute;
    }
    
    footer .copyright {
    	font-size: 0.8em;
	}
}

/* Form Styles */
.form-error {
    color: red;
    margin: 10px 0;
    font-size: 0.9em;
}

.contact-form-container {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--navy-blue);
    color: var(--secondary-color);
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.contact-form-container.active {
    display: block;
    transform: translateX(0);
}

.contact-form-container label {
    display: block;
    margin-bottom: 5px;
    margin-top: 20px;
    text-transform: none;
}

.contact-form-container input,
.contact-form-container textarea {
    width: calc(100% - 10px);
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 3px;
    background-color: #fff;
    color: var(--dark-background);
    box-sizing: border-box;
}

.contact-form-container button {
    width: 150px;
    padding: 10px;
    border: none;
    border-radius: 3px;
    background-color: grey;
    color: #fff;
    cursor: not-allowed;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
}

.contact-form-container button.enabled {
    background-color: var(--primary-color);
    cursor: pointer;
}

.contact-form-container button.enabled:hover {
    background-color: var(--hover-color);
}

.form-error {
    border-color: red;
}

.validation-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
    text-transform: none;
}

.response-message {
    font-size: 1em;
    text-transform: none;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--secondary-color);
}

.icon-container {
    display: inline-block;
    width: 30px;
    text-align: center;
}

.form-group label {
    display: flex;
    align-items: center;
}

.form-group label .icon-container {
    margin-right: 8px;
}

.nav-header ul li a,
.footer-contact p,
.footer-social a {
    display: flex;
    align-items: center;
}

.nav-header ul li a .icon-container,
.footer-contact p .icon-container,
.footer-social a .icon-container {
    margin-right: 8px;
}

/* Specific Styles for the Contact Page Form */
.contact-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--navy-blue);
    box-sizing: border-box;
    border-radius: 8px;
}

.contact-form-wrapper form {
    width: 100%;
}

.contact-form-wrapper label {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    /*font-weight: 700;*/
    color: var(--secondary-color);
}

.contact-form-wrapper input, 
.contact-form-wrapper textarea {
    width: calc(100% - 10px);
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: var(--dark-background);
    box-sizing: border-box;
}

/* Initial button styling - assumes the button starts in a disabled appearance */
.contact-form-wrapper button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: grey; /* Disabled state color */
    color: var(--secondary-color);
    cursor: not-allowed;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 1em;
}

/* Enabled state */
.contact-form-wrapper button.enabled {
    background-color: var(--primary-color);
    cursor: pointer;
}

.contact-form-wrapper button.enabled:hover {
    background-color: var(--hover-color);
}

.contact-form-wrapper .validation-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
    text-transform: none;
}

.contact-form-wrapper .response-message {
    font-size: 1em;
    text-transform: none;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--secondary-color);
}

/* Responsive Styles for Contact Page Form */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 15px;
    }

    .contact-form-wrapper button {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper input, 
    .contact-form-wrapper textarea {
        padding: 8px;
    }

    .contact-form-wrapper button {
        padding: 10px;
        font-size: 0.85em;
    }
}