/* ===================================
   MODERN HOME PAGE STYLES
   =================================== */

:root {
    --brew-primary: #C67C4E;
    --brew-primary-dark: #A66438;
    --brew-primary-light: #E8B195;
    --brew-black: #2C2C2C;
    --brew-gray: #6B7280;
    --brew-surface: #F9F2ED;
    --brew-white: #FFFFFF;
    --brew-text: #2C2C2C;
    --brew-text-light: #6B7280;
    --brew-line: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* ===================================
   HERO SECTION - MODERN DESIGN
   =================================== */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #1a0f0a 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 15, 10, 0.95) 0%, rgba(45, 24, 16, 0.9) 50%, rgba(26, 15, 10, 0.95) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(198,124,78,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    overflow: hidden;
}

/* Ensure hero content is visible */
.hero-home .hero-content {
    position: relative;
    z-index: 10 !important;
}

.hero-home .hero-badge,
.hero-home h1,
.hero-home .hero-accent,
.hero-home p,
.hero-home .hero-buttons {
    position: relative;
    z-index: 10 !important;
}

/* Modern Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(198, 124, 78, 0.15) 0%, 
        rgba(44, 44, 44, 0.3) 50%,
        rgba(26, 15, 10, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Animated Coffee Beans Background */
.background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.coffee-bean {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(198, 124, 78, 0.2), rgba(198, 124, 78, 0.05));
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0.3;
}

.bean-1 { top: 10%; left: 10%; animation-delay: 0s; }
.bean-2 { top: 20%; right: 15%; animation-delay: 2s; }
.bean-3 { bottom: 15%; left: 20%; animation-delay: 4s; }
.bean-4 { top: 60%; right: 10%; animation-delay: 6s; }
.bean-5 { bottom: 30%; left: 50%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(30px) rotate(270deg); }
}

/* Steam Animation */
.steam {
    position: absolute;
    bottom: 10%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: steam-rise 4s infinite ease-in-out;
    opacity: 0.4;
}

.steam-1 { left: 30%; animation-delay: 0s; }
.steam-2 { left: 50%; animation-delay: 1.3s; }
.steam-3 { left: 70%; animation-delay: 2.6s; }

@keyframes steam-rise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-150px) scaleX(2); opacity: 0; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(198, 124, 78, 0.2);
    border: 2px solid var(--brew-primary);
    border-radius: 50px;
    color: var(--brew-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-accent {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--brew-primary), var(--brew-primary-light));
    margin: 0 auto 2rem;
    border-radius: 2px;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    z-index: 10;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.8s both;
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brew-primary), var(--brew-primary-dark));
    color: white !important;
    box-shadow: 0 8px 24px rgba(198, 124, 78, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(198, 124, 78, 0.6);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brew-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(198, 124, 78, 0.3);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

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

/* ===================================
   WELCOME SECTION
   =================================== */
.welcome-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--brew-white) 0%, var(--brew-surface) 100%);
    position: relative;
}

.welcome-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.welcome-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--brew-line);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brew-primary), var(--brew-primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.welcome-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brew-primary);
}

.welcome-card:hover::before {
    transform: scaleX(1);
}

.welcome-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brew-primary), var(--brew-primary-dark));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(198, 124, 78, 0.2);
}

.welcome-icon i {
    font-size: 2rem;
    color: white;
}

.welcome-card:hover .welcome-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(198, 124, 78, 0.4);
}

.welcome-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--brew-black);
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-card p {
    color: var(--brew-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   QUICK LINKS SECTION
   =================================== */
.quick-links {
    padding: 6rem 2rem;
    background: var(--brew-white);
}

.quick-links .container {
    max-width: 1200px;
    margin: 0 auto;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quick-link-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--brew-surface) 0%, var(--brew-white) 100%);
    border-radius: 20px;
    border: 2px solid var(--brew-line);
    text-decoration: none;
    color: var(--brew-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.quick-link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(198, 124, 78, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    border-color: var(--brew-primary);
    box-shadow: var(--shadow-lg);
}

.quick-link-card:hover::after {
    opacity: 1;
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brew-primary-light), var(--brew-primary));
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(198, 124, 78, 0.15);
}

.quick-link-icon i {
    font-size: 1.75rem;
    color: white;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 8px 20px rgba(198, 124, 78, 0.3);
}

.quick-link-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--brew-black);
    margin-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.quick-link-card p {
    color: var(--brew-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.quick-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--brew-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.quick-link-card:hover .quick-link-arrow {
    transform: translateX(8px) scale(1.1);
    box-shadow: 0 4px 12px rgba(198, 124, 78, 0.4);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .welcome-grid,
    .quick-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-home {
        min-height: 90vh;
        padding: 100px 1.5rem 60px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .welcome-section,
    .quick-links {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .welcome-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .welcome-card,
    .quick-link-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-accent {
        width: 60px;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .welcome-card h3,
    .quick-link-card h3 {
        font-size: 1.25rem;
    }
    
    .welcome-icon,
    .quick-link-icon {
        font-size: 2rem;
    }
}

/* ===================================
   SMOOTH SCROLL & ANIMATIONS
   =================================== */
html {
    scroll-behavior: smooth;
}

/* Fade in animation for sections */
.welcome-section,
.quick-links {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.welcome-card,
.quick-link-card {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.welcome-card.visible,
.quick-link-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.welcome-card:nth-child(1).visible,
.quick-link-card:nth-child(1).visible {
    animation-delay: 0.1s;
}

.welcome-card:nth-child(2).visible,
.quick-link-card:nth-child(2).visible {
    animation-delay: 0.2s;
}

.welcome-card:nth-child(3).visible,
.quick-link-card:nth-child(3).visible {
    animation-delay: 0.3s;
}

.welcome-card:nth-child(4).visible,
.quick-link-card:nth-child(4).visible {
    animation-delay: 0.4s;
}

/* Enhanced focus states for accessibility */
.btn:focus,
.quick-link-card:focus {
    outline: 3px solid var(--brew-primary);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .hero-home,
    .background-animation {
        background: white !important;
    }
    
    .btn {
        border: 2px solid var(--brew-primary) !important;
    }
}
