/* ============================================
   G Town Brewery — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(52, 212, 160, 0.3);
    color: #fff;
}

/* --- Custom Clip Paths --- */
.clip-diagonal-right {
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.clip-diagonal-left {
    clip-path: polygon(0% 0%, 70% 0%, 100% 100%, 0% 100%);
}

/* --- Navigation --- */
.nav-fixed {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(2, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34d4a0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #34d4a0 !important;
}

/* Mobile menu */
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line:last-child {
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active .menu-line:last-child {
    width: 5;
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav-link {
    position: relative;
}

/* --- Hero --- */
.hero {
    position: relative;
}

/* Hero entrance animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-desc {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-stats {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-image-wrapper {
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

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

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

/* Hero geometric shapes floating */
.hero-shape-2 {
    animation: float 6s ease-in-out infinite;
}

.hero-shape-3 {
    animation: float 4s ease-in-out infinite reverse;
}

.hero-shape-4 {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-shape-5 {
    animation: float 7s ease-in-out infinite reverse;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Scroll indicator */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 48px; }
    50% { opacity: 1; height: 60px; }
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #34d4a0;
    color: #020810;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #7ee8c8;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(52, 212, 160, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #34d4a0;
    color: #34d4a0;
    transform: translateY(-2px);
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
}

.section-label-dark {
    display: inline-block;
}

/* --- Scroll Reveal --- */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default visible state for progressive enhancement */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Beer Cards --- */
.beer-card {
    transition: all 0.3s ease;
}

.beer-card:hover {
    transform: translateY(-4px);
}

/* --- Form --- */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 212, 160, 0.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-shape-1 {
        display: none;
    }
    
    .hero-shape-2,
    .hero-shape-3,
    .hero-shape-4,
    .hero-shape-5 {
        display: none;
    }
    
    .hero-image {
        h-480px !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        gap: 6px;
    }
    
    .hero-stats > div {
        flex: 1;
    }
}

/* --- Utility --- */
.text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
