/* ============================================
   Chateau Grand Traverse — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #D4A84B;
    color: #0A1628;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #D4A84B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E0BC6A;
}

/* --- Buttons --- */
.btn-gold {
    background: linear-gradient(135deg, #D4A84B 0%, #C8943E 100%);
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #E0BC6A 0%, #D4A84B 100%);
}

.btn-outline-gold {
    border: 1.5px solid rgba(212, 168, 75, 0.5);
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    border-color: #D4A84B;
    background: rgba(212, 168, 75, 0.1);
}

.btn-outline-dark {
    border: 1.5px solid #0A1628;
    color: #0A1628;
    transition: all 0.3s ease;
}

/* --- Section Elements --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: #B8860B;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
}

.section-tag--light {
    background: rgba(212, 168, 75, 0.15);
    border-color: rgba(212, 168, 75, 0.3);
    color: #D4A84B;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    color: #0A1628;
}

.section-title--light {
    color: #FFFFFF;
}

.section-desc {
    margin-top: 16px;
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #E0BC6A !important;
}

/* --- Hero --- */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background-image: 
        linear-gradient(to bottom, rgba(4, 13, 26, 0.5) 0%, rgba(10, 22, 40, 0.4) 50%, rgba(4, 13, 26, 0.8) 100%),
        linear-gradient(to right, rgba(4, 13, 26, 0.3) 0%, transparent 50%, rgba(4, 13, 26, 0.3) 100%);
}

.hero-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    animation: heroBadgePulse 3s ease-in-out infinite;
}

@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(212, 168, 75, 0.1); }
}

/* Hero Geometric Shapes */
.hero-geo {
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-geo--1 { animation-delay: 0s; animation-duration: 7s; }
.hero-geo--2 { animation-delay: 1s; animation-duration: 5s; }
.hero-geo--3 { animation-delay: 2s; animation-duration: 8s; }
.hero-geo--4 { animation-delay: 0.5s; animation-duration: 6s; }
.hero-geo--5 { animation-delay: 1.5s; animation-duration: 4s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(18deg); }
}

.hero-geo--3 {
    animation-name: heroFloatCircle;
}

@keyframes heroFloatCircle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-geo--4 {
    animation-name: heroFloatRotate;
}

@keyframes heroFloatRotate {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-10px) rotate(60deg); }
}

.hero-geo--5 {
    animation-name: heroFloatDot;
}

@keyframes heroFloatDot {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-12px) scale(1.3); opacity: 0.7; }
}

/* --- Marquee --- */
.marquee-track {
    animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.menu-card:hover {
    transform: translateY(-4px);
}

/* --- About Shapes --- */
.about-shape {
    animation: aboutFloat 8s ease-in-out infinite;
}

.about-shape--1 { animation-delay: 0s; }
.about-shape--2 { animation-delay: 2s; animation-duration: 5s; }
.about-shape--3 { animation-delay: 1s; animation-duration: 6s; }

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(20deg); }
}

/* --- Experience Cards --- */
.experience-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-6px);
}

/* --- Gallery --- */
.gallery-img {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.85;
}

.gallery-img:hover {
    transform: scale(1.03);
    opacity: 1;
}

/* --- Contact Shape --- */
.contact-shape {
    animation: contactFloat 7s ease-in-out infinite;
}

.contact-shape--1 { animation-delay: 0s; }
.contact-shape--2 { animation-delay: 2s; animation-duration: 5s; }
.contact-shape--3 { animation-delay: 1s; animation-duration: 9s; }

@keyframes contactFloat {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(25deg); }
}

.contact-shape--2 {
    animation-name: contactFloatDot;
}

@keyframes contactFloatDot {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.4); }
}

.contact-shape--3 {
    animation-name: contactFloatDotSmall;
}

@keyframes contactFloatDotSmall {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 0.6; }
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Progressive enhancement: only animate when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Mobile Menu --- */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #D4A84B;
    transition: width 0.3s ease;
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-geo {
        display: none;
    }
    
    .about-shape,
    .contact-shape {
        display: none;
    }
}

@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;
    }
    
    .marquee-track {
        animation: none;
    }
}
