/* ============================================
   STORMING THE BEACH NUTRITION
   Premium Dark Luxury — Styles
   ============================================ */

*, *::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;
}

/* ---- Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #c9a84c;
    color: #060d16;
    padding: 0.75rem 1.5rem;
    z-index: 200;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-weight: 400;
}

/* ---- Gold Line ---- */
.gold-line,
.gold-line-hero {
    display: inline-block;
    height: 1px;
    background: #c9a84c;
}

/* ---- Buttons ---- */
.btn-gold {
    background: linear-gradient(135deg, #c9a84c 0%, #f0d78c 50%, #c9a84c 100%);
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-gold:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
}

.btn-outline-gold {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline-gold:hover {
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-2px);
}

/* ---- Navigation ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled {
    background: rgba(6, 13, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    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: 1px;
    background: #c9a84c;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    pointer-events: all;
    opacity: 1;
}
.mobile-menu-link {
    position: relative;
}
.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s;
}
.mobile-menu-link:hover::after {
    width: 100%;
}

.hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.menu-open .hamburger-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}
body.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .hamburger-line:nth-child(3) {
    top: 50%;
    width: 6;
    transform: rotate(-45deg);
    left: 16%;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
}
.hero-bg-img {
    will-change: transform;
    transition: transform 8s ease-out;
}
.hero-bg.loaded .hero-bg-img {
    transform: scale(1.05);
}
.hero-bg-overlay {
    will-change: opacity;
}

.hero-scroll-indicator {
    display: flex;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}
.scroll-line-fill {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #c9a84c;
    animation: scrollDown 2s ease-in-out infinite;
}

/* ---- Keyframes ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@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 {
        opacity: 1;
        transform: none;
    }
    .hero-bg-img {
        transition: none;
    }
}

/* ---- Sections ---- */
.section-about,
.section-menu,
.section-experience,
.section-visit,
.section-cta {
    position: relative;
}

/* ---- Menu Items ---- */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.menu-item:hover .font-body.text-white {
    color: #c9a84c;
    transition: color 0.3s;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    border-radius: 4px;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(201, 168, 76, 0.25);
    transform: translateY(-2px);
}

/* ---- Cookie Notice ---- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.97);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.cookie-notice.show {
    transform: translateY(0);
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.06);
}

/* ---- Focus Visible ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .font-display.text-5xl {
        font-size: 2.75rem;
    }
    .font-display.text-4xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .font-display.text-5xl {
        font-size: 3.5rem;
    }
}

/* ---- Selection ---- */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0f0f0;
}
::-moz-selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0f0f0;
}
