/* Add global overflow control at the top of the base CSS file */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* Base Color Scheme */
:root {
    --primary: #b86614; /* A richer amber/brown like beer */
    --primary-light: #e7a84d; /* Lighter amber */
    --secondary: #738290;
    --accent: #e63946; /* A pop of red for accents */
    --light: #FBFAF8; /* Creamy off-white */
    --dark: #232020; /* Deep, almost black */
    --gold: #fdc500; /* Golden yellow */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
    min-height: 100%; /* Ensure body takes at least full height */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
}

h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}


/* Feature Cards */
.feature-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: white;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
    color: var(--gold);
}

/* Partner Form - Moved to inquire.css */

/* Form controls */
.form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(184, 102, 20, 0.1);
    border-color: var(--primary);
}

/* Simple Animations - Retained */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.bounce {
    animation: bounce 3s infinite;
}

/* Note: Animation classes moved to animate-on-scroll.css */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}

/* Large screen adjustments */
@media (min-width: 1400px) {    
    .container {
        max-width: 1320px; /* Ensure container width is appropriate for large screens */
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }
}

/* Ensure the app decoration circles stay within viewports */
.app-decoration-circle {
    display: block;
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    max-width: 100%;
}

.app-decoration-circle.bg-primary-light {
    width: 200px !important;
    height: 200px !important;
    top: -30px;
    right: 20px;
    opacity: 0.2;
}

.app-decoration-circle.bg-gold {
    width: 150px !important;
    height: 150px !important;
    bottom: 0;
    left: 30px;
    opacity: 0.15;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(184, 102, 20, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--gold);
}

/* Badge Styles */
.badge-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Animated Underline Links */
.animated-link {
    position: relative;
    display: inline-block;
}

.animated-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.animated-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hover Card Effect */
.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
}

/* Glow Effect on Focus */
.glow-focus:focus {
    box-shadow: 0 0 15px rgba(231, 168, 77, 0.5);
    border-color: var(--primary-light);
}

/* Loading Animation */
@keyframes brewBubble {
    0% {
        height: 0%;
        opacity: 0;
    }
    10% {
        height: 10%;
        opacity: 0.8;
    }
    40% {
        height: 40%;
        opacity: 0.7;
    }
    80% {
        height: 80%;
        opacity: 0.5;
    }
    100% {
        height: 100%;
        opacity: 0;
    }
}

.brew-loading {
    position: relative;
    width: 60px;
    height: 100px;
    background-color: var(--light);
    border: 3px solid var(--primary);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    margin: 0 auto;
}

.brew-loading::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    animation: brewBubble 2.5s infinite;
}

.brew-loading::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background-color: var(--primary);
    border: 3px solid var(--primary);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

/* Add CSS for feature-card-wrapper and tilting effect */
.feature-card-wrapper {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    position: relative;
}

.feature-card-wrapper.tilting .feature-card {
    transform: perspective(1000px) 
               rotateX(calc(var(--mouse-y, 0) * -0.05deg)) 
               rotateY(calc(var(--mouse-x, 0) * 0.05deg)) 
               translateY(-15px);
}

/* Base styles for the entire site */
html {
    scroll-padding-top: 80px; /* Adjust based on fixed navbar height */
    /* background: var(--gradient-primary) !important; */ /* REMOVE temporary background */
}

/* Mobile Menu Animation and Phil the Pint Text */
.mobile-menu-animation-container {
    padding: 4rem 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

/* Hide the animation container by default */
@media (min-width: 992px) {
    .mobile-menu-animation-container {
        display: none !important;
    }
}

/* Only show the animation when navbar is expanded on mobile */
.navbar-collapse:not(.show) .mobile-menu-animation-container {
    display: none !important;
}

.mobile-menu-lottie {
    margin: 0 auto;
}

.phil-intro {
    font-size: 1.5rem;
    font-weight: 600;
    color: white !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(35, 32, 32, 0.95);
    color: white;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show-banner {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    padding-right: 1rem;
    flex: 1;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--dark);
    border: none;
    font-weight: 500;
}

.btn-gold:hover {
    background-color: #e6b400;
    color: var(--dark);
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

@media (max-width: 767.98px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        margin-bottom: 0.75rem;
        padding-right: 0;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Cookie Overlay that blocks interaction */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: none;
    pointer-events: all;
}

.cookie-overlay.active {
    display: block;
}

/* Add styles for body when cookies are pending */
body.cookies-pending {
    overflow: hidden;
}

/* Make sure cookie banner stays on top of the overlay */
.cookie-banner {
    z-index: 9999;
} 