/* Custom Styles for Sunset Tint */

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

/* Custom font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Reveal animations */
.reveal-text {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.1s;
}

.reveal-text:nth-child(3) {
    animation-delay: 0.2s;
}

.reveal-text:nth-child(4) {
    animation-delay: 0.3s;
}

.reveal-text:nth-child(5) {
    animation-delay: 0.4s;
}

/* Staggered grid animations */
.grid-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-scrolled a,
.nav-scrolled .w-10 {
    color: #0f3d2e;
}

/* Mobile menu animation */
#mobile-menu.active {
    transform: translateX(0);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #1a5240;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #236b54;
}

/* Selection color */
::selection {
    background: #1a5240;
    color: #faf9f6;
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 82, 64, 0.2);
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #faf9f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2rem;
    }
    
    .lg\:col-span-7 {
        margin-top: 2rem;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .btn-primary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-forest-900 {
        background: #0f3d2e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
