/* Additional custom styles for Tara Threading website */

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

/* Custom font loading */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
         url('https://fonts.gstatic.com/s/playfairdisplay/v30/nuFiD-vdPy7wvE0D4hUz.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local(''),
         url('https://fonts.gstatic.com/s/playfairdisplay/v30/nuFiD-vdPy7wvE0D4hUz.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: local(''),
         url('https://fonts.gstatic.com/s/playfairdisplay/v30/nuFkD-vdPy7wvE0D4hUzvwE.woff2') format('woff2');
}

/* Base styles */
body {
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navigation styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #d4522a, #b83f1f);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #d4522a;
}

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

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #d4522a 0%, #b83f1f 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e8714a 0%, #d4522a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 82, 42, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #d4522a;
    color: #d4522a;
    transition: all 0.3s ease;
}

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

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(180, 82, 42, 0.15);
}

/* Image zoom effect */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ornament decoration */
.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4522a, transparent);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4522a, #b83f1f);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e8714a, #d4522a);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 82, 42, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background: linear-gradient(135deg, #d4522a 0%, #b83f1f 30%, #96311a 60%, #7a2a1a 100%);
        min-height: 100vh;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Print styles */
@media print {
    .btn-primary,
    .btn-secondary,
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-bg {
        background: #d4522a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #b83f1f;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #d4522a;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #d4522a;
    color: white;
}
