/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b4513;
    --secondary-color: #d4a574;
    --accent-color: #2c3e50;
    --text-color: #333;
    --bg-color: #fefefe;
    --cream-color: #f9f7f4;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hand-drawn-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* Hand-drawn style utilities */
.hand-drawn {
    position: relative;
}

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

/* Header and Navigation */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo .logo-svg {
    height: 50px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Burger menu active animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    background: #654321;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 4px 4px 0px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--accent-color);
    border-color: var(--secondary-color);
    box-shadow: 3px 3px 0px rgba(212, 165, 116, 0.3);
}

.btn-secondary:hover {
    background: #c19660;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 4px 4px 0px rgba(212, 165, 116, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0px rgba(139, 69, 19, 0.2);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 4px 4px 0px rgba(139, 69, 19, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cream-color) 0%, #f0ede6 100%);
    padding: 120px 0 60px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        var(--secondary-color) 10px,
        var(--secondary-color) 20px
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    transform: rotate(-1deg);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80%;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 20px 15px 25px 10px;
    transform: rotate(1deg);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.hero-svg {
    width: 100%;
    height: auto;
    max-width: 400px;
}

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

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    transform: rotate(-0.5deg);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 15px 20px 10px 25px;
    transform: rotate(0.8deg);
}

/* Sections */
.about, .services, .testimonials, .blog, .newsletter, .contact {
    padding: 80px 0;
}

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

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

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transform: rotate(-0.3deg);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image svg {
    width: 100%;
    height: auto;
    max-width: 300px;
}

/* Services */
.services {
    background: var(--cream-color);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 20px 25px 15px 30px;
    transform: translateX(-50%) rotate(-1deg);
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px 25px 30px 15px;
    box-shadow: var(--hand-drawn-shadow);
    text-align: center;
    position: relative;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.service-card:nth-child(even) {
    transform: rotate(-0.5deg);
}

.service-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonials */
.testimonials {
    background: var(--bg-color);
}

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

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 25px 20px 30px 25px;
    box-shadow: var(--hand-drawn-shadow);
    position: relative;
    transform: rotate(-0.3deg);
    border: 2px solid var(--cream-color);
}

.testimonial:nth-child(even) {
    transform: rotate(0.3deg);
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.testimonial-content p::before {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    line-height: 0;
    vertical-align: -0.4rem;
}

.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    line-height: 0;
    vertical-align: -0.4rem;
}

.testimonial-author h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Blog */
.blog {
    background: var(--cream-color);
}

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

.blog-card {
    background: white;
    border-radius: 15px 20px 25px 18px;
    overflow: hidden;
    box-shadow: var(--hand-drawn-shadow);
    transition: all 0.3s ease;
    transform: rotate(0.2deg);
    border: 2px solid var(--secondary-color);
}

.blog-card:nth-child(even) {
    transform: rotate(-0.2deg);
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image svg {
    width: 100%;
    height: 100%;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

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

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

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

.blog-content time {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Newsletter */
.newsletter {
    background: var(--primary-color);
    color: white;
    position: relative;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--secondary-color),
        var(--secondary-color) 20px,
        white 20px,
        white 40px
    );
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.newsletter-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.newsletter-form {
    background: white;
    padding: 2rem;
    border-radius: 20px 25px 30px 15px;
    transform: rotate(0.5deg);
    box-shadow: var(--hand-drawn-shadow);
}

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

.form-group input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 15px 20px 18px 22px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--cream-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    transform: rotate(0deg);
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.newsletter-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
    color: white;
}

/* Contact */
.contact {
    background: var(--bg-color);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px 20px 25px 12px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.2deg);
    border: 2px solid var(--cream-color);
}

.contact-item:nth-child(even) {
    transform: rotate(0.2deg);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

.social-links {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0;
}

.social-links h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: rotate(-2deg);
}

.social-icons a:nth-child(even) {
    transform: rotate(2deg);
}

.social-icons a:hover {
    transform: rotate(0deg) scale(1.1);
    background: var(--accent-color);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background: var(--accent-color);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo .logo-svg {
    height: 40px;
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-text {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Cookie Management */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    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 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    color: var(--text-color);
    line-height: 1.5;
    max-width: 600px;
}

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

.cookie-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 15px 20px 18px 22px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px 25px 30px 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--cream-color);
    border-radius: 10px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.cookie-option p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        border-radius: 10px;
        background: var(--cream-color);
        margin: 0.5rem 0;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.05);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content,
    .about-content,
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .newsletter-text h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial,
    .blog-card {
        transform: rotate(0deg);
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        transform: rotate(0deg);
        border-radius: 20px;
    }
}

/* Print styles */
@media print {
    .cookie-banner,
    .cookie-modal,
    .nav-toggle,
    .social-icons {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        padding-top: 2rem;
    }
    
    * {
        box-shadow: none !important;
        transform: none !important;
    }
}