/* ============================================
   Brew U. — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Hero Gradient
   ============================================ */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #071f11 0%,
        #113a22 20%,
        #155e33 40%,
        #1d7a42 55%,
        #2e9e5b 70%,
        #1a6b3a 85%,
        #0d3320 100%
    );
}

/* ============================================
   Hero Animations
   ============================================ */
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes float-orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.08); }
}

@keyframes float-orb-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -52%) scale(1.1); }
}

.hero-orb {
    animation: float-orb 12s ease-in-out infinite;
}

.orb-2 {
    animation: float-orb-2 15s ease-in-out infinite;
}

.orb-3 {
    animation: float-orb-3 18s ease-in-out infinite;
}

/* Hero entrance animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-eyebrow {
    animation: fade-up 0.8s ease-out both;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fade-up 0.8s ease-out both;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fade-up 0.8s ease-out both;
    animation-delay: 0.6s;
}

.hero-ctas {
    animation: fade-up 0.8s ease-out both;
    animation-delay: 0.8s;
}

.hero-trust {
    animation: fade-up 0.8s ease-out both;
    animation-delay: 1s;
}

/* ============================================
   Typography Utilities
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #155e33;
    background: linear-gradient(135deg, #c3ebd1, #92d6ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    color: #113a22;
    letter-spacing: -0.02em;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Default state for reveal elements — visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* ============================================
   Navigation
   ============================================ */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background: rgba(242, 252, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #155e33;
    transition: width 0.3s ease;
}

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

/* ============================================
   Cards & Interactive Elements
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Form Styles
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23155e33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #c3ebd1;
    color: #113a22;
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid #155e33;
    outline-offset: 2px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(
            160deg,
            #071f11 0%,
            #113a22 30%,
            #155e33 55%,
            #1d7a42 80%,
            #0d3320 100%
        );
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #site-header,
    #mobile-menu,
    .hero-gradient,
    .hero-orb {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-gradient {
        background: none !important;
    }
}
