body {
    background-color: #6d7080;
    color: #f5f5dc;
    font-family: 'Almendra Display', cursive;
    margin: 0;
    padding: 0;
    text-align: center;

    /* Sticky footer setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    height: 100%;
}

/* === NAV (same as other pages) === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #6d7080;
    height: 4rem;              /* lock consistent nav height */
    display: flex;
    align-items: center;       /* vertical alignment for contact */
    padding: 0 2rem;
    justify-content: space-between;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.nav-right {
    margin-left: auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

nav a {
    font-size: 1.5rem;
    color: #f5f5dc;
    text-decoration: none;
}

.nav-center-link {
    font-size: 2rem;
    color: #f5f5dc;
    text-decoration: none;
    padding: 2rem;
}

nav a:hover {
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-bug {
    height: 3rem;
    width: auto;
    margin-right: 1.5rem;
}

.logo-word {
    height: 9rem;
    width: auto;
}

/* === FAQ SECTION === */
main {
    flex: 1; /* expands to push footer down */
    padding: 6rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 1px solid #f5f5dc55;
    padding-bottom: 0.5rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-family: 'Almendra Display', cursive;
    font-size: 2rem;
    background-color: #5c5f6e;
    color: #f5f5dc;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.faq-question:hover {
    background-color: #7b7e90;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-answer p {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.faq-answer a {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

/* === FOOTER === */
footer {
    background-color: #5c5f6e; /* darker shade for separation */
    padding: 2rem 3rem;
    color: #f5f5dc;
    font-family: 'Almendra Display', cursive;
    margin-top: auto; /* sticky footer */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    color: #f5f5dc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #fff8dc;
}

.footer-email {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.footer-email label {
    font-size: 1rem;
    white-space: nowrap;
    margin-top: 0.8rem;
}

.footer-email input[type="email"] {
    padding: 10px;
    font-family: 'Almendra Display', cursive;
    font-size: 1rem;
    background-color: #6d7080;
    border: 1px solid #f5f5dc;
    color: #f5f5dc;
    text-align: center;
    width: 250px;
    max-width: 100%;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid #f5f5dc33;
    padding-top: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

input[type="email"] {
    padding: 10px;
    font-family: 'Almendra Display', cursive;
    font-size: 1rem;
    background-color: #6d7080;
    border: 1px solid #f5f5dc;
    color: #f5f5dc;
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin-top: 15px;
}

a {
    color: #f5f5dc;
    text-decoration: none;
    font-family: 'Almendra Display', cursive;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    color: #fff8dc;
}

/* Placeholder color fix */
input[type="email"]::placeholder {
    color: #f5f5dc;
    opacity: 1;
}

/* === RESPONSIVE DESIGN === */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
    nav {
        padding: 0 1rem;
    }

    .nav-center {
        gap: 1.2rem;
    }

    .nav-center-link {
        font-size: 1.6rem;
        padding: 1rem;
    }

    main {
        padding: 5rem 1.5rem 3rem;
    }

    .faq-question {
        font-size: 1.6rem;
    }

    .faq-answer p {
        font-size: 1.2rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-left,
    .footer-email {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Phones (<= 768px) */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 0.4rem 0.8rem;
    }

    .nav-left { flex: 1; }
    .nav-center {
        position: static;
        transform: none;
        flex: 2;
        justify-content: center;
        gap: 0.6rem;
    }
    .nav-right { flex: 1; text-align: right; }

    nav a, .nav-center-link {
        font-size: 0.95rem;
        padding: 0.2rem 0.4rem;
    }

    /* Hide text logo on mobile */
    .logo-word {
        display: none;
    }
    .logo-bug {
        height: 2rem;
        margin-right: 0;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.6rem;
        font-size: 0.95rem;
    }

    .footer-email {
        width: 100%;
        justify-content: center;
        margin-top: 1rem; /* extra breathing room */
    }

    .spellbook-form {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
    }

    .spellbook-form label {
        font-size: 0.9rem;
    }

    .spellbook-form input[type="email"] {
        width: 100%;
        max-width: 320px;
    }

    .spellbook-form button {
        width: auto;
        padding: 0.6rem 1.2rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.2rem;
    }
}
