/**
 * Greycaine Theme Custom Styles
 */

/* Font Family */
* {
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
.fixed-to-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.dark-logo { 
    display: block; 
}

.light-logo { 
    display: none; 
}

.nav-desktop { 
    display: flex; 
}

.nav-mobile { 
    display: none; 
}

@media (max-width: 1023px) {
    .nav-desktop { 
        display: none !important; 
    }
    .nav-mobile { 
        display: block !important; 
    }
}

/* Mega Menu */
.megamenu {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.megamenu.visible {
    visibility: visible;
    opacity: 1;
}

/* Typography */
.grey-qo-regular {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
}

/* Layout Utilities */
.absolute-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swiper Overrides */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slider .swiper-slide {
    position: relative;
}

/* Buttons */
.btn-primary {
    background-color: #2C4A3B;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1A2D23;
}

.btn-secondary {
    background-color: transparent;
    color: #2C4A3B;
    border: 2px solid #2C4A3B;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2C4A3B;
    color: white;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E3DC;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2C4A3B;
    box-shadow: 0 0 0 2px rgba(44, 74, 59, 0.1);
}

/* Glass Form Styles */
.glass-form {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

.glass-form input,
.glass-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.glass-form input::placeholder,
.glass-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Hero Image Containers */
.hero-image-container,
.hero-video-container,
.hero-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image-container img,
.hero-video-container video,
.hero-media-container img,
.hero-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ensure videos display properly */
.hero-media-container video {
    z-index: 1;
}

.hero-media-container img {
    z-index: 1;
}

/* Dynamic Hero Specific Styles */
.dynamic-hero-slider {
    width: 100%;
    height: 100%;
}

.dynamic-hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* Enhanced Swiper Styling for Dynamic Hero */
.dynamic-hero-slider .swiper-pagination {
    bottom: 2rem;
}

.dynamic-hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.dynamic-hero-slider .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

.dynamic-hero-slider .swiper-button-next,
.dynamic-hero-slider .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-top: -30px;
    transition: all 0.3s ease;
}

.dynamic-hero-slider .swiper-button-next:hover,
.dynamic-hero-slider .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dynamic-hero-slider .swiper-button-next:after,
.dynamic-hero-slider .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

/* Ken Burns Effect */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-media-container.ken-burns img,
.hero-media-container.ken-burns video {
    animation: kenBurns linear forwards;
}

/* Slider Navigation */
.slider-nav-btn {
    background: #B8A082;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slider-nav-btn:hover {
    transform: scale(1.1);
}

.slider-nav-btn svg {
    color: #2C4A3B;
    width: 24px;
    height: 24px;
}

/* Responsive Utilities */
@media (min-width: 1024px) {
    .lg\:max-w-8xl {
        max-width: 88rem;
    }
    
    .lg\:max-w-9xl {
        max-width: 96rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.fade-up {
    animation: fadeUp 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .print\:hidden {
        display: none !important;
    }
}