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

/* Hand-drawn Custom Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Warm and Professional */
    --primary-color: #2c5282;
    --secondary-color: #ed8936;
    --accent-color: #38b2ac;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #f7fafc;
    --bg-secondary: #edf2f7;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.2);
    
    /* Hand-drawn Style Variables */
    --sketchy-border: 2px;
    --sketchy-radius: 8px;
}

body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Hand-drawn Elements Base Class */
.sketchy {
    position: relative;
    border: var(--sketchy-border) solid var(--primary-color);
    border-radius: var(--sketchy-radius);
}

.sketchy::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--secondary-color);
    border-radius: calc(var(--sketchy-radius) + 2px);
    transform: rotate(0.5deg);
    z-index: -1;
    opacity: 0.7;
}

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    border-image: url("data:image/svg+xml,%3csvg width='100' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0,10 Q25,5 50,10 T100,10' stroke='%232c5282' fill='none' stroke-width='3'/%3e%3c/svg%3e") 3;
}

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

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

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

.brand-text {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 1px 1px 0px var(--secondary-color);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
}

.nav-menu a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

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

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

/* Banner Section */
.banner {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.banner::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='%23e2e8f0' fill-opacity='0.3'%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;
    opacity: 0.1;
}

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

.banner-title {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 0px var(--secondary-color);
}

.banner-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    border: 3px solid var(--primary-color);
}

.cta-button:hover {
    background: var(--primary-color);
}

.banner-image {
    width: 100%;
    height: auto;
}

/* Section Titles */
.section-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 1px 1px 0px var(--secondary-color);
}

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

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.feature-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    border: 2px solid var(--border-color);
    position: relative;
}

.feature-item h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--border-color);
    position: relative;
}

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

.service-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

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

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

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.testimonial-author h4 {
    font-family: 'Caveat', cursive;
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

/* Blog Section */
.blog {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.blog-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    position: relative;
}

.blog-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

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

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Blog Articles */
.blog-article {
    padding: 120px 0 80px;
    background: var(--white);
}

.blog-article.hidden {
    display: none;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
}

.back-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid var(--border-color);
}

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

.form-group label {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.1);
}

.submit-button {
    width: 100%;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: 3px solid var(--primary-color);
}

.submit-button:hover {
    background: var(--primary-color);
}

/* Legal Section */
.legal {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 3px solid var(--border-color);
}

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

.legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.legal-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--secondary-color);
    background-image: url("data:image/svg+xml,%3csvg width='100' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0,10 Q25,15 50,10 T100,10' stroke='%23ed8936' fill='none' stroke-width='5'/%3e%3c/svg%3e");
}

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

.footer-section h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.social-link {
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    padding: 1.5rem;
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

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

.btn-primary,
.btn-secondary {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-family: 'Kalam', cursive;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
}

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

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

/* 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);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: 2rem;
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    border: 3px solid var(--primary-color);
    overflow-y: auto;
}

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

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

.modal-content h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.cookie-category span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.legal-content {
    padding: 1rem 0;
}

.legal-content h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem 0;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.3rem;
}

.legal-content h5 {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 1rem 0 0.5rem 0;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-content table {
    font-size: 0.9rem;
    margin: 1rem 0;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.legal-content strong {
    color: var(--primary-color);
}

/* Mobile responsive styles for modals */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .legal-content h4 {
        font-size: 1.2rem;
        margin: 1rem 0 0.6rem 0;
    }
    
    .legal-content h5 {
        font-size: 1rem;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 0.9rem;
    }
    
    .legal-content table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
}

/* Thanks Page Styles */
.thanks-page {
    padding: 120px 0 80px;
    background: var(--bg-primary);
    min-height: 60vh;
}

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

.thanks-content h1 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.thanks-message {
    text-align: left;
    margin-bottom: 2rem;
}

.thanks-message p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.next-steps,
.contact-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.next-steps h3,
.contact-info h3 {
    font-family: 'Caveat', cursive;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.next-steps li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .service-card,
    .testimonial-card,
    .blog-card {
        margin: 0 10px;
    }

    .contact-form {
        margin: 0 10px;
        padding: 2rem;
    }
}

/* Animation for hand-drawn elements */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.service-card:hover,
.testimonial-card:hover,
.blog-card:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

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

/* Print styles */
@media print {
    .cookie-banner,
    .modal,
    .header {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
