/* Hand-drawn Style CSS for Frosted Pebble Delivery Service */

/* Import Google 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');

/* CSS Variables for consistent theming */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #4ecdc4;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #fdf6f0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
    --hand-drawn-border: 2px solid var(--primary-color);
}

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

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

/* Hand-drawn animations */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes sketch-draw {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: var(--hand-drawn-border);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
    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: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: var(--hand-drawn-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Kalam', cursive;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    animation: wiggle 0.5s ease;
}

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

.btn-secondary:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

/* Header */
.header {
    background: var(--white);
    border-bottom: var(--hand-drawn-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: var(--shadow);
}

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

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

.logo {
    width: 40px;
    height: 40px;
    animation: bounce 2s infinite;
}

.brand-text {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--light-bg);
    transform: translateY(-2px);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 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='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff6b35' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 0 0-8 0-8s8 0 8 0 0 8 0 8-8 0-8 0z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

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

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: wiggle 3s ease infinite;
}

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

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    border: var(--hand-drawn-border);
    transition: all 0.3s ease;
    position: relative;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    animation: bounce 0.6s ease;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    animation: bounce 3s ease infinite;
}

/* Section Titles */
.section-title {
    font-family: 'Caveat', cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

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

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

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

.about-text h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

.section-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    animation: wiggle 4s ease infinite;
}

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

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: var(--hand-drawn-border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
    animation: sketch-draw 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease infinite;
}

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

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

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

.testimonial-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px dashed var(--accent-color);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: rotate(1deg);
    box-shadow: var(--shadow);
}

.quote-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

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

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

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

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

.blog-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: var(--hand-drawn-border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

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

.blog-card h3 {
    margin-bottom: 15px;
}

.blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    line-height: 1.3;
}

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

.blog-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}

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

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

.blog-article h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.article-date {
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

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

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* Subscription Section */
.subscription {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.subscription .section-title {
    color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.subscription-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* Legal Section */
.legal {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: var(--hand-drawn-border);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.legal-link:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

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

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: bounce 0.3s ease;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

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

/* Legal Content Styles */
.legal-content {
    line-height: 1.6;
    color: var(--text-dark);
}

.legal-content h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    border-bottom: 2px dashed var(--accent-color);
    padding-bottom: 5px;
}

.legal-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    text-align: justify;
}

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

.legal-content li {
    margin-bottom: 8px;
    position: relative;
}

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

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

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

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

.footer-section address {
    font-style: normal;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

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

.social-links a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

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

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

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

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

.thanks-content {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    border: var(--hand-drawn-border);
}

.thanks-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

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

.thanks-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.back-home {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        gap: 20px;
        z-index: 998;
        border-top: var(--hand-drawn-border);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .services-grid, .testimonials-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card, .testimonial-card, .blog-card {
        padding: 25px 20px;
    }
    
    .subscription-form {
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {
    .cookie-banner, .header, .modal {
        display: none;
    }
    
    .hero {
        padding-top: 20px;
    }
    
    * {
        animation: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #d63031;
        --secondary-color: #e17055;
        --text-dark: #000000;
        --text-light: #2d3436;
    }
}
