/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Color Scheme */
:root {
    --primary-white: #ffffff;
    --neutral-beige: #f5f5f0;
    --soft-graphite: #555555;
    --dark-graphite: #333333;
    --light-beige: #fafafa;
    --border-light: #e0e0e0;
}

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

/* Header */
.header {
    background: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-graphite);
    margin: 0;
    flex: 1;
    z-index: 1001;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--soft-graphite);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Burger Menu for Mobile */
.burger-checkbox {
    display: none;
}

.burger-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 32px;
    height: 26px;
    position: relative;
    z-index: 1001;
    padding: 5px;
    margin-left: auto;
}

.burger-label span {
    display: block;
    height: 3px;
    background: var(--dark-graphite);
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: 0;
    right: 0;
}

.burger-label span:nth-child(1) {
    top: 0;
    width: 100%;
}

.burger-label span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

.burger-label span:nth-child(3) {
    bottom: 0;
    width: 100%;
}

/* Menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-graphite);
    color: var(--primary-white);
    padding: 20px 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
}

.cookie-content a {
    color: var(--neutral-beige);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--primary-white);
    color: var(--dark-graphite);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background: var(--neutral-beige);
}

/* Hero Section */
.hero {
    background-image: url('images/Resource Library Overview Image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-graphite);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--soft-graphite);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: var(--soft-graphite);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Buttons */
.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.cta-button {
    background: var(--dark-graphite);
    color: var(--primary-white);
}

.cta-button:hover {
    background: var(--soft-graphite);
    transform: translateY(-2px);
}

.cta-button-secondary {
    background: var(--neutral-beige);
    color: var(--dark-graphite);
}

.cta-button-secondary:hover {
    background: #e8e8e3;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--dark-graphite);
    text-align: center;
    margin-bottom: 60px;
}

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

.about-text p {
    margin-bottom: 20px;
    color: var(--soft-graphite);
    font-size: 16px;
    line-height: 1.8;
}

.image-placeholder {
    background: #ddd;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--soft-graphite);
    font-size: 18px;
    font-weight: 500;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Features Section */
.features {
    background: var(--light-beige);
}

.features-image-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.features-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--primary-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--dark-graphite);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--soft-graphite);
    line-height: 1.6;
}

/* Resources Section */
.resources-image-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.resources-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* How It Works Section */
.how-it-works {
    background: var(--light-beige);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: var(--primary-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--dark-graphite);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 22px;
    color: var(--dark-graphite);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--soft-graphite);
    line-height: 1.7;
    font-size: 15px;
}

/* Statistics Section */
.statistics {
    background: var(--primary-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    background: var(--neutral-beige);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-graphite);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-graphite);
    margin-bottom: 15px;
}

.stat-card p {
    color: var(--soft-graphite);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

.resource-item {
    padding: 30px;
    background: var(--neutral-beige);
    border-radius: 8px;
    text-align: center;
}

.resource-item h3 {
    color: var(--dark-graphite);
    margin-bottom: 15px;
    font-size: 20px;
}

.resource-item p {
    color: var(--soft-graphite);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--dark-graphite);
    color: var(--primary-white);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--neutral-beige);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    color: var(--dark-graphite);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    color: var(--soft-graphite);
}

.contact-form {
    background: var(--light-beige);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-graphite);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--soft-graphite);
}

.submit-btn {
    background: var(--dark-graphite);
    color: var(--primary-white);
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--soft-graphite);
}

/* Reviews Section */
.reviews {
    background: var(--light-beige);
}

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

.review-card {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.review-content p {
    color: var(--soft-graphite);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author strong {
    color: var(--dark-graphite);
    display: block;
    margin-bottom: 5px;
}

.review-author span {
    color: var(--soft-graphite);
    font-size: 14px;
}

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

.faq-item {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--neutral-beige);
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--dark-graphite);
    margin-bottom: 15px;
    font-size: 20px;
}

.faq-item p {
    color: var(--soft-graphite);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--dark-graphite);
    color: var(--primary-white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 20px;
    text-transform: none;
}

.footer-nav-site,
.footer-nav {
    margin-bottom: 15px;
}

.footer-nav-site ul,
.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-site a,
.footer-nav a {
    color: var(--neutral-beige);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-nav-site a:hover,
.footer-nav a:hover {
    color: var(--primary-white);
}

.copyright {
    color: var(--neutral-beige);
    font-size: 14px;
}

/* Legal Pages Styles */
.legal-main {
    padding: 120px 0 60px;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content h1 {
    color: var(--dark-graphite);
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}

.legal-content .last-updated {
    color: var(--soft-graphite);
    font-size: 14px;
    text-align: center;
    margin-bottom: 40px;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    color: var(--dark-graphite);
    font-size: 24px;
    margin-bottom: 20px;
}

.legal-content h3 {
    color: var(--dark-graphite);
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.legal-content p {
    color: var(--soft-graphite);
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-content ul {
    color: var(--soft-graphite);
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content strong {
    color: var(--dark-graphite);
}

/* Mobile Styles */
/* Tablet styles */
@media (max-width: 1024px) and (min-width: 901px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .header-content {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 20px;
        max-width: calc(100% - 50px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .burger-label {
        display: flex;
        flex-shrink: 0;
    }
    
    .nav-overlay {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-white);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        overflow-y: auto;
        padding-top: 90px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .burger-checkbox:checked ~ .nav {
        transform: translateX(0);
    }
    
    .burger-checkbox:checked ~ .burger-label span:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
        background: var(--dark-graphite);
    }
    
    .burger-checkbox:checked ~ .burger-label span:nth-child(2) {
        transform: scale(0);
        opacity: 0;
    }
    
    .burger-checkbox:checked ~ .burger-label span:nth-child(3) {
        transform: rotate(-45deg);
        top: 50%;
        background: var(--dark-graphite);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
        list-style: none;
    }
    
    .nav-link {
        display: block;
        padding: 18px 25px;
        font-size: 16px;
        font-weight: 500;
        color: var(--dark-graphite);
        text-decoration: none;
        border-bottom: 1px solid var(--border-light);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: var(--light-beige);
        color: var(--dark-graphite);
        padding-left: 30px;
    }
    
    .nav-link:first-child {
        border-top: 1px solid var(--border-light);
    }
    
    .hero {
        padding: 100px 0 60px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 15px;
        text-align: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid,
    .resources-grid,
    .reviews-grid,
    .steps-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav-site ul,
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Remove spacing between sections on mobile */
    .features,
    .reviews {
        margin: 0;
        padding: 30px 0;
    }
    
    .faq-item {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 18px;
        max-width: calc(100% - 45px);
    }
    
    .burger-label {
        width: 28px;
        height: 24px;
    }
    
    .nav {
        width: 90%;
        padding-top: 80px;
    }
    
    .nav-link {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .feature-card,
    .review-card,
    .contact-form,
    .step-card,
    .stat-card {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .resource-item,
    .faq-item {
        padding: 20px;
    }
}