/* Hand-drawn style CSS for Fusion Mist Insurance Comparison */

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

/* CSS Variables for hand-drawn theme */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #4CAF50;
    --accent-color: #FF6B35;
    --text-color: #2C3E50;
    --light-text: #666;
    --bg-color: #FEFEFE;
    --section-bg: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hand-drawn-blue: #3498DB;
    --hand-drawn-orange: #E67E22;
    --hand-drawn-green: #27AE60;
}

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

body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20px 50px, #f0f0f0 2px, transparent 2px),
        radial-gradient(circle at 40px 80px, #f0f0f0 2px, transparent 2px);
    background-size: 100px 100px;
}

/* Hand-drawn border animation */
@keyframes drawBorder {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 0;
    }
}

/* Hand-drawn button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-family: 'Kalam', cursive;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 27px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    filter: blur(1px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 3px solid var(--primary-color);
    transform: rotate(-1deg);
}

.btn-primary:hover {
    transform: rotate(1deg) scale(1.05);
    background: var(--secondary-color);
    box-shadow: 5px 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: var(--accent-color);
    color: white;
    border: 3px solid var(--accent-color);
    transform: rotate(1deg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    transform: rotate(-0.5deg);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(0.5deg) scale(1.05);
}

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

/* Header styles with hand-drawn elements */
.header {
    background: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

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

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

.logo-text {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    transform: rotate(-2deg);
}

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

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

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Hero section with hand-drawn styling */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #E8F5E8 0%, #F1F8E9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    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='%234CAF50' fill-opacity='0.05'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
    transform: rotate(-1deg);
}

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

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

.hero-graphic img {
    width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.1));
    transform: rotate(2deg);
}

/* Section headers with hand-drawn styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    transform: rotate(-1deg);
}

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

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

/* About section */
.about {
    padding: 80px 0;
    background: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transform: rotate(-0.5deg);
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

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

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    transform: rotate(1deg);
    box-shadow: 5px 5px 15px var(--shadow-color);
}

.stat-item:nth-child(even) {
    transform: rotate(-1deg);
}

.stat-number {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 5px;
}

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

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-1deg);
}

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

.service-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 10px 10px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

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

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

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

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

/* Testimonials section */
.testimonials {
    padding: 80px 0;
    background: var(--bg-color);
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid var(--border-color);
    position: relative;
    transform: rotate(1deg);
    box-shadow: 5px 5px 15px var(--shadow-color);
}

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

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

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

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

.blog-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid var(--border-color);
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

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

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

.blog-header h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--light-text);
}

.blog-excerpt {
    margin: 15px 0;
    line-height: 1.6;
}

.blog-content {
    margin-top: 20px;
    line-height: 1.6;
}

.blog-content h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
}

.blog-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.blog-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Kalam', cursive;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.blog-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(1deg);
}

/* Subscription form section */
.subscription {
    padding: 80px 0;
    background: var(--bg-color);
}

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 25px;
    border: 3px solid var(--primary-color);
    transform: rotate(-1deg);
    box-shadow: 10px 10px 25px var(--shadow-color);
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-family: 'Kalam', cursive;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: rotate(0.5deg);
    box-shadow: 5px 5px 15px rgba(46, 125, 50, 0.2);
}

.form-disclaimer {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
    margin-top: 20px;
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Legal sections */
.legal-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-section .container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid var(--primary-color);
    transform: rotate(-1deg);
}

.legal-content {
    margin-bottom: 30px;
}

.legal-content h3, .legal-content h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-family: 'Caveat', cursive;
}

.legal-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.close-legal {
    display: block;
    margin: 0 auto;
}

/* Footer styles */
.footer {
    background: var(--text-color);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

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

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

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

.footer-logo span {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-section h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    padding: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: rotate(10deg) scale(1.1);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border: 3px solid var(--primary-color);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    z-index: 1500;
    box-shadow: 0 -5px 15px var(--shadow-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Thank you page styles */
.thank-you {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you h1 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transform: rotate(-1deg);
}

.thank-you-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.next-steps {
    margin: 50px 0;
}

.next-steps h2 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

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

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    transform: rotate(1deg);
}

.step:nth-child(even) {
    transform: rotate(-1deg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    font-family: 'Caveat', cursive;
}

.step h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-options {
    background: var(--section-bg);
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid var(--border-color);
}

.contact-options h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        border-top: 3px solid var(--primary-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-item {
        flex: 1;
        margin: 0 10px;
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 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;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .subscription-form {
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin: 10px 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .legal-section .container {
        margin: 10px;
        padding: 20px;
    }
    
    .subscription-form {
        transform: none;
        margin: 0 10px;
    }
}

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

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(46, 125, 50, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
