/*Homepage*/
.hero-home{
    background-image: url("../img/home-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}
.hero-home .overlay-shape{
    position: absolute;
    top: 30px;
    left: 0;
    width: calc(100% - 30px);
    height: calc(100% - 60px);
    background: rgba(255, 255, 255, 0.7);
    clip-path: polygon(0 0, 70% 0, 60% 101%, 0% 100%);
}
.hero-home::after{
    position: absolute;
    content: "";
    top: 30px;
    right: 0;
    width: 30px;
    height: calc(100% - 60px);
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}
.hero-home .hero-home-content{
    z-index: 10;
}
.hero-home .hero-home-content::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}
.hero-home .hero-home-content::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* Services/Home row styles */
.services-home{
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative; /* needed for absolute dropdown */
    color: var(--accent);
    font-size: 18px; /* base font size for service text */
    line-height: 1.4;
}
.services-home img{
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
    display: inline-block; /* keep image inline with text */
}
/* Ensure the text sits on one line next to image when possible */
.services-home{ white-space: nowrap; }
/* Allow the column to shrink but not overlap image */
.services-home{ overflow: visible; }

/* List inside "Alte industrii" (within text container) */
.services-home .service-text{ position: relative; display: inline-block; }
.services-home .service-text ul{
    list-style: none;
    margin: 0;
    padding: 8px 0px;
    display: none; /* hidden by default */
    position: absolute;
    left: 0;
    top: calc(100% + 1px); /* drop below the text, not the image */
    min-width: 180px;
    background: transparent; /* remove background as requested */
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 20;
    white-space: normal; /* allow wrapping inside dropdown */
}
.services-home:hover .service-text ul{ display: block; }

/* Font size only for list items */
.services-home .service-text ul li{ font-size: 16px; color: var(--accent); padding: 4px 0; }
.services-home .service-text ul li:hover{ color: var(--ark-color); }

/* Accent color base; ARK color on hover for main text */
.services-home:hover{ color: var(--ark-color); }

/* Make sure anchor styles (if any added later) inherit correctly */
.services-home a{ color: inherit; text-decoration: none; }
.services-home a:hover{ color: var(--ark-color); text-decoration: underline; }

/* Services container layout (auto width with spacing; 2 per row on mobile) */
.services-row{
    display: flex;
    flex-wrap: nowrap;
    gap: 16px; /* spacing between items */
    align-items: center;
    margin: 30px 0 60px; /* top 30px, bottom 60px as requested */
    justify-content: space-between;
}
/* Auto width items; allow them to occupy only needed space */
.services-row .services-home{
    flex: 0 1 auto;
    cursor: pointer; /* pointer on hover */
}

/* Mobile: exactly 2 items per row */
@media (max-width: 767px){
    .services-row{ flex-wrap: wrap; }
    .services-row .services-home{
        flex: 0 0 calc(50% - 8px); /* 2 per row accounting for 16px gap */
        justify-content: flex-start;
    }
}

/* Utility and section styles added for home partners and background boxes */
.box-culoare-fundal-text{
    background: var(--text);
    color: #fff;
}
.box-culoare-fundal-text a{ color:#fff; }


/* Background image box with parallax and subtle zoom */
.box-bg-img{
    position: relative;
    background-image: url('../img/bloc-mare.jpg');
    background-size: 110%; /* slight zoom feel */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* parallax */
    overflow: hidden; /* keep overlay within */
}
.box-bg-img::before{
    content: '';
    position: absolute; inset: 0;
    background: var(--text);
    opacity: 0.5; /* transparent overlay using the same --text color */
    pointer-events: none;
}
/* ensure content above overlay */
.box-bg-img > *{ position: relative; z-index: 1; }

/* Partners row */
.parteneri{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 30px; /* horizontal 30, vertical 20; we also add bottom margin per item */
    margin-top: 20px;
}
.parteneri-item{ display: inline-flex; align-items: center; justify-content: center; margin-bottom: 30px; max-width: 150px; }
.parteneri-item img{ display:block; max-height: 60px; width: auto; height: auto; object-fit: contain; }

.img-forme-center{
    max-width: 280px;
    margin: 60px auto 30px auto;
}

/* Button under partners */
.btn-parteneri{
    display: inline-block;
    padding: 10px 18px;
    background: var(--text);
    color: #fff;
    border: 1px solid var(--accent-soft);
    border-radius: 10px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; /* smooth effect */
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-parteneri:hover{
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    text-decoration: none;
}
.btn-parteneri:active{
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.services-home-b{
    font-size: 12px;
}
.services-home-b h3{
    font-size: 18px;
    font-weight: 400;
}

/*Homepage*/
.hero-home{
    background-image: url("../img/home-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}
.hero-home .overlay-shape{
    position: absolute;
    top: 30px;
    left: 0;
    width: calc(100% - 30px);
    height: calc(100% - 60px);
    background: rgba(255, 255, 255, 0.7);
    clip-path: polygon(0 0, 70% 0, 60% 101%, 0% 100%);
}
.hero-home::after{
    position: absolute;
    content: "";
    top: 30px;
    right: 0;
    width: 30px;
    height: calc(100% - 60px);
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}
.hero-home .hero-home-content{
    z-index: 10;
}
.hero-home .hero-home-content::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}
.hero-home .hero-home-content::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* Services/Home row styles */
.services-home{
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative; /* needed for absolute dropdown */
    color: var(--accent);
    font-size: 18px; /* base font size for service text */
    line-height: 1.4;
}
.services-home img{
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
    display: inline-block; /* keep image inline with text */
}
/* Ensure the text sits on one line next to image when possible */
.services-home{ white-space: nowrap; }
/* Allow the column to shrink but not overlap image */
.services-home{ overflow: visible; }

/* List inside "Alte industrii" (within text container) */
.services-home .service-text{ position: relative; display: inline-block; }
.services-home .service-text ul{
    list-style: none;
    margin: 0;
    padding: 8px 0px;
    display: none; /* hidden by default */
    position: absolute;
    left: 0;
    top: calc(100% + 1px); /* drop below the text, not the image */
    min-width: 180px;
    background: transparent; /* remove background as requested */
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 20;
    white-space: normal; /* allow wrapping inside dropdown */
}
.services-home:hover .service-text ul{ display: block; }

/* Font size only for list items */
.services-home .service-text ul li{ font-size: 16px; color: var(--accent); padding: 4px 0; }
.services-home .service-text ul li:hover{ color: var(--ark-color); }

/* Accent color base; ARK color on hover for main text */
.services-home:hover{ color: var(--ark-color); }

/* Make sure anchor styles (if any added later) inherit correctly */
.services-home a{ color: inherit; text-decoration: none; }
.services-home a:hover{ color: var(--ark-color); text-decoration: underline; }

/* Services container layout (auto width with spacing; 2 per row on mobile) */
.services-row{
    display: flex;
    flex-wrap: nowrap;
    gap: 16px; /* spacing between items */
    align-items: center;
    margin: 30px 0 60px; /* top 30px, bottom 60px as requested */
    justify-content: space-between;
}
/* Auto width items; allow them to occupy only needed space */
.services-row .services-home{
    flex: 0 1 auto;
    cursor: pointer; /* pointer on hover */
}

/* Mobile: exactly 2 items per row */
@media (max-width: 767px){
    .services-row{ flex-wrap: wrap; }
    .services-row .services-home{
        flex: 0 0 calc(50% - 8px); /* 2 per row accounting for 16px gap */
        justify-content: flex-start;
    }
}

/* Utility and section styles added for home partners and background boxes */
.box-culoare-fundal-text{
    background: var(--text);
    color: #fff;
}
.box-culoare-fundal-text a{ color:#fff; }


/* Background image box with parallax and subtle zoom */
.box-bg-img{
    position: relative;
    background-image: url('../img/bloc-mare.jpg');
    background-size: 110%; /* slight zoom feel */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* parallax */
    overflow: hidden; /* keep overlay within */
}
.box-bg-img::before{
    content: '';
    position: absolute; inset: 0;
    background: var(--text);
    opacity: 0.5; /* transparent overlay using the same --text color */
    pointer-events: none;
}
/* ensure content above overlay */
.box-bg-img > *{ position: relative; z-index: 1; }

/* Partners row */
.parteneri{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 30px; /* horizontal 30, vertical 20; we also add bottom margin per item */
    margin-top: 20px;
}
.parteneri-item{ display: inline-flex; align-items: center; justify-content: center; margin-bottom: 30px; max-width: 150px; }
.parteneri-item img{ display:block; max-height: 60px; width: auto; height: auto; object-fit: contain; }

.img-forme-center{
    max-width: 280px;
    margin: 60px auto 30px auto;
}

/* Button under partners */
.btn-parteneri{
    display: inline-block;
    padding: 10px 18px;
    background: var(--text);
    color: #fff;
    border: 1px solid var(--accent-soft);
    border-radius: 10px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; /* smooth effect */
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-parteneri:hover{
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    text-decoration: none;
}
.btn-parteneri:active{
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.services-home-b{
    font-size: 12px;
}
.services-home-b h3{
    font-size: 18px;
    font-weight: 400;
}

/* Mobile fix: remove clip-path on .hero-home .overlay-shape */
@media (max-width: 991px){
    .hero-home .overlay-shape{
        clip-path: none;
        -webkit-clip-path: none;
    }
}
