/* Custom styles that extend beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Ensure all interactive elements have proper focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(212, 163, 74, 0.3);
    color: #fdf9f0;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle entrance for hero text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-bg .text-center > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-bg .text-center > *:nth-child(1) { animation-delay: 0.1s; }
.hero-bg .text-center > *:nth-child(2) { animation-delay: 0.2s; }
.hero-bg .text-center > *:nth-child(3) { animation-delay: 0.3s; }
.hero-bg .text-center > *:nth-child(4) { animation-delay: 0.4s; }
.hero-bg .text-center > *:nth-child(5) { animation-delay: 0.5s; }
.hero-bg .text-center > *:nth-child(6) { animation-delay: 0.6s; }

/* Reduce motion for accessibility */
@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;
    }

    .reveal-hidden,
    .reveal-hidden-left,
    .reveal-hidden-right {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gold-gradient {
        -webkit-text-fill-color: currentColor;
        background: none;
    }
}

/* Print styles */
@media print {
    .nav-glass,
    .grain::after,
    .animate-bounce {
        display: none !important;
    }

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