/* CSS Foundation for Backkraft - Premium Handmixer Site */

:root {
    --primary-color: #e67e22;
    /* Warm Orange/Bread color */
    --secondary-color: #2c3e50;
    /* Dark Slate */
    --accent-color: #f1c40f;
    /* Flour/Butter Yellow */
    --text-color: #333;
    --bg-light: #fdfaf6;
    /* Creamy background */
    --white: #ffffff;
    --grey-light: #f4f4f4;
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Base Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.button-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.button-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* Advertisement Top Bar */
.ad-top-bar {
    background-color: #fff8e1;
    color: #856404;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #ffeeba;
}

/* Page Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    animation: progress 2.5s ease-in-out forwards;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Header & Nav */
.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo-link {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-item-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Changed from -75% to be safer */
    width: 75%;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 40px;
    visibility: hidden;
    /* Added visibility for safety */
}

.mobile-nav.active {
    right: 0;
    visibility: visible;
}

.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-link {
    font-size: 20px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 40px 0;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-image-wrapper {
    flex: 1;
    text-align: right;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.feature-icon-wrapper {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-text {
    color: #777;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--grey-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.testimonial-quote {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    font-size: 18px;
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

/* Footer */
.footer-main {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-info {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-ad-note {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 15px;
    z-index: 5000;
    display: none;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-reject {
    background: #eee;
    color: #666;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 6000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-title {
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.modal-body {
    line-height: 1.7;
    color: #444;
}

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-section {
        padding-top: 40px;
        min-height: auto;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 1;
        margin-bottom: 30px;
    }

    .hero-image-wrapper {
        order: 2;
        text-align: center;
        margin-top: 0;
    }

    .header-cta-wrapper {
        display: none;
    }

    .logo-link {
        font-size: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .mobile-nav {
        visibility: visible;
        right: -100%;
    }

    .mobile-nav.active {
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}