/* Hand-drawn aesthetic styles */

/* Import custom fonts for hand-drawn feel */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;500;600;700&display=swap');

/* Root variables for hand-drawn theme */
:root {
    --hand-drawn-primary: #8B4513;
    --hand-drawn-secondary: #D2691E;
    --hand-drawn-accent: #CD853F;
    --hand-drawn-dark: #654321;
    --hand-drawn-light: #F5DEB3;
    --hand-drawn-paper: #fefef8;
    --hand-drawn-ink: #2F4F4F;
}

/* Override base font with hand-drawn style */
body {
    font-family: 'Kalam', cursive;
    background-color: var(--hand-drawn-paper);
    background-image: 
        radial-gradient(circle at 20px 80px, #faf8f0 1px, transparent 1px),
        radial-gradient(circle at 80px 20px, #f5f3eb 1px, transparent 1px),
        radial-gradient(circle at 40px 40px, #f0ede0 1px, transparent 1px);
    background-size: 100px 100px;
}

/* Hand-drawn borders and shadows */
.hand-drawn-border {
    position: relative;
    border: none;
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: none;
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 15px;
    transform: rotate(-0.5deg);
}

.hand-drawn-border::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: none;
    border: 2px solid var(--hand-drawn-secondary);
    border-radius: 12px;
    transform: rotate(0.3deg);
}

/* Hand-drawn buttons */
.cta-button,
.btn-primary {
    position: relative;
    background: var(--hand-drawn-primary);
    border: 3px solid var(--hand-drawn-dark);
    border-radius: 25px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    box-shadow: 
        3px 3px 0px var(--hand-drawn-dark),
        6px 6px 0px rgba(0,0,0,0.1);
    font-family: 'Caveat', cursive;
    font-size: 1.1em;
    font-weight: 600;
}

.cta-button:hover,
.btn-primary:hover {
    transform: rotate(0.5deg) translateY(-2px);
    box-shadow: 
        4px 4px 0px var(--hand-drawn-dark),
        8px 8px 0px rgba(0,0,0,0.15);
}

.btn-secondary {
    position: relative;
    background: transparent;
    border: 3px solid var(--hand-drawn-primary);
    border-radius: 20px;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
    font-family: 'Caveat', cursive;
    font-size: 1.1em;
    font-weight: 600;
}

.btn-secondary:hover {
    transform: rotate(-0.5deg) translateY(-1px);
    background: var(--hand-drawn-primary);
    box-shadow: 
        2px 2px 0px var(--hand-drawn-dark),
        4px 4px 0px rgba(0,0,0,0.1);
}

/* Hand-drawn cards */
.info-card,
.service-card,
.blog-card,
.testimonial-card,
.team-member {
    position: relative;
    background: white;
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 15px;
    transform: rotate(-0.5deg);
    box-shadow: 
        3px 3px 0px rgba(139, 69, 19, 0.3),
        6px 6px 0px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover,
.service-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.team-member:hover {
    transform: rotate(0.5deg) translateY(-3px);
    box-shadow: 
        5px 5px 0px rgba(139, 69, 19, 0.3),
        10px 10px 0px rgba(139, 69, 19, 0.1);
}

/* Hand-drawn headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    transform: rotate(-1deg);
}

h2 {
    font-size: 2.8rem;
    transform: rotate(0.5deg);
}

h3 {
    font-size: 2.2rem;
    transform: rotate(-0.3deg);
}

/* Hand-drawn underlines */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: var(--hand-drawn-secondary);
    border-radius: 2px;
    transform: translateX(-50%) rotate(-0.5deg);
}

/* Hand-drawn navigation */
.nav-menu a {
    font-family: 'Caveat', cursive;
    font-size: 1.2em;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--hand-drawn-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    transform: rotate(-1deg);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hand-drawn forms */
.form-group input,
.form-group textarea {
    font-family: 'Kalam', cursive;
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 10px;
    background: white;
    position: relative;
    transform: rotate(-0.2deg);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: rotate(0.2deg);
    border-color: var(--hand-drawn-secondary);
    box-shadow: 
        2px 2px 0px rgba(139, 69, 19, 0.2),
        4px 4px 0px rgba(139, 69, 19, 0.1);
}

.form-group label {
    font-family: 'Caveat', cursive;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--hand-drawn-dark);
}

/* Hand-drawn icons and images */
.section-header img,
.hero-image img,
.about-image img,
.content-image img {
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    border: 3px solid var(--hand-drawn-primary);
    border-radius: 15px;
}

.section-header img:hover,
.hero-image img:hover,
.about-image img:hover,
.content-image img:hover {
    transform: rotate(1deg);
}

/* Hand-drawn testimonials */
.testimonial-card {
    position: relative;
    background: var(--hand-drawn-light);
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 20px;
    transform: rotate(0.5deg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--hand-drawn-primary);
    font-family: 'Caveat', cursive;
    font-weight: 700;
    transform: rotate(-10deg);
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 4rem;
    color: var(--hand-drawn-primary);
    font-family: 'Caveat', cursive;
    font-weight: 700;
    transform: rotate(10deg);
}

/* Hand-drawn footer */
footer {
    background: var(--hand-drawn-dark);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 20px
        );
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--hand-drawn-primary) 0px,
        var(--hand-drawn-primary) 20px,
        var(--hand-drawn-secondary) 20px,
        var(--hand-drawn-secondary) 40px
    );
    transform: rotate(-0.5deg);
}

/* Hand-drawn social icons */
.social-links img {
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 50%;
    padding: 5px;
    background: white;
}

.social-links img:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Hand-drawn cookie banner */
.cookie-banner {
    background: var(--hand-drawn-dark);
    border-top: 3px solid var(--hand-drawn-primary);
    position: relative;
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--hand-drawn-primary) 0px,
        var(--hand-drawn-primary) 10px,
        var(--hand-drawn-secondary) 10px,
        var(--hand-drawn-secondary) 20px
    );
    transform: rotate(-0.2deg);
}

/* Hand-drawn blog elements */
.blog-card img {
    border: 3px solid var(--hand-drawn-primary);
    border-radius: 15px;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.blog-card img:hover {
    transform: rotate(0.5deg);
}

.article-header img {
    border: 4px solid var(--hand-drawn-primary);
    border-radius: 20px;
    transform: rotate(-2deg);
    background: white;
    padding: 10px;
}

.article-meta .category {
    background: var(--hand-drawn-primary);
    border: 2px solid var(--hand-drawn-dark);
    border-radius: 20px;
    transform: rotate(-2deg);
    font-family: 'Caveat', cursive;
    font-weight: 600;
}

/* Hand-drawn CTA boxes */
.article-cta {
    background: var(--hand-drawn-light);
    border: 3px solid var(--hand-drawn-primary);
    border-radius: 20px;
    transform: rotate(-0.5deg);
    position: relative;
    box-shadow: 
        3px 3px 0px rgba(139, 69, 19, 0.3),
        6px 6px 0px rgba(139, 69, 19, 0.1);
}

.article-cta::before {
    content: '★';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: var(--hand-drawn-primary);
    transform: rotate(-15deg);
}

.article-cta::after {
    content: '★';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2rem;
    color: var(--hand-drawn-primary);
    transform: rotate(15deg);
}

/* Hand-drawn legal page elements */
.legal-content {
    background: white;
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 15px;
    padding: 3rem;
    transform: rotate(-0.2deg);
    box-shadow: 
        3px 3px 0px rgba(139, 69, 19, 0.2),
        6px 6px 0px rgba(139, 69, 19, 0.1);
}

.cookie-duration {
    background: var(--hand-drawn-light);
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 15px;
    transform: rotate(0.3deg);
    position: relative;
}

/* Hand-drawn list styles */
ul li::before {
    content: '•';
    color: var(--hand-drawn-primary);
    font-size: 1.5em;
    margin-right: 0.5em;
    transform: rotate(15deg);
    display: inline-block;
}

ol li::before {
    color: var(--hand-drawn-primary);
    font-weight: bold;
    font-family: 'Caveat', cursive;
    transform: rotate(-5deg);
}

/* Hand-drawn table styles */
table {
    border: 2px solid var(--hand-drawn-primary);
    border-radius: 10px;
    transform: rotate(-0.3deg);
}

th {
    background: var(--hand-drawn-light);
    border-bottom: 2px solid var(--hand-drawn-primary);
    font-family: 'Caveat', cursive;
    font-weight: 700;
    transform: rotate(0.2deg);
}

td {
    border-bottom: 1px solid var(--hand-drawn-accent);
    font-family: 'Kalam', cursive;
}

/* Hand-drawn animations */
@keyframes handDrawn {
    0% { transform: rotate(-0.5deg); }
    25% { transform: rotate(0.5deg); }
    50% { transform: rotate(-0.3deg); }
    75% { transform: rotate(0.3deg); }
    100% { transform: rotate(-0.5deg); }
}

.hand-drawn-animate {
    animation: handDrawn 4s ease-in-out infinite;
}

/* Hand-drawn hover effects */
.hand-drawn-hover {
    transition: all 0.3s ease;
}

.hand-drawn-hover:hover {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 
        5px 5px 0px rgba(139, 69, 19, 0.3),
        10px 10px 0px rgba(139, 69, 19, 0.1);
}

/* Hand-drawn text decorations */
.hand-drawn-underline {
    position: relative;
}

.hand-drawn-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--hand-drawn-primary);
    transform: rotate(-0.5deg);
    border-radius: 2px;
}

/* Hand-drawn dividers */
.hand-drawn-divider {
    position: relative;
    height: 2px;
    background: var(--hand-drawn-primary);
    margin: 2rem 0;
    transform: rotate(-0.3deg);
    border-radius: 1px;
}

.hand-drawn-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--hand-drawn-secondary);
    transform: rotate(0.6deg);
    border-radius: 1px;
}

/* Responsive hand-drawn adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hand-drawn-border::before,
    .hand-drawn-border::after {
        border-width: 1px;
    }
    
    .cta-button,
    .btn-primary {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 2rem;
    }
}
