/* Custom styles and animations for Karen's Kreations */

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F5F0E6;
}

::-webkit-scrollbar-thumb {
    background: #C85A3C;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A8432A;
}

/* Selection color */
::selection {
    background-color: #C85A3C;
    color: #FFFFFF;
}

/* Subtle pattern overlay for hero section */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(200, 90, 60, 0.15);
}

.service-card:hover .service-card__icon {
    background-color: #C85A3C;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-card__icon svg {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* Input focus animation */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(200, 90, 60, 0.1);
}

/* Decorative line under section eyebrow */
.section__eyebrow {
    position: relative;
    display: inline-block;
}

.section__eyebrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #C85A3C;
}

/* About image accent animation */
.about-image__accent {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* CTA phone number pulse */
.cta__phone {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Footer link hover underline animation */
.footer__links a {
    position: relative;
}

.footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C85A3C;
    transition: width 0.3s ease;
}

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

/* Mobile menu animation */
.nav {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav--open {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .header,
    .cta,
    .map-container {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section {
        padding: 40px 0;
    }
}
