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

:root {
    /* Hand-drawn color palette */
    --primary-color: #2C5F41;
    --secondary-color: #4A7C7E;
    --accent-color: #F4A261;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --background-light: #FEFEFE;
    --background-cream: #FFF8F0;
    --border-sketchy: #8B9DC3;
    --shadow-soft: rgba(45, 52, 54, 0.1);
    
    /* Hand-drawn fonts */
    --font-heading: 'Kalam', cursive;
    --font-body: 'Caveat', cursive;
    --font-accent: 'Kalam', cursive;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --container-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hand-drawn sketchy borders and effects */
.sketchy-border {
    position: relative;
}

.sketchy-border::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--border-sketchy);
    border-radius: 15px;
    transform: rotate(-1deg);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    transform: rotate(-1deg);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 5px;
    transform: translateX(-50%) rotate(-1deg);
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 95, 65, 0.3);
}

.btn-primary:hover {
    background: #1e4230;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 65, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-tertiary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-tertiary:hover {
    background: #e76f51;
    transform: rotate(0deg) translateY(-2px);
}

/* Header */
.header {
    background: var(--background-light);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 2px 10px var(--shadow-soft);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav a:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f4a261' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: -1;
}

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

.hero-text {
    transform: rotate(-0.5deg);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-features span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    transform: rotate(-0.5deg);
}

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

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    transform: rotate(1deg);
    filter: drop-shadow(0 10px 20px var(--shadow-soft));
}

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

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--background-cream);
    border-radius: 20px;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
    border: 2px dashed var(--accent-color);
}

.stat:hover {
    transform: rotate(0deg) translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

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

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

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

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

.service-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-soft);
}

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

.service-card:nth-child(3) {
    transform: rotate(-0.8deg);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

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

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

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

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    border: 2px solid var(--accent-color);
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-soft);
}

.testimonial-card:nth-child(2) {
    transform: rotate(0.5deg);
}

.testimonial-card:nth-child(3) {
    transform: rotate(-0.8deg);
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
}

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

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

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

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

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
    border: 2px solid var(--border-sketchy);
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-soft);
}

.blog-card:nth-child(2) { transform: rotate(0.3deg); }
.blog-card:nth-child(3) { transform: rotate(-0.8deg); }
.blog-card:nth-child(4) { transform: rotate(0.6deg); }

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

.blog-content {
    padding: 1.5rem;
}

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

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

.blog-excerpt {
    color: var(--text-light);
    margin: 1rem 0;
}

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

.blog-category {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Blog Articles (Hidden) */
.blog-article {
    display: none;
    padding: var(--section-padding);
    background: var(--background-light);
}

.blog-article:target {
    display: block;
}

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

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

.contact-info {
    padding: 2rem;
    background: var(--background-cream);
    border-radius: 20px;
    border: 2px dashed var(--accent-color);
    transform: rotate(-0.5deg);
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.subscription-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-sketchy);
    transform: rotate(0.5deg);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-sketchy);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--background-cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

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

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

.legal-link {
    background: transparent;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    transform: rotate(-0.5deg);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--primary-color);
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

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

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

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

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: var(--font-body);
}

.cookie-category {
    margin-bottom: 1.5rem;
    text-align: left;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-top: 0.2rem;
}

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

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    padding: 0.5rem;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: background 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.footer-legal button {
    background: transparent;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-body);
}

/* Thanks Page Styles */
.thanks-page {
    background: linear-gradient(135deg, var(--background-cream) 0%, var(--background-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.thanks-content {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 30px;
    border: 3px solid var(--accent-color);
    transform: rotate(-0.5deg);
    box-shadow: 0 20px 40px var(--shadow-soft);
}

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

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

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

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

.next-steps li {
    padding: 0.5rem 0;
    color: var(--primary-color);
}

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

.contact-urgent {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.contact-urgent a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px var(--shadow-soft);
        gap: 0;
    }
    
    .nav ul.show {
        display: flex;
    }
    
    .nav li {
        padding: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-features span {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .cookie-banner,
    .header,
    .footer {
        display: none;
    }
    
    .hero {
        padding-top: 2rem;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}
