/* ===== ERGO-ADAPT HOMEPAGE PREMIUM CSS ===== */

/* --- Hero --- */
.ea-hero {
    position: relative;
    background: linear-gradient(135deg, #1a3d36 0%, #2E7D6F 40%, #3d9e8a 100%);
    padding: 80px 0 100px;
    overflow: hidden;
    color: #fff;
}
.ea-hero__bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(66,153,225,0.15) 0%, transparent 50%);
}
.ea-hero__pattern {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30Z' fill='white'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}
.ea-hero__grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 280px;
    gap: 60px; align-items: center;
}
.ea-hero__title {
    font-size: 3rem; font-weight: 800; line-height: 1.15;
    margin: 0 0 20px; letter-spacing: -0.5px;
}
.ea-hero__highlight {
    background: linear-gradient(120deg, #f6e05e 0%, #fbd38d 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ea-hero__sub {
    font-size: 1.15rem; line-height: 1.7; color: rgba(255,255,255,0.85);
    max-width: 600px; margin-bottom: 32px;
}
.ea-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.ea-btn--outline-white {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px; padding: 12px 28px; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
}
.ea-btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.ea-btn--primary {
    background: #f6e05e; color: #1a3d36; border: none;
    border-radius: 8px; padding: 14px 32px; font-weight: 700;
    text-decoration: none; transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(246,224,94,0.3);
}
.ea-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(246,224,94,0.4); }
.ea-btn--lg { font-size: 1.05rem; }

/* Hero stats */
.ea-hero__stats {
    display: flex; flex-direction: column; gap: 28px;
    padding-left: 32px; border-left: 1px solid rgba(255,255,255,0.15);
}
.ea-stat { text-align: center; }
.ea-stat__number {
    display: block; font-size: 2.4rem; font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, #f6e05e 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ea-stat__label { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; }

/* --- Sections --- */
.ea-section { padding: 72px 0; }
.ea-section--white { background: #fff; }
.ea-section--light { background: #f7fafc; }
.ea-section--alt { background: #edf2f7; }
.ea-section__title { font-size: 2rem; font-weight: 700; color: #1a3d36; text-align: center; margin: 0 0 12px; }
.ea-section__sub { font-size: 1.1rem; color: #718096; text-align: center; max-width: 600px; margin: 0 auto 40px; }
.ea-section__footer { text-align: center; margin-top: 40px; }

/* --- Category Cards --- */
.ea-cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; max-width: 900px; margin: 0 auto;
}
.ea-cat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; text-decoration: none; color: #2d3748;
    transition: all 0.25s; position: relative; overflow: hidden;
}
.ea-cat-card:hover {
    transform: translateY(-3px); border-color: #2E7D6F;
    box-shadow: 0 8px 25px rgba(46,125,111,0.1);
}
.ea-cat-card__icon { font-size: 1.5rem; flex-shrink: 0; }
.ea-cat-card__body { display: flex; flex-direction: column; }
.ea-cat-card__name { font-weight: 600; font-size: 0.95rem; }
.ea-cat-card__count { font-size: 0.8rem; color: #a0aec0; margin-top: 2px; }
.ea-cat-card--need .ea-cat-card__icon { font-size: 1.6rem; }

/* --- Trust Cards --- */
.ea-trust-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    max-width: 900px; margin: 0 auto;
}
.ea-trust-card {
    text-align: center; padding: 32px 20px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    transition: all 0.25s;
}
.ea-trust-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-2px); }
.ea-trust-card__icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.ea-trust-card__title { font-size: 1.15rem; font-weight: 700; color: #1a3d36; margin: 0 0 10px; }
.ea-trust-card p { color: #718096; line-height: 1.65; font-size: 0.95rem; margin: 0; }

/* --- Guide Cards --- */
.ea-guide-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    max-width: 1000px; margin: 0 auto;
}
.ea-guide-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: all 0.25s;
}
.ea-guide-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.ea-guide-card__thumb {
    display: block; height: 180px; overflow: hidden; background: #edf2f7;
}
.ea-guide-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ea-guide-card__placeholder {
    height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; background: linear-gradient(135deg, #e6f4f0, #e9d8fd);
}
.ea-guide-card__body { padding: 20px 24px 24px; }
.ea-guide-card__title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.ea-guide-card__title a { color: #1a3d36; text-decoration: none; }
.ea-guide-card__title a:hover { color: #2E7D6F; }
.ea-guide-card__meta { font-size: 0.8rem; color: #a0aec0; margin: 0 0 10px; }
.ea-guide-card__excerpt { font-size: 0.9rem; color: #718096; line-height: 1.6; margin: 0 0 12px; }
.ea-guide-card__link { color: #2E7D6F; font-weight: 600; text-decoration: none; font-size: 0.9rem; }

/* --- FAQ --- */
.ea-faq-grid { max-width: 700px; margin: 0 auto; }
.ea-faq-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
}
.ea-faq-item__q {
    padding: 18px 24px; font-weight: 600; color: #1a3d36;
    cursor: pointer; list-style: none; display: flex;
    justify-content: space-between; align-items: center;
    font-size: 1.05rem;
}
.ea-faq-item__q::after {
    content: '+'; font-size: 1.3rem; color: #2E7D6F; font-weight: 300; transition: transform 0.2s;
}
.ea-faq-item[open] .ea-faq-item__q::after { transform: rotate(45deg); }
.ea-faq-item__a { padding: 0 24px 20px; }
.ea-faq-item__a p { color: #718096; line-height: 1.7; margin: 0; }


/* --- SVG Icons --- */
.ea-cat-card__icon--svg svg { display: block; }
.ea-trust-card__icon--svg svg { display: block; margin: 0 auto; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .ea-hero { padding: 48px 0 60px; }
    .ea-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .ea-hero__title { font-size: 2rem; }
    .ea-hero__stats { flex-direction: row; gap: 32px; padding-left: 0; border-left: none; justify-content: center; }
    .ea-stat__number { font-size: 1.8rem; }
    .ea-trust-grid, .ea-guide-grid { grid-template-columns: 1fr; }
    .ea-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .ea-section { padding: 48px 0; }
}

/* Button base */
.ea-btn--outline {
    display: inline-block; padding: 12px 28px; border: 2px solid #2E7D6F;
    color: #2E7D6F; font-weight: 600; border-radius: 8px;
    text-decoration: none; transition: all 0.2s;
}
.ea-btn--outline:hover { background: #2E7D6F; color: #fff; }

.ea-btn--sm {
    display: inline-block; padding: 8px 18px; background: #2E7D6F;
    color: #fff; font-weight: 600; border-radius: 6px;
    text-decoration: none; font-size: 0.85rem; transition: all 0.2s;
}
.ea-btn--sm:hover { background: #1a3d36; }

/* --- Extension Promo Block --- */
.ea-ext-promo {
    display: flex; align-items: center; gap: 16px;
    margin-top: 20px; padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4, #e6f4f0);
    border: 2px solid #2E7D6F; border-radius: 14px;
}
.ea-ext-promo__icon { font-size: 2rem; flex-shrink: 0; }
.ea-ext-promo__body { flex: 1; }
.ea-ext-promo__title { font-weight: 700; font-size: 1rem; color: #1a3d36; margin: 0 0 4px; }
.ea-ext-promo__sub { font-size: 0.9rem; color: #4a6a62; margin: 0; line-height: 1.4; }
.ea-ext-promo__btn {
    flex-shrink: 0; padding: 10px 20px;
    background: #2E7D6F; color: #fff; font-weight: 700;
    border-radius: 10px; text-decoration: none; font-size: 0.9rem;
    transition: all 0.2s; white-space: nowrap;
}
.ea-ext-promo__btn:hover { background: #1a3d36; transform: translateY(-1px); }

@media (max-width: 600px) {
    .ea-ext-promo { flex-direction: column; text-align: center; }
    .ea-ext-promo__btn { width: 100%; text-align: center; }
}
