/* ============================================================================
   HOMEPAGE STYLES FOR COCUISINA
   Extracted from inline styles for better maintainability
   ============================================================================ */

/* Homepage-specific styling with Cocusina branding 2.0 */
body.homepage {
    background: linear-gradient(135deg, #F9F6F2 0%, #F4E7D7 100%);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* AI-themed subtle background pattern - Updated to new Deep Green */
body.homepage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(17, 104, 43, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 231, 215, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(31, 77, 58, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body.homepage .main-container {
    position: relative;
    z-index: 1;
}

/* Hero Section Styling */
.homepage .hero-narrative {
    padding: 80px 20px 60px !important;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.homepage .hero-narrative h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.5px !important;
    color: var(--glass-primary);
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.homepage .hero-narrative .lead {
    font-size: 1.5rem !important;
    color: var(--glass-secondary);
    font-weight: 400;
    line-height: 1.7 !important;
    margin-bottom: 25px;
}

.homepage .hero-narrative p {
    font-size: 1.15rem !important;
    color: var(--glass-secondary);
    line-height: 1.8 !important;
    font-weight: 300;
    opacity: 0.9;
}

/* Hero Image Styling */
.homepage .hero-image {
    border-radius: 24px !important;
    box-shadow: 0 25px 70px rgba(31, 77, 58, 0.15), 0 10px 30px rgba(244, 231, 215, 0.2) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    height: auto;
}

.homepage .hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(31, 77, 58, 0.2), 0 15px 40px rgba(244, 231, 215, 0.3) !important;
}

/* Journey Steps Cards */
.homepage .journey-steps .cocuisina-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(31, 77, 58, 0.2) !important;
    border-radius: 20px !important;
    padding: 40px 30px !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.homepage .journey-steps .cocuisina-card:hover {
    border-color: rgba(244, 231, 215, 0.6) !important;
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 77, 58, 0.15);
}

.homepage .journey-steps h4 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--glass-primary) !important;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.homepage .journey-steps p {
    color: var(--glass-secondary) !important;
    line-height: 1.7 !important;
    font-size: 1rem;
    opacity: 0.9;
}

.homepage .journey-steps [style*="font-size: 2.5rem"] {
    font-size: 3rem !important;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* CTA Section */
.homepage .cta-section {
    margin-top: 60px !important;
    padding: 40px 20px;
}

.homepage .cta-section p {
    font-size: 1.3rem !important;
    color: var(--glass-secondary) !important;
    font-weight: 400;
    margin-bottom: 30px;
}

.homepage .cocuisina-btn-primary {
    background: linear-gradient(135deg, #1F4D3A 0%, #16382B 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-weight: 500;
    font-size: 1.1rem !important;
    box-shadow: 0 8px 24px rgba(31, 77, 58, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.homepage .cocuisina-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(31, 77, 58, 0.4);
    background: linear-gradient(135deg, #163d2e 0%, #0f2820 100%) !important;
}

.homepage .cocuisina-btn-secondary {
    background: rgba(244, 231, 215, 0.5) !important;
    border: 2px solid var(--glass-primary) !important;
    color: var(--glass-primary) !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-weight: 500;
    font-size: 1.1rem !important;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.homepage .cocuisina-btn-secondary:hover {
    background: var(--glass-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 77, 58, 0.3);
}

/* Trust Section */
.homepage .cocuisina-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(31, 77, 58, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.homepage .cocuisina-card h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--glass-primary) !important;
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.homepage .cocuisina-card strong {
    color: var(--glass-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

.homepage .cocuisina-card .text-muted {
    color: var(--glass-muted) !important;
}

/* Subtle AI-themed decorative elements */
.homepage .journey-steps .cocuisina-card {
    position: relative;
    overflow: visible;
}

.homepage .journey-steps .cocuisina-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 77, 58, 0.08) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage .journey-steps .cocuisina-card:hover::before {
    opacity: 1;
}

/* AI pattern overlay on hero */
.homepage .hero-narrative::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(244, 231, 215, 0.03) 35px, rgba(244, 231, 215, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(31, 77, 58, 0.02) 35px, rgba(31, 77, 58, 0.02) 70px);
    pointer-events: none;
    z-index: -1;
    border-radius: 20px;
}

/* Cocusina brand typography */
.homepage h1, .homepage h2, .homepage h3, .homepage h4 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.3px;
}

.homepage .hero-narrative h1 {
    font-weight: 600;
}

/* Subtle sparkle effect on icons */
.homepage .journey-steps [style*="font-size: 2.5rem"] {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: gentleFloat 3s ease-in-out infinite;
}

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

/* Add subtle grid pattern to trust section */
.homepage .cocuisina-card {
    position: relative;
}

.homepage .cocuisina-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(31, 77, 58, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 77, 58, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 24px;
    pointer-events: none;
    z-index: 0;
}

.homepage .cocuisina-card > * {
    position: relative;
    z-index: 1;
}

/* Spacing improvements */
.homepage .main-container {
    padding: 40px 20px;
}

/* Hero section container */
.hero-section {
    max-width: 800px;
    margin: 40px auto;
}

/* Trust section icon boxes */
.trust-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(17, 104, 43, 0.2);
}

/* Trust section card */
.trust-card {
    padding: 40px;
    background: linear-gradient(135deg, rgba(244, 231, 215, 0.3) 0%, rgba(244, 231, 215, 0.1) 100%);
}

/* Journey steps container */
.journey-steps {
    max-width: 900px;
    margin: 0 auto;
}

/* Journey step card */
.journey-step-card {
    padding: 30px;
    border: 2px solid var(--glass-primary);
}

.journey-step-card h4 {
    margin-bottom: 15px;
    color: var(--glass-secondary);
}

.journey-step-card p {
    color: var(--glass-text-secondary);
    line-height: 1.6;
}

/* CTA buttons container */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-buttons .cocuisina-btn {
    font-size: 1.1rem;
    width: 100%;
    max-width: 350px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .homepage .hero-narrative h1 {
        font-size: 2.5rem;
    }

    .homepage .hero-narrative .lead {
        font-size: 1.25rem !important;
    }

    .homepage .journey-steps .cocuisina-card {
        padding: 30px 20px !important;
    }

    .homepage .hero-narrative {
        padding: 60px 20px !important;
    }
}
