/* Custom styles — premium dark luxury for Starbucks Santa Rosa Beach */

:root {
    --charcoal-900: #0d0d0d;
    --charcoal-800: #141414;
    --charcoal-700: #1c1c1c;
    --charcoal-600: #252525;
    --charcoal-500: #2e2e2e;
    --coral-500: #FF6B4A;
    --coral-400: #FF8566;
    --coral-600: #E5553A;
    --gold-400: #D4A853;
    --gold-500: #C9A227;
    --gold-600: #B8860B;
}

/* Base resets & typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background: var(--charcoal-900);
    color: #f5f0eb;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus outlines for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #fff;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Navbar transitions */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}
#navbar.nav-scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Hero section */
#hero {
    position: relative;
}

/* Gold divider lines */
.gold-line {
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--gold-400) 50%, transparent 100%);
}
.gold-line-short {
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--gold-400) 30%, var(--gold-400) 70%, transparent 100%);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 107, 74, 0.08);
}

/* Image zoom on hover */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover {
    transform: scale(1.05);
}

/* Gold button */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--charcoal-900);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #E0BC6A, var(--gold-400));
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.35);
    transform: translateY(-2px);
    color: var(--charcoal-900);
}

/* Coral button */
.btn-coral {
    background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
    color: white;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.btn-coral:hover {
    background: linear-gradient(135deg, var(--coral-400), var(--coral-500));
    box-shadow: 0 8px 30px rgba(255, 107, 74, 0.35);
    transform: translateY(-2px);
    color: white;
}

/* Outline button */
.btn-outline {
    border: 1px solid rgba(212, 168, 83, 0.6);
    color: var(--gold-400);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(212, 168, 83, 0.1);
    border-color: var(--gold-400);
    color: var(--gold-400);
}

/* Scroll reveal animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Mobile menu links */
.mobile-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--charcoal-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal-800); }
::-webkit-scrollbar-thumb { background: var(--charcoal-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--coral-500); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .card-hover, .img-zoom, .btn-gold, .btn-coral, .btn-outline {
        transition: none;
    }
    .card-hover:hover { transform: none; }
    .img-zoom:hover { transform: none; }
    .btn-gold:hover, .btn-coral:hover, .btn-outline:hover { transform: none; }
    html { scroll-behavior: auto; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif { line-height: 1.1; }
    #hero h1 { font-size: 2.75rem; }
    #hero h1 br { display: none; }
}
