/* ==============================================
   RAGE OUT MAIDSTONE - MAIN STYLESHEET
   Shared styles for header, footer, and navigation
   ============================================== */

/* CSS Variables */
:root {
    --red-primary: #E91E30;
    --red-dark: #C11827;
    --red-glow: rgba(233, 30, 48, 0.4);
    --bg-dark: #0A0A0A;
    --bg-card: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-color: #2A2A2A;
    --success-green: #00D563;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-bottom: 80px; /* Space for sticky booking bar if present */
}

.container {
    max-width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}

/* ==============================================
   HEADER STYLES
   ============================================== */

header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 60px;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    transform-origin: bottom center;
    display: block;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(233, 30, 48, 0.6));
    display: block;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

nav.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

nav a:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
}

nav a.book-nav-btn {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    border: none;
    box-shadow: 0 4px 20px var(--red-glow);
    text-align: center;
}

nav a.book-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--red-glow);
}

/* Desktop Navigation - Only show when there's enough space */
@media (min-width: 1250px) {
    .nav-toggle {
        display: none;
    }

    nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        padding: 0;
        padding-left: 20px;
        background: transparent;
        border: none;
        gap: 4px;
        justify-content: flex-end;
    }

    nav a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .header-content {
        gap: 20px;
        justify-content: flex-end;
    }
}

/* More space available - increase nav spacing */
@media (min-width: 1400px) {
    nav {
        padding-left: 40px;
        gap: 6px;
    }

    nav a {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .header-content {
        gap: 40px;
    }
}

/* Maximum space - full nav spacing */
@media (min-width: 1600px) {
    nav {
        padding-left: 60px;
        gap: 10px;
    }

    nav a {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ==============================================
   FOOTER STYLES
   ============================================== */

footer {
    background: var(--bg-dark);
    padding: 60px 24px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 0; /* No extra space below footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 32px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--red-primary);
}

.footer-contact {
    color: var(--text-secondary);
    margin: 30px 0;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==============================================
   STICKY BOOKING BAR ADJUSTMENT
   ============================================== */

/* When sticky booking bar exists, ensure proper spacing */
body:has(.sticky-booking-bar) {
    padding-bottom: 100px !important;
}

.sticky-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    padding: 16px 20px;
    z-index: 2000;
    box-shadow: 0 -8px 40px rgba(233, 30, 48, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.sticky-booking-bar .book-btn {
    background: white;
    color: var(--red-primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sticky-booking-bar .book-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

/* ==================================================
   WHATSAPP FLOATING BUTTON
   ================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1999;
    animation: slideInRight 0.5s ease-out;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
    }

    .whatsapp-button {
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}
