/* Custom styles for Carolina Homes Group */

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

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

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

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

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

/* Hero section background */
.hero-bg {
    background: linear-gradient(135deg, #f9d8d2 0%, #f2e1c8 50%, #f8f0e4 100%);
}

/* Accent line animation */
.accent-line {
    height: 3px;
    background: linear-gradient(90deg, #d44f32, #e98c7a);
    width: 80px;
    transition: width 0.3s ease;
}

.accent-line:hover {
    width: 120px;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(212, 79, 50, 0.15);
}

/* Button animations */
.btn-primary {
    background: linear-gradient(135deg, #d44f32 0%, #c23c24 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c23c24 0%, #a23020 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 79, 50, 0.3);
}

.btn-secondary {
    border: 2px solid #d44f32;
    color: #d44f32;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #d44f32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 79, 50, 0.2);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 79, 50, 0.1);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
