/**
 * Emiko Golf - Custom Styles
 * White Modern Theme - Additional styling and animations
 */

/* ============================================
   HEADER ENHANCEMENTS
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo styling */
.site-logo a,
.wp-block-site-title a {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--wp--preset--color--black);
    transition: color 0.3s ease;
}

.site-logo a:hover,
.wp-block-site-title a:hover {
    color: var(--wp--preset--color--charcoal);
}

/* Navigation styling */
.main-nav .wp-block-navigation__container {
    gap: 2.5rem;
}

.main-nav .wp-block-navigation-item__content {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--charcoal);
    transition: color 0.3s ease;
    position: relative;
}

.main-nav .wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--wp--preset--color--black);
    transition: width 0.3s ease;
}

.main-nav .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--black);
}

.main-nav .wp-block-navigation-item__content:hover::after {
    width: 100%;
}

/* Cart icon */
.cart-icon {
    position: relative;
    padding: 0.5rem;
    color: var(--wp--preset--color--black);
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--wp--preset--color--charcoal);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--wp--preset--color--black);
    transition: all 0.3s ease;
}

@media (max-width: 782px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    background-color: var(--wp--preset--color--white);
}

/* Animated elements */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.6s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--wp--preset--color--black);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 400;
    color: var(--wp--preset--color--white);
    padding: 0 2rem;
    flex-shrink: 0;
}

.marquee-item span {
    color: var(--wp--preset--color--gray);
    margin: 0 1rem;
}

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

/* Pause on hover */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    position: relative;
    overflow: hidden;
    background-color: var(--wp--preset--color--light-gray);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card .wp-block-image {
    overflow: hidden;
}

.product-card .wp-block-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .wp-block-image img {
    transform: scale(1.05);
}

.product-category {
    margin-bottom: 0.5rem !important;
    color: var(--wp--preset--color--dark-gray);
}

.product-title {
    margin-bottom: 0.5rem !important;
    color: var(--wp--preset--color--black);
}

.product-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--wp--preset--color--black);
    margin: 0 !important;
}

/* ============================================
   SPLIT SECTION
   ============================================ */
.split-section {
    min-height: 100vh;
}

.split-section > .wp-block-column {
    padding: 0;
}

.split-section .split-image .wp-block-cover {
    min-height: 100vh;
}

@media (max-width: 782px) {
    .split-section .split-image .wp-block-cover {
        min-height: 50vh;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.wp-block-button__link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
}

.btn-primary .wp-block-button__link {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.btn-primary .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--charcoal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-outline .wp-block-button__link {
    background-color: transparent !important;
    border: 1px solid var(--wp--preset--color--black) !important;
    color: var(--wp--preset--color--black) !important;
}

.btn-outline .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--black) !important;
    color: var(--wp--preset--color--white) !important;
}

/* Arrow button style */
.btn-arrow a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-arrow a::after {
    content: '\2192';
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-arrow a:hover {
    color: var(--wp--preset--color--charcoal);
}

.btn-arrow a:hover::after {
    transform: translateX(5px);
}

/* ============================================
   INSTAGRAM GRID
   ============================================ */
.instagram-grid .wp-block-column {
    overflow: hidden;
}

.instagram-grid .wp-block-image {
    margin: 0;
}

.instagram-grid .wp-block-image img {
    transition: transform 0.5s ease;
}

.instagram-grid .wp-block-image:hover img {
    transform: scale(1.08);
}

.insta-image {
    position: relative;
    overflow: hidden;
}

.insta-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-image:hover::after {
    opacity: 1;
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */
.site-footer {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.625rem;
}

.footer-menu a {
    color: var(--wp--preset--color--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--wp--preset--color--white);
}

.footer-social .wp-social-link {
    transition: all 0.3s ease;
}

.footer-social .wp-social-link:hover {
    opacity: 0.7;
}

.footer-legal a {
    color: var(--wp--preset--color--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--wp--preset--color--white);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade"] {
    transform: none;
}

[data-animate="scale"] {
    transform: scale(0.95);
}

[data-animate="scale"].animated {
    transform: scale(1);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.testimonial-section {
    background-color: var(--wp--preset--color--off-white);
}

.testimonial-quote {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--wp--preset--color--black);
}

.testimonial-author {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--dark-gray);
}

/* ============================================
   LOADING STATE
   ============================================ */
body[data-loading="true"] {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--wp--preset--color--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-logo {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    color: var(--wp--preset--color--black);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

::-moz-selection {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 1.5rem;
    }

    .split-section {
        min-height: auto;
    }

    .footer-main {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand {
        max-width: 100% !important;
    }
}

@media (max-width: 782px) {
    .hero-section .wp-block-cover__inner-container {
        padding: 0 1rem;
    }

    .product-grid {
        gap: 1rem !important;
    }

    .instagram-grid {
        gap: 0.5rem !important;
    }
}
