/**
 * ez-gan Homepage Styles
 * Hero, Features, Suppliers sections
 *
 * @package ez-gan
 */

/* ========================================
   HOMEPAGE - Override main padding
   ======================================== */
body.home .ez-site-main,
body.page-template-page-home .ez-site-main {
    padding-top: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.ez-hero {
    min-height: 100vh;
    padding: 120px 24px 80px; /* Extra top padding to clear fixed header */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Organic background shapes */
.ez-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ez-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
}

.ez-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--ez-primary);
    top: -200px;
    left: -100px;
    opacity: 0.15;
    animation-delay: 0s;
}

.ez-blob-2 {
    width: 500px;
    height: 500px;
    background: var(--ez-secondary);
    bottom: -150px;
    right: -100px;
    opacity: 0.2;
    animation-delay: -7s;
}

.ez-blob-3 {
    width: 300px;
    height: 300px;
    background: var(--ez-accent);
    top: 40%;
    left: 60%;
    opacity: 0.15;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.ez-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ez-hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.ez-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ez-accent-light);
    color: #B8860B;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ez-radius-full);
    margin-bottom: 24px;
}

.ez-hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ez-text);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ez-hero-title span {
    color: var(--ez-primary);
}

.ez-hero-subtitle {
    font-size: 18px;
    color: var(--ez-text-light);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.ez-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ez-hero-visual {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.ez-hero-image-container {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.ez-hero-mascot {
    width: auto;
    height: auto;
    max-height: 550px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: floatMascot 6s ease-in-out infinite;
}

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

/* Floating stats cards */
.ez-floating-stat {
    position: absolute;
    background: var(--ez-surface);
    padding: 16px 20px;
    border-radius: var(--ez-radius-md);
    box-shadow: var(--ez-shadow-lg);
    animation: floatStat 6s ease-in-out infinite;
}

.ez-floating-stat-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.ez-floating-stat-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: -2s;
}

.ez-floating-stat-3 {
    bottom: 5%;
    right: 10%;
    animation-delay: -4s;
}

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

.ez-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--ez-primary);
}

.ez-stat-label {
    font-size: 13px;
    color: var(--ez-text-light);
}

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

/* ========================================
   FEATURES SECTION
   ======================================== */
.ez-features {
    padding: 100px 24px;
    background: var(--ez-surface);
    position: relative;
}

.ez-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--ez-background), var(--ez-surface));
    pointer-events: none;
}

.ez-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ez-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ez-section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ez-primary-light);
    color: var(--ez-primary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--ez-radius-full);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.ez-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--ez-text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ez-section-subtitle {
    font-size: 17px;
    color: var(--ez-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.ez-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ez-feature-card {
    background: var(--ez-background);
    padding: 36px 28px;
    border-radius: var(--ez-radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ez-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--ez-primary);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
    transition: all 0.3s ease;
}

.ez-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ez-shadow-lg);
}

.ez-feature-card:hover::before {
    width: 150px;
    height: 150px;
    opacity: 0.08;
}

.ez-feature-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.ez-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ez-feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ez-text);
    margin-bottom: 12px;
}

.ez-feature-desc {
    font-size: 15px;
    color: var(--ez-text-light);
    line-height: 1.7;
}

/* ========================================
   SUPPLIERS SECTION
   ======================================== */
.ez-suppliers {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--ez-primary) 0%, var(--ez-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.ez-suppliers-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.ez-suppliers-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ez-suppliers-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.ez-suppliers-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.ez-suppliers-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ez-supplier-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.ez-supplier-check {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ez-btn-white {
    background: white;
    color: var(--ez-primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ez-btn-white:hover {
    color: var(--ez-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .ez-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ez-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .ez-hero-actions {
        justify-content: center;
    }

    .ez-hero-visual {
        order: -1;
    }

    .ez-hero-image-container {
        max-width: 300px;
    }

    .ez-floating-stat {
        display: none;
    }
}

@media (max-width: 768px) {
    .ez-hero {
        min-height: auto;
        padding: 40px 24px 60px;
    }

    .ez-suppliers-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
