/* Modern, Corporate, and Premium Homepage Stylesheet for Arabica Festival */

:root {
    --primary-coffee: #1E3A8A;
    --primary-coffee-hover: #1D4ED8;
    --dark-coffee: #0F172A;
    --light-bg: #F1F5F9;
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 10px 25px rgba(30, 58, 138, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Layout & Background */
.text-page.page-content, 
.product-section {
    background-color: var(--light-bg) !important;
    padding-top: 0 !important;
}

/* Premium Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-color: var(--dark-coffee);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 30%, rgba(30, 58, 138, 0.4) 100%);
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomSlow 20s infinite alternate;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-coffee);
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid var(--primary-coffee);
    padding-bottom: 5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}

.hero-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-btn {
    background-color: var(--primary-coffee) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 35px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
    transition: var(--transition-smooth) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-btn:hover {
    background-color: var(--primary-coffee-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5) !important;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-coffee);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-coffee);
    border-radius: 2px;
}

.section-desc {
    color: #666;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 300;
}

/* Grid & Cards (Modern Glass/Minimal Style) */
.product-section {
    padding: 80px 0;
}

.modern-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.modern-card-col {
    margin-bottom: 40px;
    display: flex;
}

.modern-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid #CBD5E1;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modern-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(30, 58, 138, 0.15);
}

/* Card Image Area */
.modern-img-container {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    padding-top: 65% !important; /* aspect ratio 16:10 */
    background: var(--dark-coffee);
    width: 100% !important;
}

.modern-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    transition: var(--transition-smooth);
}

.modern-card:hover .modern-img {
    opacity: 0.9;
}

/* Date Badge on Image */
.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--primary-coffee);
    color: #fff;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}

/* Card Info Area */
.modern-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modern-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-coffee);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: var(--transition-smooth);
}

.modern-card:hover .modern-card-title {
    color: var(--primary-coffee);
}

.modern-card-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-weight: 350;
}

/* Card Footer Action */
.modern-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 25px;
    background-color: #fcfbfa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-action-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-coffee);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.modern-action-link i {
    transition: var(--transition-smooth);
}

.modern-card:hover .modern-action-link {
    color: var(--primary-coffee-hover);
}

.modern-card:hover .modern-action-link i {
    transform: translateX(4px);
}

/* Keyframes */
@keyframes zoomSlow {
    0% {
        transform: scale(1.02) rotate(0deg);
    }
    100% {
        transform: scale(1.08) rotate(0.5deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-text {
        font-size: 15px;
    }
    .hero-section {
        height: 60vh;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Card metadata line styling */
.modern-card-meta-wrapper {
    margin-bottom: 15px !important;
}

.modern-card-meta {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    letter-spacing: 0.5px !important;
    border: 1px solid #E2E8F0 !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    background-color: #F8FAFC !important;
}

.modern-card-meta i {
    font-size: 13px !important;
    color: var(--primary-coffee) !important;
    width: 16px !important;
    text-align: center !important;
}

.modern-card-meta span strong {
    color: var(--primary-coffee) !important;
    font-weight: 700 !important;
}
