/* Shared Styles for Johnson and Jones Homes for Veterans */

/* Gradient Text Utility Class - Patriotic Red to Blue */
.gradient-text {
    background: linear-gradient(to right, #dc2626, #1e40af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Gradient Background Utility Class - Patriotic Red to Blue */
.gradient-bg {
    background: linear-gradient(to right, #dc2626, #1e40af);
    color: white;
}

/* Thanksgiving Carousel Navigation Arrows */
.thanksgiving-swiper .swiper-button-next,
.thanksgiving-swiper .swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
}

.thanksgiving-swiper .swiper-button-next:hover,
.thanksgiving-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}
.thanksgiving-swiper .swiper-button-next:after,
.thanksgiving-swiper .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Responsive Thanksgiving Carousel Height */
@media (min-width: 640px) {
    .thanksgiving-swiper {
        height: 300px !important;
    }
}

@media (min-width: 768px) {
    .thanksgiving-swiper {
        height: 400px !important;
    }
}

/* Prevent carousel width overflow on mobile */
.thanksgiving-swiper {
    max-width: 100% !important;
    overflow: hidden !important;
}

.thanksgiving-swiper .swiper-wrapper {
    max-width: 100% !important;
}

.thanksgiving-swiper .swiper-slide {
    max-width: 100% !important;
    width: 100% !important;
}

.thanksgiving-swiper .swiper-slide img {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Pie Pattern Utility Class with Infinite Repeat - Patriotic Blue */
.pie-pattern {
    background-color: #f8fafc;
    background-image: 
        /* Pie emoji pattern using data URI */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><text y="50%" x="50%" text-anchor="middle" dominant-baseline="middle" font-size="24" fill="rgba(30, 64, 175, .1)">🍰</text></svg>');
    background-size: 80px 80px, 100px 100px, 60px 60px, 120px 120px;
    background-position: 0 0, 40px 40px, 20px 20px, 60px 60px;
    background-repeat: repeat;
    position: relative;
}

.hero-bg {
    background: linear-gradient(135deg, #dc2626 0%, #1e40af 50%, #1e3a8a 100%);
}

.pillar-card {
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Carousel Styles */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.thanksgiving-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.thanksgiving-slide.active {
    opacity: 1;
}

/* Swiper Custom Styles */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2) !important;
}

.swiper-pagination {
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Slide effect for proper drag feedback */
.swiper-slide {
    opacity: 1;
    transition: transform 0.3s ease-out;
}

/* Ensure proper overflow handling for slide effect */
.swiper {
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition-timing-function: ease-out;
}
