/** 
 * General Styles
 */
* {
    font-family: 'poppins', 'sans-serif';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--black);
    text-decoration: none;
}

:root {
    --light-green: #0a9f34;
    --green: #4ab75c;
    --bright-green: #00cc00;
    --darker-green: #3b9848;
    --light-gray: #f3f3f3;
    --forest-green: #256734;
    --semitransparent-green: #00cc0040;
    --pastel-green: #d8f7cd;
    --light-pastel-green: #e0f3e3;
    --green-gray: #808f83;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #e1e6e7;
    --gray: #808080;
    --dark-gray: #252525;
    --z-index-low: 0;
    --z-index-high: 39;
}

/** 
 * Header Styles
 */
.header-p {
    font-weight: bold;
    letter-spacing: 1px;
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: 4rem;
    text-align: center;
    text-wrap: none;
    width: 100%;
}

.top h2 {
    text-align: left;
}

h2 {
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
}

header {
    padding: 7rem;
    padding-bottom: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

header h1,
header p {
    color: var(--white);
}

header img {
    height: 11rem;
    position: absolute;
    transform: translateY(22rem);
}

header p {
    font-size: 26px;
}

.white-foot {
    display: none;
}

button:hover {
    cursor: pointer;
}

.element-low-z-index {
    z-index: var(--z-index-low);
}

.element-high-z-index {
    z-index: var(--z-index-high);
}

.hero {
    background-image: url('../assets/hero-background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
}

.logo-div {
    background-color: var(--green);
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 20%;
    align-items: center;
    display: flex;
    margin-bottom: 1rem;
}

.top {
    gap: 2rem;
    justify-content: space-between;
}

.top p {
    width: 100%;
    color: var(--gray);
}

.top img {
    width: 1.5rem;
}

.banner-container {
    align-items: center;
    justify-content: center;
    display: flex;
    width: 100%;
}

.banner-img {
    height: 10rem;
    position: absolute;
}

.bubble-container {
    margin: 4rem 0rem 7rem;
    display: grid;
    gap: 3rem;
}

.bubble {
    box-shadow: 5px 30px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--white);
    text-align: left;
    padding: 1rem 2rem 2rem 1rem;
    border-radius: 25px;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.bubble p {
    color: var(--gray);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Buttons */
button {
    width: 9rem;
    height: 3rem;
    border-radius: 6px;
    border: 1px solid var(--green);
    color: var(--green);
    background-color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.button {
    width: 12rem;
    height: 2.5rem;
    border-radius: 6px;
    text-align: center;
    margin-top: 1rem;
    color: var(--white);
    font-size: 1rem;
}

.button:focus {
    cursor: default;
}

.button-green:hover {
    background-color: var(--white);
    color: var(--green);
    cursor: pointer;
}

button:hover {
    background-color: var(--green);
    color: var(--white);
    border: solid var(--white) 1px;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.container ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.container a {
    color: var(--white);
    text-decoration: none;
}

/* Form Section */
#small-container {
    margin-top: 0rem;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.form-container {
    padding: 5rem 5rem 2rem 5rem;
    display: flex;
    justify-content: center;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    background-image: url('../assets/Contact.png');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center bottom -10px;
}

.form-container h3 {
    color: var(--white);
    margin-top: 2rem;
}

.inputs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1rem;
    padding: 1rem;
}

label {
    color: var(--white);
    font-size: 1rem;
}

.position {
    white-space: nowrap;
}

.long-container {
    padding: 1rem;
}

input {
    border: none;
    background: transparent;
    color: var(--white);
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem;
    transition: border-color 0.2s ease-in-out;
    outline: none;
}

input:focus,
input:valid {
    border-color: var(--pastel-green);
}

.long-input {
    background: none;
    border: none;
    border-bottom: 2px solid var(--white);
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 15px;
    color: var(--white);
    outline: none;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--white);
    border: 0px solid var(--darker-green);
}

.inputs {
    display: flex;
    justify-content: start;
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-bottom: 2px solid var(--white);
}

.inputs.noborder {
    border-bottom: none;
}

.inputs select {
    width: 100%;
    cursor: pointer;
    background-color: var(--green);
    color: var(--white);
    font-size: 0.9rem;
    border: 1px solid var(--white);
    padding-left: 0.2em;
}

.inputs .select-container {
    padding: 0.5rem;
    width: 100%;
}

.inputs option {
    background-color: var(--green);
    color: var(--white);
    font-size: 1rem;
}

.inputs option:hover {
    background-color: var(--green);
    color: var(--white);
}

footer {
    padding-bottom: 10rem;
}

.top {
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.links {
    padding: 4rem;
    align-items: center;
    justify-content: center;
}

ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.links ul {
    text-align: left;
}

.links a:hover {
    color: var(--green);
}

li {
    list-style: none;
}

.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.contacts {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    align-items: start;
}

.contact-div {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.contact-div img {
    width: 20px;
    height: 20px;
    background-color: var(--green);
}

.border {
    width: 1px;
    height: 8rem;
    border: 1px solid var(--gray);
}

.logos {
    display: flex;
    justify-content: space-around;
    gap: 5rem;
}

.socials {
    width: 25%;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.socials a {
    text-decoration: none;
}

.socials i {
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.socials img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--black);
}

.spark-logo img {
    height: 2rem;
}

.nav-logo {
    height: 2rem;
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 99;
}

.text-b {
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    align-items: center;
}

/* Nav  */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    background-color: var(--darker-green);
    color: var(--white);
}

/** @format */
nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

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

nav ul {
    list-style-type: none;
    margin: 0;
    display: block;
    gap: 0rem;
}

nav button {
    background-color: transparent;
    color: var(--white);
    border: none;
    font-size: 30px;
    cursor: pointer;
    transition: all 300ms ease-in-out;
}

nav button:hover {
    opacity: 0.9;
}

.nav-brand {
    color: var(--white);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 2px;
}

.sub-links li {
    text-align: left;
    padding-right: 1rem;
    font-size: 20px;
    margin-top: 0.5rem;
}

.nav-container {
    width: 50%;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0s ease-in-out, visibility 0s ease-in-out;
}

/* Show overlay Javascript */
.show-overlay {
    opacity: 1;
    visibility: visible;
    align-items: center;
    justify-content: space-around;
    display: flex;
    padding-top: 6rem;
}

.nav-overlay-container {
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 1rem;
    justify-content: start;
    text-align: center;
    position: relative;
}

#menu-show-btn {
    position: absolute;
    right: 40px;
    top: 25px;
    width: 40px;
    height: 40px;
    color: var(--white);
    line-height: 40px;
    border-radius: 50%;
}

#menu-hide-btn {
    position: absolute;
    right: 40px;
    top: 25px;
    width: 40px;
    height: 40px;
    color: var(--white);
    line-height: 40px;
    border-radius: 50%;
}

.nav-links li {
    margin: 16px 0;
    position: relative;
    text-align: left;
}

.nav-links li::before {
    top: 0;
    left: 0;
}

.nav-links li::after {
    bottom: 0;
    right: 0;
}

.nav-links li:hover::before,
.nav-links li:hover::after {
    width: 75%;
    opacity: 1;
}

.nav-links li a {
    font-size: 30px;
    text-align: left;
    font-weight: 700;
    transition: all 300ms ease-in-out;
}

.nav-links li:hover a {
    color: var(--green);
}

.nav-icons li {
    border: 1px solid var(--gray);
    width: 35px;
    height: 35px;
    margin: 0 5px;
    line-height: 35px;
    border-radius: 50%;
    transition: all 300ms ease-in-out;
}

.contact-nav {
    display: flex;
    flex-direction: column;
    height: 70%;
    margin-top: 3rem;
    align-items: start;
    gap: 1rem;
}

.contact-nav a {
    color: var(--gray);
}

.contact-top p {
    justify-content: start;
    text-align: left;
    color: var(--gray);
    margin: 0;
}

.contact-bottom p {
    color: var(--gray);
}

/* Dropdown */
.sub-links {
    display: none;
    margin-left: 2rem;
}

.back-button {
    position: absolute;
    font-size: 15px;
    border: 1px var(--white) solid;
    top: -50px;
    border-radius: 5px;
    height: 2rem;
    left: 0;
    text-align: center;
    width: 5rem;
    display: none;
}

/* Media Queries  */
@media (max-width: 320px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 750px) {
    .top h2 {
        text-align: center;
    }
}

@media (max-width: 750px) {
    .info-grid {
        padding: 5rem 2rem;
        margin: 0;
    }

    .info-blocks {
        height: 100%;
        width: 100%;
    }

    .top p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 410px) {
    .inputs-container {
        width: auto;
    }
}

@media (max-width: 740px) {
    .footer {
        padding: 12rem 0rem 5rem 0rem;
    }
}

@media (max-width: 800px) {
    .logos {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .logos {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .socials {
        width: 50%;
    }
}

@media (max-height: 600px) and (max-width: 700px) {
    .contact-nav {
        display: none;
    }
}

@media (max-height: 475px) and (max-width: 700px) {
    .nav-overlay-container {
        margin-top: 2rem;
    }

    .back-button {
        top: -20px;
    }
}

@media (max-height: 670px) and (max-width: 700px) {
    .sub-links {
        overflow: scroll;
        max-height: 60%;
        justify-content: center;
    }

    .contact-nav {
        margin-top: 0rem;
    }

    .nav-overlay-container {
        height: 60%;
    }
}

@media (max-height: 550px) and (orientation: landscape) {
    .nav-overlay {
        padding-bottom: 0.5rem;
    }

    .sub-links {
        overflow: scroll;
    }

    .nav-links li {
        margin-bottom: 0;
    }

    .back-button {
        top: -30px;
    }
}

@media (min-width: 1440px) {
    .lg-margin {
        margin-left: 10rem;
        margin-right: 10rem;
    }

    .show-overlay {
        justify-content: center;
    }

    .nav-overlay-container {
        width: 30%;
    }

    .back-button {
        top: -50px;
    }
}

@media (max-width: 950px) {
    .links {
        padding: 2rem;
    }

    .footer-container {
        gap: 2rem;
    }
}

@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        margin-top: 6rem;
        gap: 0rem;
    }

    .contacts {
        align-items: center;
    }

    .links ul {
        text-align: center;
    }

    .text-b {
        margin-top: 2rem;
    }

    .contacts p {
        text-align: center;
    }

    .border {
        display: none;
    }

    .links {
        padding: 1rem;
    }

    .contacts {
        padding: 1rem;
        margin: 2rem 0rem 3rem 0rem;
    }
}

@media (max-width: 768px) {
    header {
        height: 80vh;
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    header p {
        font-size: 20px;
    }

    .form-container {
        padding: 2rem 3rem;
    }

    .inputs-container {
        flex-direction: column;
    }

    .form {
        margin: 0rem 3rem;
    }

    .button {
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .form-container h3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 500px) {
    .banner-img {
        height: 8rem;
    }

    header p {
        font-size: 15px;
    }

    section {
        overflow: hidden;
        width: 100%;
    }

    form {
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .form {
        margin: 0rem !important;
        width: 100%;
    }

    .buttons {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .nav-links li a {
        font-size: 22px;
    }

    .nav-overlay {
        padding: 30px;
    }

    .show-overlay {
        flex-direction: column;
    }

    .nav-overlay-container {
        width: 90%;
        margin-top: 9rem;
    }

    .contact-nav {
        width: 90%;
        margin-top: 4rem;
    }

    .sub-links li {
        font-size: 18px;
    }

    .back-button {
        top: -50px;
    }
}

.form {
    margin: -5rem 5rem;
    background-color: var(--light-green);
    transform: translateY(10rem);
}

.footer {
    padding: 15rem 0rem 5rem 0rem;
    background-color: var(--light-gray);
    overflow: hidden;
}

@media (prefers-color-scheme: light) {
    .contacts p {
        color: var(--black);
        margin-top: 0;
        text-align: left;
    }

    .text-b p {
        color: var(--black);
    }

    .bubble {
        background-color: var(white);
    }

    .button-green {
        background-color: var(--green);
        border: 1px solid var(--white);
        color: var(--white);
    }

    .form {
        background-color: var(--light-green);
    }

    .footer {
        background-color: var(--light-gray);
    }

    /* Why us Section  */
    .why-us {
        display: flex;
        justify-content: center;
        padding: 5rem;
        background-image: url('../assets/white-square-texture.png');
        padding-top: 10rem;
        flex-direction: column;
        align-items: center;
        background-repeat: no-repeat;
        background-position: top;
    }

    p {
        color: var(--gray);
    }

    .contact-div a {
        color: var(--black);
    }
}

@media (prefers-color-scheme: dark) {
    .top h2,
    .break,
    .numbered h2,
    .white-dark,
    .num-text h4,
    .radio-label,
    .fa-phone:before,
    .fa-solid,
    .fas {
        color: var(--white);
    }

    .bubble {
        background-color: var(--dark-gray);
    }

    .bubble p {
        color: var(--white);
    }

    .info-blocks {
        background-color: rgb(16, 16, 16);
    }

    .black-dark {
        color: var(--black);
    }

    .contacts p,
    .text-b p,
    .contact-div p,
    .content h4,
    .links a {
        color: var(--white);
    }

    .links a:hover {
        color: var(--green);
    }

    .text-dark,
    .num-text p {
        color: var(--green-gray);
    }

    body {
        background-color: var(--black);
    }

    .button-green {
        background-color: var(--light-green);
        border: 1px solid var(--white);
        color: var(--white);
    }

    .foot-logo {
        display: none;
    }

    .white-foot {
        display: flex;
    }

    .form {
        background-color: var(--forest-green);
    }

    .footer {
        background-color: var(--dark-gray);
    }

    /* Why us Section  */
    .why-us {
        display: flex;
        justify-content: center;
        padding: 5rem;
        background-image: url('../assets/black-sqr.png');
        padding-top: 10rem;
        flex-direction: column;
        align-items: center;
        background-repeat: no-repeat;
        background-position: top;
        background-size: 130%;
    }

    p {
        color: var(--white);
    }

    .contact-div a {
        color: var(--white);
    }

    .radio-label.dynamic-active-option {
        background-color: var(--semitransparent-green);
    }
}
