/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* IngramSpark Color Palette */
    --primary-color: #4E9EB8;
    /* Fountain Blue */
    --primary-dark: #3a7a8f;
    --secondary-color: #6ACCE5;
    /* Turquoise Blue */
    --secondary-dark: #4E9EB8;
    /* Fountain Blue - darker accent */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --grey-text: #666666;
    --yellow: #FFD700;
    --yellow-dark: #ccac00;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-yellow {
    background-color: var(--yellow);
    color: var(--text-color);
    border: 2px solid var(--yellow);
}

.btn-yellow:hover {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
}

.btn-text {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 20px;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header: Topbar & Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.topbar {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.topbar-auth {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.navbar {
    background-color: var(--white);
    padding: 12px 0;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu {
    display: none;
    background-color: var(--white);
    border-top: 1px solid #eee;
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.mobile-nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    display: block;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-auth .btn-text {
    margin: 0;
    padding: 10px 0;
}

.mobile-auth .btn {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 60px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fdfbfd 0%, #e6f7fc 100%);
    padding: 100px 0;
    text-align: left;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--grey-text);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-image-placeholder {
    background-color: #e0e0e0;
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
    border: 2px dashed #ccc;
}

.hero-trust p {
    font-size: 0.9rem;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: white;
    /* Pop of turquoise on purple bg */
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 80px 0 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    color: var(--text-color);
}

.feature-item {
    padding: 100px 0;
}

.feature-item:nth-child(odd) {
    background-color: var(--white);
}

.feature-item:nth-child(even) {
    background-color: var(--light-bg);
}

.feature-item:last-child {
    padding-bottom: 120px;
}

.feature-item h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.feature-item:nth-child(even) .feature-split {
    direction: rtl;
}

.feature-item:nth-child(even) .feature-split>* {
    direction: ltr;
}

.feature-image-placeholder {
    background-color: #f0f0f0;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    border: 2px dashed #ddd;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--grey-text);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonial Section */
.testimonial {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.testimonial blockquote {
    font-size: 1.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-color);
    line-height: 1.5;
}

.testimonial cite {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDAgQzUwIDUwIDUwIDE1MCAxMDAgMjAwIFMxNTAgMTUwIDE1MCA1MCAxMDAgMCIgZmlsbD0icmdiYSgxMDYsIDIwNCwgMjI5LCAwLjEpIiAvPjwvc3ZnPg==') repeat;
    background-color: #f0f7fa;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #e0e0e0;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .navbar {
        display: none;
    }

    .topbar-auth {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        margin: 0 auto;
    }

    /* Features Mobile Styles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .feature-item {
        margin-bottom: 80px;
    }

    .feature-item h3 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-item:nth-child(even) .feature-split {
        direction: ltr;
        /* Reset RTL for mobile */
    }

    .feature-item:nth-child(even) .feature-split>* {
        direction: ltr;
    }

    .feature-image {
        order: 1;
    }

    .feature-content {
        order: 2;
    }
}

/* Books Showcase Section */
.books-showcase {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.book-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.book-info {
    padding: 15px;
}

.book-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.book-info p {
    font-size: 0.9rem;
    color: var(--grey-text);
}

@media (max-width: 900px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*
@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
}
    */