/* Custom styles for Cow Town Casa */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d95a2b;
    border-radius: 6px;
}

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

/* Geometric animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
}

/* Hero geometric patterns */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(217, 90, 43, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 197, 139, 0.2) 0%, transparent 50%);
}

/* Magazine layout adjustments */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }
}

/* Image mask for asymmetric layout */
.image-mask {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

@media (max-width: 768px) {
    .image-mask {
        clip-path: none;
    }
}

/* Button shine effect */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

/* Card hover effects */
.room-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(163, 51, 20, 0.15);
}

/* Amenity icon animation */
.amenity-icon {
    transition: transform 0.3s ease;
}

.amenity-card:hover .amenity-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Navigation link underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d95a2b;
    transition: width 0.3s ease;
}

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

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

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

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

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Text outline for decorative elements */
.text-outline {
    -webkit-text-stroke: 2px #d95a2b;
    color: transparent;
}

/* Diagonal section divider */
.diagonal-section {
    position: relative;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: 
        linear-gradient(135deg, transparent 33.33%, #fefce8 33.33%, #fefce8 66.66%, transparent 66.66%),
        linear-gradient(-135deg, transparent 33.33%, #fefce8 33.33%, #fefce8 66.66%, transparent 66.66%);
    background-size: 40px 40px;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 90, 43, 0.3);
}

/* 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;
    }
    
    .floating-shape {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Print styles */
@media print {
    .floating-shape,
    .scroll-indicator {
        display: none;
    }
    
    nav,
    footer {
        display: none;
    }
}
