/* Custom styles supplementing Tailwind */

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

/* Body base */
body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Serif font override */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* Gold gradient utility */
.gold-gradient {
    background: linear-gradient(135deg, #c9a227 0%, #e8d5a3 50%, #b8912a 100%);
}

/* Gold text gradient */
.gold-text {
    background: linear-gradient(135deg, #c9a227, #e8d5a3, #b8912a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #0f1a0a 0%, #1a3a14 25%, #2d5a22 50%, #1a3a14 75%, #0f1a0a 100%);
}

/* Dark section gradient */
.dark-section {
    background: linear-gradient(180deg, #0f1a0a 0%, #141f12 100%);
}

/* Dark card with glass effect */
.dark-card {
    background: linear-gradient(145deg, rgba(15, 26, 10, 0.95), rgba(20, 31, 18, 0.95));
    backdrop-filter: blur(10px);
}

/* Gold border utilities */
.gold-border {
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.gold-border-thick {
    border: 1px solid rgba(201, 162, 39, 0.5);
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(201, 162, 39, 0.08);
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Scroll reveal animation */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .fade-section {
        opacity: 0;
        transform: translateY(30px);
    }

    .fade-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-section {
        opacity: 1;
        transform: none;
    }

    .service-card {
        transition: none;
    }

    .mobile-menu {
        transition: none;
    }
}

/* Text selection */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #f5f0e8;
}

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

::-webkit-scrollbar-track {
    background: #0f1a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c9a227, #b8912a);
    border-radius: 4px;
}

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

/* Image aspect ratio utilities */
.img-aspect-square {
    aspect-ratio: 1 / 1;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuOverlay, button {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-gradient, .dark-section {
        background: white !important;
    }
}
