/* Custom Styles for Elite Tile & Marble */

:root {
    --midnight-blue: #1e3a5f;
    --midnight-blue-light: #2d4a6f;
    --mint-500: #a8d5ba;
    --mint-600: #8fc4a3;
    --mint-100: #e8f5e9;
    --mint-200: #c8e6c9;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
}

/* Custom color definitions for Tailwind */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .text-midnight-blue {
        color: var(--midnight-blue);
    }
    .bg-midnight-blue {
        background-color: var(--midnight-blue);
    }
    .hover\:bg-midnight-blue:hover {
        background-color: var(--midnight-blue);
    }
    .text-mint-600 {
        color: var(--mint-600);
    }
    .text-mint-500 {
        color: var(--mint-500);
    }
    .text-mint-400 {
        color: #b8e0c8;
    }
    .text-mint-200 {
        color: var(--mint-200);
    }
    .text-mint-100 {
        color: var(--mint-100);
    }
    .bg-mint-600 {
        background-color: var(--mint-600);
    }
    .bg-mint-500 {
        background-color: var(--mint-500);
    }
    .bg-mint-100 {
        background-color: var(--mint-100);
    }
    .border-mint-500 {
        border-color: var(--mint-500);
    }
    .border-mint-300 {
        border-color: #b8e0c8;
    }
    .hover\:text-mint-600:hover {
        color: var(--mint-600);
    }
    .hover\:bg-mint-600:hover {
        background-color: var(--mint-600);
    }
}

/* Typography */
body {
    font-family: 'Lato', sans-serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

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

/* Navigation */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(30, 58, 95, 0.1);
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger animation delays */
.reveal-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-up:nth-child(2) { transition-delay: 0.2s; }
.reveal-up:nth-child(3) { transition-delay: 0.3s; }
.reveal-up:nth-child(4) { transition-delay: 0.4s; }
.reveal-up:nth-child(5) { transition-delay: 0.5s; }
.reveal-up:nth-child(6) { transition-delay: 0.6s; }

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--mint-500) !important;
    box-shadow: 0 0 0 3px rgba(168, 213, 186, 0.2);
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--midnight-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--midnight-blue-light);
}

/* Mobile Menu Transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Image Hover Zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Gallery Card Hover */
.group:hover img {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}
