/* Custom styles that extend beyond Tailwind */

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

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

/* Serif font for headings */
.font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Gold underline decoration */
.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C8963E, #E0BC6A);
    border-radius: 2px;
}

/* Navbar scroll state */
#navbar {
    transition: background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
                padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.97) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Hero section */
.hero-bg {
    background-image: url('https://images.pexels.com/photos/13532891/pexels-photo-13532891.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Card hover effects */
.service-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.2);
}

/* Primary button */
.btn-primary {
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 150, 62, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Scroll reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0F2140;
}

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

/* Form input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.2);
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 33, 64, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
