/*=============== GOOGLE FONTS ===============*/
/* Imported in HTML */

/*=============== CSS VARIABLES ===============*/
:root {
    /* Colors */
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --primary-color: #007bff; /* Blue Accent */
    --secondary-color: #0d2f4f; /* Deep Blue */
    --text-color: #212529;
    --subtle-text-color: #6c757d;
    --border-color: #dee2e6;

    /* Typography */
    --title-font: "Roboto Condensed", sans-serif;
    --body-font: "Work Sans", sans-serif;

    --h1-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 1.5rem;
}

/*=============== BASE ===============*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1,
h2,
h3 {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    overflow: hidden;
    text-align: center;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.section__subtitle {
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: var(--title-font);
    text-transform: uppercase;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    font-family: var(--title-font);
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/*=============== ANIMATION CLASSES ===============*/
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-in[data-anim-type="fade-in-up"] {
    transform: translateY(40px);
}
.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s, box-shadow 0.4s;
}

.nav {
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo img {
    height: 2.5rem;
    width: auto;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    font-weight: 600;
    font-family: var(--title-font);
    text-transform: uppercase;
    color: #fff;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__toggle,
.nav__close {
    display: none;
}

.header.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/*=============== HERO ===============*/
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(13, 47, 79, 0.8), rgba(13, 47, 79, 0.8)),
        url("https://images.pexels.com/photos/5439473/pexels-photo-5439473.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2")
            center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-size: var(--h1-font-size);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #f1f1f1;
}

.hero__btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/*=============== PROCESS ===============*/
.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process__item {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.process__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.process__item h3 {
    margin-bottom: 0.75rem;
}

/*=============== PROOF (TEMPLATES) ===============*/
#proof {
    background-color: var(--surface-color);
}

.templates__grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.templates__card {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    display: block;
}

.templates__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.templates__card:hover img {
    transform: scale(1.1);
}

.templates__card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(13, 47, 79, 0.9), transparent);
    padding: 2.5rem 1.5rem 1.5rem;
    color: #fff;
    text-align: left;
}

.templates__card-info h4 {
    color: #fff;
    font-size: 1.4rem;
}

/*=============== WHY ===============*/
.why__container {
    max-width: 800px;
}

.why__urgency {
    background-color: var(--surface-color);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    margin-top: 2rem;
}

.why__urgency h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.why__urgency i {
    font-size: 1.5rem;
}

/*=============== FAQ ===============*/
.faq__container {
    max-width: 800px;
    text-align: left;
}

.faq__container h2 {
    max-width: 800px;
    text-align: center;
}

.faq__item {
    border-bottom: 1px solid var(--border-color);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-family: var(--title-font);
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq__answer p {
    padding-bottom: 1.5rem;
    line-height: 1.6;
}

.faq__item.active .faq__answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq__item.active .faq__question i {
    transform: rotate(180deg);
}

/*=============== CONTACT ===============*/
#contact {
    background-color: var(--surface-color);
}

.contact__form {
    max-width: 700px;
    margin: 3rem auto 0;
    display: grid;
    gap: 1.5rem;
}

.form__group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact__form input,
.contact__form textarea,
.contact__form select {
    width: 100%;
    padding: 1rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.thank-you-message {
    display: none;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--secondary-color);
    padding-top: 6rem;
    color: #fff;
}
.footer h2,
.footer h3 {
    color: #fff;
}
.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

/*=============== NEWSLETTER ===============*/
.newsletter {
    min-height: 80vh; /* This is the problem */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/*=============== MEDIA QUERIES ===============*/

/* For tablets and smaller devices */
@media screen and (max-width: 900px) {
    .nav__btn {
        display: none;
    }
    .nav__toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: #fff;
        z-index: 1001;
    }
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--secondary-color);
        padding: 6rem 2rem;
        transition: right 0.4s ease-in-out;
        z-index: 1200;
    }
    .nav__menu.show-menu {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    :root {
        --h1-font-size: 2.75rem;
        --h2-font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* For mobile phones */
@media screen and (max-width: 576px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.75rem;
        --normal-font-size: 0.9rem;
    }

    .container {
        padding: var(--container-padding);
    }

    .hero {
        min-height: 600px;
        height: auto;
        padding: 8rem 0 4rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
    }

    .process__grid,
    .templates__grid {
        grid-template-columns: 1fr;
    }

    .form__group {
        grid-template-columns: 1fr !important;
    }

    .contact__form button {
        width: 100%;
    }

    .footer__container {
        text-align: center;
    }
}
