/* Hand-drawn CSS Reset and Base Styles */
:root {
    --primary-color: #2E8B57;
    --primary-dark: #1F5F3F;
    --secondary-color: #FFB347;
    --accent-color: #FF6B6B;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #FEFEFE;
    --bg-cream: #FFF9E6;
    --border-sketch: #34495E;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Kalam', 'Marker Felt', cursive, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Hand-drawn typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    transform: rotate(-1deg);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    transform: rotate(0.5deg);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    transform: rotate(-0.3deg);
}

p {
    margin-bottom: 1rem;
    transform: rotate(0.1deg);
}

/* Hand-drawn borders and elements */
.sketch-border {
    border: 3px solid var(--border-sketch);
    border-radius: 15px;
    position: relative;
    background: var(--bg-light);
}

.sketch-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--primary-color);
    border-radius: 18px;
    transform: rotate(0.5deg);
    z-index: -1;
}

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

/* Header */
.header {
    background: var(--bg-cream);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-light);
    transform: rotate(-0.1deg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transform: rotate(1deg);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-0.2deg);
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(0.2deg) scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
    transform: rotate(0.5deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23FFB347" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23FF6B6B" opacity="0.3"/><circle cx="60" cy="80" r="2.5" fill="%232E8B57" opacity="0.3"/></svg>') repeat;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 white;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic img {
    width: 100%;
    max-width: 500px;
    height: auto;
    transform: rotate(2deg);
    filter: drop-shadow(5px 5px 10px var(--shadow-medium));
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid;
    position: relative;
    transform: rotate(-0.5deg);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: rotate(0.5deg) scale(1.05);
    box-shadow: 5px 5px 15px var(--shadow-medium);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-color: #E6A033;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(0.3deg) scale(1.05);
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-features {
    list-style: none;
    margin: 2rem 0;
}

.about-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    transform: rotate(-0.1deg);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-cream);
    border-radius: 20px;
    border: 3px solid var(--secondary-color);
    transform: rotate(1deg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* Services Section */
.services-section {
    background: var(--bg-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
}

.service-card:hover {
    transform: rotate(0.5deg) translateY(-10px);
    box-shadow: 10px 10px 20px var(--shadow-medium);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

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

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

.testimonial-card {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid var(--accent-color);
    transform: rotate(0.3deg);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    font-weight: bold;
}

.testimonial-content {
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Blog Section */
.blog-section {
    background: var(--bg-cream);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid var(--text-light);
    transition: all 0.3s ease;
    transform: rotate(-0.2deg);
}

.blog-card:hover {
    transform: rotate(0.2deg) translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 8px 8px 15px var(--shadow-medium);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-date {
    color: var(--text-light);
}

.blog-category {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.blog-card h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info .contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-cream);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    transform: rotate(-0.3deg);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.subscription-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid var(--secondary-color);
    transform: rotate(0.5deg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    transform: rotate(-0.1deg);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: rotate(0.1deg) scale(1.02);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    position: relative;
    background: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Legal Section */
.legal-section {
    background: var(--bg-cream);
    padding: 2rem 0;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p:first-of-type {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px var(--shadow-medium);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons button {
    color: #1F5F3F;
    border: #2e8b57 2px solid;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    position: relative;
    transform: rotate(0.5deg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

#modal-body {
    padding: 3rem 2rem 2rem;
}

#modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

/* Thanks Page */
.thanks-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    padding: 2rem 0;
}

.thanks-content {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    border: 3px solid var(--primary-color);
    transform: rotate(-0.5deg);
}

.thanks-icon {
    margin-bottom: 2rem;
}

.thanks-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: left;
}

.next-steps ul {
    list-style: none;
    margin-top: 1rem;
}

.next-steps li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.thanks-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-cream);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 2rem;
        box-shadow: 0 4px 20px var(--shadow-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        transform: rotate(0deg);
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 25px;
        border: 2px solid var(--primary-color);
        background: white;
        display: block;
        min-width: 200px;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content,
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 20px;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .thanks-content {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Animation utilities */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.wiggle-animation {
    animation: wiggle 4s ease-in-out infinite;
}

/* Hand-drawn underlines */
.underline-sketch {
    position: relative;
}

.underline-sketch::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transform: rotate(-0.5deg);
}
