/* Custom Styles for MH Veneers Website */

/* Hero Banner Section */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #EBE3D5;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 0, 0, 0.03) 3px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: #4A4A4A;
    animation: slideInLeft 0.8s ease-out;
}

.brand-badge {
    display: inline-block;
    background: rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    text-transform: uppercase;
    color: #8B4513;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
    color: #2A2A2A;
}

.hero-title .highlight {
    color: #8B4513;
    display: block;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 36px;
    opacity: 0.8;
    font-weight: 300;
    color: #5A5A5A;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-block;
    background: #8B4513;
    color: white;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    background: #A0522D;
}

.cta-secondary {
    display: inline-block;
    background: transparent;
    color: #8B4513;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #8B4513;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-secondary:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.wood-samples-slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.wood-sample {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background: #f5f5f5;
    flex: 0 0 calc(33.333% - 14px);
    aspect-ratio: 1;
}

.wood-sample:hover {
    transform: translateY(-8px);
}

.wood-sample img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wood-sample-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 16px 12px 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: #8B4513;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #8B4513;
    width: 28px;
    border-radius: 5px;
}

.decorative-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    filter: blur(60px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 50px 40px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-visual {
        display: none;
    }

    .wood-samples-slider {
        display: none;
    }

    .slider-track {
        gap: 16px;
    }

    .wood-sample {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: auto;
    }

    .hero-container {
        padding: 40px 24px;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .wood-samples-slider {
        display: none;
    }

    .slider-track {
        gap: 12px;
    }

    .wood-sample {
        flex: 0 0 calc(70% - 8px);
        aspect-ratio: 1;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Navigation Styles */
.nav-link {
    @apply text-gray-700 hover:text-wood-600 font-medium transition-colors duration-200 relative;
}

.nav-link.active {
    @apply text-wood-600;
}

.nav-link.active::after {
    content: '';
    @apply absolute bottom-0 left-0 w-full h-0.5 bg-wood-600;
}

.mobile-nav-link {
    @apply block py-3 px-4 text-gray-700 hover:text-wood-600 hover:bg-wood-50 font-medium transition-all border-b border-gray-100 rounded-lg mb-1;
}

.mobile-nav-link.active {
    @apply text-white bg-wood-600 border-wood-700 shadow-md;
}

/* Button Styles */
.btn-primary {
    @apply bg-gradient-to-r from-wood-600 to-wood-700 text-white px-6 py-3 rounded-lg font-semibold hover:from-wood-700 hover:to-wood-800 transition-all shadow-md hover:shadow-lg transform hover:-translate-y-0.5;
}

.btn-secondary {
    @apply bg-white text-wood-700 border-2 border-wood-600 px-6 py-3 rounded-lg font-semibold hover:bg-wood-50 transition-all;
}

.btn-outline {
    @apply border-2 border-gray-300 text-gray-700 px-6 py-3 rounded-lg font-semibold hover:border-wood-600 hover:text-wood-600 transition-all;
}

/* Card Styles */
.product-card {
    @apply bg-white rounded-2xl shadow-lg overflow-hidden transition-all duration-300 border-2 border-transparent;
}

.product-card:hover {
    @apply shadow-2xl border-wood-200 transform -translate-y-2;
}

.category-card {
    @apply bg-white rounded-2xl shadow-lg overflow-hidden hover:shadow-2xl transition-all duration-300 transform hover:scale-105 border border-gray-100;
}

/* Badge Styles */
.badge-primary {
    @apply inline-block px-3 py-1 bg-wood-100 text-wood-800 text-sm font-semibold rounded-full;
}

.badge-success {
    @apply inline-block px-3 py-1 bg-green-100 text-green-800 text-sm font-semibold rounded-full;
}

.badge-warning {
    @apply inline-block px-3 py-1 bg-yellow-100 text-yellow-800 text-sm font-semibold rounded-full;
}

/* Hero Slider - Exact Responsive Design */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 33.33%; /* 3:1 aspect ratio for desktop */
}

@media (max-width: 768px) {
    .slider-wrapper {
        padding-bottom: 75%; /* 4:3 aspect ratio for mobile */
    }
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation Arrows - Clean White Design */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: normal;
}

.hero-swiper .swiper-button-prev {
    left: 20px;
}

.hero-swiper .swiper-button-next {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
    
    .hero-swiper .swiper-button-prev {
        left: 10px;
    }
    
    .hero-swiper .swiper-button-next {
        right: 10px;
    }
}

/* Pagination Dots */
.hero-swiper .swiper-pagination {
    bottom: 20px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.hero-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hero-swiper .swiper-pagination {
        bottom: 15px;
    }
    
    .hero-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Section Headings */
.section-title {
    @apply font-serif text-3xl md:text-4xl font-bold text-gray-900 mb-2;
}

.section-subtitle {
    @apply text-gray-600 text-lg mb-8;
}

/* Feature Cards */
.feature-card {
    @apply text-center p-6 rounded-xl bg-white shadow-md hover:shadow-lg transition-all;
}

.feature-icon {
    @apply w-16 h-16 mx-auto mb-4 bg-gradient-to-br from-wood-500 to-wood-700 text-white rounded-full flex items-center justify-center;
}

/* Product Image Placeholder */
.product-image-placeholder {
    @apply w-full h-full flex items-center justify-center bg-gradient-to-br from-gray-100 to-gray-200 text-gray-400;
}

/* Loading Skeleton */
.skeleton {
    @apply animate-pulse bg-gray-200 rounded;
}

/* Filter Sidebar */
.filter-label {
    @apply block text-sm font-semibold text-gray-900 mb-2;
}

.filter-input {
    @apply w-full px-4 py-3 bg-white border-2 border-gray-300 rounded-lg focus:ring-2 focus:ring-wood-500 focus:border-wood-600 transition-all shadow-sm text-gray-900 font-medium;
}

.filter-input::placeholder {
    @apply text-gray-400;
}

/* Breadcrumb */
.breadcrumb {
    @apply flex items-center space-x-2 text-sm text-gray-600 mb-6;
}

.breadcrumb a {
    @apply hover:text-wood-600 transition;
}

/* Image Gallery */
.gallery-main-image {
    @apply w-full h-96 object-cover rounded-xl;
}

.gallery-thumbnail {
    @apply w-20 h-20 object-cover rounded-lg cursor-pointer border-2 border-transparent hover:border-wood-600 transition;
}

.gallery-thumbnail.active {
    @apply border-wood-600;
}

/* Testimonial Card */
.testimonial-card {
    @apply bg-white p-6 rounded-xl shadow-md;
}

.testimonial-stars {
    @apply flex space-x-1 text-yellow-400 mb-3;
}

/* Form Styles */
.form-label {
    @apply block text-sm font-semibold text-gray-700 mb-2;
}

.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-wood-500 focus:border-transparent transition;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-wood-500 focus:border-transparent resize-none transition;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

/* Stats Section */
.stat-card {
    @apply text-center p-6;
}

.stat-number {
    @apply text-4xl md:text-5xl font-bold text-wood-700 mb-2;
}

.stat-label {
    @apply text-gray-600 font-semibold text-sm md:text-base;
}

/* Legacy Stats Section - Wood Theme */
.legacy-stats-section {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.9), rgba(139, 90, 43, 0.9)),
                url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.15"/%3E%3C/svg%3E');
    position: relative;
    overflow: hidden;
}

.legacy-section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f5deb3;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.legacy-title-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #d4a574, #8b5a2b);
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.legacy-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    transition: transform 0.3s ease;
}

.legacy-stat-card {
    background: linear-gradient(145deg, #d4a574, #b8956a);
    border-radius: 15px;
    padding: 45px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    border: 2px solid rgba(139, 90, 43, 0.4);
    overflow: hidden;
}

.legacy-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, 
            transparent, 
            transparent 2px, 
            rgba(101, 67, 33, 0.08) 2px, 
            rgba(101, 67, 33, 0.08) 4px);
    pointer-events: none;
    opacity: 0.5;
}

.legacy-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(139, 90, 43, 0.6);
}

.legacy-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #8b5a2b, #654321);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(101, 67, 33, 0.4);
}

.legacy-icon-wrapper svg {
    width: 40px;
    height: 40px;
    fill: #f5deb3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.legacy-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2d1810;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.legacy-stat-label {
    font-size: 1rem;
    color: #3d2415;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legacy-slider-dots {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.legacy-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 165, 116, 0.5);
}

.legacy-dot.active {
    background: #d4a574;
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legacy-stat-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.legacy-stat-card:nth-child(1) { animation-delay: 0.1s; }
.legacy-stat-card:nth-child(2) { animation-delay: 0.2s; }
.legacy-stat-card:nth-child(3) { animation-delay: 0.3s; }
.legacy-stat-card:nth-child(4) { animation-delay: 0.4s; }

@media (max-width: 768px) {
    .legacy-section-title {
        font-size: 2.2rem;
    }

    .legacy-stats-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .legacy-stats-container::-webkit-scrollbar {
        display: none;
    }

    .legacy-stats-grid {
        display: flex;
        gap: 20px;
        padding-bottom: 10px;
    }

    .legacy-stat-card {
        min-width: calc(66.666vw - 27px);
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .legacy-stat-number {
        font-size: 3rem;
    }

    .legacy-slider-dots {
        display: flex;
    }
}

/* Toast Notification */
.toast {
    @apply fixed top-4 right-4 z-50 bg-white shadow-xl rounded-lg p-4 max-w-sm transform transition-all;
}

.toast-success {
    @apply border-l-4 border-green-500;
}

.toast-error {
    @apply border-l-4 border-red-500;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-wood-400 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-wood-600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
}
