/* Custom styles to complement Tailwind CSS */

/* Font families */
body {
    font-family: 'Poppins', sans-serif;
}

.font-cormorant,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

/* Hero background */
.hero-bg {
    background-image: url('https://picsum.photos/seed/hero/1920/1080');
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Backdrop blur fallback for older browsers */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Better focus states for accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #92400e;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #92400e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #78350f;
}

/* Ensure images don't exceed container */
img {
    max-width: 100%;
    height: auto;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .sticky,
    header,
    footer,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-stone-600 {
        color: #000;
    }
    
    .text-stone-700 {
        color: #000;
    }
    
    .bg-stone-50 {
        background-color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .transform {
        transform: none !important;
    }
}

/* Better button states */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #92400e;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhance form elements */
input[type="text"],
input[type="email"],
textarea {
    border-radius: 0;
    background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(146, 64, 14, 0.1);
}

/* Better link underlines */
a:not(.no-underline):hover {
    text-decoration: underline;
    text-decoration-color: #92400e;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Ensure proper spacing for the layout */
.min-h-screen {
    min-height: 100vh;
}

/* Better mobile menu */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Improve text readability */
.text-justify {
    text-align: justify;
    hyphens: auto;
}

/* Better shadows for depth */
.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom gradient overlays */
.gradient-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Better typography scale */
.text-hero {
    font-size: clamp(2rem, 8vw, 6rem);
    line-height: 1.1;
}

/* Utility classes for better spacing */
.section-padding {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 7rem 0;
    }
}