/* CSS Design System for Stepzyde */

:root {
    --primary-color: #f6ca45;
    /* Dr. Martens classic yellow */
    --secondary-color: #1a1a1a;
    --accent-color: #e63946;
    --text-color: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #121212;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Base resets without * */
html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-white);
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
    margin: 0 0 1rem 0;
    font-weight: 800;
}

p {
    margin: 0 0 1rem 0;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.text-center {
    text-align: center;
}

.text-white {
    color: var(--bg-white);
}

.accent-text {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #e5bb3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(246, 202, 69, 0.3);
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

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

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    font-weight: 600;
    color: var(--secondary-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ad Bar */
.top-ad-bar {
    background: #f1f1f1;
    padding: 8px 0;
    text-align: center;
}

.top-ad-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    white-space: nowrap;
}

.logo-wrapper {
    flex-shrink: 1;
    min-width: 0;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.header-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: radial-gradient(circle at top right, #fffdf2, #ffffff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
}

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

.benefit-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.rating {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

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

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 30px;
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #ccc;
}

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

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: #999;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-ad-note,
.footer-disclaimer {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 30px;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 50px;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Mobile Menu */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: var(--bg-white);
    z-index: 5000;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.open {
    right: 0;
}

.mobile-nav-content {
    padding: 40px;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
}

.close-icon {
    width: 32px;
    height: 32px;
    fill: var(--secondary-color);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
}

.cta-mobile {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

/* Responsive */
@media (max-width: 991px) {

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }

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

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .logo-link {
        font-size: 1.4rem;
    }

    .header-cta {
        padding: 7px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .header-cta-wrapper {
        gap: 8px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 400px) {
    .logo-link {
        font-size: 1.2rem;
    }

    .header-cta {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .header-cta-wrapper {
        gap: 5px;
    }
}