/* ==========================================
   Mansfield Country Club — Custom Styles
   Classic & Elegant · Deep Navy + Warm Gold
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #f5f5f0;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2a3f60;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* --- Navigation --- */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background-color: rgba(10, 15, 30, 0.95);
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background-color: #d4af37;
    transition: width 0.3s ease;
    margin: 4px auto 0;
}

.mobile-link:hover::after {
    width: 60%;
}

/* --- Hero --- */
.hero-section {
    position: relative;
}

/* --- Image Hover Effects --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

/* --- Menu Cards --- */
.menu-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.reveal-up {
    transform: translateY(30px);
}

.reveal.reveal-left {
    transform: translateX(-30px);
}

.reveal.reveal-right {
    transform: translateX(30px);
}

.reveal.reveal-scale {
    transform: scale(0.95);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-up,
    .reveal.reveal-left,
    .reveal.reveal-right,
    .reveal.reveal-scale {
        opacity: 0;
        transform: translateY(30px) translateX(0) scale(1);
    }
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- Gold Accent Line --- */
.gold-line {
    position: relative;
}

.gold-line::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

/* --- Button Hover Glow --- */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-gold:hover::before {
    width: 300px;
    height: 300px;
}

/* --- Form Focus States --- */
input:focus,
textarea:focus {
    outline: none;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

/* --- Map Overlay --- */
.map-container {
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

/* --- Decorative Elements --- */
.corner-accent {
    position: absolute;
    width: 40px;
    height: 40px;
}

.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    background-color: rgba(212, 175, 55, 0.3);
}

.corner-accent--tl {
    top: -1px;
    left: -1px;
}

.corner-accent--tl::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
}

.corner-accent--tl::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
}

.corner-accent--br {
    bottom: -1px;
    right: -1px;
}

.corner-accent--br::before {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
}

.corner-accent--br::after {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 100%;
}

/* --- Text Gradient --- */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4af37, #f0d480, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Subtle Pattern Background --- */
.pattern-bg {
    background-color: #0f172a;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 45, 74, 0.5) 0%, transparent 50%);
}

/* --- Loading State --- */
.page-loader {
    position: fixed;
    inset: 0;
    background: #0a0f1e;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .hero-asymmetric {
        clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    }
}
