/* ===========================
   INDEX PAGE — Hero, Features, Pricing, Contact
   =========================== */

/* --- HERO --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    background-image: url("../img/hero.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* --- FEATURES --- */
.features .feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature {
    flex: 0 0 300px;
    width: 300px;
    box-sizing: border-box;
    background: white;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .feature {
        flex: 0 0 90%;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.17);
}

.feature h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Divider cu text între categorii */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--dark);
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.6;
    margin: 0 1rem;
}

.divider span {
    color: var(--accent);
    font-size: 1rem;
}

/* --- PRICING --- */
.pricing p {
    margin-bottom: 1rem;
    color: #555;
}

.pricing-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.pricing-manual-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.pricing-manual-link:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* --- CONTACT --- */
.contact a {
    color: var(--accent);
    font-weight: 600;
}

/* --- REVIEWS SECTION --- */
.reviews-section {
    background: var(--light);
}

.reviews-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.reviews-avg {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.reviews-avg-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.reviews-avg-stars {
    color: #f1c40f;
    font-size: 1.2rem;
}

.reviews-avg-count {
    font-size: 0.85rem;
    color: #888;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-stars-display {
    color: #f1c40f;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.review-card-date {
    font-size: 0.78rem;
    color: #999;
}

.review-card-message {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
}

.review-card-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.review-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.review-card-info {
    display: flex;
    flex-direction: column;
}

.review-card-email {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
}

.review-card-role {
    font-size: 0.78rem;
    color: #888;
}

.review-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.review-badge-license {
    background: #d4edda;
    color: #155724;
}

.review-badge-verified {
    background: #d1ecf1;
    color: #0c5460;
}

.reviews-loading {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    grid-column: 1 / -1;
}

.reviews-empty {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    grid-column: 1 / -1;
}

.reviews-load-more {
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-avg {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
}
