/*
Theme Name: Quayside Distillery
Theme URI: https://quaysidedistillery.co.uk
Author: Murat
Author URI: https://mypacking.co.uk
Description: Premium WordPress theme for Quayside Distillery - Exeter's finest craft distillery, bar, and gin school. Features award-winning animations and immersive water-themed design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: Private
License URI: 
Text Domain: quayside
Tags: distillery, bar, gin, premium, animations, gsap

Quayside Distillery - Virtus et Ingeniosa
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
    /* Primary Colors */
    --color-navy: #1B2341;
    --color-navy-deep: #0F1629;
    --color-navy-light: #2A3456;
    
    /* Accent Colors */
    --color-teal: #2A8B8B;
    --color-teal-light: #3AABAB;
    --color-teal-dark: #1A6B6B;
    
    /* Warm Accents */
    --color-copper: #B87333;
    --color-gold: #D4AF37;
    --color-orange: #E8712A;
    
    /* Neutrals */
    --color-cream: #F5F0E8;
    --color-cream-dark: #E8E0D0;
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* Water Colors */
    --color-water-surface: rgba(42, 139, 139, 0.3);
    --color-water-deep: rgba(27, 35, 65, 0.8);
    --color-water-highlight: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);
    --text-hero: clamp(3.5rem, 2.5rem + 7vw, 10rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --nav-height: 80px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 800ms cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-glow-teal: 0 0 40px rgba(42, 139, 139, 0.3);
    --shadow-glow-gold: 0 0 40px rgba(212, 175, 55, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Z-Index Scale */
    --z-behind: -1;
    --z-base: 0;
    --z-above: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-loader: 600;
}

/* ============================================
   CSS RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-cream);
    background-color: var(--color-navy-deep);
    overflow-x: hidden;
}

/* Smooth scroll with Lenis */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-teal-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-gold);
}

.text-accent {
    font-family: var(--font-accent);
    font-style: italic;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-teal);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-teal-light);
    box-shadow: var(--shadow-glow-teal);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid var(--color-cream);
}

.btn-outline:hover {
    background: var(--color-cream);
    color: var(--color-navy);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-copper));
    color: var(--color-navy-deep);
}

.btn-gold:hover {
    box-shadow: var(--shadow-glow-gold);
    transform: translateY(-2px);
}

/* Magnetic Button Effect */
.btn-magnetic {
    transition: transform var(--transition-slower);
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loader {
    display: none !important; /* Disabled */
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 120px;
    height: auto;
    opacity: 0;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: var(--color-navy-light);
    margin-top: var(--space-xl);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
}

/* Loader hidden state */
.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

/* Custom cursor disabled - using default cursor */
.cursor,
.cursor-dot,
.cursor-trail,
.cursor-ring,
.custom-cursor,
#cursor,
#cursor-dot,
#cursor-trail,
#custom-cursor,
#customCursor {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure default cursor everywhere */
body, html, * {
    cursor: auto;
}

a, button, [role="button"], input[type="submit"], input[type="button"], .btn, [onclick] {
    cursor: pointer;
}

/* Original cursor styles (disabled) */
.cursor-legacy {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor.is-active {
    width: 50px;
    height: 50px;
    border-color: var(--color-gold);
}

@media (hover: none) {
    .cursor, .cursor-dot {
        display: none;
    }
}

/* ============================================
   ANIMATIONS - Base Classes
   ============================================ */

/* Animate on scroll - starts invisible, JS will animate */
[data-animate]:not(.hero-title):not(.hero-subtitle):not(.hero-tagline):not(.hero-features):not(.hero-cta) {
    opacity: 0;
}

[data-animate="fade-up"] {
    transform: translateY(60px);
}

[data-animate="fade-down"] {
    transform: translateY(-60px);
}

[data-animate="fade-left"] {
    transform: translateX(60px);
}

[data-animate="fade-right"] {
    transform: translateX(-60px);
}

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

[data-animate="reveal"] {
    clip-path: inset(0 100% 0 0);
}

.is-animated {
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
}

/* ============================================
   WATER EFFECTS
   ============================================ */

.water-surface {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-water-surface)
    );
    pointer-events: none;
}

.water-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--color-water-highlight) 0%,
        transparent 70%
    );
    animation: ripple 2s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(-0.5deg);
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delay-1 { animation-delay: -1s; }
.floating-delay-2 { animation-delay: -2s; }
.floating-delay-3 { animation-delay: -3s; }
.floating-delay-4 { animation-delay: -4s; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --nav-height: 70px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
    }
}

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */

/* Screen Reader Only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link - hidden until focused */
.skip-link {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--color-gold);
    color: var(--color-navy-deep);
    padding: 12px 24px;
    z-index: 100000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.skip-link:focus {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
