/* ===========================
   HERO SLIDER - Fullscreen
   =========================== */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 580px;
}

.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-color: #1a2a1a;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

@media (max-width: 767px) {
    .hero-slide {
        background-image: var(--bg-mobile, var(--bg-desktop));
    }
}

/* Overlay inchis peste imagine */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.1) 100%
    );
    z-index: 1;
}

/* Content peste imagine */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 480px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-btn {
    display: inline-block;
    background: #ffffff;
    color: #1a1a1a;
    padding: 16px 40px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.3px;
    align-self: flex-start;
}

.hero-btn:hover {
    background: #1abc50;
    color: #ffffff;
    text-decoration: none;
}

/* Sageti */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1100px) {
    .hero-slider { min-height: 500px; }
    .hero-content { height: 500px; padding: 0 60px; }
    .hero-title { font-size: 38px; }
}

@media (max-width: 900px) {
    .hero-slider { min-height: 420px; }
    .hero-content { height: 420px; padding: 0 40px; }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 16px; }
}

@media (max-width: 767px) {
    .hero-slider { min-height: 360px; }
    .hero-content {
        height: 360px;
        padding: 0 24px;
        text-align: center;
        align-items: center;
        max-width: 100%;
    }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 14px; max-width: 100%; }
    .hero-btn { align-self: center; padding: 13px 28px; }
    .hero-overlay {
        background: rgba(0,0,0,0.5);
    }
    .hero-arrow-prev { left: 10px; }
    .hero-arrow-next { right: 10px; }
}

@media (max-width: 480px) {
    .hero-slider { min-height: 300px; }
    .hero-content { height: 300px; }
    .hero-title { font-size: 20px; }
}

/* Fix mobile arrows */
@media (max-width: 767px) {
    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
        top: auto;
        bottom: 60px;
        transform: none;
    }
    .hero-arrow-prev { left: 16px; }
    .hero-arrow-next { right: 16px; }
    .hero-content {
        padding: 0 60px;
    }
}

/* Fix buton mobil */
@media (max-width: 767px) {
    .hero-btn {
        padding: 7px 16px;
        font-size: 12px;
        align-self: center;
        border-width: 1px;
    }
    .hero-content {
        padding: 0 20px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .hero-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }
    .hero-slider {
        min-height: 280px;
    }
    .hero-slide {
        background-size: cover;
        background-position: center center;
    }
}

/* ===== CATEGORII CERCURI ===== */
.categories-section {
    padding: 40px 0 30px;
    background: #fff;
}

.categories-section .section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.categories-wrapper {
    position: relative;
}

/* Desktop - flex centrat, toate vizibile */
.categories-track {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 20px;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
    width: 110px;
}

.category-circle:hover .circle-img-wrap {
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.circle-img-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-circle span {
    margin-top: 10px;
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    max-width: 100px;
}

.cat-arrow { display: none; }

/* Mobil - scroll orizontal nativ CSS pur */
@media (max-width: 1100px) {
    .categories-track {
        justify-content: flex-start;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0 15px 10px;
        gap: 15px;
    }
    .categories-track::-webkit-scrollbar { display: none; }
    .category-circle {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 95px;
    }
    .circle-img-wrap { width: 75px; height: 75px; }
}

@media (max-width: 767px) {
    .categories-section .section-title { font-size: 18px; margin-bottom: 20px; }
    .category-circle { width: 85px; }
    .circle-img-wrap { width: 70px; height: 70px; }
}

/* ===== FEATURE BLOCKS ===== */
.feature-section {
    padding: 60px 0;
    background: #fff;
}

.feature-section:nth-child(even) {
    background: #f8f9fa;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-block-image {
    flex: 0 0 45%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}

.feature-block-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.feature-block-image:hover img {
    transform: scale(1.03);
}

.feature-block-image .feature-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #2e7d32;
}

.feature-block-content {
    flex: 1;
}

.feature-block-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-block-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-block-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.feature-block-btn:hover {
    background: #1abc50;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 900px) {
    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .feature-block-image {
        flex: none;
        width: 100%;
    }

    .feature-block-image img,
    .feature-block-image .feature-placeholder {
        height: 240px;
    }

    .feature-block-content h2 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .feature-section {
        padding: 40px 0;
    }

    .feature-block {
        padding: 0 15px;
    }

    .feature-block-image img,
    .feature-block-image .feature-placeholder {
        height: 200px;
    }

    .feature-block-content h2 {
        font-size: 20px;
    }

    .feature-block-content p {
        font-size: 14px;
    }
}

/* ===== FEATURE BLOCK ACCORDION TEXT ===== */
.feature-accordion {
    margin-bottom: 20px;
}

.feature-text-preview {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.feature-text-expanded p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.feature-dots {
    color: #555;
}

.feature-toggle {
    color: #1abc50;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted #1abc50;
}

.feature-toggle:hover {
    color: #158f3c;
    border-bottom-color: #158f3c;
    text-decoration: none;
}

/* ===== PRODUSE FEATURED ===== */
.featured-products-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.featured-products-section .section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 35px;
}

@media (max-width: 767px) {
    .featured-products-section { padding: 35px 0; }
    .featured-products-section .section-title { font-size: 18px; margin-bottom: 20px; }
}

/* ===== GHID TEHNIC HOMEPAGE ===== */
.homepage-guide-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3a2f 0%, #2d5a3d 100%);
}

.homepage-guide-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.homepage-guide-label {
    display: inline-block;
    background: #1abc50;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.homepage-guide-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.homepage-guide-desc {
    font-size: 15px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 28px;
}

.homepage-guide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1abc50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.homepage-guide-btn:hover {
    background: #158f3c;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .homepage-guide-section { padding: 40px 0; }
    .homepage-guide-title { font-size: 22px; }
}
