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

:root {
    /* Hand-drawn color palette */
    --primary-color: #2C5530;
    --secondary-color: #8B4513;
    --accent-color: #D2691E;
    --background-color: #FFF8DC;
    --text-color: #2F4F4F;
    --light-color: #F5F5DC;
    --border-color: #8B7355;
    
    /* Hand-drawn shadows and effects */
    --hand-shadow: 3px 3px 8px rgba(0,0,0,0.2);
    --soft-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    
    /* Typography */
    --font-family: 'Comic Sans MS', cursive, system-ui;
    --heading-font: 'Comic Sans MS', cursive;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Hand-drawn border effect */
.hand-border {
    border: 3px solid var(--border-color);
    border-radius: 15px 25px 20px 30px;
    position: relative;
}

.hand-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--primary-color);
    border-radius: 20px 15px 25px 18px;
    z-index: -1;
}

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

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

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.cookie-modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px 15px 25px 18px;
    border: 3px solid var(--primary-color);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-option {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid var(--light-color);
    border-radius: 10px 15px 12px 18px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.cookie-option input {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Header Styles */
.header {
    background: white;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: var(--hand-shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.brand-text {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 10px 15px 8px 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::before {
    width: 80%;
}

.nav-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 15px 20px 12px 18px;
    font-weight: bold;
    border: 3px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: var(--font-family);
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--soft-shadow);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--hand-shadow);
}

.btn-secondary {
    background: transparent;
    color: #d2691e;
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-tertiary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44,85,48,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(var(--hand-shadow));
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: white;
}

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

.about-text h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.about-text li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 25px;
    background: var(--light-color);
    border-radius: 15px 20px 12px 18px;
    border: 3px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--hand-shadow);
}

.stat img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.stat h4 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    color: var(--text-color);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--light-color);
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 20px 15px 25px 18px;
    border: 3px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--primary-color);
    border-radius: 25px 18px 30px 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hand-shadow);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid var(--light-color);
}

.duration, .price {
    font-weight: bold;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background: white;
}

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

.testimonial-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 20px 25px 15px 30px;
    border: 3px solid var(--border-color);
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    font-family: serif;
    line-height: 1;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-card cite {
    display: block;
}

.testimonial-card cite strong {
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.testimonial-card cite span {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Blog Section */
.blog {
    padding: 80px 20px;
    background: var(--light-color);
}

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

.blog-card {
    background: white;
    border-radius: 15px 20px 18px 25px;
    border: 3px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hand-shadow);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 15px;
}

.blog-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.3rem;
    line-height: 1.3;
}

.blog-content h3 a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.blog-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

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

/* Newsletter Section */
.newsletter {
    padding: 80px 20px;
    background: var(--primary-color);
    color: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: grid;
    gap: 20px;
}

.form-group {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid var(--accent-color);
    border-radius: 12px 18px 15px 20px;
    font-size: 16px;
    font-family: var(--font-family);
    background: white;
    color: var(--text-color);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
}

.newsletter-form button {
    padding: 15px 30px;
    font-size: 18px;
    background: var(--accent-color);
    color: white;
    border: 3px solid var(--accent-color);
    border-radius: 15px 20px 12px 18px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: bold;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    padding: 25px;
    background: var(--light-color);
    border-radius: 15px 20px 12px 18px;
    border: 3px solid var(--border-color);
}

.contact-item h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.6;
}

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

.social-links h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid var(--primary-color);
}

.social-icons a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--soft-shadow);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 20px 20px;
}

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

.footer-section h4 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-brand span {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: 0.3s;
        box-shadow: var(--hand-shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form {
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Hand-drawn elements */
.sketch-line {
    position: relative;
}

.sketch-line::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: rotate(-1deg);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --text-color: #000;
        --background-color: #fff;
        --light-color: #f0f0f0;
    }
}
